Removed textlabels, Fixed chat not showing up after exiting tuning menu

This commit is contained in:
hydrant
2018-10-22 22:46:19 +02:00
parent 61d5938b1c
commit c0c38e5bc5
2 changed files with 8 additions and 13 deletions

View File

@@ -50,11 +50,11 @@ mp.events.add('showTuningInfo', () => {
keyBound = true;
});
mp.events.add('hideTuningInfo', () => {
mp.events.add('hideTuningInfo', (unbind) => {
mp.game.ui.clearHelp(true);
mp.gui.chat.show(true);
if (keyBound) {
if (keyBound && unbind) {
mp.keys.unbind(0x45, false, keyPressHandler);
keyBound = false;
}
@@ -65,7 +65,7 @@ function keyPressHandler() {
}
mp.events.add("showTuningMenu", () => {
mp.events.call("hideTuningInfo");
mp.events.call("hideTuningInfo" , false);
mp.gui.chat.show(false);
var localPlayer = mp.players.local;
@@ -116,6 +116,10 @@ mp.events.add("showTuningMenu", () => {
modMenu.Visible = true;
});
mainMenu.MenuClose.on(() => {
mp.events.call("hideTuningInfo", false);
});
});
function getSlotName(slot) {