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://de.git.xonotic.org/?a=commitdiff_plain;h=32983b8cdef3372a2a56a22d8a5f97cf72928728;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));