]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 1b0881dc5663f0379adafaa1eb99173106f23d8a..f13c8bc83c51dec555d727992749d83cb2d86284 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 6c753a98c669e3beb29c53425b9658fa4193a30c..c316318b3a48d04532cd5208a679f0baf7b93fa3 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));