From eba04fb18eb01f488b5f8ace5526546dd41abb33 Mon Sep 17 00:00:00 2001 From: VegaZ Date: Mon, 3 May 2021 22:57:26 +0200 Subject: [PATCH] Add Gesamtverdienst im Gehaltsscheck --- .../Interaction/interactionmenu.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ReallifeGamemode.Client/Interaction/interactionmenu.ts b/ReallifeGamemode.Client/Interaction/interactionmenu.ts index 0eb1b053..6bff316d 100644 --- a/ReallifeGamemode.Client/Interaction/interactionmenu.ts +++ b/ReallifeGamemode.Client/Interaction/interactionmenu.ts @@ -132,6 +132,17 @@ export default function (globalData: IGlobalData) { item.SetRightLabel(moneyFormat(Number((p.financialInterest * 100).toFixed(3))) + "%"); paycheckMenu.AddItem(item); + item = new UIMenuItem("Gesamt"); + if (p.amount >= 0) { + item.SetRightLabel("~g~+ $" + moneyFormat(Number(p.amount.toFixed(2)))); + } else { + item.SetRightLabel("~r~- $" + moneyFormat(Number(p.amount.toFixed(2)))); + } + item.BackColor = new Color(0, 0, 0); + item.HighlightedBackColor = new Color(0, 0, 0); + item.HighlightedForeColor = new Color(255, 255, 255); + paycheckMenu.AddItem(item) + menu.AddItem(paycheckItem); menu.BindMenuToItem(paycheckMenu, paycheckItem); }