Skip to content

Commit 606f939

Browse files
committed
Fix UI scale setting for 2560x1440.
Sync modoptions.
1 parent 7fcf5eb commit 606f939

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

LuaMenu/configs/gameConfig/zk/ModOptions.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
--
3131

3232
local options = {
33-
-- do deployment and tactics even work?
33+
-- do deployment and tactics even work?
3434
{
3535
key = 'a_important',
3636
name = 'Important',
@@ -209,6 +209,14 @@ local options = {
209209
section = "experimental",
210210
def = false,
211211
},
212+
{
213+
key = "reveal_superweapons",
214+
name = "Reveal superweapons",
215+
desc = "Reveals superweapons as soon as they exceed 5% completion.",
216+
type = "bool",
217+
section = "experimental",
218+
def = false,
219+
},
212220
{
213221
key = "disableresurrect",
214222
name = "Disable resurrect",

LuaMenu/configs/gameConfig/zk/settingsMenu.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ end
7676

7777
local function GetUiScaleParameters()
7878
local realWidth, realHeight = Spring.Orig.GetViewSizes()
79-
local defaultUiScale = math.floor(math.max(1, realHeight/950))*100
79+
local defaultUiScale = 100
80+
if realHeight > 1900 then
81+
defaultUiScale = 200
82+
elseif realHeight > 1220 or realWidth > 2500 then
83+
defaultUiScale = 125
84+
end
8085
local maxUiScale = math.max(2, realWidth/1000)*100
8186
local minUiScale = math.min(0.5, realWidth/4000)*100
8287
return defaultUiScale, maxUiScale, minUiScale

0 commit comments

Comments
 (0)