autorefresh the weapon settings menu when necessary
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7183 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -360,20 +360,23 @@ menuitem [Sensible default (30-40 FPS)] [ closemenu [FPS Range]; fpsrange
|
||||
menuitem [FPS whore (60-60 FPS)] [ closemenu [FPS Range]; fpsrange 60 60 ]
|
||||
menuitem [I don't understand LOD (100+ FPS)] [ closemenu [FPS Range]; fpsrange 100 1000 ]
|
||||
|
||||
if (! (checkalias nickhighlight)) [ nickhighlight = 0 ]
|
||||
|
||||
const default_bursts [3 2 2]
|
||||
const refreshWSM [ closemenu [Weapon Settings]; showmenu [Weapon Settings] ]
|
||||
|
||||
newmenu [Weapon Settings]
|
||||
menuitemcheckbox [Auto weapon reload: ] "$autoreload" [ autoreload $arg1 ]
|
||||
menuitemcheckbox [Hit sound: ] "$hitsound" [ hitsound $arg1 ]
|
||||
menuitemcheckbox [Auto switch to akimbo upon pickup: ] "$akimboautoswitch" [ akimboautoswitch $arg1 ]
|
||||
menuitemslider [Akimbo end action: ] 0 2 "$akimboendaction" 1 ["Switch to pistol" "Switch to primary weapon" "Switch to grenades"] [ akimboendaction $arg1 ]
|
||||
menuitemcheckbox [SMG - Full Auto?] "(= (burstshots $SMG -1) 0)" [ if (= $arg1 0) [ burstshots $SMG (at $default_bursts 0) ] [ burstshots $SMG 0 ] ]
|
||||
menuitemcheckbox [AR - Full Auto?] "(= (burstshots $AR -1) 0)" [ if (= $arg1 0) [ burstshots $AR (at $default_bursts 1) ] [ burstshots $AR 0 ] ]
|
||||
menuitemcheckbox [Akimbo - Full Auto?] "(= (burstshots $AKIMBO -1) 0)" [ if (= $arg1 0) [ burstshots $AKIMBO (at $default_bursts 2) ] [ burstshots $AKIMBO 0 ] ]
|
||||
menuitemslider [SMG - Shots per burst: ] 0 29 "(burstshots $SMG -1)" 1 [] [ burstshots $SMG $arg1 ]
|
||||
menuitemslider [AR - Shots per burst: ] 0 14 "(burstshots $AR -1)" 1 [] [ burstshots $AR $arg1 ]
|
||||
menuitemslider [Akimbo - Shots per burst: ] 0 19 "(burstshots $AKIMBO -1)" 1 [] [ burstshots $AKIMBO $arg1 ]
|
||||
menuitemcheckbox [SMG - Full Auto?] "(= (burstshots $SMG -1) 0)" [ if (= $arg1 0) [ burstshots $SMG (at $default_bursts 0) ] [ burstshots $SMG 0 ]; refreshWSM ]
|
||||
menuitemcheckbox [AR - Full Auto?] "(= (burstshots $AR -1) 0)" [ if (= $arg1 0) [ burstshots $AR (at $default_bursts 1) ] [ burstshots $AR 0 ]; refreshWSM ]
|
||||
menuitemcheckbox [Akimbo - Full Auto?] "(= (burstshots $AKIMBO -1) 0)" [ if (= $arg1 0) [ burstshots $AKIMBO (at $default_bursts 2) ] [ burstshots $AKIMBO 0 ]; refreshWSM ]
|
||||
menuitemslider [SMG - Shots per burst: ] 0 29 "(burstshots $SMG -1)" 1 [] [ burstshots $SMG $arg1; refreshWSM ]
|
||||
menuitemslider [AR - Shots per burst: ] 0 14 "(burstshots $AR -1)" 1 [] [ burstshots $AR $arg1; refreshWSM ]
|
||||
menuitemslider [Akimbo - Shots per burst: ] 0 19 "(burstshots $AKIMBO -1)" 1 [] [ burstshots $AKIMBO $arg1; refreshWSM ]
|
||||
|
||||
if (! (checkalias nickhighlight)) [ nickhighlight = 0 ]
|
||||
|
||||
newmenu gameplay
|
||||
menuitemtextinput [Nickname: ] "result $curname" [ name $arg1 ]
|
||||
|
||||
Reference in New Issue
Block a user