Set screen location of every NativeUI to new Point(0, screenRes.y / 3)

This commit is contained in:
VegaZ
2021-02-20 17:49:22 +01:00
parent efff32d08d
commit c739d7e953
20 changed files with 57 additions and 52 deletions

View File

@@ -60,7 +60,7 @@ export default function weaponList(globalData: IGlobalData) {
dealItem.BackColor = new Color(204, 170, 0);
dealItem.HighlightedBackColor = new Color(255, 213, 0);
weaponMenu = new Menu("Waffenschrank", "Stelle deine Waffenausrüstung zusammen", new Point(50, 50), null, null);
weaponMenu = new Menu("Waffenschrank", "Stelle deine Waffenausrüstung zusammen", new Point(0, screenRes.y / 3), null, null);
weaponMenu.AddItem(new UIMenuListItem("Primäre", "", new ItemsCollection(secondaries)));
weaponMenu.AddItem(new UIMenuListItem("Sekundäre", "", new ItemsCollection(primaries)));
@@ -116,7 +116,7 @@ export default function weaponList(globalData: IGlobalData) {
function getWeaponStockMenu(parentMenu: NativeUI.Menu, ): NativeUI.Menu {
var weaponStockMenu = new NativeUI.Menu("Bestand","", new Point(50, 50), null, null);
var weaponStockMenu = new NativeUI.Menu("Bestand","", new Point(0, screenRes.y / 3), null, null);
var menuItem = new UIMenuItem("Pistol");
menuItem.SetRightLabel(pistol_Amount);