|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "draw.qh"#include "skin.qh"#include "xonotic/util.qh"#include <common/constants.qh>#include <common/util.qh>Go to the source code of this file.
Functions | |
| void | draw_reset_cropped () |
| void | m_display () |
| void | m_goto (string name, bool hide_menu_on_close) |
| void | m_hide () |
| void | m_play_click_sound (string soundfile) |
| void | m_play_focus_sound () |
| void | m_sync () |
| void | postMenuDraw () |
| this is run just after the menu is drawn (or not). | |
| void | preMenuDraw () |
| this is run before the menu is drawn. | |
| float | preMenuInit () |
| you have to define this for pre-menu initialization. | |
| void (entity this, float key, float ascii) keyGrabbed | |
Variables | |
| entity | anim |
| float | conheight |
| float | conwidth |
| float | frametime |
| const int | GAME_CONNECTED = BIT(1) |
| const int | GAME_DEVELOPER = BIT(2) |
| const int | GAME_ISSERVER = BIT(0) |
| int | gamestatus |
| entity | keyGrabber |
| entity | main |
| bool | Menu_Active |
| const string | MENU_SOUND_CLEAR = "sound/menu/clear.wav" |
| const string | MENU_SOUND_CLOSE = "sound/menu/close.wav" |
| const string | MENU_SOUND_EXECUTE = "sound/menu/execute.wav" |
| const string | MENU_SOUND_FOCUS = "sound/menu/focus.wav" |
| const string | MENU_SOUND_OPEN = "sound/menu/open.wav" |
| const string | MENU_SOUND_SELECT = "sound/menu/select.wav" |
| const string | MENU_SOUND_SLIDE = "sound/menu/slide.wav" |
| const string | MENU_SOUND_WINNER = "sound/menu/winner.wav" |
| string | name |
| const int | S_ALT = 4 |
| const int | S_CTRL = 2 |
| const int | S_SHIFT = 1 |
| float | time |
| void draw_reset_cropped | ( | ) |
Definition at line 110 of file menu.qc.
References conheight, conwidth, draw_reset(), realconheight, and realconwidth.
Referenced by m_draw(), m_init_delayed(), m_keydown(), m_keyup(), preMenuInit(), and UpdateConWidthHeight().
| void m_display | ( | ) |
Definition at line 949 of file menu.qc.
References KEY_MENU, main, Menu_Active, menuInitialized, menuMouseMode, menuMousePos, mouseButtonsPressed, MT_CLIENT, MT_MENU, setkeydest(), and setmousetarget().
Referenced by m_goto(), m_init(), m_init_delayed(), m_toggle(), and preMenuDraw().
Definition at line 1051 of file menu.qc.
References entity(), find(), GAME_CONNECTED, GAME_ISSERVER, gamestatus, m_activate_window(), m_display(), m_goto_buffer, m_hide(), m_setpointerfocus(), main, menuInitialized, name, NULL, and strcpy.
Referenced by Dialog_close(), GameCommand(), m_init_delayed(), XonoticNexposee_close(), and XonoticRootDialog_close().
| void m_hide | ( | ) |
Definition at line 964 of file menu.qc.
References KEY_GAME, main, Menu_Active, menuInitialized, MT_CLIENT, setkeydest(), and setmousetarget().
Referenced by m_draw(), m_goto(), m_init(), m_keydown(), m_toggle(), and Shutdown().
Definition at line 1106 of file menu.qc.
References cvar(), and localsound().
Referenced by Button_playClickSound(), CheckBox_playClickSound(), Dialog_keyDown(), GameCommand(), InputBox_keyDown(), InputBox_mouseRelease(), KeyBinder_Bind_Clear(), Nexposee::mousePress(), Nexposee_keyDown(), ServerList_Favorite_Click(), Slider_keyUp(), Slider_mouseRelease(), XonoticColorpicker_mouseRelease(), XonoticColorpickerString_mouseRelease(), XonoticGametypeList_clickListBoxItem(), XonoticGametypeList_keyDown(), XonoticHUDSkinList_doubleClickListBoxItem(), XonoticKeyBinder_keyGrabbed(), XonoticLanguageList_doubleClickListBoxItem(), XonoticLanguageList_keyDown(), XonoticMapList_clickListBoxItem(), XonoticMapList_doubleClickListBoxItem(), XonoticMapList_keyDown(), XonoticServerList_keyDown(), XonoticSkinList_doubleClickListBoxItem(), XonoticSkinList_keyDown(), XonoticTopicList_clickListBoxItem(), XonoticTopicList_keyDown(), and XonoticWinnerDialog_focusEnter().
| void m_play_focus_sound | ( | ) |
| void m_sync | ( | ) |
Definition at line 45 of file menu.qc.
References loadAllCvars(), main, updateCompression(), vidheight_s, vidpixelheight_s, and vidwidth_s.
Referenced by GameCommand(), m_draw(), and m_init_delayed().
| void postMenuDraw | ( | ) |
| void preMenuDraw | ( | ) |
this is run before the menu is drawn.
You may put some stuff there that has to be done every frame.
Definition at line 541 of file util.qc.
References _Nex_ExtResponseSystem_UpdateTo, _Nex_ExtResponseSystem_UpdateToURL, bound(), campaign_name, campaign_name_previous, campaign_won_previous, conheight, conwidth, cos(), cvar(), DialogOpenButton_Click_withCoords(), draw_alpha, draw_CenterText(), draw_Fill(), draw_scale, draw_TextWidth(), eX, eY, GAME_CONNECTED, GAME_ISSERVER, gamestatus, m_display(), main, max(), NULL, sin(), strcat(), strcpy, strzone(), time, updateCheck(), and vector.
Referenced by m_draw().
| float preMenuInit | ( | ) |
you have to define this for pre-menu initialization.
Return 0 if initialization needs to be retried a frame later, 1 if it succeeded.
Definition at line 504 of file util.qc.
References _MapInfo_FilterGametype(), draw_CenterText(), draw_Fill(), draw_reset_cropped(), draw_scale, eX, eY, MapInfo_Cache_Create(), MapInfo_Enumerate(), MapInfo_progress, MAPINFO_TYPE_ALL, updateCheck(), and vector.
Referenced by m_init_delayed().
| entity anim |
Definition at line 25 of file menu.qh.
Referenced by anim_set(), anim_vec(), m_draw(), m_init_delayed(), makeHostedEasing(), makeHostedKeyframe(), Monster_Attack_Melee(), Monster_Attack_Melee(), and Slider_draw().
| float conheight |
Definition at line 36 of file menu.qh.
Referenced by BorderImage_recalcPositionWithText(), Dialog_configureDialog(), draw_reset_cropped(), m_allocatetooltipbox(), m_init_delayed(), m_setpointerfocus(), m_tooltip(), MainWindow_configureMainWindow(), MainWindow_draw(), preMenuDraw(), and UpdateConWidthHeight().
| float conwidth |
Definition at line 36 of file menu.qh.
Referenced by BorderImage_recalcPositionWithText(), Dialog_configureDialog(), draw_reset_cropped(), m_allocatetooltipbox(), m_init_delayed(), m_setpointerfocus(), m_tooltip(), MainWindow_draw(), preMenuDraw(), and UpdateConWidthHeight().
Definition at line 12 of file menu.qh.
Referenced by CheckSendCvars(), DemoConfirm_Check_Gamestatus(), DemoConfirm_ListClick_Check_Gamestatus(), drawBackground(), HUDSetup_Check_Gamestatus(), HUDSetup_Start(), m_draw(), m_gamestatus(), m_goto(), m_keydown(), m_toggle(), preMenuDraw(), XonoticLanguageList_setLanguage(), XonoticLeaveMatchButton_draw(), XonoticMapList_draw(), and XonoticWelcomeDialog_draw().
Definition at line 13 of file menu.qh.
Referenced by m_gamestatus().
Definition at line 11 of file menu.qh.
Referenced by CheckSendCvars(), DemoConfirm_Check_Gamestatus(), DemoConfirm_ListClick_Check_Gamestatus(), drawBackground(), HUDSetup_Check_Gamestatus(), HUDSetup_Start(), m_draw(), m_gamestatus(), m_goto(), m_keydown(), preMenuDraw(), XonoticLeaveMatchButton_draw(), XonoticMapList_draw(), and XonoticWelcomeDialog_draw().
| int gamestatus |
Definition at line 16 of file menu.qh.
Referenced by CheckSendCvars(), DemoConfirm_Check_Gamestatus(), DemoConfirm_ListClick_Check_Gamestatus(), drawBackground(), HUDSetup_Check_Gamestatus(), HUDSetup_Start(), m_draw(), m_gamestatus(), m_goto(), m_keydown(), m_toggle(), preMenuDraw(), XonoticLanguageList_setLanguage(), XonoticLeaveMatchButton_draw(), XonoticMapList_draw(), and XonoticWelcomeDialog_draw().
| entity keyGrabber |
Definition at line 32 of file menu.qh.
Referenced by KeyBinder_Bind_Change(), m_draw(), m_keydown(), and XonoticKeyBinder_drawListBoxItem().
| bool Menu_Active |
Definition at line 15 of file menu.qh.
Referenced by m_display(), m_draw(), m_hide(), m_init_delayed(), m_keydown(), m_keyup(), m_toggle(), and updateCheck().
| const string MENU_SOUND_CLEAR = "sound/menu/clear.wav" |
Definition at line 49 of file menu.qh.
Referenced by InputBox_keyDown(), InputBox_mouseRelease(), and KeyBinder_Bind_Clear().
| const string MENU_SOUND_CLOSE = "sound/menu/close.wav" |
Definition at line 50 of file menu.qh.
Referenced by Button_playClickSound(), Dialog_keyDown(), Nexposee::mousePress(), and Nexposee_keyDown().
| const string MENU_SOUND_EXECUTE = "sound/menu/execute.wav" |
Definition at line 51 of file menu.qh.
Referenced by Button_playClickSound(), XonoticGametypeList_keyDown(), XonoticHUDSkinList_doubleClickListBoxItem(), XonoticLanguageList_doubleClickListBoxItem(), XonoticLanguageList_keyDown(), XonoticSkinList_doubleClickListBoxItem(), XonoticSkinList_keyDown(), and XonoticTopicList_keyDown().
| const string MENU_SOUND_FOCUS = "sound/menu/focus.wav" |
Definition at line 52 of file menu.qh.
Referenced by m_play_focus_sound().
| const string MENU_SOUND_OPEN = "sound/menu/open.wav" |
Definition at line 53 of file menu.qh.
Referenced by Button_playClickSound(), GameCommand(), Nexposee::mousePress(), Nexposee_keyDown(), XonoticMapList_doubleClickListBoxItem(), XonoticMapList_keyDown(), and XonoticServerList_keyDown().
| const string MENU_SOUND_SELECT = "sound/menu/select.wav" |
Definition at line 54 of file menu.qh.
Referenced by CheckBox_playClickSound(), ServerList_Favorite_Click(), XonoticGametypeList_clickListBoxItem(), XonoticKeyBinder_keyGrabbed(), XonoticMapList_clickListBoxItem(), XonoticMapList_keyDown(), and XonoticTopicList_clickListBoxItem().
| const string MENU_SOUND_SLIDE = "sound/menu/slide.wav" |
Definition at line 55 of file menu.qh.
Referenced by Slider_keyUp(), Slider_mouseRelease(), XonoticColorpicker_mouseRelease(), and XonoticColorpickerString_mouseRelease().
| const string MENU_SOUND_WINNER = "sound/menu/winner.wav" |
Definition at line 56 of file menu.qh.
Referenced by XonoticWinnerDialog_focusEnter().
| string name |
Definition at line 30 of file menu.qh.
Referenced by Client::Client(), ACCUMULATE_call(), addPowerupItem(), CvarStringSource::ATTRIB(), StringSource::ATTRIB(), bot_aim(), bot_setnameandstuff(), CL_WeaponEntity_SetModel(), cvar(), cvar_defstring(), cvar_set(), cvar_string(), deglob_log(), Gametype::display(), GuidePage::display(), Monster::display(), Mutator::display(), Turret::display(), XonoticRegisteredSettingsList::drawListBoxItem(), find_bot_by_name(), float(), float(), freepic(), GameTypeVote_ReadOption(), gecko_create(), gecko_destroy(), gecko_get_texture_extent(), gecko_keyevent(), gecko_mousemove(), gecko_navigate(), gecko_resize(), GetCvars_handleFloat(), GetCvars_handleFloatOnce(), GetCvars_handleString(), GetCvars_handleString_Fixup(), CvarStringSource::getEntry(), DataSource::getEntry(), SettingSource::getEntry(), StringSource::getEntry(), getrecords(), iscachedpic(), m_goto(), minigame_texture(), minigame_texture_skin(), MX_Nick(), precache_pic(), PreviewExists(), registercvar(), RegisterCvars(), RegisterCvars_Save(), RegisterCvars_Set(), REPLICATE_INIT(), Scoreboard_Draw(), str_cvar(), string(), string(), TeamScore_Spawn(), vector(), viewmodel_draw(), void(), void(), W_Guide_DPS(), W_Guide_DPS_bothMultishot(), W_Guide_DPS_onlyOne(), W_Guide_DPS_onlyOne_andDirectHit(), W_Guide_DPS_onlyOne_unnamed(), W_Guide_DPS_onlyOne_unnamed_andDirectHit(), W_Guide_DPS_onlyOneMultishot(), W_Guide_DPS_onlySecondary(), W_Guide_DPS_primaryDPS(), W_Guide_DPS_primaryMultishot(), W_Guide_DPS_secondaryMultishot(), W_Guide_DPS_secondaryMultishotWithCombo(), XonoticPlayerList_drawListBoxItem(), XonoticPlayerList_setPlayerList(), and XonoticSkinList_getSkins().