Did what seemed most logical: View, HUD, Crosshair, Weapons, Models, Messages, Damage text.
This is an improvement over the previous alphabetical sorting with Damage text tacked on to the end.
Additionally View is now first, which contains Field of view, so is quite important.
ATTRIB(XonoticDamageTextSettings, columns, float, 5);
ENDCLASS(XonoticDamageTextSettings)
entity makeXonoticDamageTextSettingsTab();
-REGISTER_SETTINGS(damagetext, makeXonoticDamageTextSettingsTab());
#pragma once
-#ifdef MENUQC
-
-#include "xonotic/tab.qh"
+#include "xonotic/dialog_settings_game_hud.qh"
+#include "xonotic/dialog_settings_game_crosshair.qh"
+#include "xonotic/dialog_settings_game_messages.qh"
+#include "xonotic/dialog_settings_game_model.qh"
+#include "xonotic/dialog_settings_game_view.qh"
+#include "xonotic/dialog_settings_game_weapons.qh"
+#include <common/mutators/mutator/damagetext/ui_damagetext.qh>
REGISTRY(Settings, BITS(3))
REGISTER_REGISTRY(Settings)
REGISTRY_DEFINE_GET(Settings, NULL)
#define REGISTER_SETTINGS(id, impl) \
- LAZY_NEW(id, impl) \
- REGISTER(Settings, MENU, id, m_id, NEW(Lazy, LAZY(id)))
+ LAZY_NEW(id, impl) \
+ REGISTER(Settings, MENU, id, m_id, NEW(Lazy, LAZY(id)))
-#endif
+REGISTER_SETTINGS(View, makeXonoticGameViewSettingsTab());
+REGISTER_SETTINGS(HUD, makeXonoticGameHUDSettingsTab());
+REGISTER_SETTINGS(Crosshair, makeXonoticGameCrosshairSettingsTab());
+REGISTER_SETTINGS(Weapons, makeXonoticGameWeaponsSettingsTab());
+REGISTER_SETTINGS(Models, makeXonoticGameModelSettingsTab());
+REGISTER_SETTINGS(Messages, makeXonoticGameMessageSettingsTab());
+REGISTER_SETTINGS(damagetext, makeXonoticDamageTextSettingsTab());
ATTRIB(XonoticGameCrosshairSettingsTab, columns, float, 6.2);
ENDCLASS(XonoticGameCrosshairSettingsTab)
entity makeXonoticGameCrosshairSettingsTab();
-
-#include "../gamesettings.qh"
-REGISTER_SETTINGS(Crosshair, makeXonoticGameCrosshairSettingsTab());
ENDCLASS(XonoticGameHUDSettingsTab)
entity makeXonoticGameHUDSettingsTab();
void HUDSetup_Start(entity me, entity btn);
-#include "../gamesettings.qh"
-REGISTER_SETTINGS(HUD, makeXonoticGameHUDSettingsTab());
ATTRIB(XonoticGameMessageSettingsTab, weaponsList, entity);
ENDCLASS(XonoticGameMessageSettingsTab)
entity makeXonoticGameMessageSettingsTab();
-#include "../gamesettings.qh"
-REGISTER_SETTINGS(Messages, makeXonoticGameMessageSettingsTab());
ATTRIB(XonoticGameModelSettingsTab, columns, float, 5);
ENDCLASS(XonoticGameModelSettingsTab)
entity makeXonoticGameModelSettingsTab();
-#include "../gamesettings.qh"
-REGISTER_SETTINGS(Models, makeXonoticGameModelSettingsTab());
ATTRIB(XonoticGameViewSettingsTab, columns, float, 6.2);
ENDCLASS(XonoticGameViewSettingsTab)
entity makeXonoticGameViewSettingsTab();
-#include "../gamesettings.qh"
-REGISTER_SETTINGS(View, makeXonoticGameViewSettingsTab());
ATTRIB(XonoticGameWeaponsSettingsTab, weaponsList, entity);
ENDCLASS(XonoticGameWeaponsSettingsTab)
entity makeXonoticGameWeaponsSettingsTab();
-#include "../gamesettings.qh"
-REGISTER_SETTINGS(Weapons, makeXonoticGameWeaponsSettingsTab());