Xonotic
|
#include "hud_config.qh"
#include <client/draw.qh>
#include <client/hud/hud.qh>
#include <client/hud/panel/chat.qh>
#include <client/hud/panel/scoreboard.qh>
#include <client/view.qh>
Go to the source code of this file.
Functions | |
void | HUD_Configure_DrawGrid () |
void | HUD_Configure_Exit_Force () |
void | HUD_Configure_Frame () |
void | HUD_Configure_PostDraw () |
void | HUD_Panel_Arrow_Action (float nPrimary) |
int | HUD_Panel_Check_Mouse_Pos (bool allow_move) |
vector | HUD_Panel_CheckMove (vector myPos, vector mySize) |
vector | HUD_Panel_CheckResize (vector mySize, vector resizeorigin) |
void | HUD_Panel_EnableMenu () |
void | HUD_Panel_ExportCfg (string cfgname) |
void | HUD_Panel_FirstInDrawQ (float id) |
void | HUD_Panel_Highlight (float allow_move) |
void | HUD_Panel_HlBorder (float myBorder, vector color, float theAlpha) |
float | HUD_Panel_InputEvent (float bInputType, float nPrimary, float nSecondary) |
void | HUD_Panel_Mouse () |
void | HUD_Panel_SetPos (vector pos) |
void | HUD_Panel_SetPosSize (vector mySize) |
void | reset_tab_panels () |
Variables | |
float | _menu_alpha_prev |
vector | highlightedPanel_initial_pos |
vector | highlightedPanel_initial_size |
const string | hlBorder = "gfx/hud/default/border_highlighted" |
const string | hlBorder2 = "gfx/hud/default/border_highlighted2" |
const float | hlBorderSize = 2 |
float | pressed_key_time |
float | tab_backward |
entity | tab_panel |
vector | tab_panel_pos |
entity | tab_panels [REGISTRY_MAX(hud_panels)] |
void HUD_Configure_DrawGrid | ( | ) |
Definition at line 1041 of file hud_config.qc.
References autocvar_hud_configure_grid, autocvar_hud_configure_grid_alpha, bound(), cvar(), drawfill(), DRAWFLAG_NORMAL, eX, eY, hud_configure_gridSize, hud_configure_realGridSize, vec2, vector(), vid_conheight, and vid_conwidth.
Referenced by HUD_Configure_Frame().
void HUD_Configure_Exit_Force | ( | ) |
Definition at line 87 of file hud_config.qc.
References CURSOR_NORMAL, cursor_type, cvar_set(), hud_configure_menu_open, and localcmd.
Referenced by HUD_Configure_Frame(), and HUD_Panel_InputEvent().
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().
Definition at line 395 of file hud_config.qc.
References autocvar_hud_configure_checkcollisions, autocvar_hud_configure_grid, highlightedPanel, highlightedPanel_backup, highlightedPanel_initial_pos, highlightedPanel_initial_size, hud_configure_checkcollisions, hud_configure_realGridSize, HUD_Panel_SetPos(), HUD_Panel_SetPosSize(), HUD_Panel_UpdatePosSize, hudShiftState, K_DOWNARROW, K_LEFTARROW, K_RIGHTARROW, K_UPARROW, panel, panel_click_resizeorigin, panel_pos, panel_pos_backup, panel_size, panel_size_backup, pressed_key_time, resizeCorner, S_ALT, S_CTRL, S_SHIFT, time, vector(), vid_conheight, and vid_conwidth.
Referenced by HUD_Panel_InputEvent().
Definition at line 786 of file hud_config.qc.
References CURSOR_MOVE, CURSOR_NORMAL, CURSOR_RESIZE, CURSOR_RESIZE2, HUD_Panel_UpdatePosSize, max(), mousepos, panel, panel_bg_border, PANEL_CONFIG_MAIN, panel_order, panel_pos, panel_size, REGISTRY_COUNT, and REGISTRY_GET.
Referenced by HUD_Panel_Mouse().
Definition at line 99 of file hud_config.qc.
References highlightedPanel, HUD_Panel_UpdatePosSize, panel, panel_bg_border, PANEL_CONFIG_MAIN, panel_enabled, panel_pos, panel_size, REGISTRY_COUNT, REGISTRY_GET, and vector().
Referenced by HUD_Panel_SetPos().
Definition at line 196 of file hud_config.qc.
References highlightedPanel, HUD_Panel_UpdatePosSize, min(), panel, panel_bg_border, PANEL_CONFIG_MAIN, panel_enabled, panel_pos, panel_size, REGISTRY_COUNT, REGISTRY_GET, resizeCorner, and vector().
Referenced by HUD_Panel_SetPosSize().
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 865 of file hud_config.qc.
References eX, eY, highlightedAction, highlightedPanel, HUD_Panel_FirstInDrawQ(), HUD_Panel_UpdatePosSize, max(), mousepos, NULL, panel, panel_bg_border, panel_click_distance, panel_click_resizeorigin, PANEL_CONFIG_MAIN, panel_order, panel_pos, panel_size, REGISTRY_COUNT, REGISTRY_GET, and resizeCorner.
Referenced by HUD_Panel_Mouse().
Definition at line 1102 of file hud_config.qc.
References drawfill(), DRAWFLAG_NORMAL, drawpic_tiled(), eX, eY, hlBorder, hlBorder2, hlBorderSize, panel_pos, panel_size, vec2, and vector().
Referenced by HUD_Configure_PostDraw().
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().
Definition at line 167 of file hud_config.qc.
References autocvar_hud_configure_grid, bound(), cvar_set(), floor(), ftos(), highlightedPanel, hud_configure_checkcollisions, hud_configure_gridSize, hud_configure_realGridSize, HUD_Panel_CheckMove(), HUD_Panel_UpdatePosSize, panel, panel_size, strcat(), vector(), vid_conheight, and vid_conwidth.
Referenced by HUD_Panel_Arrow_Action(), and HUD_Panel_Mouse().
Definition at line 303 of file hud_config.qc.
References autocvar_con_chatsize, autocvar_hud_configure_grid, cvar_set(), floor(), ftos(), highlightedPanel, hud_configure_checkcollisions, hud_configure_gridSize, hud_configure_realGridSize, HUD_PANEL, HUD_Panel_CheckResize(), HUD_Panel_UpdatePosSize, max(), panel, panel_bg_padding, panel_click_resizeorigin, resizeCorner, strcat(), vector(), vid_conheight, and vid_conwidth.
Referenced by HUD_Panel_Arrow_Action(), and HUD_Panel_Mouse().
void reset_tab_panels | ( | ) |
Definition at line 506 of file hud_config.qc.
References NULL, REGISTRY_COUNT, and tab_panels.
Referenced by HUD_Panel_InputEvent(), and HUD_Panel_Mouse().
float _menu_alpha_prev |
Definition at line 1062 of file hud_config.qc.
Referenced by HUD_Configure_Frame().
vector highlightedPanel_initial_pos |
Definition at line 394 of file hud_config.qc.
Referenced by HUD_Panel_Arrow_Action(), and HUD_Panel_Mouse().
vector highlightedPanel_initial_size |
Definition at line 394 of file hud_config.qc.
Referenced by HUD_Panel_Arrow_Action(), and HUD_Panel_Mouse().
Definition at line 1100 of file hud_config.qc.
Referenced by HUD_Panel_HlBorder().
Definition at line 1101 of file hud_config.qc.
Referenced by HUD_Panel_HlBorder().
const float hlBorderSize = 2 |
Definition at line 1099 of file hud_config.qc.
Referenced by HUD_Configure_PostDraw(), and HUD_Panel_HlBorder().
float pressed_key_time |
Definition at line 393 of file hud_config.qc.
Referenced by HUD_Panel_Arrow_Action(), and HUD_Panel_InputEvent().
float tab_backward |
Definition at line 505 of file hud_config.qc.
Referenced by HUD_Panel_InputEvent().
entity tab_panel |
Definition at line 503 of file hud_config.qc.
Referenced by HUD_Configure_PostDraw(), HUD_Panel_InputEvent(), and HUD_Panel_Mouse().
vector tab_panel_pos |
Definition at line 504 of file hud_config.qc.
Referenced by HUD_Panel_InputEvent().
entity tab_panels[REGISTRY_MAX(hud_panels)] |
Definition at line 502 of file hud_config.qc.
Referenced by HUD_Panel_InputEvent(), and reset_tab_panels().