haus system auf core geändert

This commit is contained in:
hydrant
2020-03-29 12:18:17 +02:00
parent 6bd3d4a3d0
commit bcfc2105ea
68 changed files with 1366 additions and 810 deletions

View File

@@ -1,5 +1,6 @@
import { IUi, IBrowser } from "../../game";
import { Menu } from "../../libs/NativeUI/index";
import { GlobalData } from "../..";
export default class RageUi implements IUi {
setHelpText(text: string): void {
@@ -11,9 +12,17 @@ export default class RageUi implements IUi {
mp.game.ui.clearHelp(true);
}
private _inMenu: boolean = false;
private _inChat: boolean = false;
private _activeMenu: Menu = null;
inChat: boolean = false;
get inChat() {
return this._inChat || GlobalData.InChat;
}
set inChat(value: boolean) {
this._inChat = value;
GlobalData.InChat = value;
}
get activeMenu(): Menu {
return this._activeMenu;
@@ -34,11 +43,12 @@ export default class RageUi implements IUi {
}
get inMenu() {
return this._inMenu;
return this._inMenu || GlobalData.InMenu;
}
set inMenu(value: boolean) {
this._inMenu = value;
GlobalData.InMenu = value;
this.toggleChat(!value);
}