forked from MarseyWorld/MarseyWorld
show user coins and mbux in casino
parent
e359bc008d
commit
d096e3eaf6
|
@ -13,10 +13,12 @@ function initializeGame() {
|
||||||
function updatePlayerCurrencies(updated) {
|
function updatePlayerCurrencies(updated) {
|
||||||
if (updated.coins) {
|
if (updated.coins) {
|
||||||
document.getElementById("user-coins-amount").innerText = updated.coins;
|
document.getElementById("user-coins-amount").innerText = updated.coins;
|
||||||
|
document.getElementById("user-coins-amount-casino").innerText = updated.coins;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updated.marseybux) {
|
if (updated.marseybux) {
|
||||||
document.getElementById("user-bux-amount").innerText = updated.marseybux;
|
document.getElementById("user-bux-amount").innerText = updated.marseybux;
|
||||||
|
document.getElementById("user-bux-amount-casino").innerText = updated.marseybux;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,18 +39,25 @@
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<input type="radio" class="btn-check" name="wagerCurrency" autocomplete="off" id="wagerCoins"
|
<span class="unbreakable mr-3">
|
||||||
value="coin" checked>
|
<input type="radio" class="btn-check" name="wagerCurrency" autocomplete="off" id="wagerCoins"
|
||||||
<label for="wagerCoins" class="btn btn-primary border-0 pl-0">
|
value="coin" checked>
|
||||||
<img id="wagerCoinsImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?x=1" alt="coin" data-bs-toggle="tooltip"
|
<label for="wagerCoins" class="btn btn-primary border-0 px-0">
|
||||||
data-bs-placement="bottom" title="Coin">
|
<img id="wagerCoinsImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?x=1" alt="coin" data-bs-toggle="tooltip"
|
||||||
</label>
|
data-bs-placement="bottom" title="Coin">
|
||||||
<input type="radio" class="btn-check ml-2" name="wagerCurrency" autocomplete="off" id="wagerMarseybux"
|
</label>
|
||||||
value="marseybux">
|
<span id="user-coins-amount-casino">{{v.coins}}</span>
|
||||||
<label for="wagerMarseybux" class="btn btn-primary border-0 pl-0">
|
</span>
|
||||||
<img id="wagerMarseybuxImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?x=1" alt="marseybux" data-bs-toggle="tooltip"
|
|
||||||
data-bs-placement="bottom" title="Marseybux">
|
<span class="unbreakable">
|
||||||
</label>
|
<input type="radio" class="btn-check" name="wagerCurrency" autocomplete="off" id="wagerMarseybux"
|
||||||
|
value="marseybux">
|
||||||
|
<label for="wagerMarseybux" class="btn btn-primary border-0 px-0">
|
||||||
|
<img id="wagerMarseybuxImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?x=1" alt="marseybux" data-bs-toggle="tooltip"
|
||||||
|
data-bs-placement="bottom" title="Marseybux">
|
||||||
|
</label>
|
||||||
|
<span id="user-bux-amount-casino">{{v.marseybux}}</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue