X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_singleplayer.qc;h=20984034db9c8887cf186ace4ba7be84e0e47a6f;hb=90da6817bc443ee9402472527e746af2c254926e;hp=1620349bf58864aea5f1f462c90853469d6180a4;hpb=853b6160a59c1e6f1b67af9abd43cf98d25b8625;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_singleplayer.qc b/qcsrc/menu/xonotic/dialog_singleplayer.qc index 1620349bf..20984034d 100644 --- a/qcsrc/menu/xonotic/dialog_singleplayer.qc +++ b/qcsrc/menu/xonotic/dialog_singleplayer.qc @@ -1,18 +1,10 @@ -#ifndef DIALOG_SINGLEPLAYER_H -#define DIALOG_SINGLEPLAYER_H -#include "dialog.qc" -CLASS(XonoticSingleplayerDialog, XonoticDialog) - METHOD(XonoticSingleplayerDialog, fill, void(entity)) - ATTRIB(XonoticSingleplayerDialog, title, string, _("Singleplayer")) - ATTRIB(XonoticSingleplayerDialog, color, vector, SKINCOLOR_DIALOG_SINGLEPLAYER) - ATTRIB(XonoticSingleplayerDialog, intendedWidth, float, 0.80) - ATTRIB(XonoticSingleplayerDialog, rows, float, 24) - ATTRIB(XonoticSingleplayerDialog, columns, float, 5) - ATTRIB(XonoticSingleplayerDialog, campaignBox, entity, NULL) -ENDCLASS(XonoticSingleplayerDialog) -#endif +#include "dialog_singleplayer.qh" -#ifdef IMPLEMENTATION +#include +#include "bigbutton.qh" +#include "radiobutton.qh" +#include "textlabel.qh" +#include "campaign.qh" void InstantAction_LoadMap(entity btn, entity dummy) { @@ -133,7 +125,6 @@ void XonoticSingleplayerDialog_fill(entity me) me.campaignBox.buttonNext = btnNext; me.campaignBox.buttonPrev = btnPrev; me.campaignBox.labelTitle = lblTitle; - me.campaignBox.campaignGo(me.campaignBox, 0); me.gotoRC(me, me.rows - 2, 0); me.TD(me, 1, 2, e = makeXonoticTextLabel(0.5, _("Campaign Difficulty:"))); @@ -145,4 +136,3 @@ void XonoticSingleplayerDialog_fill(entity me) e.onClick = CampaignList_LoadMap; e.onClickEntity = me.campaignBox; } -#endif