mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
feat: 'fast limit menu first' config to determine new sort order
This commit is contained in:
10
cl_radar.lua
10
cl_radar.lua
@@ -511,9 +511,13 @@ if ( RADAR:IsFastLimitAllowed() ) then
|
||||
end
|
||||
|
||||
-- Add the fast options to the main menu options table
|
||||
--PR TrevorBarns: push to front of table, for ease of access.
|
||||
table.insert( self.vars.menuOptions, 1, fastOptions[1] )
|
||||
table.insert( self.vars.menuOptions, 2, fastOptions[2] )
|
||||
if CONFIG.fast_limit_menu_first == true then
|
||||
table.insert( self.vars.menuOptions, 1, fastOptions[2] ) --FasSpd
|
||||
table.insert( self.vars.menuOptions, 2, fastOptions[1] ) --FasLoc
|
||||
else
|
||||
table.insert( self.vars.menuOptions, fastOptions[1] ) --FasLoc
|
||||
table.insert( self.vars.menuOptions, fastOptions[2] ) --FasSpd
|
||||
end
|
||||
end
|
||||
|
||||
-- Returns the numerical fast limit
|
||||
|
||||
Reference in New Issue
Block a user