Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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 263 of file campaign.qc.

264{
265 if(me.selectedItem >= me.nItems || me.selectedItem < 0)
266 return;
267 CampaignSetup(me.selectedItem);
268}
void CampaignSetup(int n)

References CampaignSetup(), and entity().

Referenced by XonoticCampaignList::ATTRIB(), XonoticCampaignList_doubleClickListBoxItem(), XonoticCampaignList_keyDown(), and XonoticSingleplayerDialog_fill().

◆ makeXonoticCampaignList()

entity makeXonoticCampaignList ( )

Definition at line 48 of file campaign.qc.

49{
50 entity me;
52 me.configureXonoticCampaignList(me);
53 return me;
54}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117

References entity(), and NEW.

Referenced by XonoticCampaignList::ATTRIB(), and XonoticSingleplayerDialog_fill().

◆ MultiCampaign_Next()

void MultiCampaign_Next ( entity btn,
entity me )

Definition at line 142 of file campaign.qc.

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

References entity().

Referenced by XonoticCampaignList::ATTRIB(), and XonoticSingleplayerDialog_fill().

◆ MultiCampaign_Prev()

void MultiCampaign_Prev ( entity btn,
entity me )

Definition at line 146 of file campaign.qc.

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

References entity().

Referenced by XonoticCampaignList::ATTRIB(), and XonoticSingleplayerDialog_fill().