Commit Graph
109 Commits
Author SHA1 Message Date
drian affe1dc6bd Merge branch 'master' into release_1.3 2021-04-14 05:52:05 +02:00
RandumKiwiandGitHub 645a3668e9 Remove the "quit" menu
First: it's ugly,
Second: it's not that useful,
Third: it's not so labourious to restart AC as it loads quickly.

Quit menu = GONE.
2021-04-12 07:17:49 +12:00
drian 90baed224c check if accounts exists when navigating to LAN connect, custom connect or admin connect, fixed 'savedpass' warning 2021-03-31 11:53:06 +02:00
drian 5bbe9c2fd2 added input validation to 'create game account' menu 2021-03-12 06:33:57 +01:00
drian e5995441c7 #231 Issues with the new 'game account' concept 2021-03-10 13:36:47 +01:00
drian 80e53b6451 integration of auth menus 2021-02-15 17:29:55 +01:00
ac-stef a5fbccbd7c restore htf flag skins
and re-use flag model files
2017-06-11 21:13:51 +02:00
ac-stef ffee440fa0 add early string replacement and alias lookup to cubescript
replace tokens starting with @ during scanning/sizing-up of []-blocks

  @word    look up word as in $word
  @(...)   evaluate braces
  @[...]   evaluate braces and look up result
  @"..."   parse quotes

in nested []-blocks, use multiple @ to determine time of replacement
(for example, @@@word is replaced when found inside three nested braces)

in regular $-lookup, $[...] now evaluates the braces before lookup
2017-06-07 18:16:06 +02:00
ac-stef dbcb040eeb menu code cleanup
* fix some memory leaks
* rename stuff
* fix crash

Removed commands and variables:

  chmenumdl (replaced by menumdl)

  scorefont (replaced by "menufont score mono")

  menuitemvar (better handled with fully dynamic menus)

Changed commands:

  menufont menu font

    Sets the font for a specific menu. If menu is "", the currently
    initialised menu is used. Example: menufont score mono

  menumdl menu mdl anim rotspeed scale

    Assumes the function of the previous chmenumdl. If menu is "", the
    currently initialised menu is used. Specifies, which model to render
    and how. If only menu is specified, no model is rendered.

DOCREF chmenumdl scorefont menufont menumdl menuitemvar
2017-06-06 13:17:20 +02:00
ac-stef 7948212234 add radio buttons and simplify sliders
- 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
2017-06-06 13:17:20 +02:00
ac-stef c9ddadd525 per-slider option to wrap around
menuitemslider text min max val step display action wrap

DOCREF menuitemslider
2017-06-05 15:14:40 +02:00
ac-stef 753474c401 menu updates
- separate settings menus for console and scoreboard
- some sorting
- "return" command removed

DOCREF return
2017-05-29 00:00:26 +02:00
ac-stef b33ad603d4 cleanup
c removed

DOCREF c
2017-05-12 01:33:55 +02:00
ac-stef b650fca2ca persistidents cleanup
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
2017-05-05 15:50:59 +02:00
aurhatandac-stef ab27d952d6 Adjust in-game menus
Introduced common parts of In-game and In-game admin menus, fixed showing
player skin in In-game admin menu (thx BrutalSystem).
2016-10-01 22:03:55 +02:00
aurhat 3b0813412b Show on serverbrowser number of all players on the servers 2016-05-21 11:42:35 +02:00
aurhat c27e5e05d2 Fix displaying LAN servers
LAN servers should be always visible, when user opens serverbrowser with
LAN servers only. And don't allow to switch from there to alternate views,
because for searchlan = 2 it doesn't make sense.
2015-08-22 13:50:20 +02:00
ac-stef 0ed05a2036 string fix 2015-06-23 23:06:20 +02:00
ac-stef fe6f9e92a7 tab and formfeed cleanup 2015-06-10 14:28:50 +02:00
ac-stef 78115b90b4 remove gettext from menus
also clean up some color codes
2015-06-10 14:28:50 +02:00
ac-stef 631685afb6 new commands curmenu and closecurmenu
curmenu gives back the name of the currently open menu, which can be used
to close just that.

The new script "closecurmenu" uses curmenu to close the current menu.

