X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_settings_game_view.qc;h=2f5d795867844c5ab011970bf2bb4c32edc7a145;hb=42e255d014f2c6a1871177ea511f630624cdfb57;hp=91ffa0e2904fee61255498c5a2f1be9c969320f1;hpb=724a41faf2cbfd86d41f3ab59ff8326a831a8326;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 91ffa0e29..2f5d79586 100644 --- a/qcsrc/menu/xonotic/dialog_settings_game_view.qc +++ b/qcsrc/menu/xonotic/dialog_settings_game_view.qc @@ -1,20 +1,11 @@ -#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, 15.5) - ATTRIB(XonoticGameViewSettingsTab, columns, float, 6.2) -ENDCLASS(XonoticGameViewSettingsTab) -entity makeXonoticGameViewSettingsTab(); -#include "../gamesettings.qh" -REGISTER_SETTINGS(View, makeXonoticGameViewSettingsTab()); -#endif +#include "dialog_settings_game_view.qh" + +#include "textlabel.qh" +#include "checkbox.qh" +#include "textslider.qh" +#include "slider.qh" +#include "radiobutton.qh" -#ifdef IMPLEMENTATION void XonoticGameViewSettingsTab_showNotify(entity me) { loadAllCvars(me); @@ -128,4 +119,3 @@ void XonoticGameViewSettingsTab_fill(entity me) //me.TDempty(me, 0.2); me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_unpress_zoom_on_weapon_switch", _("Release zoom when you switch weapons"))); } -#endif