add repair at tuningmenu and fix Medic anzeige wenn tot im Fahrzeug
This commit is contained in:
@@ -80,7 +80,7 @@ export default function deathScreen() {
|
|||||||
var alpha = fade + Math.floor(currentDate.getTime() / 1000 - deathDate.getTime() / 1000);
|
var alpha = fade + Math.floor(currentDate.getTime() / 1000 - deathDate.getTime() / 1000);
|
||||||
if (deathSeconds >= 0) {
|
if (deathSeconds >= 0) {
|
||||||
mp.game.graphics.set2dLayer(2);
|
mp.game.graphics.set2dLayer(2);
|
||||||
mp.game.graphics.drawSprite("Mptattoos", "clearout", 0.625, 0.52, 0.1, 0.1, 0, 255, 255, 255, 236);
|
mp.game.graphics.drawSprite("Mptattoos", "clearout", 0.625, 0.5, 0.1, 0.1, 0, 255, 255, 255, 236);
|
||||||
mp.game.graphics.drawText("Respawn in: ~y~" + deathSeconds, [0.5, 0.5],
|
mp.game.graphics.drawText("Respawn in: ~y~" + deathSeconds, [0.5, 0.5],
|
||||||
{
|
{
|
||||||
font: 7,
|
font: 7,
|
||||||
@@ -89,7 +89,7 @@ export default function deathScreen() {
|
|||||||
outline: true,
|
outline: true,
|
||||||
centre: false
|
centre: false
|
||||||
});
|
});
|
||||||
mp.game.graphics.drawText(medicString, [0.5, 0.975],
|
mp.game.graphics.drawText(medicString, [0.5, 0.945],
|
||||||
{
|
{
|
||||||
font: 4,
|
font: 4,
|
||||||
color: [255, 255, 255, 255],
|
color: [255, 255, 255, 255],
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ const Menu = NativeUI.Menu;
|
|||||||
const UIMenuItem = NativeUI.UIMenuItem;
|
const UIMenuItem = NativeUI.UIMenuItem;
|
||||||
const BadgeStyle = NativeUI.BadgeStyle;
|
const BadgeStyle = NativeUI.BadgeStyle;
|
||||||
const Point = NativeUI.Point;
|
const Point = NativeUI.Point;
|
||||||
|
const Color = NativeUI.Color;
|
||||||
|
|
||||||
import vehicleColors from './colors';
|
import vehicleColors from './colors';
|
||||||
|
|
||||||
@@ -170,6 +171,11 @@ export default function tuning(globalData: IGlobalData) {
|
|||||||
|
|
||||||
mainMenu = new Menu("Fahrzeugwerkstatt", carName, new Point(50, 50), null, null);
|
mainMenu = new Menu("Fahrzeugwerkstatt", carName, new Point(50, 50), null, null);
|
||||||
|
|
||||||
|
var repairItem = new UIMenuItem("Fahrzeug reparieren");
|
||||||
|
mainMenu.AddItem(repairItem);
|
||||||
|
repairItem.BackColor = new Color(94, 94, 94);
|
||||||
|
repairItem.HighlightedBackColor = new Color(105, 105, 105);
|
||||||
|
|
||||||
var currentMod = new Array<number>();
|
var currentMod = new Array<number>();
|
||||||
var currentActiveModItem = new Array<NativeUI.UIMenuItem>();
|
var currentActiveModItem = new Array<NativeUI.UIMenuItem>();
|
||||||
|
|
||||||
@@ -284,6 +290,14 @@ export default function tuning(globalData: IGlobalData) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
mainMenu.ItemSelect.on((item: NativeUI.UIMenuItem, index: number) => {
|
||||||
|
if (item === repairItem) {
|
||||||
|
mp.events.callRemote("repairVehicle");
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
mainMenu.Visible = true;
|
mainMenu.Visible = true;
|
||||||
|
|
||||||
mainMenu.MenuClose.on(() => {
|
mainMenu.MenuClose.on(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user