Skip to content

Commit

Permalink
make chat dimensions metricsable
Browse files Browse the repository at this point in the history
so you dont need to copypaste the entire file
  • Loading branch information
Ulti-FD committed Aug 13, 2021
1 parent 1efb16b commit 79aea80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Themes/_fallback/BGAnimations/ScreenChatOverlay overlay.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local width, height = SCREEN_WIDTH - capWideScale(get43size(350), 350) - 10, SCREEN_HEIGHT * 0.035
local width = THEME:GetMetric("ScreenChatOverlay","ChatWidth")
local height = THEME:GetMetric("ScreenChatOverlay","ChatHeight")
local maxlines = 20
local lineNumber = 20
local inputLineNumber = 2
Expand Down
3 changes: 3 additions & 0 deletions Themes/_fallback/metrics.ini
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,9 @@ TimerX=
TimerY=
TimerOnCommand=
TimerOffCommand=
#
ChatWidth=SCREEN_WIDTH - capWideScale(get43size(350), 350) - 10
ChatHeight=SCREEN_HEIGHT * 0.035

[ScreenSyncOverlay]
Class="ScreenSyncOverlay"
Expand Down

0 comments on commit 79aea80

Please sign in to comment.