fix ts bugs
This commit is contained in:
@@ -36,10 +36,10 @@ export default function (globalData: GlobalData) {
|
||||
});
|
||||
|
||||
function keyPressHandler(): void {
|
||||
if (globalData.InChat || globalData.Interaction) return;
|
||||
if (globalData.InChat || globalData.InMenu) return;
|
||||
menu = new Menu("Stadthalle", "", new Point(50, 50), null, null);
|
||||
|
||||
globalData.Interaction = true;
|
||||
globalData.InMenu = true;
|
||||
mp.gui.chat.show(false);
|
||||
|
||||
var groupCreateItem = new UIMenuItem("Gruppe erstellen", "Erstelle eine neue Gruppe");
|
||||
@@ -63,7 +63,7 @@ export default function (globalData: GlobalData) {
|
||||
});
|
||||
|
||||
menu.MenuClose.on(() => {
|
||||
globalData.Interaction = false;
|
||||
globalData.InMenu = false;
|
||||
mp.gui.chat.show(true);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ export default function (globalData: GlobalData) {
|
||||
|
||||
menu.Visible = true;
|
||||
mp.gui.chat.show(false);
|
||||
globalData.Interaction = true;
|
||||
globalData.InMenu = true;
|
||||
|
||||
menu.ItemSelect.on((item, index) => {
|
||||
if (item === acceptItem) {
|
||||
@@ -61,7 +61,7 @@ export default function (globalData: GlobalData) {
|
||||
});
|
||||
|
||||
menu.MenuClose.on(() => {
|
||||
globalData.Interaction = false;
|
||||
globalData.InMenu = false;
|
||||
mp.gui.chat.show(true);
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user