From: terencehill Date: Fri, 15 Jan 2016 21:37:33 +0000 (+0100) Subject: Enable Apply button on player's name change X-Git-Tag: xonotic-v0.8.2~1213^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F265%2Fhead;p=xonotic%2Fxonotic-data.pk3dir.git Enable Apply button on player's name change --- diff --git a/qcsrc/menu/xonotic/charmap.qc b/qcsrc/menu/xonotic/charmap.qc index 1b0881dc5..f13c8bc83 100644 --- a/qcsrc/menu/xonotic/charmap.qc +++ b/qcsrc/menu/xonotic/charmap.qc @@ -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) diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_profile.qc b/qcsrc/menu/xonotic/dialog_multiplayer_profile.qc index 6c753a98c..c316318b3 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_profile.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_profile.qc @@ -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));