Xonotic
cl_minigames_hud.qc File Reference
+ Include dependency graph for cl_minigames_hud.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

float HUD_Minigame_InputEvent (float bInputType, float nPrimary, float nSecondary)
 
void HUD_Minigame_Mouse ()
 
void HUD_MinigameBoard ()
 
void HUD_MinigameBoard_Export (int fh)
 
void HUD_MinigameHelp ()
 
void HUD_MinigameHelp_Export (int fh)
 
void HUD_MinigameMenu ()
 
void HUD_MinigameMenu_Click (entity menuitem)
 
bool HUD_MinigameMenu_Click_ExpandCollapse (entity this)
 
void HUD_MinigameMenu_ClickCreate (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_ClickCreate_Entry (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_ClickCurrentGame (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_ClickCustomEntry (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_ClickInvite (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_ClickInvite_Entry (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_ClickJoin (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_ClickJoin_Entry (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_ClickQuit (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_Close (entity this, entity actor, entity trigger)
 
void HUD_MinigameMenu_CurrentButton ()
 
void HUD_MinigameMenu_CustomEntry (entity parent, string menumessage, string event_arg)
 
void HUD_MinigameMenu_DrawColoredEntry (vector pos, string s, vector fontsize)
 
void HUD_MinigameMenu_DrawEntry (vector pos, string s, vector fontsize, vector color)
 
void HUD_MinigameMenu_EraseEntry (entity e)
 
void HUD_MinigameMenu_Export (int fh)
 
void HUD_MinigameMenu_InsertEntry (entity newentry, entity prev)
 
bool HUD_MinigameMenu_IsOpened ()
 
void HUD_MinigameMenu_MouseInput ()
 
void HUD_MinigameMenu_Open ()
 
entity HUD_MinigameMenu_SpawnEntry (entity entry, string s, vector offset, vector fontsize, vector color, void(entity, entity, entity) click)
 
entity HUD_MinigameMenu_SpawnSubEntry (string s, void(entity, entity, entity) click, entity parent)
 
void HUD_MinigameStatus ()
 
void HUD_MinigameStatus_Export (int fh)
 
bool HUD_mouse_over (entity somepanel)
 

Variables

vector colormod
 
entity HUD_MinigameMenu_activeitem
 
entity HUD_MinigameMenu_entries
 
entity HUD_MinigameMenu_last_entry
 

Function Documentation

◆ HUD_Minigame_InputEvent()

float HUD_Minigame_InputEvent ( float  bInputType,
float  nPrimary,
float  nSecondary 
)

Definition at line 607 of file cl_minigames_hud.qc.

References active_minigame, argv(), autocvar__hud_configure, HUD_MinigameMenu_activeitem, HUD_MinigameMenu_Click(), HUD_MinigameMenu_Close(), HUD_MinigameMenu_entries, HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_last_entry, HUD_mouse_over(), HUD_PANEL, hudShiftState, K_ALT, K_CTRL, K_DOWNARROW, K_END, K_ENTER, K_ESCAPE, K_HOME, K_KP_DOWNARROW, K_KP_END, K_KP_ENTER, K_KP_HOME, K_KP_UPARROW, K_MOUSE1, K_MOUSE16, K_MOUSE2, K_SHIFT, K_SPACE, K_UPARROW, mouseClicked, mousepos, NULL, S_ALT, S_CTRL, S_MOUSE1, S_MOUSE2, S_SHIFT, stof(), strcat(), and tokenize().

Referenced by CSQC_InputEvent().

608 {
609 
611  return false;
612 
613  if(bInputType == 3)
614  {
615  mousepos_x = nPrimary;
616  mousepos_y = nSecondary;
617  if ( active_minigame && HUD_mouse_over(HUD_PANEL(MINIGAMEBOARD)) )
618  active_minigame.minigame_event(active_minigame,"mouse_moved",mousepos);
619  return true;
620  }
621 
622  if(bInputType == 2)
623  {
624  if ( active_minigame && HUD_mouse_over(HUD_PANEL(MINIGAMEBOARD)) )
625  active_minigame.minigame_event(active_minigame,"mouse_moved",mousepos);
626  return false;
627  }
628 
629  // at this point bInputType can only be 0 or 1 (key pressed or released)
630  bool key_pressed = (bInputType == 0);
631 
632  if(key_pressed) {
633  if(nPrimary == K_ALT) hudShiftState |= S_ALT;
634  if(nPrimary == K_CTRL) hudShiftState |= S_CTRL;
635  if(nPrimary == K_SHIFT) hudShiftState |= S_SHIFT;
636  if(nPrimary == K_MOUSE1) mouseClicked |= S_MOUSE1;
637  if(nPrimary == K_MOUSE2) mouseClicked |= S_MOUSE2;
638  }
639  else {
640  if(nPrimary == K_ALT) hudShiftState -= (hudShiftState & S_ALT);
641  if(nPrimary == K_CTRL) hudShiftState -= (hudShiftState & S_CTRL);
642  if(nPrimary == K_SHIFT) hudShiftState -= (hudShiftState & S_SHIFT);
643  if(nPrimary == K_MOUSE1) mouseClicked -= (mouseClicked & S_MOUSE1);
644  if(nPrimary == K_MOUSE2) mouseClicked -= (mouseClicked & S_MOUSE2);
645  }
646 
647  // allow some binds
648  string con_keys = findkeysforcommand("toggleconsole", 0);
649  int keys = tokenize(con_keys); // findkeysforcommand returns data for this
650  int i;
651  for (i = 0; i < keys; ++i)
652  {
653  if(nPrimary == stof(argv(i)))
654  return false;
655  }
656 
657  if ( active_minigame )
658  {
659  string device = "";
660  string action = key_pressed ? "pressed" : "released";
661  if ( nPrimary >= K_MOUSE1 && nPrimary <= K_MOUSE16 )
662  {
663  if ( HUD_mouse_over(HUD_PANEL(MINIGAMEBOARD)) )
664  device = "mouse";
665  }
666  else
667  device = "key";
668 
669  if ( device && active_minigame.minigame_event(
670  active_minigame,strcat(device,"_",action),nPrimary) )
671  return true;
672  }
673 
674  if ( nPrimary == K_MOUSE2 )
675  {
676  return true;
677  }
678  if ( nPrimary == K_MOUSE1 )
679  {
680  if (!key_pressed)
681  return true;
684  return true;
685  }
686  if ( nPrimary == K_UPARROW || nPrimary == K_KP_UPARROW )
687  {
688  if (!key_pressed)
689  return true;
692  else
694  return true;
695  }
696  else if ( nPrimary == K_DOWNARROW || nPrimary == K_KP_DOWNARROW )
697  {
698  if (!key_pressed)
699  return true;
702  else
704  return true;
705  }
706  else if ( nPrimary == K_HOME || nPrimary == K_KP_HOME )
707  {
708  if (!key_pressed)
709  return true;
711  return true;
712  }
713  else if ( nPrimary == K_END || nPrimary == K_KP_END )
714  {
715  if (!key_pressed)
716  return true;
718  return true;
719  }
720  else if ( nPrimary == K_KP_ENTER || nPrimary == K_ENTER || nPrimary == K_SPACE )
721  {
722  if (!key_pressed)
723  return true;
725  return true;
726  }
727  else if ( nPrimary == K_ESCAPE )
728  {
729  if (!key_pressed)
730  return true;
732  return true;
733  }
734 
735  return false;
736 }
float K_UPARROW
Definition: keycodes.qc:15
float K_ALT
Definition: keycodes.qc:20
float K_ESCAPE
Definition: keycodes.qc:9
float K_DOWNARROW
Definition: keycodes.qc:16
bool HUD_MinigameMenu_IsOpened()
bool autocvar__hud_configure
Definition: hud_config.qh:3
float K_HOME
Definition: keycodes.qc:41
float K_KP_DOWNARROW
Definition: keycodes.qc:53
const int S_SHIFT
Definition: hud.qh:127
void HUD_MinigameMenu_Click(entity menuitem)
void HUD_MinigameMenu_Close(entity this, entity actor, entity trigger)
entity HUD_MinigameMenu_activeitem
float K_SHIFT
Definition: keycodes.qc:22
float K_SPACE
Definition: keycodes.qc:10
const int S_ALT
Definition: hud.qh:129
float K_KP_ENTER
Definition: keycodes.qc:74
int mouseClicked
Definition: hud_config.qh:12
bool HUD_mouse_over(entity somepanel)
entity active_minigame
Definition: cl_minigames.qh:85
int hudShiftState
Definition: hud.qh:126
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
entity HUD_MinigameMenu_entries
float K_MOUSE16
Definition: keycodes.qc:146
float K_CTRL
Definition: keycodes.qc:21
float K_MOUSE2
Definition: keycodes.qc:130
#define NULL
Definition: post.qh:17
entity HUD_MinigameMenu_last_entry
float K_END
Definition: keycodes.qc:42
float K_MOUSE1
Definition: keycodes.qc:129
float K_KP_HOME
Definition: keycodes.qc:62
vector mousepos
Definition: hud.qh:102
const int S_MOUSE2
Definition: hud_config.qh:10
float K_ENTER
Definition: keycodes.qc:8
const int S_MOUSE1
Definition: hud_config.qh:9
const int S_CTRL
Definition: hud.qh:128
float K_KP_END
Definition: keycodes.qc:51
float K_KP_UPARROW
Definition: keycodes.qc:64
#define HUD_PANEL(NAME)
Definition: hud.qh:51
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_Minigame_Mouse()

void HUD_Minigame_Mouse ( )

Definition at line 738 of file cl_minigames_hud.qc.

References autocvar__hud_configure, HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_MouseInput(), HUD_mouse_over(), HUD_PANEL, and mv_active.

Referenced by HUD_Mouse().

739 {
741  return;
742 
743  if ( HUD_MinigameMenu_IsOpened() && HUD_mouse_over(HUD_PANEL(MINIGAMEMENU)) )
745 }
bool HUD_MinigameMenu_IsOpened()
bool autocvar__hud_configure
Definition: hud_config.qh:3
float mv_active
Definition: mapvoting.qh:19
void HUD_MinigameMenu_MouseInput()
bool HUD_mouse_over(entity somepanel)
#define HUD_PANEL(NAME)
Definition: hud.qh:51
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameBoard()

void HUD_MinigameBoard ( )

Definition at line 46 of file cl_minigames_hud.qc.

References active_minigame, autocvar__hud_configure, entity(), HUD_MinigameMenu_IsOpened(), HUD_Panel_LoadCvars(), minigame_get_descriptor(), NULL, panel_pos, panel_size, and vector().

47 {
49  return;
50 
51  entity hud_minigame = NULL;
52 
54  {
55  if (!active_minigame)
56  return;
57  hud_minigame = active_minigame.descriptor;
58  }
59  else
60  hud_minigame = minigame_get_descriptor("nmm");
61 
62  if ( !hud_minigame )
63  return;
64 
66 
67 
68  vector pos, mySize;
69  pos = panel_pos;
70  mySize = panel_size;
71 
72  hud_minigame.minigame_hud_board(pos,mySize);
73 }
bool HUD_MinigameMenu_IsOpened()
bool autocvar__hud_configure
Definition: hud_config.qh:3
vector panel_size
Definition: hud.qh:160
entity() spawn
entity active_minigame
Definition: cl_minigames.qh:85
entity minigame_get_descriptor(string id)
Definition: minigames.qc:5
#define NULL
Definition: post.qh:17
vector panel_pos
Definition: hud.qh:159
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void HUD_Panel_LoadCvars()
Definition: hud.qc:216
+ Here is the call graph for this function:

◆ HUD_MinigameBoard_Export()

void HUD_MinigameBoard_Export ( int  fh)

Definition at line 12 of file cl_minigames_hud.qc.

13 {
14  // allow saving cvars that aesthetically change the panel into hud skin files
15 }

◆ HUD_MinigameHelp()

void HUD_MinigameHelp ( )

Definition at line 568 of file cl_minigames_hud.qc.

References active_minigame, autocvar__hud_configure, and HUD_MinigameMenu_IsOpened().

569 {
571  return;
572 
573  string help_message;
574 
576  {
577  if (!active_minigame)
578  return;
579  help_message = active_minigame.message;
580  }
581  else
582  help_message = _("Minigame message");
583 
584  if ( !help_message )
585  return;
586 
588 
589 
590  vector pos, mySize;
591  pos = panel_pos;
592  mySize = panel_size;
593 
594  if(panel_bg_padding)
595  {
596  pos += '1 1 0' * panel_bg_padding;
597  mySize -= '2 2 0' * panel_bg_padding;
598  }
599 
600  minigame_drawcolorcodedstring_wrapped( mySize_x, pos, help_message,
602 }
float panel_fg_alpha
Definition: hud.qh:166
bool HUD_MinigameMenu_IsOpened()
bool autocvar__hud_configure
Definition: hud_config.qh:3
vector panel_size
Definition: hud.qh:160
entity active_minigame
Definition: cl_minigames.qh:85
vector minigame_drawcolorcodedstring_wrapped(float maxwidth, vector pos, string text, vector fontsize, float theAlpha, int drawflags, float align)
const float DRAWFLAG_NORMAL
Definition: csprogsdefs.qc:317
vector panel_pos
Definition: hud.qh:159
vector(float skel, float bonenum) _skel_get_boneabs_hidden
vector hud_fontsize
Definition: main.qh:63
void HUD_Panel_LoadCvars()
Definition: hud.qc:216
float panel_bg_padding
Definition: hud.qh:171
+ Here is the call graph for this function:

◆ HUD_MinigameHelp_Export()

void HUD_MinigameHelp_Export ( int  fh)

Definition at line 22 of file cl_minigames_hud.qc.

23 {
24  // allow saving cvars that aesthetically change the panel into hud skin files
25 }

◆ HUD_MinigameMenu()

void HUD_MinigameMenu ( )

Definition at line 498 of file cl_minigames_hud.qc.

References HUD_MinigameMenu_Close(), HUD_MinigameMenu_DrawEntry(), HUD_MinigameMenu_IsOpened(), HUD_Panel_DrawBg, HUD_Panel_LoadCvars(), HUD_Scale_Disable(), mv_active, NULL, panel_bg_padding, panel_pos, and panel_size.

499 {
500  if (mv_active)
501  {
504  return;
505  }
506 
507  if ( !HUD_MinigameMenu_IsOpened() )
508  return;
509 
511 
514 
515  if(panel_bg_padding)
516  {
517  panel_pos += '1 1 0' * panel_bg_padding;
518  panel_size -= '2 2 0' * panel_bg_padding;
519  }
520 
521  HUD_MinigameMenu_DrawEntry(panel_pos,_("Minigames"),hud_fontsize*2,'0.25 0.47 0.72');
522  panel_pos_y += hud_fontsize_y*2;
523 
524  vector color;
525  vector offset;
526  float itemh;
527  vector imgsz = '22 22 0'; // NOTE: if changed, edit where HUD_MinigameMenu_activeitem is selected
528  for ( entity e = HUD_MinigameMenu_entries; e != NULL; e = e.list_next )
529  {
530  color = e.colormod;
531 
532  offset = e.origin;
533  itemh = e.size_y;
534 
535  if ( e.model )
536  itemh = imgsz_y;
537 
538  if ( e.flags & 2 )
539  {
540  drawfill(panel_pos, eX*panel_size_x + eY*itemh, e.colormod,
542  color = '0 0 0';
543  }
544 
545  if ( e.model )
546  {
547  drawpic( panel_pos+offset, e.model, imgsz, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL );
548  offset_x += imgsz_x;
549  offset_y = (imgsz_y-e.size_y) / 2;
550  }
551 
552  if ( e.flags & 1 )
553  HUD_MinigameMenu_DrawColoredEntry(panel_pos+offset,e.message,e.size);
554  else
555  HUD_MinigameMenu_DrawEntry(panel_pos+offset,e.message,e.size,color);
556 
557  if ( e == HUD_MinigameMenu_activeitem )
558  drawfill(panel_pos, eX*panel_size_x + eY*itemh,'1 1 1', 0.25, DRAWFLAG_ADDITIVE);
559 
560  panel_pos_y += itemh;
561  }
562 }
vector color
float panel_fg_alpha
Definition: hud.qh:166
const vector eY
Definition: vector.qh:45
void HUD_MinigameMenu_DrawEntry(vector pos, string s, vector fontsize, vector color)
bool HUD_MinigameMenu_IsOpened()
vector panel_size
Definition: hud.qh:160
entity() spawn
void HUD_MinigameMenu_Close(entity this, entity actor, entity trigger)
void HUD_Scale_Disable()
Definition: hud.qc:83
entity HUD_MinigameMenu_activeitem
float mv_active
Definition: mapvoting.qh:19
const float DRAWFLAG_ADDITIVE
Definition: csprogsdefs.qc:318
#define HUD_Panel_DrawBg()
Definition: hud.qh:54
entity HUD_MinigameMenu_entries
#define NULL
Definition: post.qh:17
const float DRAWFLAG_NORMAL
Definition: csprogsdefs.qc:317
vector panel_pos
Definition: hud.qh:159
vector(float skel, float bonenum) _skel_get_boneabs_hidden
const vector eX
Definition: vector.qh:44
vector hud_fontsize
Definition: main.qh:63
void HUD_MinigameMenu_DrawColoredEntry(vector pos, string s, vector fontsize)
void HUD_Panel_LoadCvars()
Definition: hud.qc:216
float panel_bg_padding
Definition: hud.qh:171
+ Here is the call graph for this function:

◆ HUD_MinigameMenu_Click()

void HUD_MinigameMenu_Click ( entity  menuitem)

Definition at line 148 of file cl_minigames_hud.qc.

References NULL.

Referenced by HUD_Minigame_InputEvent(), HUD_MinigameMenu_Click_ExpandCollapse(), and HUD_MinigameMenu_EraseEntry().

149 {
150  if ( menuitem )
151  {
152  menuitem.use(menuitem, NULL, NULL);
153  }
154 }
#define NULL
Definition: post.qh:17
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_Click_ExpandCollapse()

bool HUD_MinigameMenu_Click_ExpandCollapse ( entity  this)

Definition at line 214 of file cl_minigames_hud.qc.

References entity(), flags, HUD_MinigameMenu_activeitem, HUD_MinigameMenu_Click(), HUD_MinigameMenu_entries, HUD_MinigameMenu_last_entry, list_next, and NULL.

Referenced by HUD_MinigameMenu_ClickCreate(), HUD_MinigameMenu_ClickCurrentGame(), HUD_MinigameMenu_ClickInvite(), and HUD_MinigameMenu_ClickJoin().

215 {
216  entity e;
217  if ( this.flags & 2 )
218  {
220  HUD_MinigameMenu_activeitem.owner == this )
222  this.flags &= ~2;
223  for ( e = this.list_next; e != NULL && e.owner == this; e = this.list_next )
224  {
225  if ( e.flags & 2 )
227  this.list_next = e.list_next;
228  delete(e);
229  }
230  if ( this.list_next )
231  this.list_next.list_prev = this;
232  else
234  }
235  else
236  {
237  for ( e = HUD_MinigameMenu_entries; e != NULL; e = e.list_next )
238  {
239  if ( (e.flags & 2) && e.origin_x == this.origin_x)
241  }
242 
243  this.flags |= 2;
244 
245  return true;
246  }
247  return false;
248 }
entity list_next
Definition: minigames.qh:6
entity() spawn
void HUD_MinigameMenu_Click(entity menuitem)
entity HUD_MinigameMenu_activeitem
entity HUD_MinigameMenu_entries
#define NULL
Definition: post.qh:17
entity HUD_MinigameMenu_last_entry
float flags
Definition: csprogsdefs.qc:129
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_ClickCreate()

void HUD_MinigameMenu_ClickCreate ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 251 of file cl_minigames_hud.qc.

References entity(), FOREACH, HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_ClickCreate_Entry(), HUD_MinigameMenu_InsertEntry(), HUD_MinigameMenu_SpawnSubEntry(), minigame_texture(), prev, strcat(), and strzone().

252 {
254  {
255  entity curr;
256  entity prev = this;
257  FOREACH(Minigames, true, {
259  curr.netname = it.netname;
260  curr.model = strzone(minigame_texture(strcat(it.netname,"/icon")));
261  HUD_MinigameMenu_InsertEntry( curr, prev );
262  prev = curr;
263  });
264  }
265 }
void HUD_MinigameMenu_ClickCreate_Entry(entity this, entity actor, entity trigger)
entity() spawn
prev
Definition: all.qh:66
void HUD_MinigameMenu_InsertEntry(entity newentry, entity prev)
string minigame_texture(string name)
Definition: cl_minigames.qc:49
entity HUD_MinigameMenu_SpawnSubEntry(string s, void(entity, entity, entity) click, entity parent)
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
#define FOREACH(list, cond, body)
Definition: iter.qh:19
bool HUD_MinigameMenu_Click_ExpandCollapse(entity this)
+ Here is the call graph for this function:

◆ HUD_MinigameMenu_ClickCreate_Entry()

void HUD_MinigameMenu_ClickCreate_Entry ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 207 of file cl_minigames_hud.qc.

References minigame_cmd, and netname.

Referenced by HUD_MinigameMenu_ClickCreate().

208 {
209  minigame_cmd("create ", this.netname);
210 }
string netname
Definition: powerups.qc:20
#define minigame_cmd(...)
Definition: cl_minigames.qh:90
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_ClickCurrentGame()

void HUD_MinigameMenu_ClickCurrentGame ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 358 of file cl_minigames_hud.qc.

References HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_InsertEntry(), and HUD_MinigameMenu_SpawnSubEntry().

359 {
361  {
363  _("Quit"), HUD_MinigameMenu_ClickQuit, this ), this);
364 
365  active_minigame.minigame_event(active_minigame,"menu_show",this);
366 
368  _("Invite"), HUD_MinigameMenu_ClickInvite, this), this);
369  }
370 }
void HUD_MinigameMenu_ClickQuit(entity this, entity actor, entity trigger)
void HUD_MinigameMenu_InsertEntry(entity newentry, entity prev)
entity HUD_MinigameMenu_SpawnSubEntry(string s, void(entity, entity, entity) click, entity parent)
entity active_minigame
Definition: cl_minigames.qh:85
void HUD_MinigameMenu_ClickInvite(entity this, entity actor, entity trigger)
bool HUD_MinigameMenu_Click_ExpandCollapse(entity this)
+ Here is the call graph for this function:

◆ HUD_MinigameMenu_ClickCustomEntry()

void HUD_MinigameMenu_ClickCustomEntry ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 341 of file cl_minigames_hud.qc.

References active_minigame, and netname.

Referenced by HUD_MinigameMenu_CustomEntry().

342 {
343  if ( active_minigame )
344  active_minigame.minigame_event(active_minigame,"menu_click",this.netname);
345 }
string netname
Definition: powerups.qc:20
entity active_minigame
Definition: cl_minigames.qh:85
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_ClickInvite()

void HUD_MinigameMenu_ClickInvite ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 317 of file cl_minigames_hud.qc.

References entity(), findfloat(), ftos(), HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_ClickInvite_Entry(), HUD_MinigameMenu_InsertEntry(), HUD_MinigameMenu_SpawnSubEntry(), maxclients, minigame_playerslot, NULL, ping, player_localnum, playerslots, prev, and strzone().

318 {
320  {
321  entity e;
322  entity prev = this;
323  for(int i = 0; i < maxclients; ++i)
324  {
325  if ( player_localnum != i && playerslots[i] && entcs_GetName(i) != "" &&
327  {
329  strzone(entcs_GetName(i)), HUD_MinigameMenu_ClickInvite_Entry,
330  this );
331  e.flags |= 1;
332  e.netname = strzone(ftos(i+1));
333  e.origin_x *= 2;
335  prev = e;
336  }
337  }
338  }
339 }
float minigame_playerslot
Definition: cl_minigames.qh:79
entity() spawn
prev
Definition: all.qh:66
float maxclients
Definition: csprogsdefs.qc:21
entity playerslots[255]
Definition: main.qh:70
float ping
Definition: main.qh:138
void HUD_MinigameMenu_InsertEntry(entity newentry, entity prev)
entity HUD_MinigameMenu_SpawnSubEntry(string s, void(entity, entity, entity) click, entity parent)
#define NULL
Definition: post.qh:17
void HUD_MinigameMenu_ClickInvite_Entry(entity this, entity actor, entity trigger)
float player_localnum
Definition: csprogsdefs.qc:20
bool HUD_MinigameMenu_Click_ExpandCollapse(entity this)
+ Here is the call graph for this function:

◆ HUD_MinigameMenu_ClickInvite_Entry()

void HUD_MinigameMenu_ClickInvite_Entry ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 311 of file cl_minigames_hud.qc.

References minigame_cmd, and netname.

Referenced by HUD_MinigameMenu_ClickInvite().

312 {
313  minigame_cmd("invite #",this.netname);
314 }
string netname
Definition: powerups.qc:20
#define minigame_cmd(...)
Definition: cl_minigames.qh:90
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_ClickJoin()

void HUD_MinigameMenu_ClickJoin ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 275 of file cl_minigames_hud.qc.

References active_minigame, classname, entity(), find(), HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_ClickJoin_Entry(), HUD_MinigameMenu_InsertEntry(), HUD_MinigameMenu_SpawnSubEntry(), minigame_texture(), NULL, prev, strcat(), and strzone().

276 {
278  {
279  entity e = NULL;
280  entity curr;
281  entity prev = this;
282  while( (e = find(e,classname,"minigame")) )
283  {
284  if ( e != active_minigame )
285  {
287  e.netname, HUD_MinigameMenu_ClickJoin_Entry, this );
288  curr.netname = e.netname;
289  curr.model = strzone(minigame_texture(strcat(e.descriptor.netname,"/icon")));
290  HUD_MinigameMenu_InsertEntry( curr, prev );
291  prev = curr;
292  }
293  }
294  }
295 }
void HUD_MinigameMenu_ClickJoin_Entry(entity this, entity actor, entity trigger)
entity() spawn
prev
Definition: all.qh:66
string classname
Definition: csprogsdefs.qc:107
void HUD_MinigameMenu_InsertEntry(entity newentry, entity prev)
string minigame_texture(string name)
Definition: cl_minigames.qc:49
entity HUD_MinigameMenu_SpawnSubEntry(string s, void(entity, entity, entity) click, entity parent)
entity active_minigame
Definition: cl_minigames.qh:85
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
#define NULL
Definition: post.qh:17
bool HUD_MinigameMenu_Click_ExpandCollapse(entity this)
+ Here is the call graph for this function:

◆ HUD_MinigameMenu_ClickJoin_Entry()

void HUD_MinigameMenu_ClickJoin_Entry ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 268 of file cl_minigames_hud.qc.

References HUD_MinigameMenu_EraseEntry(), minigame_cmd, and netname.

Referenced by HUD_MinigameMenu_ClickJoin().

269 {
270  minigame_cmd("join ",this.netname);
272 }
string netname
Definition: powerups.qc:20
#define minigame_cmd(...)
Definition: cl_minigames.qh:90
void HUD_MinigameMenu_EraseEntry(entity e)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_ClickQuit()

void HUD_MinigameMenu_ClickQuit ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 304 of file cl_minigames_hud.qc.

References deactivate_minigame(), and minigame_cmd.

305 {
307  minigame_cmd("end");
308 }
void deactivate_minigame()
Definition: cl_minigames.qc:83
#define minigame_cmd(...)
Definition: cl_minigames.qh:90
+ Here is the call graph for this function:

◆ HUD_MinigameMenu_Close()

void HUD_MinigameMenu_Close ( entity  this,
entity  actor,
entity  trigger 
)

Definition at line 378 of file cl_minigames_hud.qc.

References entity(), HUD_MinigameMenu_activeitem, HUD_MinigameMenu_entries, HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_last_entry, and NULL.

Referenced by deactivate_minigame(), HUD_Minigame_InputEvent(), HUD_MinigameMenu(), MUTATOR_HOOKFUNCTION(), and Shutdown().

379 {
381  {
382  entity e, p;
383  for ( e = HUD_MinigameMenu_entries; e != NULL; e = p )
384  {
385  p = e.list_next;
386  delete(e);
387  }
391  }
392 }
bool HUD_MinigameMenu_IsOpened()
entity() spawn
entity HUD_MinigameMenu_activeitem
entity HUD_MinigameMenu_entries
#define NULL
Definition: post.qh:17
entity HUD_MinigameMenu_last_entry
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_CurrentButton()

void HUD_MinigameMenu_CurrentButton ( )

Definition at line 395 of file cl_minigames_hud.qc.

References active_minigame, entity(), HUD_MinigameMenu_EraseEntry(), HUD_MinigameMenu_last_entry, HUD_MinigameMenu_SpawnEntry(), and NULL.

Referenced by activate_minigame(), deactivate_minigame(), and minigame_autoclean_entity().

396 {
397  entity e;
398  if ( active_minigame )
399  {
400  for ( e = HUD_MinigameMenu_last_entry; e != NULL; e = e.list_prev )
401  if ( e.classname == "hud_minigamemenu_exit" )
402  {
404  break;
405  }
406  entity currb = HUD_MinigameMenu_SpawnEntry(new(hud_minigamemenu_current),
407  _("Current Game"), '0 0 0', hud_fontsize*1.5,'0.7 0.84 1', HUD_MinigameMenu_ClickCurrentGame );
408  currb.model = strzone(minigame_texture(strcat(active_minigame.descriptor.netname,"/icon")));
410  HUD_MinigameMenu_Click(currb);
411  }
412  else
413  {
414  entity p;
415  for ( e = HUD_MinigameMenu_last_entry; e != NULL; e = p.list_prev )
416  {
417  p = e;
418  if ( e.classname == "hud_minigamemenu_current" )
419  {
420  p = e.list_next;
421  if ( !p )
424  break;
425  }
426  }
427  for ( e = HUD_MinigameMenu_last_entry; e != NULL; e = e.list_prev )
428  if ( e.classname == "hud_minigamemenu_exit" )
429  return;
430  entity exit = HUD_MinigameMenu_SpawnEntry(new(hud_minigamemenu_exit),
431  _("Exit Menu"),'0 0 0',hud_fontsize*1.5,'0.7 0.84 1', HUD_MinigameMenu_Close);
433  }
434 }
entity HUD_MinigameMenu_SpawnEntry(entity entry, string s, vector offset, vector fontsize, vector color, void(entity, entity, entity) click)
entity() spawn
void HUD_MinigameMenu_Click(entity menuitem)
void HUD_MinigameMenu_Close(entity this, entity actor, entity trigger)
void HUD_MinigameMenu_ClickCurrentGame(entity this, entity actor, entity trigger)
void HUD_MinigameMenu_InsertEntry(entity newentry, entity prev)
string minigame_texture(string name)
Definition: cl_minigames.qc:49
entity active_minigame
Definition: cl_minigames.qh:85
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
#define NULL
Definition: post.qh:17
entity HUD_MinigameMenu_last_entry
vector hud_fontsize
Definition: main.qh:63
void HUD_MinigameMenu_EraseEntry(entity e)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_CustomEntry()

void HUD_MinigameMenu_CustomEntry ( entity  parent,
string  menumessage,
string  event_arg 
)

Definition at line 348 of file cl_minigames_hud.qc.

References entity(), HUD_MinigameMenu_ClickCustomEntry(), HUD_MinigameMenu_InsertEntry(), and HUD_MinigameMenu_SpawnSubEntry().

349 {
352  e.netname = event_arg;
354  //dprint("CustomEntry ",ftos(num_for_edict(parent))," ",menumessage," ",event_arg,"\n");
355 }
void HUD_MinigameMenu_ClickCustomEntry(entity this, entity actor, entity trigger)
entity parent
Definition: animhost.qc:7
entity() spawn
void HUD_MinigameMenu_InsertEntry(entity newentry, entity prev)
entity HUD_MinigameMenu_SpawnSubEntry(string s, void(entity, entity, entity) click, entity parent)
+ Here is the call graph for this function:

◆ HUD_MinigameMenu_DrawColoredEntry()

void HUD_MinigameMenu_DrawColoredEntry ( vector  pos,
string  s,
vector  fontsize 
)

Definition at line 491 of file cl_minigames_hud.qc.

References DRAWFLAG_NORMAL, minigame_drawcolorcodedstring_trunc(), and panel_fg_alpha.

492 {
493  minigame_drawcolorcodedstring_trunc(panel_size_x-pos_x+panel_pos_x, pos, s,
494  fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
495 }
float panel_fg_alpha
Definition: hud.qh:166
const float DRAWFLAG_NORMAL
Definition: csprogsdefs.qc:317
void minigame_drawcolorcodedstring_trunc(float maxwidth, vector pos, string text, vector fontsize, float theAlpha, int drawflags)
+ Here is the call graph for this function:

◆ HUD_MinigameMenu_DrawEntry()

void HUD_MinigameMenu_DrawEntry ( vector  pos,
string  s,
vector  fontsize,
vector  color 
)

Definition at line 485 of file cl_minigames_hud.qc.

References DRAWFLAG_NORMAL, minigame_drawstring_trunc(), and panel_fg_alpha.

Referenced by HUD_MinigameMenu().

486 {
487  minigame_drawstring_trunc(panel_size_x-pos_x+panel_pos_x, pos, s,
488  fontsize, color, panel_fg_alpha, DRAWFLAG_NORMAL);
489 }
vector color
float panel_fg_alpha
Definition: hud.qh:166
const float DRAWFLAG_NORMAL
Definition: csprogsdefs.qc:317
void minigame_drawstring_trunc(float maxwidth, vector pos, string text, vector fontsize, vector color, float theAlpha, int drawflags)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_EraseEntry()

void HUD_MinigameMenu_EraseEntry ( entity  e)

Definition at line 158 of file cl_minigames_hud.qc.

References HUD_MinigameMenu_activeitem, HUD_MinigameMenu_Click(), HUD_MinigameMenu_entries, HUD_MinigameMenu_last_entry, and NULL.

Referenced by HUD_MinigameMenu_ClickJoin_Entry(), and HUD_MinigameMenu_CurrentButton().

159 {
160  // remove child items (if any)
161  if ( e.flags & 2 )
162  {
164  }
165 
166  if ( e.list_prev )
167  e.list_prev.list_next = e.list_next;
168  else
169  HUD_MinigameMenu_entries = e.list_next;
170 
171  if ( e.list_next )
172  e.list_next.list_prev = e.list_prev;
173  else
174  HUD_MinigameMenu_last_entry = e.list_prev;
175 
176  if ( HUD_MinigameMenu_activeitem == e )
178 
179  delete(e);
180 }
void HUD_MinigameMenu_Click(entity menuitem)
entity HUD_MinigameMenu_activeitem
entity HUD_MinigameMenu_entries
#define NULL
Definition: post.qh:17
entity HUD_MinigameMenu_last_entry
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_Export()

void HUD_MinigameMenu_Export ( int  fh)

Definition at line 27 of file cl_minigames_hud.qc.

28 {
29  // allow saving cvars that aesthetically change the panel into hud skin files
30 }

◆ HUD_MinigameMenu_InsertEntry()

void HUD_MinigameMenu_InsertEntry ( entity  newentry,
entity  prev 
)

Definition at line 125 of file cl_minigames_hud.qc.

References HUD_MinigameMenu_entries, HUD_MinigameMenu_last_entry, and prev.

Referenced by HUD_MinigameMenu_ClickCreate(), HUD_MinigameMenu_ClickCurrentGame(), HUD_MinigameMenu_ClickInvite(), HUD_MinigameMenu_ClickJoin(), HUD_MinigameMenu_CustomEntry(), and HUD_MinigameMenu_Open().

126 {
128  {
129  HUD_MinigameMenu_entries = newentry;
130  HUD_MinigameMenu_last_entry = newentry;
131  return;
132  }
133 
134  newentry.list_prev = prev;
135  newentry.list_next = prev.list_next;
136  if ( prev.list_next )
137  prev.list_next.list_prev = newentry;
138  else
139  HUD_MinigameMenu_last_entry = newentry;
140  prev.list_next = newentry;
141 }
prev
Definition: all.qh:66
entity HUD_MinigameMenu_entries
entity HUD_MinigameMenu_last_entry
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_IsOpened()

bool HUD_MinigameMenu_IsOpened ( )

Definition at line 372 of file cl_minigames_hud.qc.

References HUD_MinigameMenu_entries, and NULL.

Referenced by activate_minigame(), HUD_Crosshair(), HUD_Minigame_InputEvent(), HUD_Minigame_Mouse(), HUD_MinigameBoard(), HUD_MinigameHelp(), HUD_MinigameMenu(), HUD_MinigameMenu_Close(), HUD_MinigameMenu_Open(), HUD_MinigameStatus(), HUD_Mouse(), HUD_Panel_Draw(), HUD_QuickMenu_Forbidden(), HUD_WouldShowCursor(), minigame_prompt(), MUTATOR_HOOKFUNCTION(), Scoreboard_WouldDraw(), View_CheckButtonStatus(), and View_Lock().

373 {
374  return HUD_MinigameMenu_entries != NULL;
375 }
entity HUD_MinigameMenu_entries
#define NULL
Definition: post.qh:17
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_MouseInput()

void HUD_MinigameMenu_MouseInput ( )

Definition at line 453 of file cl_minigames_hud.qc.

References entity(), eX, eY, HUD_MinigameMenu_activeitem, HUD_MinigameMenu_entries, HUD_PANEL, HUD_Panel_LoadCvars(), NULL, panel, panel_bg_padding, panel_pos, panel_size, and vector().

Referenced by HUD_Minigame_Mouse().

454 {
455  panel = HUD_PANEL(MINIGAMEMENU);
456 
458 
459  if(panel_bg_padding)
460  {
461  panel_pos += '1 1 0' * panel_bg_padding;
462  panel_size -= '2 2 0' * panel_bg_padding;
463  }
464 
465  entity e;
466 
467  panel_pos_y += hud_fontsize_y*2;
468 
470  vector sz;
471  for ( e = HUD_MinigameMenu_entries; e != NULL; e = e.list_next )
472  {
473  sz = eX*panel_size_x + eY*e.size_y;
474  if ( e.model )
475  sz_y = 22;
476  if ( !HUD_MinigameMenu_activeitem && mousepos_y >= panel_pos_y && mousepos_y <= panel_pos_y + sz_y )
477  {
479  }
480  panel_pos_y += sz_y;
481  }
482 }
const vector eY
Definition: vector.qh:45
vector panel_size
Definition: hud.qh:160
entity() spawn
entity HUD_MinigameMenu_activeitem
entity HUD_MinigameMenu_entries
#define NULL
Definition: post.qh:17
entity panel
Definition: hud.qh:144
vector panel_pos
Definition: hud.qh:159
vector(float skel, float bonenum) _skel_get_boneabs_hidden
const vector eX
Definition: vector.qh:44
#define HUD_PANEL(NAME)
Definition: hud.qh:51
void HUD_Panel_LoadCvars()
Definition: hud.qc:216
float panel_bg_padding
Definition: hud.qh:171
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_Open()

void HUD_MinigameMenu_Open ( )

Definition at line 437 of file cl_minigames_hud.qc.

References HUD_MinigameMenu_InsertEntry(), HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_SpawnEntry(), and mv_active.

Referenced by activate_minigame(), and MUTATOR_HOOKFUNCTION().

438 {
440  {
441  HUD_MinigameMenu_InsertEntry( HUD_MinigameMenu_SpawnEntry(new(hud_minigamemenu_entry),
442  _("Create"), '0 0 0', hud_fontsize*1.5,'0.7 0.84 1', HUD_MinigameMenu_ClickCreate),
444  HUD_MinigameMenu_InsertEntry ( HUD_MinigameMenu_SpawnEntry(new(hud_minigamemenu_entry),
445  _("Join"),'0 0 0',hud_fontsize*1.5,'0.7 0.84 1', HUD_MinigameMenu_ClickJoin),
449  }
450 }
void HUD_MinigameMenu_ClickCreate(entity this, entity actor, entity trigger)
entity HUD_MinigameMenu_SpawnEntry(entity entry, string s, vector offset, vector fontsize, vector color, void(entity, entity, entity) click)
bool HUD_MinigameMenu_IsOpened()
entity HUD_MinigameMenu_activeitem
void HUD_MinigameMenu_ClickJoin(entity this, entity actor, entity trigger)
float mv_active
Definition: mapvoting.qh:19
void HUD_MinigameMenu_InsertEntry(entity newentry, entity prev)
void HUD_MinigameMenu_CurrentButton()
#define NULL
Definition: post.qh:17
entity HUD_MinigameMenu_last_entry
vector hud_fontsize
Definition: main.qh:63
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_SpawnEntry()

entity HUD_MinigameMenu_SpawnEntry ( entity  entry,
string  s,
vector  offset,
vector  fontsize,
vector  color,
void(entity, entity, entity click 
)

Definition at line 183 of file cl_minigames_hud.qc.

References color.

Referenced by HUD_MinigameMenu_CurrentButton(), HUD_MinigameMenu_Open(), and HUD_MinigameMenu_SpawnSubEntry().

184 {
185  entry.message = s;
186  entry.origin = offset;
187  entry.size = fontsize;
188  entry.colormod = color;
189  entry.flags = 0;
190  entry.use = click;
191  panel_pos_y += fontsize_y;
192  return entry;
193 }
vector color
+ Here is the caller graph for this function:

◆ HUD_MinigameMenu_SpawnSubEntry()

entity HUD_MinigameMenu_SpawnSubEntry ( string  s,
void(entity, entity, entity click,
entity  parent 
)

Definition at line 196 of file cl_minigames_hud.qc.

References entity(), hud_fontsize, HUD_MinigameMenu_SpawnEntry(), parent, and vector().

Referenced by HUD_MinigameMenu_ClickCreate(), HUD_MinigameMenu_ClickCurrentGame(), HUD_MinigameMenu_ClickInvite(), HUD_MinigameMenu_ClickJoin(), and HUD_MinigameMenu_CustomEntry().

197 {
198  vector item_fontsize = hud_fontsize*1.25;
199  vector item_offset = '1 0 0' * item_fontsize_x;
200  entity item = HUD_MinigameMenu_SpawnEntry(new(hud_minigamemenu_subentry),
201  s,item_offset,item_fontsize,'0.8 0.8 0.8', click );
202  item.owner = parent;
203  return item;
204 }
entity HUD_MinigameMenu_SpawnEntry(entity entry, string s, vector offset, vector fontsize, vector color, void(entity, entity, entity) click)
entity parent
Definition: animhost.qc:7
entity() spawn
vector(float skel, float bonenum) _skel_get_boneabs_hidden
vector hud_fontsize
Definition: main.qh:63
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HUD_MinigameStatus()

void HUD_MinigameStatus ( )

Definition at line 79 of file cl_minigames_hud.qc.

References active_minigame, autocvar__hud_configure, entity(), HUD_MinigameMenu_IsOpened(), HUD_Panel_LoadCvars(), HUD_Scale_Disable(), minigame_get_descriptor(), NULL, panel_bg_padding, panel_pos, panel_size, and vector().

80 {
82  return;
83 
84  entity hud_minigame = NULL;
85 
87  {
88  if (!active_minigame)
89  return;
90  hud_minigame = active_minigame.descriptor;
91  }
92  else
93  hud_minigame = minigame_get_descriptor("nmm");
94 
95  if ( !hud_minigame )
96  return;
97 
99 
100 
101  vector pos, mySize;
102  pos = panel_pos;
103  mySize = panel_size;
104 
105  if(panel_bg_padding)
106  {
107  pos += '1 1 0' * panel_bg_padding;
108  mySize -= '2 2 0' * panel_bg_padding;
109  }
110 
112  hud_minigame.minigame_hud_status(pos,mySize);
113 }
bool HUD_MinigameMenu_IsOpened()
bool autocvar__hud_configure
Definition: hud_config.qh:3
vector panel_size
Definition: hud.qh:160
entity() spawn
void HUD_Scale_Disable()
Definition: hud.qc:83
entity active_minigame
Definition: cl_minigames.qh:85
entity minigame_get_descriptor(string id)
Definition: minigames.qc:5
#define NULL
Definition: post.qh:17
vector panel_pos
Definition: hud.qh:159
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void HUD_Panel_LoadCvars()
Definition: hud.qc:216
float panel_bg_padding
Definition: hud.qh:171
+ Here is the call graph for this function:

◆ HUD_MinigameStatus_Export()

void HUD_MinigameStatus_Export ( int  fh)

Definition at line 17 of file cl_minigames_hud.qc.

18 {
19  // allow saving cvars that aesthetically change the panel into hud skin files
20 }

◆ HUD_mouse_over()

bool HUD_mouse_over ( entity  somepanel)

Definition at line 33 of file cl_minigames_hud.qc.

References cvar_string(), stov(), strcat(), vector(), vid_conheight, and vid_conwidth.

Referenced by HUD_Minigame_InputEvent(), and HUD_Minigame_Mouse().

34 {
35  vector pos = stov(cvar_string(strcat("hud_panel_", somepanel.panel_name, "_pos")));
36  vector sz = stov(cvar_string(strcat("hud_panel_", somepanel.panel_name, "_size")));
37  return mousepos_x >= pos_x*vid_conwidth && mousepos_x <= (pos_x+sz_x)*vid_conwidth &&
38  mousepos_y >= pos_y*vid_conheight && mousepos_y <= (pos_y+sz_y)*vid_conheight ;
39 }
float vid_conheight
float vid_conwidth
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
vector(float skel, float bonenum) _skel_get_boneabs_hidden
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ colormod

vector colormod

Definition at line 10 of file cl_minigames_hud.qc.

◆ HUD_MinigameMenu_activeitem

◆ HUD_MinigameMenu_entries

◆ HUD_MinigameMenu_last_entry