This works like an extension of the RETURN gamevar and it accepts multiple values. Reading or writing the value of "userdef[].return 0" is the same as reading of writing the RETURN gamevar.
The following userdefs are now aliases:
- m_origin_x = userdef[].return 1
- m_origin_y = userdef[].return 2
- screenarea_x1 = userdef[].return 0
- screenarea_y1 = userdef[].return 1
- screenarea_x1 = userdef[].return 2
Additionally, the API for EVENT_PLAYLEVELMUSICSLOT is hereby redefined to use return 1 and 2 (not 0) _instead of_ ud.m_*_number.
Patch from Fox.
git-svn-id: https://svn.eduke32.com/eduke32@6706 1a8010ca-5511-0410-912e-c29ae57300e0
Called when a music track will be started from the beginning, and when the current track is continued after loading a save, etc.
The requested track is passed into PLAYLEVELMUSICSLOT via ud.m_volume_number and ud.m_level_number.
git-svn-id: https://svn.eduke32.com/eduke32@6624 1a8010ca-5511-0410-912e-c29ae57300e0
This allows as much of the control flow as possible to fail gracefully without interruping currently playing music.
git-svn-id: https://svn.eduke32.com/eduke32@6619 1a8010ca-5511-0410-912e-c29ae57300e0
"statusbarflags" is a bitfield. Values are:
STATUSBAR_NONONE = 1
STATUSBAR_NOMINI = 2
STATUSBAR_NOFULL = 4
STATUSBAR_NOSHRINK = 8
STATUSBAR_NOFRAGBAR = 16
STATUSBAR_NOOVERLAY = 32
STATUSBAR_NOMODERN = 64
Default value is 8. In case you modify it, you also have to set the other status bar related userdefs in EVENT_SETDEFAULTS. Default values in EDuke32 are: screen_size = 4; statusbarmode = 1; althud = 1;
"statusbarrange" is used to add more alternatives for the status bar without breaking the option in the menu. If used, the mini status bar (screen_size = 4) will cycle through "statusbarcustom" when changing the screen size.
Also fix the size of the viewport when the screen is shrunk and the scale of the status bar is not 100%.
Patch from Fox.
git-svn-id: https://svn.eduke32.com/eduke32@6587 1a8010ca-5511-0410-912e-c29ae57300e0
New event "EVENT_MAINMENUSCREEN"
Triggered before the main menu is displayed. Set RETURN to -1 to disable the screens that appear before the main menu.
New event "EVENT_NEWGAMESCREEN"
Triggered when a new game is started. Set RETURN to -1 to disable The Birth intro animation.
New event "EVENT_ENDLEVELSCREEN"
Triggered when a level ends. Set RETURN to -1 to disable the bonus and deathmatch score screens after a level ends.
New event "EVENT_EXITGAMESCREEN"
Triggered when a running game is ended. Set RETURN to -1 to disable the deathmatch score screen when you quit mid-game.
New event "EVENT_EXITPROGRAMSCREEN"
Triggered when the program is closed. Set RETURN to -1 to disable the shareware or TEN screen,sif they were enabled in LOGO_FLAGS.
Patch from Fox.
git-svn-id: https://svn.eduke32.com/eduke32@6584 1a8010ca-5511-0410-912e-c29ae57300e0
Any issues in Duke's code relating to misunderstanding these types are now restricted to Duke itself rather than changing the engine and potentially introducing new issues in all Build games.
git-svn-id: https://svn.eduke32.com/eduke32@6581 1a8010ca-5511-0410-912e-c29ae57300e0
New event "EVENT_UPDATESCREENAREA"
Use this event to change the size of the game view, similar to when you press + or -.
New event "EVENT_DISPLAYBORDER"
Set RETURN to change the background tile of the game view, set -1 to disable the background and border.
New userdef structures "screenarea_x1", "screenarea_y1", "screenarea_x2", "screenarea_y2"
Use these structures to change the boundaries of the view in EVENT_UPDATESCREENAREA.
Patch from Fox.
git-svn-id: https://svn.eduke32.com/eduke32@6518 1a8010ca-5511-0410-912e-c29ae57300e0
Files moved but not modified. Changes to follow in a subsequent commit.
You down with CPP?
git-svn-id: https://svn.eduke32.com/eduke32@6055 1a8010ca-5511-0410-912e-c29ae57300e0
2017-02-01 10:01:11 +00:00
Renamed from polymer/eduke32/source/premap.c (Browse further)