- omit step size for sliders with value descriptions
- optionally auto-determine max value by list length
menuitemslider text min max value display action wrap
menuitemradio text min max value display action
text: menu item text
min: min value
max: max value (or optionally -1 and set by display string length)
value: initial value
display: list of value descriptions or value step size
action: executed on value changes (new value in arg1)
wrap: if 1, wrap slider around (radio buttons always wrap)
DOCREF menuitemslider menuitemradio
Restore the old persistidents system from AC 1.0, since it's working as
intended - if used properly.
As a reminder:
* aliases created by "const" and "tempalias" are never persistent
* aliases created or altered by "alias" or "=" become persistent, if
the persistidents flag is set during that operation
* persistidents if false during the execution of almost all config files
during game start - those files can create aliases with default values
which will not be persistent (until changed later while the flag is
set)
* before saved.cfg is executed, the flag is set and stays set all
throughout the game - which means, that all changes (from menus, for
example) will change the altered alias to "persistent"
* exceptions for map or model config files are unnecessary, since those
run restricted and can't create aliases anyway
* exceptions are necessary for "late run" config files like those in
config/opt/
The new command "persistidents" may be used to manually set or clear the
flag. It also returns the current state of the flag. If used in a config
file, the flag is restored to its original value when the file ends
execution.
In short: only late-run config files (meaning: run after saved.cfg was
restored) may need to manually set/reset the flag. Use const and tempalias
where appropriate and clear persistidents before creating an alias with a
not-to-save default value that may be changed and made persistent later.
DOCREF persistidents
* no more need to delete aliases "onQuit"
* removed on_quit.cfg
* moved faq.cfg, parsestrings.cfg and survival.cfg to config/opt
* run faq.cfg and survival.cfg when needed
DOCREF addListOnQuit
To see this bug just start AC, run bot team mode and watch:
- "enemies" menu instead of "team enemies" menu,
- number of players less by 2 than should be.
* Tested "strip and preserve" mode on map cfg files, which worked very well -> deleted spare whitespace.
* Checked clippings on all new models, added them all to menus_edit.cfg
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7354 e016b1c5-ed68-44aa-a2f7-31cac88cffde
Note: This commit effects a lot of configs, be on the look out for little cubescript errors/broken menuitems/etc. and report them ASAP.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7146 e016b1c5-ed68-44aa-a2f7-31cac88cffde