X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_multiplayer_join.qc;h=f387f429b651f62895b974dc3550aa58b295bf8a;hp=2b2354c5330f3f0c6cae2909e0b07655f3564a1b;hb=f72821fdcebe3ca01181a99727a06198de65ea08;hpb=ee4a26c239e85351237b7c6b3deebe93fe372a15 diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_join.qc b/qcsrc/menu/xonotic/dialog_multiplayer_join.qc index 2b2354c53..f387f429b 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_join.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_join.qc @@ -1,17 +1,11 @@ -#ifndef DIALOG_MULTIPLAYER_JOIN_H -#define DIALOG_MULTIPLAYER_JOIN_H -#include "tab.qc" -CLASS(XonoticServerListTab, XonoticTab) - METHOD(XonoticServerListTab, fill, void(entity)) - ATTRIB(XonoticServerListTab, title, string, _("Join")) - ATTRIB(XonoticServerListTab, intendedWidth, float, 0.9) - ATTRIB(XonoticServerListTab, rows, float, 23) - ATTRIB(XonoticServerListTab, columns, float, 6.5) -ENDCLASS(XonoticServerListTab) -entity makeXonoticServerListTab(); -#endif +#include "dialog_multiplayer_join.qh" -#ifdef IMPLEMENTATION +#include "serverlist.qh" + +#include "textlabel.qh" +#include "inputbox.qh" +#include "checkbox.qh" +#include "button.qh" entity makeXonoticServerListTab() { @@ -37,15 +31,18 @@ void XonoticServerListTab_fill(entity me) me.TD(me, 1, 0.9, e = makeXonoticCheckBox(0, "menu_slist_categories", ZCTX(_("SRVS^Categories")))); e.onClickEntity = slist; e.onClick = ServerList_Categories_Click; - me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showempty", ZCTX(_("SRVS^Empty")))); + me.TD(me, 1, 0.6, e = makeXonoticCheckBox_T(0, "menu_slist_showempty", ZCTX(_("SRVS^Empty")), + _("Show empty servers"))); slist.filterShowEmpty = e.checked; e.onClickEntity = slist; e.onClick = ServerList_ShowEmpty_Click; - me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showfull", ZCTX(_("SRVS^Full")))); + me.TD(me, 1, 0.6, e = makeXonoticCheckBox_T(0, "menu_slist_showfull", ZCTX(_("SRVS^Full")), + _("Show full servers that have no slots available"))); slist.filterShowFull = e.checked; e.onClickEntity = slist; e.onClick = ServerList_ShowFull_Click; - me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "net_slist_pause", _("Pause"))); + me.TD(me, 1, 0.6, e = makeXonoticCheckBox_T(0, "net_slist_pause", _("Pause"), + _("Pause updating the server list to prevent servers from \"jumping around\""))); me.gotoRC(me, 2, 0); me.TD(me, 1, 1, slist.sortButton1 = makeXonoticButton(string_null, '0 0 0')); @@ -68,7 +65,8 @@ void XonoticServerListTab_fill(entity me) e.onClick = ServerList_Favorite_Click; e.onClickEntity = slist; slist.favoriteButton = e; - me.TD(me, 1, 1.5, e = makeXonoticButton(_("Info..."), '0 0 0')); + me.TD(me, 1, 1.5, e = makeXonoticButton_T(_("Info..."), '0 0 0', + _("Show more information about the currently highlighted server"))); e.onClick = ServerList_Info_Click; e.onClickEntity = slist; slist.infoButton = e; @@ -78,4 +76,3 @@ void XonoticServerListTab_fill(entity me) e.onClickEntity = slist; slist.connectButton = e; } -#endif