From d05ea601bd7120e3590a1d3c3e58ff4f54d14b1e Mon Sep 17 00:00:00 2001 From: aurhat Date: Sun, 8 Mar 2015 21:21:12 +0100 Subject: [PATCH] Rename fullscreenscript to fullscreentoggle Commit adds also fullscreen setting to QUICK setup menu. DOCREF fullscreentoggle --- config/menus_settings.cfg | 3 ++- config/scripts.cfg | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/menus_settings.cfg b/config/menus_settings.cfg index c910f0e4..9b473d06 100644 --- a/config/menus_settings.cfg +++ b/config/menus_settings.cfg @@ -48,6 +48,7 @@ newmenu [QUICK setup] menuitemtextinput [Nickname:] [] [ name $arg1 ] menuitemtextinput [Resolution (Width): ] "$scr_w" [ scr_w $arg1 ] menuitemtextinput [Resolution (Height): ] "$scr_h" [ scr_h $arg1 ] +menuitemcheckbox [Fullscreen: ] "$fullscreen" [ fullscreen $arg1 ] menuitemtextinput [Mouse sensitivity: ] "$sensitivity" [ sensitivity $arg1 ] menuitemcheckbox [Reduced violence mode: ] "$poniesmodeon" [ reducedviolencemode $arg1 ] menuitemslider [Graphics detail: ] 1 6 "$gfxqualityalias" 1 [Horrible Low Medium Good High "INSANE! (May perform slowly on older gfx)"] [ new_gfx_quality $arg1 ] @@ -264,7 +265,7 @@ menuitemkeyinput [Console output: ] toggleconsole menuitemkeyinput [Screenshot: ] screenshot menuitemkeyinput [Map overview: ] toggleshowmap menuitemkeyinput [Drop CTF flag: ] dropflag -menuitemkeyinput [Fullscreen: ] fullscreenscript +menuitemkeyinput [Fullscreen: ] fullscreentoggle menuitem [] -1 menuitemtextinput [Lookup a keybind: ] [] [ echo []; echo (concatword (c 9) [Contents of keybind ] $arg1 :); echo (keybind $arg1) ] [] 256 menuitemcheckbox [Use old editing binds?] [ $old_editbinds ] [ old_editbinds = $arg1 ] diff --git a/config/scripts.cfg b/config/scripts.cfg index 97612265..e01d27f8 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -65,9 +65,9 @@ const gibsgore [ ] ] -// "fullscreenscript" command: +// "fullscreentoggle" command: // This command allows swapping of fullscreen mode to be bound to a key. -const fullscreenscript [ fullscreen (! $fullscreen) ] +const fullscreentoggle [ fullscreen (! $fullscreen) ] const editsvar [ inputcommand $$arg1 (concatword "push q (addpunct $cmdbuf) ; " $arg1 " (at $q 0) ; pop q") (concatword "edit " $arg1 :) ] const editmapmsg [ editsvar mapmsg ] const return [ result $arg1 ]