mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Merge pull request #18 from TrevorBarns/master
Feature: Bring fast options to top of menu options for ease of access.
This commit is contained in:
@@ -511,8 +511,13 @@ if ( RADAR:IsFastLimitAllowed() ) then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Add the fast options to the main menu options table
|
-- Add the fast options to the main menu options table
|
||||||
table.insert( self.vars.menuOptions, fastOptions[1] )
|
if CONFIG.fast_limit_menu_first == true then
|
||||||
table.insert( self.vars.menuOptions, fastOptions[2] )
|
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
|
end
|
||||||
|
|
||||||
-- Returns the numerical fast limit
|
-- Returns the numerical fast limit
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ CONFIG = {}
|
|||||||
-- exceeds the fast limit, it will be locked into the fast box. Default setting is disabled to maintain realism
|
-- exceeds the fast limit, it will be locked into the fast box. Default setting is disabled to maintain realism
|
||||||
CONFIG.allow_fast_limit = true
|
CONFIG.allow_fast_limit = true
|
||||||
|
|
||||||
|
-- Radar fast limit menu order
|
||||||
|
-- When enabled, the fast limit options menu will be displayed first followed by fast lock toggle, then all default menu options.
|
||||||
|
CONFIG.fast_limit_menu_first = true
|
||||||
|
|
||||||
-- Radar only lock players with auto fast locking
|
-- Radar only lock players with auto fast locking
|
||||||
-- When enabled, the radar will only automatically lock a speed if the caught vehicle has a real player in it.
|
-- When enabled, the radar will only automatically lock a speed if the caught vehicle has a real player in it.
|
||||||
CONFIG.only_lock_players = false
|
CONFIG.only_lock_players = false
|
||||||
|
|||||||
Reference in New Issue
Block a user