From d096e3eaf61ec4aac389314ee328f6466f1bec84 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 24 Mar 2023 19:13:50 +0200 Subject: [PATCH] show user coins and mbux in casino --- files/assets/js/casino/game_screen.js | 2 ++ files/templates/casino/game_screen.html | 31 +++++++++++++++---------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/files/assets/js/casino/game_screen.js b/files/assets/js/casino/game_screen.js index ba5db8e3a..b2ef6e8d8 100644 --- a/files/assets/js/casino/game_screen.js +++ b/files/assets/js/casino/game_screen.js @@ -13,10 +13,12 @@ function initializeGame() { function updatePlayerCurrencies(updated) { if (updated.coins) { document.getElementById("user-coins-amount").innerText = updated.coins; + document.getElementById("user-coins-amount-casino").innerText = updated.coins; } if (updated.marseybux) { document.getElementById("user-bux-amount").innerText = updated.marseybux; + document.getElementById("user-bux-amount-casino").innerText = updated.marseybux; } } diff --git a/files/templates/casino/game_screen.html b/files/templates/casino/game_screen.html index 4dd290406..339a6646c 100644 --- a/files/templates/casino/game_screen.html +++ b/files/templates/casino/game_screen.html @@ -39,18 +39,25 @@
- - - - + + + + {{v.coins}} + + + + + + {{v.marseybux}} +