Enable Apply button on player's name change 265/head
authorterencehill <piuntn@gmail.com>
Fri, 15 Jan 2016 21:37:33 +0000 (22:37 +0100)
committerGitLab <gitlab@gitlab.com>
Thu, 28 Jan 2016 20:16:18 +0000 (20:16 +0000)
qcsrc/menu/xonotic/charmap.qc
qcsrc/menu/xonotic/dialog_multiplayer_profile.qc

index 1b0881d..f13c8bc 100644 (file)
@@ -98,7 +98,11 @@ void XonoticCharmap_cellSelect(entity me, vector cell)
 {
        string character = charmap_cellToChar(me, cell);
        if(character != "")
+       {
                me.inputBox.enterText(me.inputBox, character);
+               if(me.inputBox.applyButton)
+                       me.inputBox.applyButton.disabled = false;
+       }
 }
 
 bool XonoticCharmap_cellIsValid(entity me, vector cell)
index 6c753a9..c316318 100644 (file)
@@ -64,6 +64,7 @@ void XonoticProfileTab_fill(entity me)
                        box.maxLength = -127; // negative means encoded length in bytes
                        box.saveImmediately = 0;  // Sorry, can't do this, it spams "name" commands.
                        box.enableClearButton = 0;
+                       box.applyButton = profileApplyButton;
                        label.textEntity = box;
        me.TR(me);
                me.TD(me, 5, 1, e = makeXonoticColorpicker(box));