CLASS(XonoticServerCreateTab) EXTENDS(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)
entity e, e0;
me.gotoRC(me, 0.5, 0);
- me.TD(me, 1, 3, e = makeXonoticTextLabel(0.5, _("Gametype")));
- e.isBold = TRUE;
- e.alpha = 0.5;
+ me.TD(me, 1, 3, makeXonoticHeaderLabel(_("Gametype")));
me.TR(me);
me.TD(me, 10.5, 3, e = makeXonoticGametypeList());
me.gotoRC(me, 0.5, 3.2); me.setFirstColumn(me, me.currentColumn);
me.mapListBox = makeXonoticMapList();
- me.TD(me, 1, 3, e = makeXonoticTextLabel(0.5, _("Maplist")));
- e.isBold = TRUE;
- e.alpha = 0.5;
+ me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Maplist")));
makeCallback(e, me.mapListBox, me.mapListBox.refilterCallback);
me.TR(me);
me.TD(me, me.rows - 4, 3, me.mapListBox);
me.mapListBox.refilter(me.mapListBox);
}
+void XonoticServerCreateTab_gameTypeSelectNotify(entity me)
+{
+ me.setFocus(me, me.mapListBox);
+}
+
#endif