X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_settings_game_view.qc;h=40a526d56ae863e25e25de98ea47fa27b78e994f;hb=99c1b6ca80a69e112d410ee493d62f757b2c6df8;hp=44e741934ce1348892e7f22ae42dd5f1933a9e81;hpb=bb80a6aba067167c6ef8d5f3465f03bd34142fa2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_settings_game_view.qc b/qcsrc/menu/xonotic/dialog_settings_game_view.qc index 44e741934..40a526d56 100644 --- a/qcsrc/menu/xonotic/dialog_settings_game_view.qc +++ b/qcsrc/menu/xonotic/dialog_settings_game_view.qc @@ -1,9 +1,9 @@ -#ifdef INTERFACE -CLASS(XonoticGameViewSettingsTab) EXTENDS(XonoticTab) - //METHOD(XonoticGameCrosshairSettingsTab, toString, string(entity)) +#ifndef DIALOG_SETTINGS_GAME_VIEW_H +#define DIALOG_SETTINGS_GAME_VIEW_H +#include "tab.qc" +CLASS(XonoticGameViewSettingsTab, XonoticTab) METHOD(XonoticGameViewSettingsTab, fill, void(entity)) METHOD(XonoticGameViewSettingsTab, showNotify, void(entity)) - ATTRIB(XonoticGameViewSettingsTab, title, string, _("View")) ATTRIB(XonoticGameViewSettingsTab, intendedWidth, float, 0.9) ATTRIB(XonoticGameViewSettingsTab, rows, float, 13) ATTRIB(XonoticGameViewSettingsTab, columns, float, 6.2) @@ -19,7 +19,7 @@ void XonoticGameViewSettingsTab_showNotify(entity me) entity makeXonoticGameViewSettingsTab() { entity me; - me = spawnXonoticGameViewSettingsTab(); + me = NEW(XonoticGameViewSettingsTab); me.configureDialog(me); return me; }