File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030--
3131
3232local 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" ,
Original file line number Diff line number Diff line change 7676
7777local 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
You can’t perform that action at this time.
0 commit comments