X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_multiplayer_create.qc;h=e56f2eef3d991e447f6b5e9d09ffdbff7a30bdd1;hb=88713a575bd27dabc5926d636542b6145ab6f51c;hp=4e76cbc6d3a5095560d41dd71da3bbb969476678;hpb=19a0e845e75403859be2120e3c000013d8a81a12;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create.qc b/qcsrc/menu/xonotic/dialog_multiplayer_create.qc index 4e76cbc6d..e56f2eef3 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create.qc @@ -1,9 +1,10 @@ -#ifdef INTERFACE -CLASS(XonoticServerCreateTab) EXTENDS(XonoticTab) +#ifndef DIALOG_MULTIPLAYER_CREATE_H +#define DIALOG_MULTIPLAYER_CREATE_H +#include "tab.qc" +CLASS(XonoticServerCreateTab, XonoticTab) METHOD(XonoticServerCreateTab, fill, void(entity)) METHOD(XonoticServerCreateTab, gameTypeChangeNotify, void(entity)) METHOD(XonoticServerCreateTab, gameTypeSelectNotify, void(entity)) - ATTRIB(XonoticServerCreateTab, title, string, _("Create")) ATTRIB(XonoticServerCreateTab, intendedWidth, float, 0.9) ATTRIB(XonoticServerCreateTab, rows, float, 23) ATTRIB(XonoticServerCreateTab, columns, float, 6.2) // added extra .2 for center space @@ -33,7 +34,7 @@ void GameType_ConfigureSliders(entity e, entity l, string pLabel, float pMin, fl e.configureXonoticTextSlider(e, pCvar); // clear old values - float i; + int i; for(i = 0; i <= e.nValues; ++i); { if(e.(valueStrings[i])) { strunzone(e.(valueStrings[i])); } @@ -56,7 +57,7 @@ void GameType_ConfigureSliders(entity e, entity l, string pLabel, float pMin, fl entity makeXonoticServerCreateTab() { entity me; - me = spawnXonoticServerCreateTab(); + me = NEW(XonoticServerCreateTab); me.configureDialog(me); return me; }