]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add tooltips for the textbox and the buttons
authorBuddyFriendGuy <bfggeneral@gmail.com>
Fri, 10 Apr 2015 03:34:04 +0000 (23:34 -0400)
committerBuddyFriendGuy <bfggeneral@gmail.com>
Fri, 10 Apr 2015 03:34:04 +0000 (23:34 -0400)
qcsrc/menu/xonotic/dialog_multiplayer_create.qc
qcsrc/menu/xonotic/maplist.qc
tooltips.db

index 23c10e588ad4bd4c0cfb634839f3ebf29b2e7b15..c7961c4f9eab1f0f1f8edfb255da846b7eaf7af0 100644 (file)
@@ -159,6 +159,7 @@ void XonoticServerCreateTab_fill(entity me)
                // string filter label and box
                me.TD(me, 1, 0.35, e = makeXonoticTextLabel(1, _("Filter:")));
                me.mapListBox.stringFilterBox = makeXonoticMapListStringFilterBox(me, 0, string_null);
+               me.mapListBox.stringFilterBox.tooltip = getZonedTooltipForIdentifier("XonoticMultiplayerDialog_StringFilterBox");
                me.TD(me, 1, me.columns - me.firstColumn - 0.35, e = me.mapListBox.stringFilterBox);
                        e.onChange = MapList_StringFilterBox_Change;
                        e.keyDown = MapList_StringFilterBox_keyDown;
@@ -173,8 +174,8 @@ void XonoticServerCreateTab_fill(entity me)
                me.TD(me, 1, 1, e = makeXonoticButton(_("Remove shown"), '0 0 0'));
                        e.onClick = MapList_Remove_Shown;
                        e.onClickEntity = me.mapListBox;
-               me.TD(me, 1, 1, e = makeXonoticButton(_("Clear all"), '0 0 0'));
-                       e.onClick = MapList_Clear_All;
+               me.TD(me, 1, 1, e = makeXonoticButton(_("Remove all"), '0 0 0'));
+                       e.onClick = MapList_Remove_All;
                        e.onClickEntity = me.mapListBox;
 
        // The big button at the bottom
index baeaf82e9a9e99773c6016f34f34b2b1990f9cb7..e06c3084c34a3696318be1661b0474ff79c46dba 100644 (file)
@@ -51,7 +51,7 @@ void MapList_StringFilterBox_Change(entity box, entity me);
 float MapList_StringFilterBox_keyDown(entity me, float key, float ascii, float shift);
 void MapList_Add_Shown(entity btn, entity me);
 void MapList_Remove_Shown(entity btn, entity me);
-void MapList_Clear_All(entity btn, entity me);
+void MapList_Remove_All(entity btn, entity me);
 void MapList_LoadMap(entity btn, entity me);
 #endif
 
@@ -293,7 +293,7 @@ void MapList_Remove_Shown(entity btn, entity me)
        me.refilter(me);
 }
 
-void MapList_Clear_All(entity btn, entity me)
+void MapList_Remove_All(entity btn, entity me)
 {
        cvar_set("g_maplist", "");
        me.refilter(me);
index a0c06485b20cb4b950049f05c5bc00ed9a5be66c..45ef3df6db74644ae14e9806a1d7f302ca0261c6 100644 (file)
 \g_instagib\Players will be given the Minstanex, which is a railgun with infinite damage. If the player runs out of ammo, he will have 10 seconds to find some or if he fails to do so, face death. The secondary fire mode is a laser which does not inflict any damage and is good for doing trickjumps.
 \g_nix\No items Xonotic - instead of pickup items, everyone plays with the same weapon. After some time, a countdown will start, after which everyone will switch to another weapon.
 \g_nix_with_laser\Always carry the laser as an additional weapon in Nix
-\XonoticMultiplayerDialog/Select all\Select all maps
-\XonoticMultiplayerDialog/Select none\Unselect all maps
+
+\XonoticMultiplayerDialog_StringFilterBox\Click here or Ctrl-F to provide a keyword to narrow down the maplist above. Press Enter when done.
+\XonoticMultiplayerDialog/Add shown\Add the maps shown in Maplist above to your selection
+\XonoticMultiplayerDialog/Remove shown\Remove the maps shown in Maplist above from your selection
+\XonoticMultiplayerDialog/Remove all\Remove all the maps from your selection
 
 
 \XonoticMultiplayerDialog/Timedemo\Benchmark how fast your computer can run the highlighted demo