DOCREF curmenu closecurmenu
2015-03-29 13:21:47 +02:00
ac-stef 6cdb2f88e1 change scripts to use tempalias and push/pop
* 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
2015-03-06 22:38:28 +01:00
aurhat 779627cb94 Remove obsolete recorddemo/stopdemo from menu 2014-12-31 16:58:33 +01:00
aurhat b6a5418c24 Add alternative views in serverbrowser and improve favourites
Alternative views in the serverbrowser are implemented with use favourites.
Categories (names) of favourite servers, which will be displayed on the
views, have to be included in "serverbrowseraltviews" alias (accessible
in menu).
Switching between views is possible with use Alt + Mouse wheel and
Alt + Up/Down (or eventually "[" and "]", if they are dedicated keys
on your keyboard).

The commit also:
1. adds MATCH category to favourites;
2. shows category name in settings of favourites;
3. shows weights in serverbrowser instead of favourites image,
when showweights = 1;
4. cleans up some tabs.
2014-11-11 21:07:19 +01:00
aurhat 931c442f67 Improve "favourite servers" feature
The commit:
1. does serverdescription keyword case insensitive for
showonlyfavourites > 0;
2. fixes typo in argument of alias in keyword;
3. fixes disabling background color for servers of the category, when
alpha is changed to 0;
4. shows 0 instead of 10 in info about digit, which toggles 10th category;
5. adds info about "image" attribute in favourites.cfg;
6. adds new feature: "Search for servers".
2014-10-04 20:25:44 +02:00
aurhat 05b902ba11 Show always all servers after forcing serverlist update 2014-10-04 20:25:43 +02:00
Lucas GAUTHERON f8e42cfff9 setskin bug fix (it seems the skin system is unnecessarily complicated and may need to be reworked anyway)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7523 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-08-02 12:13:39 +00:00
Bukz 57daa43a62 new optional argument for menuitemtextinput for masking user input
hide password inputs in menus_multiplayer.cfg

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7461 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-04-17 04:16:25 +00:00
Lucas GAUTHERON cb72af28ea ability to connect w/o using password when it seems required
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7391 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-23 10:08:52 +00:00
Bukz 4599c7201c avoid using compatibility.cfg idents where possible
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7327 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-08 22:17:28 +00:00
Bukz 1bfb17dab3 cleanup/updates
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7224 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-17 05:50:04 +00:00
Bukz 7480f036d3 persistidents fixes (plz review/test)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7213 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-16 01:43:47 +00:00
Bukz b2a77186cc cleanup/quotes to brackets where feasible
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
2013-02-04 03:30:50 +00:00
Lucas GAUTHERON b1ef836fff kickmenu revert
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7084 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-13 10:28:48 +00:00
Bukz 2fcec2c859 git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6812 e016b1c5-ed68-44aa-a2f7-31cac88cffde 2012-05-29 17:02:42 +00:00
sireus b66c7715ab set menu item depending on player's spectator state
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6785 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-04-13 12:19:11 +00:00
Bukz ecccb57c61 fixes/updates + BPF & BLSS
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6492 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-04 06:02:50 +00:00
Bukz 4847ff00ff onVoteEnd, curautoteam, addpunct, curplayers, delmenu, votepending, and a new test kick/ban menu :)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6422 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-13 11:55:57 +00:00
Bukz 0cb4896a1c config updates
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6353 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-26 03:45:39 +00:00
Bukz 4eeb474467 menus/config updates
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6309 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-23 18:47:42 +00:00
RandumKiwi 2e3a1aa331 correct filename
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6234 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-09 23:27:34 +00:00
Lucas GAUTHERON 462845ff08 Connect to a password-protected server from the server browser
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6191 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-01 14:55:36 +00:00
Bukz cf4cfba0c0 alias conversions and formatting updated...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6185 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-01 01:02:28 +00:00
Bukz 12b806bfa8 Minor fixes and updates...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6165 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-03-30 17:15:33 +00:00
Rafael Barreto b01dc4eddc bug fixes/enhancements: findsens, scripts, "gospectate", clean up and bug fix update 1.1.0.2 (do not revert this)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5600 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-11 21:07:48 +00:00
flowtron 88f4af38fc call "reason"-menu before kick/ban
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5572 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-08 18:22:33 +00:00
flowtron 76ab813602 cfg fixes, partly copied from V-Man, thanks
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5567 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-08 16:42:57 +00:00
flowtron b9953ad76c some config tweaks
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5549 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-07 01:14:35 +00:00
Rafael Barreto d12463c022 menus! thanks to Gibstick!
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5503 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-31 02:00:30 +00:00
Rafael Barreto 787a364205 forgot these
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5386 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-16 21:59:57 +00:00