Xonotic
campaign.qh File Reference
#include "listbox.qh"
+ Include dependency graph for campaign.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XonoticCampaignList
 

Functions

void CampaignList_LoadMap (entity btn, entity me)
 
entity makeXonoticCampaignList ()
 
void MultiCampaign_Next (entity btn, entity me)
 
void MultiCampaign_Prev (entity btn, entity me)
 

Function Documentation

◆ CampaignList_LoadMap()

void CampaignList_LoadMap ( entity  btn,
entity  me 
)

Definition at line 262 of file campaign.qc.

References CampaignSetup().

Referenced by XonoticCampaignList_doubleClickListBoxItem(), and XonoticCampaignList_keyDown().

263 {
264  if(me.selectedItem >= me.nItems || me.selectedItem < 0)
265  return;
266  CampaignSetup(me.selectedItem);
267 }
void CampaignSetup(int n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeXonoticCampaignList()

entity makeXonoticCampaignList ( )

Definition at line 48 of file campaign.qc.

References entity(), and NEW.

49 {
50  entity me;
52  me.configureXonoticCampaignList(me);
53  return me;
54 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:

◆ MultiCampaign_Next()

void MultiCampaign_Next ( entity  btn,
entity  me 
)

Definition at line 142 of file campaign.qc.

143 {
144  me.campaignGo(me, +1);
145 }

◆ MultiCampaign_Prev()

void MultiCampaign_Prev ( entity  btn,
entity  me 
)

Definition at line 146 of file campaign.qc.

147 {
148  me.campaignGo(me, -1);
149 }