me.configureXonoticServerList(me);
return me;
}
-void configureXonoticServerListXonoticServerList(entity me)
+void XonoticServerList_configureXonoticServerList(entity me)
{
me.configureXonoticListBox(me);
me.nItems = 0;
}
-void setSelectedXonoticServerList(entity me, float i)
+void XonoticServerList_setSelected(entity me, float i)
{
float save;
save = me.selectedItem;
me.ipAddressBox.cursorPos = strlen(me.selectedServer);
me.ipAddressBoxFocused = -1;
}
-void refreshServerListXonoticServerList(entity me, float mode)
+void XonoticServerList_refreshServerList(entity me, float mode)
{
// 0: just reparametrize
// 1: also ask for new servers
refreshhostcache();
}
}
-void focusEnterXonoticServerList(entity me)
+void XonoticServerList_focusEnter(entity me)
{
if(time < me.nextRefreshTime)
{
me.nextRefreshTime = time + 10;
me.refreshServerList(me, 1);
}
-void drawXonoticServerList(entity me)
+void XonoticServerList_draw(entity me)
{
float i, found, owned;
me.ipAddressBox.cursorPos = 0;
me.ipAddressBoxFocused = -1;
}
-void setSortOrderXonoticServerList(entity me, float field, float direction)
+void XonoticServerList_setSortOrder(entity me, float field, float direction)
{
if(me.currentSortField == field)
direction = -me.currentSortOrder;
me.selectedServer = string_null;
me.refreshServerList(me, 0);
}
-void positionSortButtonXonoticServerList(entity me, entity btn, float theOrigin, float theSize, string theTitle, void(entity, entity) theFunc)
+void XonoticServerList_positionSortButton(entity me, entity btn, float theOrigin, float theSize, string theTitle, void(entity, entity) theFunc)
{
vector originInLBSpace, sizeInLBSpace;
originInLBSpace = eY * (-me.itemHeight);
btn.onClickEntity = me;
btn.resized = 1;
}
-void resizeNotifyXonoticServerList(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
+void XonoticServerList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
{
SUPER(XonoticServerList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
main.serverInfoDialog.loadServerInfo(main.serverInfoDialog, me.selectedItem);
DialogOpenButton_Click(me, main.serverInfoDialog);
}
-void clickListBoxItemXonoticServerList(entity me, float i, vector where)
+void XonoticServerList_clickListBoxItem(entity me, float i, vector where)
{
if(i == me.lastClickedServer)
if(time < me.lastClickedTime + 0.3)
me.lastClickedServer = i;
me.lastClickedTime = time;
}
-void drawListBoxItemXonoticServerList(entity me, float i, vector absSize, float isSelected)
+void XonoticServerList_drawListBoxItem(entity me, float i, vector absSize, float isSelected)
{
// layout: Ping, Server name, Map name, NP, TP, MP
string s;
draw_Text(me.realUpperMargin * eY + (me.columnPlayersOrigin + (me.columnPlayersSize - draw_TextWidth(s, 0, me.realFontSize)) * 0.5) * eX, s, me.realFontSize, theColor, theAlpha, 0);
}
-float keyDownXonoticServerList(entity me, float scan, float ascii, float shift)
+float XonoticServerList_keyDown(entity me, float scan, float ascii, float shift)
{
float i;
vector org, sz;