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

@@ -9,6 +9,7 @@ const Point = NativeUI.Point;
const ItemsCollection = NativeUI.ItemsCollection;
const Color = NativeUI.Color;
const ListItem = NativeUI.ListItem;
var screenRes = mp.game.graphics.getScreenResolution(0, 0);
import moneyFormat from '../moneyformat';
@@ -44,7 +45,7 @@ export default function carDealer(globalData: IGlobalData) {
var veh = mp.players.local.vehicle;
if (!veh) return;
mp.gui.chat.show(false);
shopMenu = new Menu("Fahrzeugkauf", "Kaufe ein neues Fahrzeug", new Point(50, 50), null, null);
shopMenu = new Menu("Fahrzeugkauf", "Kaufe ein neues Fahrzeug", new Point(0, screenRes.y / 3), null, null);
globalData.InMenu = true;