Also properly commented out DebugSource.
return n;
}
+/*
entity DebugSource_find_debug()
{
entity head = NULL, tail = NULL;
}
return idx;
}
+*/
METHOD(MapSource, getEntry, entity(MapSource this, int i, void(string, string) returns))
{
X(NEW(TurretSource), _("Turrets"), "gametype_as") \
X(NEW(MutatorSource), _("Mutators"), "gametype_nb") \
X(NEW(MapSource), _("Maps"), "gametype_ctf") \
+ /*if (gamestatus & GAME_DEVELOPER) X(NEW(DebugSource), _("Debug"), "gametype_ons")*/ \
/**/
CLASS(TopicSource, DataSource)
METHOD(TopicSource, getEntry, entity(TopicSource this, int i, void(string, string) returns));
METHOD(TopicSource, reload, int(TopicSource this, string filter));
ENDCLASS(TopicSource)
+/*
CLASS(DebugSource, DataSource)
.entity nextdebug;
string DebugSource_activeFilter = "";
METHOD(DebugSource, getEntry, entity(DebugSource this, int i, void(string, string) returns));
METHOD(DebugSource, reload, int(DebugSource this, string filter));
ENDCLASS(DebugSource)
+*/
.bool m_hidden;
METHOD(GuidePage, describe, string(GuidePage this))
{
+ TC(GuidePage, this);
return this.m_description;
}
METHOD(GuidePage, display, void(GuidePage this, void(string name, string icon) returns))
{
- returns(this.m_title, "nopreview_map");
+ string icon_str;
+ if (this.m_title == _("Introduction"))
+ icon_str = "gametype_dm";
+ else if (this.m_title == _("Movement"))
+ icon_str = "gametype_inv";
+ else
+ icon_str = "nopreview_map";
+ returns(this.m_title, icon_str);
}
CONSTRUCT(GuidePage);
this.m_title = _title;
}
-
ENDCLASS(GuidePage)
REGISTRY(GuidePages, 16)
REGISTER(GuidePages, GUIDE_PAGE, id, m_id, NEW(GuidePage, title))
REGISTER_REGISTRY(GuidePages)
-REGISTER_GUIDE_PAGE(0, _("Intro")) { this.m_description = _("Welcome to Xonotic"); }
+REGISTER_GUIDE_PAGE(0, _("Introduction")) {
+ this.m_description = _("Welcome to Xonotic, the free and fast arena shooter!\n\n"
+ "Keep in mind all values and descriptions in this guide are based on the default game settings, so it may differ from the experience when playing on some modified servers");
+}
+REGISTER_GUIDE_PAGE(1, _("Movement")) {
+ this.m_description = _("In Xonotic to move quickly you will have to airstrafe and bunnyhop"); // TODO
+}