Next Previous Contents

15. Values for ui ``ownerdrawflag''

These values can be used for the item `ownerdrawflag' field, to control the appearance of an `ownerdraw' content depending on an engine-dependent value. These values are used for the ui menu, aka "main menu" or "ESC menu". Condition for a ``true'' result is listed; ``false'' if the condition(s) is/are not met. The phrase "Draw this when/if..." may be prefixed to the description to help clarify confusion.

15.1 UI_SHOW_LEADER

... player is the team leader. This flag can be used to show a team-leader-only commands submenu (such as relinquishing leadership). Team leader is indicated by an "L" icon in the scores listing.

15.2 UI_SHOW_NOTLEADER

... player is not the leader. This flag could be used to show a box indicating the team leader.

15.3 UI_SHOW_FAVORITESERVERS

... on a favorite server. A favorite server is one in the "favorite servers" list.

15.4 UI_SHOW_ANYNONTEAMGAME

... in any non-team-based games (FFA, tournament, etc.).

15.5 UI_SHOW_ANYTEAMGAME

... in any team-based games (TDM, CTF, 1CTF, etc.).

15.6 UI_SHOW_NEWHIGHSCORE

... player got the newest high score. Only applicable to single-player game.

15.7 UI_SHOW_DEMOAVAILABLE

... a valid demo file exists (i.e. check if there's any demos available).

15.8 UI_SHOW_NEWBESTTIME

... player got the newest best time. Only applicable to single-player game.

15.9 UI_SHOW_FFA

... in a FFA (Free-For-All) game type.

15.10 UI_SHOW_NOTFFA

... in a non-FFA game type.

15.11 UI_SHOW_NETANYNONTEAMGAME

... in any team-based game on a network.

Useful for showing a menu item to save current server to favorite's list. Saving a single-player server (local machine) to the list is pointless.

15.12 UI_SHOW_NETANYTEAMGAME

... in any non-team-based game on a network.

15.13 UI_SHOW_NOTFAVORITESERVERS

... player is on a not-favorite server (server is not on favorites list).


Next Previous Contents