|
Xonotic
|
#include "util.qh"#include "dialog.qh"#include "../item.qh"#include "../menu.qh"#include <common/campaign_common.qh>#include <common/constants.qh>#include <common/gamemodes/_mod.qh>#include <common/util.qh>#include <common/command/_mod.qh>
Include dependency graph for util.qc:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | GAMETYPE(it) { if (i++ == cnt) return it; } |
| #define | GAMETYPE(id) ++i; |
| #define | GAMETYPE(it) { if (dev > 0) ++i; } |
| #define | GAMETYPE(id) ++i; |
| #define | GAMETYPES |
| #define | HIDDEN_GAMETYPES |
| #define GAMETYPE | ( | id | ) | ++i; |
| #define GAMETYPE | ( | it | ) | { if (dev > 0) ++i; } |
| #define GAMETYPE | ( | id | ) | ++i; |
| #define GAMETYPES |
Definition at line 683 of file util.qc.
Referenced by GameType_GetCount(), GameType_GetID(), and GameType_GetTotalCount().
| #define HIDDEN_GAMETYPES |
Definition at line 701 of file util.qc.
Referenced by GameType_GetCount(), GameType_GetID(), and GameType_GetTotalCount().
Definition at line 841 of file util.qc.
References cmd(), cvar_string(), GAME_CONNECTED, GAME_ISSERVER, gamestatus, and LOG_INFOF.
Referenced by saveCvarsMulti(), XonoticCheckBox_saveCvars(), XonoticCheckBoxString_saveCvars(), XonoticInputBox_saveCvars(), XonoticSlider_saveCvars(), and XonoticTextSlider_saveCvars().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 277 of file util.qc.
References setZonedTooltip(), and string_null.
Referenced by XonoticGametypeList_focusedItemChangeNotify(), XonoticRegisteredSettingsList_getTooltip_cb(), XonoticServerList_focusedItemChangeNotify(), and XonoticServerList_mouseMove().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 764 of file util.qc.
References entity(), makeXonoticCheckBox(), strcat(), and strzone().
Referenced by XonoticHUDAmmoDialog_fill(), XonoticHUDCenterprintDialog_fill(), XonoticHUDChatDialog_fill(), XonoticHUDEngineInfoDialog_fill(), XonoticHUDHealthArmorDialog_fill(), XonoticHUDInfoMessagesDialog_fill(), XonoticHUDModIconsDialog_fill(), XonoticHUDNotificationDialog_fill(), XonoticHUDPowerupsDialog_fill(), XonoticHUDRaceTimerDialog_fill(), XonoticHUDScoreDialog_fill(), XonoticHUDTimerDialog_fill(), XonoticHUDVoteDialog_fill(), and XonoticHUDWeaponsDialog_fill().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 773 of file util.qc.
References entity(), and makeXonoticTextLabel().
Referenced by XonoticHUDAmmoDialog_fill(), XonoticHUDCenterprintDialog_fill(), XonoticHUDChatDialog_fill(), XonoticHUDEngineInfoDialog_fill(), XonoticHUDHealthArmorDialog_fill(), XonoticHUDInfoMessagesDialog_fill(), XonoticHUDModIconsDialog_fill(), XonoticHUDNotificationDialog_fill(), XonoticHUDPowerupsDialog_fill(), XonoticHUDQuickMenuDialog_fill(), XonoticHUDRaceTimerDialog_fill(), XonoticHUDScoreDialog_fill(), XonoticHUDTimerDialog_fill(), XonoticHUDVoteDialog_fill(), and XonoticHUDWeaponsDialog_fill().
Here is the call graph for this function:
Here is the caller graph for this function:| void DialogOpenButton_Click_withCoords | ( | entity | button, |
| entity | tab, | ||
| vector | theOrigin, | ||
| vector | theSize | ||
| ) |
Definition at line 35 of file modalcontroller.qc.
Referenced by DemoConfirm_ListClick_Check_Gamestatus(), DialogOpenButton_Click(), MainWindow_draw(), postMenuDraw(), ServerList_Info_Click(), XonoticMapList_doubleClickListBoxItem(), XonoticMapList_keyDown(), XonoticScreenshotList_startScreenshot(), and XonoticServerList_keyDown().
Here is the caller graph for this function:| void DisableServerBackwardsCompatibility | ( | ) |
| float | ( | entity | ) |
| void forAllDescendants | ( | entity | root, |
| void(entity, entity) | funcPre, | ||
| void(entity, entity) | funcPost, | ||
| entity | pass | ||
| ) |
Definition at line 24 of file util.qc.
References depthfirst(), firstChild, nextSibling, and parent.
Referenced by loadAllCvars(), and saveAllCvars().
Here is the call graph for this function:
Here is the caller graph for this function:| int GameType_GetCount | ( | ) |
Definition at line 716 of file util.qc.
References cvar(), GAMETYPES, and HIDDEN_GAMETYPES.
Referenced by XonoticGametypeList_configureXonoticGametypeList(), XonoticGametypeList_draw(), and XonoticGametypeList_loadCvars().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 745 of file util.qc.
References entity(), GameType_GetID(), makeXonoticCheckBox(), makeXonoticCheckBoxString(), makeXonoticColorpickerString(), makeXonoticTextLabel(), makeXonoticTextSlider(), MapInfo_Type_ToString(), and strcat().
Referenced by XonoticGametypeList_configureXonoticGametypeList(), and XonoticGametypeList_drawListBoxItem().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 706 of file util.qc.
References GAMETYPES, HIDDEN_GAMETYPES, and NULL.
Referenced by GameType_GetIcon(), GameType_GetName(), XonoticGametypeList_drawListBoxItem(), XonoticGametypeList_focusedItemChangeNotify(), XonoticGametypeList_loadCvars(), XonoticGametypeList_saveCvars(), and XonoticMapInfoDialog_loadMapInfo().
Here is the caller graph for this function:Definition at line 739 of file util.qc.
References GameType_GetID(), and MapInfo_Type_ToText().
Referenced by XonoticGametypeList_drawListBoxItem().
Here is the call graph for this function:
Here is the caller graph for this function:| int GameType_GetTotalCount | ( | ) |
Definition at line 729 of file util.qc.
References GAMETYPES, and HIDDEN_GAMETYPES.
Referenced by XonoticGametypeList_configureXonoticGametypeList(), and XonoticMapInfoDialog_loadMapInfo().
Here is the caller graph for this function:Definition at line 58 of file util.qc.
References string_null.
Referenced by gettooltip().
Here is the caller graph for this function:Definition at line 832 of file util.qc.
References frametime, max(), and min().
Referenced by XonoticCampaignList_drawListBoxItem(), XonoticCvarList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticGametypeList_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticPicker_draw(), XonoticPlayList_drawListBoxItem(), XonoticRegisteredSettingsList_getTooltip_cb(), XonoticScreenshotList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), XonoticSoundList_drawListBoxItem(), XonoticStatsList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 13 of file util.qc.
References cvar_string(), and strhasword.
Referenced by GL_Have_TextureCompression().
Here is the call graph for this function:
Here is the caller graph for this function:| float GL_Have_TextureCompression | ( | ) |
Definition at line 18 of file util.qc.
References GL_CheckExtension().
Referenced by updateCompression().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 51 of file util.qc.
References forAllDescendants(), loadCvarsOf(), NULL, and SUB_Null_ee().
Referenced by m_sync(), XonoticCvarsDialog_showNotify(), XonoticDamageTextSettings::XonoticDamageTextSettings ::showNotify(), XonoticGameCrosshairSettingsTab_showNotify(), XonoticGameHUDSettingsTab_showNotify(), XonoticGameMessageSettingsTab_showNotify(), XonoticGameModelSettingsTab_showNotify(), XonoticGameViewSettingsTab_showNotify(), XonoticGameWeaponsSettingsTab_showNotify(), XonoticMutatorsDialog_showNotify(), XonoticRootDialog_showNotify(), and XonoticTab_showNotify().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 42 of file util.qc.
Referenced by loadAllCvars().
Here is the caller graph for this function:Definition at line 105 of file util.qc.
References entity(), and saveCvarsCallback().
Here is the call graph for this function:Definition at line 90 of file util.qc.
References entity(), and saveCvarsMulti().
Here is the call graph for this function:Definition at line 28 of file checkbox.qc.
References makeXonoticCheckBox_T(), and string_null.
Referenced by dialog_hudpanel_main_checkbox(), GameType_GetIcon(), XonoticDamageTextSettings::XonoticDamageTextSettings ::fill(), XonoticHUDHealthArmorDialog_fill(), XonoticHUDPowerupsDialog_fill(), and XonoticServerListTab_fill().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 3 of file checkbox_string.qc.
Referenced by GameType_GetIcon().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 5 of file colorpicker_string.qc.
Referenced by GameType_GetIcon().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 3 of file textlabel.qc.
Referenced by dialog_hudpanel_main_settings(), GameType_GetIcon(), makeXonoticHeaderLabel(), XonoticBindingsResetDialog_fill(), XonoticCvarsDialog_fill(), XonoticDemoBrowserTab_fill(), XonoticDemoStartConfirmDialog_fill(), XonoticDemoTimeConfirmDialog_fill(), XonoticDisconnectDialog_fill(), XonoticFirstRunDialog_fill(), XonoticHUDAmmoDialog_fill(), XonoticHUDCenterprintDialog_fill(), XonoticHUDChatDialog_fill(), XonoticHUDConfirmDialog_fill(), XonoticHUDEngineInfoDialog_fill(), XonoticHUDInfoMessagesDialog_fill(), XonoticHUDNotificationDialog_fill(), XonoticHUDQuickMenuDialog_fill(), XonoticHUDScoreDialog_fill(), XonoticHUDTimerDialog_fill(), XonoticHUDVoteDialog_fill(), XonoticHUDWeaponsDialog_fill(), XonoticLanguageWarningDialog_fill(), XonoticMapInfoDialog_fill(), XonoticMonsterToolsDialog_fill(), XonoticMusicPlayerTab_fill(), XonoticMutatorsDialog_fill(), XonoticQuitDialog_fill(), XonoticResetDialog_fill(), XonoticSandboxToolsDialog_fill(), XonoticScreenshotBrowserTab_fill(), XonoticServerInfoTab_fill(), XonoticUid2NameDialog_fill(), and XonoticUserbindEditDialog_fill().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 10 of file textslider.qc.
References makeXonoticTextSlider_T(), and string_null.
Referenced by GameType_GetIcon(), XonoticHUDItemsTimeDialog_fill(), XonoticHUDPhysicsDialog_fill(), XonoticHUDPressedKeysDialog_fill(), XonoticHUDRadarDialog_fill(), and XonoticHUDStrafeHUDDialog_fill().
Here is the call graph for this function:
Here is the caller graph for this function:| void postMenuDraw | ( | ) |
this is run just after the menu is drawn (or not).
Useful to draw something over everything else.
Definition at line 559 of file util.qc.
References DialogOpenButton_Click_withCoords(), entity(), and vector().
Referenced by m_draw().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 562 of file util.qc.
References draw_scale, eX, eY, GAME_CONNECTED, GAME_ISSERVER, gamestatus, updateCheck(), and vector().
Referenced by m_draw().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 522 of file util.qc.
References _MapInfo_FilterGametype(), draw_CenterText(), draw_reset_cropped(), draw_scale, eX, eY, MapInfo_Cache_Create(), MapInfo_Enumerate(), MAPINFO_TYPE_ALL, random(), updateCheck(), and vector().
Referenced by m_init_delayed().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 620 of file util.qc.
References getcurrentmod().
Referenced by XonoticServerList_refreshServerList().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 47 of file util.qc.
References forAllDescendants(), NULL, saveCvarsOf(), and SUB_Null_ee().
Here is the call graph for this function:Definition at line 100 of file util.qc.
Referenced by makeCallback().
Here is the caller graph for this function:Definition at line 64 of file util.qc.
References argv(), CheckSendCvars(), cvar_set(), cvar_string(), strlen(), substring(), and tokenize_console.
Referenced by makeMulti().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 35 of file util.qc.
References entity().
Referenced by saveAllCvars().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 178 of file util.qc.
References func_null(), setDependent_Check(), setDependent_Draw(), and string_null.
Here is the call graph for this function:Definition at line 128 of file util.qc.
References cvar(), and cvar_string().
Referenced by setDependent(), setDependent_Draw(), setDependentAND(), setDependentAND3(), setDependentOR(), setDependentStringNotEqual(), and setDependentWeird().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 172 of file util.qc.
References entity(), and setDependent_Check().
Referenced by setDependent(), setDependentAND(), setDependentAND3(), setDependentOR(), setDependentStringNotEqual(), and setDependentWeird().
Here is the call graph for this function:
Here is the caller graph for this function:| void setDependentAND | ( | entity | e, |
| string | theCvarName, | ||
| float | theCvarMin, | ||
| float | theCvarMax, | ||
| string | theCvar2Name, | ||
| float | theCvar2Min, | ||
| float | theCvar2Max | ||
| ) |
Definition at line 202 of file util.qc.
References func_null(), setDependent_Check(), setDependent_Draw(), and string_null.
Here is the call graph for this function:| void setDependentAND3 | ( | entity | e, |
| string | theCvarName, | ||
| float | theCvarMin, | ||
| float | theCvarMax, | ||
| string | theCvar2Name, | ||
| float | theCvar2Min, | ||
| float | theCvar2Max, | ||
| string | theCvar3Name, | ||
| float | theCvar3Min, | ||
| float | theCvar3Max | ||
| ) |
Definition at line 232 of file util.qc.
References func_null(), setDependent_Check(), and setDependent_Draw().
Here is the call graph for this function:| void setDependentOR | ( | entity | e, |
| string | theCvarName, | ||
| float | theCvarMin, | ||
| float | theCvarMax, | ||
| string | theCvar2Name, | ||
| float | theCvar2Min, | ||
| float | theCvar2Max | ||
| ) |
Definition at line 217 of file util.qc.
References func_null(), setDependent_Check(), setDependent_Draw(), and string_null.
Here is the call graph for this function:Definition at line 190 of file util.qc.
References func_null(), setDependent_Check(), setDependent_Draw(), and string_null.
Here is the call graph for this function:Definition at line 249 of file util.qc.
References setDependent_Check(), and setDependent_Draw().
Here is the call graph for this function:Definition at line 257 of file util.qc.
References prvm_language, strfree, string_null, and strzone().
Referenced by clearTooltip(), XonoticButton_configureXonoticButton(), XonoticCheckBox_configureXonoticCheckBox(), XonoticGametypeList_focusedItemChangeNotify(), XonoticInputBox_configureXonoticInputBox(), XonoticRadioButton_configureXonoticRadioButton(), XonoticRegisteredSettingsList_getTooltip_cb(), XonoticSlider_configureXonoticSlider(), and XonoticTextSlider_configureXonoticTextSlider().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 30 of file util.qc.
References entity().
Referenced by loadAllCvars(), and saveAllCvars().
Here is the call graph for this function:
Here is the caller graph for this function:| void updateCheck | ( | ) |
Definition at line 473 of file util.qc.
References argv(), cvar(), cvar_set(), cvar_string(), fexists(), floor(), ftos(), localcmd, Menu_Active, random(), tokenize_console, and URI_GET_UPDATENOTIFICATION.
Referenced by preMenuDraw(), and preMenuInit().
Here is the call graph for this function:
Here is the caller graph for this function:| float updateCompression | ( | ) |
Definition at line 628 of file util.qc.
References cvar_set(), fexists(), GL_Have_TextureCompression(), and LOG_INFO.
Referenced by m_init(), and m_sync().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 321 of file util.qc.
References APPEND_TO_STRING, argv(), cvar(), cvar_string(), LOG_INFO, LOG_TRACE, LOG_TRACEF, strstrofs, strzone(), substring(), tokenizebyseparator, and vercmp().
Referenced by URI_Get_Callback().
Here is the call graph for this function:
Here is the caller graph for this function:engine callback
Definition at line 291 of file util.qc.
References Curl_URI_Get_Callback(), LOG_INFOF, UpdateNotification_URI_Get_Callback(), URI_GET_CURL, URI_GET_CURL_END, URI_GET_DISCARD, URI_GET_UPDATENOTIFICATION, and url_URI_Get_Callback().
Here is the call graph for this function:| void | ( | entity | ) |
| entity firstChild |
Definition at line 23 of file util.qc.
Referenced by forAllDescendants().
| entity nextSibling |
Definition at line 23 of file util.qc.
Referenced by forAllDescendants().
| entity parent |
Definition at line 23 of file util.qc.
Referenced by forAllDescendants().