Xonotic
|
Go to the source code of this file.
Macros | |
#define | HUD_Write(s) fputs(fh, s) |
#define | HUD_Write_Cvar(cvar) HUD_Write(strcat("seta ", cvar, " \"", cvar_string(cvar), "\"\n")) |
#define | HUD_Write_PanelCvar(cvar_suf) str = strcat("hud_panel_", panel.panel_name, cvar_suf), HUD_Write_Cvar(str) |
Functions | |
void | HUD_Configure_Frame () |
void | HUD_Configure_PostDraw () |
void | HUD_Panel_EnableMenu () |
void | HUD_Panel_ExportCfg (string cfgname) |
void | HUD_Panel_FirstInDrawQ (float id) |
float | HUD_Panel_InputEvent (float bInputType, float nPrimary, float nSecondary) |
void | HUD_Panel_Mouse () |
#define HUD_Write | ( | s | ) | fputs(fh, s) |
Definition at line 37 of file hud_config.qh.
Referenced by HUD_Panel_ExportCfg().
Definition at line 38 of file hud_config.qh.
Referenced by HUD_Ammo_Export(), HUD_CenterPrint_Export(), HUD_HealthArmor_Export(), HUD_InfoMessages_Export(), HUD_Mod_CA_Export(), HUD_Mod_Dom_Export(), HUD_Mod_FreezeTag_Export(), HUD_Notify_Export(), HUD_Panel_ExportCfg(), HUD_Physics_Export(), HUD_Powerups_Export(), HUD_PressedKeys_Export(), HUD_QuickMenu_Export(), HUD_Radar_Export(), HUD_Score_Export(), HUD_Vote_Export(), HUD_Weapons_Export(), Item_ItemsTime_Allow(), MapVote_Draw_Export(), and Scoreboard_Draw_Export().
#define HUD_Write_PanelCvar | ( | cvar_suf | ) | str = strcat("hud_panel_", panel.panel_name, cvar_suf), HUD_Write_Cvar(str) |
Definition at line 39 of file hud_config.qh.
Referenced by HUD_Panel_ExportCfg().
void HUD_Configure_Frame | ( | ) |
Definition at line 1063 of file hud_config.qc.
References _menu_alpha_prev, autocvar__hud_configure, autocvar__menu_alpha, HUD_Configure_DrawGrid(), HUD_Configure_Exit_Force(), hud_configure_menu_open, hud_configure_prev, hud_dynamic_shake_factor, hudShiftState, intermission, isdemo(), panel_order, REGISTRY_COUNT, REGISTRY_GET, scoreboard_active, and time.
Referenced by HUD_Main().
void HUD_Configure_PostDraw | ( | ) |
Definition at line 1113 of file hud_config.qc.
References autocvar__hud_configure, autocvar__menu_alpha, drawfill(), DRAWFLAG_NORMAL, highlightedPanel, hlBorderSize, HUD_Panel_HlBorder(), HUD_Panel_UpdatePosSize, panel, panel_bg_border, panel_pos, panel_size, and tab_panel.
Referenced by HUD_Main().
void HUD_Panel_EnableMenu | ( | ) |
Definition at line 941 of file hud_config.qc.
References highlightedPanel, hud_configure_menu_open, and localcmd.
Referenced by HUD_Panel_InputEvent(), and HUD_Panel_Mouse().
Definition at line 10 of file hud_config.qc.
References autocvar_hud_skin, FILE_WRITE, fopen(), HUD_Write, HUD_Write_Cvar, HUD_Write_PanelCvar, LOG_INFOF, panel, REGISTRY_COUNT, REGISTRY_GET, and strcat().
Referenced by LocalCommand_hud().
Definition at line 830 of file hud_config.qc.
References autocvar__hud_panelorder, cvar_set(), ftos(), hud_panelorder_prev, panel_order, REGISTRY_COUNT, strcat(), and strcpy.
Referenced by HUD_Panel_Highlight(), and HUD_Panel_InputEvent().
Definition at line 511 of file hud_config.qc.
References argv(), autocvar__hud_configure, autocvar__menu_alpha, autocvar_hud_dock, cvar(), cvar_set(), entity(), floor(), ftos(), highlightedAction, highlightedPanel, highlightedPanel_backup, HUD_Configure_Exit_Force(), hud_configure_menu_open, HUD_Panel_Arrow_Action(), HUD_Panel_EnableMenu(), HUD_Panel_FirstInDrawQ(), HUD_Panel_UpdatePosSize, hudShiftState, K_ALT, K_BACKSPACE, K_CTRL, K_DOWNARROW, K_ENTER, K_ESCAPE, K_KP_ENTER, K_LEFTARROW, K_MOUSE1, K_MOUSE2, K_PAUSE, K_RIGHTARROW, K_SHIFT, K_SPACE, K_TAB, K_UPARROW, LABEL, localcmd, mouseClicked, mousepos, NULL, panel, PANEL_CONFIG_CANBEOFF, PANEL_CONFIG_MAIN, panel_pos, panel_pos_backup, panel_size, panel_size_backup, panel_size_copied, pressed_key_time, REGISTRY_COUNT, REGISTRY_GET, reset_tab_panels(), S_ALT, S_CTRL, S_MOUSE1, S_MOUSE2, S_SHIFT, stof(), strcat(), tab_backward, tab_panel, tab_panel_pos, tab_panels, time, tokenize(), vector(), vid_conheight, and vid_conwidth.
Referenced by CSQC_InputEvent().
void HUD_Panel_Mouse | ( | ) |
Definition at line 946 of file hud_config.qc.
References autocvar__menu_alpha, autocvar_hud_configure_checkcollisions, CURSOR_NORMAL, cursor_type, drawfill(), DRAWFLAG_NORMAL, highlightedAction, highlightedPanel, highlightedPanel_backup, highlightedPanel_initial_pos, highlightedPanel_initial_size, hud_configure_checkcollisions, hud_configure_menu_open, HUD_Panel_Check_Mouse_Pos(), HUD_Panel_EnableMenu(), HUD_Panel_Highlight(), HUD_Panel_SetPos(), HUD_Panel_SetPosSize(), HUD_Panel_UpdatePosSize, hudShiftState, mouseClicked, mousepos, NULL, panel, panel_bg_border, panel_click_distance, panel_click_resizeorigin, panel_pos, panel_pos_backup, panel_size, panel_size_backup, prevMouseClicked, prevMouseClickedPos, prevMouseClickedTime, reset_tab_panels(), resizeCorner, S_CTRL, S_MOUSE1, tab_panel, time, and vector().
Referenced by HUD_Mouse().
bool autocvar__hud_configure |
Definition at line 3 of file hud_config.qh.
Referenced by DrawAmmoItem(), HUD_Ammo(), HUD_CenterPrint(), HUD_Chat(), HUD_Configure_Frame(), HUD_Configure_PostDraw(), HUD_EngineInfo(), HUD_HealthArmor(), HUD_InfoMessages(), HUD_Main(), HUD_Minigame_InputEvent(), HUD_Minigame_Mouse(), HUD_MinigameBoard(), HUD_MinigameHelp(), HUD_MinigameStatus(), HUD_Mod_CTF(), HUD_ModIcons(), HUD_Mouse(), HUD_Notify(), HUD_Panel_Draw(), HUD_Panel_InputEvent(), HUD_Panel_LoadCvars(), HUD_Physics(), HUD_Powerups(), HUD_PressedKeys(), HUD_QuickMenu(), HUD_RaceTimer(), HUD_Radar(), HUD_Radar_InputEvent(), HUD_Score(), HUD_Score_Rankings(), HUD_StrafeHUD(), HUD_Timer(), HUD_Vehicle(), HUD_Vote(), HUD_Weapons(), HUD_WouldShowCursor(), Item_ItemsTime_Allow(), LocalCommand_hud(), MUTATOR_HOOKFUNCTION(), QuickMenu_InputEvent(), Scoreboard_Draw(), teamradar_loadcvars(), and View_Lock().
bool autocvar_hud_configure_checkcollisions |
Definition at line 4 of file hud_config.qh.
Referenced by HUD_Panel_Arrow_Action(), and HUD_Panel_Mouse().
bool autocvar_hud_configure_grid |
Definition at line 5 of file hud_config.qh.
Referenced by HUD_Configure_DrawGrid(), HUD_Panel_Arrow_Action(), HUD_Panel_SetPos(), and HUD_Panel_SetPosSize().
float autocvar_hud_configure_grid_alpha |
Definition at line 6 of file hud_config.qh.
Referenced by HUD_Configure_DrawGrid().
bool autocvar_hud_configure_teamcolorforced |
Definition at line 7 of file hud_config.qh.
Referenced by HUD_Main().
float hud_configure_checkcollisions |
Definition at line 18 of file hud_config.qh.
Referenced by HUD_Panel_Arrow_Action(), HUD_Panel_Mouse(), HUD_Panel_SetPos(), and HUD_Panel_SetPosSize().
vector hud_configure_gridSize |
Definition at line 19 of file hud_config.qh.
Referenced by HUD_Configure_DrawGrid(), HUD_Panel_SetPos(), and HUD_Panel_SetPosSize().
float hud_configure_menu_open |
Definition at line 21 of file hud_config.qh.
Referenced by HUD_Configure_Exit_Force(), HUD_Configure_Frame(), HUD_Main(), HUD_Panel_EnableMenu(), HUD_Panel_InputEvent(), HUD_Panel_LoadCvars(), HUD_Panel_Mouse(), HUD_Weapons(), Item_ItemsTime_Allow(), and Scoreboard_Draw().
float hud_configure_prev |
Definition at line 17 of file hud_config.qh.
Referenced by HUD_CenterPrint(), HUD_Configure_Frame(), HUD_Main(), and HUD_QuickMenu_Forbidden().
vector hud_configure_realGridSize |
Definition at line 20 of file hud_config.qh.
Referenced by HUD_Configure_DrawGrid(), HUD_Panel_Arrow_Action(), HUD_Panel_SetPos(), and HUD_Panel_SetPosSize().
int mouseClicked |
Definition at line 12 of file hud_config.qh.
Referenced by HUD_Minigame_InputEvent(), HUD_Mouse(), HUD_Panel_InputEvent(), HUD_Panel_Mouse(), HUD_Radar_InputEvent(), HUD_Radar_Mouse(), HUD_Radar_Show_Maximized(), QuickMenu_Close(), QuickMenu_InputEvent(), QuickMenu_Mouse(), and QuickMenu_Open().
int prevMouseClicked |
Definition at line 13 of file hud_config.qh.
Referenced by HUD_Mouse(), HUD_Panel_Mouse(), QuickMenu_Close(), and QuickMenu_Mouse().
vector prevMouseClickedPos |
Definition at line 15 of file hud_config.qh.
Referenced by HUD_Panel_Mouse().
float prevMouseClickedTime |
Definition at line 14 of file hud_config.qh.
Referenced by HUD_Panel_Mouse().
const int S_MOUSE1 = 1 |
Definition at line 9 of file hud_config.qh.
Referenced by HUD_Minigame_InputEvent(), HUD_Panel_InputEvent(), HUD_Panel_Mouse(), HUD_Radar_InputEvent(), HUD_Radar_Mouse(), QuickMenu_InputEvent(), and QuickMenu_Mouse().
const int S_MOUSE2 = 2 |
Definition at line 10 of file hud_config.qh.
Referenced by HUD_Minigame_InputEvent(), HUD_Panel_InputEvent(), HUD_Radar_InputEvent(), HUD_Radar_Mouse(), QuickMenu_InputEvent(), and QuickMenu_Mouse().
const int S_MOUSE3 = 4 |
Definition at line 11 of file hud_config.qh.