mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 22:36:03 +01:00
Update listener.js
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
|
let displayOn = true
|
||||||
|
|
||||||
// Hide/show ui function
|
// Hide/show ui function
|
||||||
function display(bool) {
|
function display(bool) {
|
||||||
if (bool) {
|
if (bool) {
|
||||||
@@ -124,6 +126,19 @@ $(function() {
|
|||||||
$("#cash").text(item.cash);
|
$("#cash").text(item.cash);
|
||||||
$("#bank").text(item.bank);
|
$("#bank").text(item.bank);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.type === "onStart") {
|
||||||
|
$("#characterInfoContainer").append('<label class="fourthRowText" style="margin-right: 18.2vw;" for="startingcash">Cash</label>');
|
||||||
|
$("#characterInfoContainer").append('<label class="fourthRowText" style="margin-right: 18.2vw;" for="startingbank">Bank</label>');
|
||||||
|
$("#characterInfoContainer").append('<input id="startingCash" class="fourthRowInput" style="margin-right: 4.2vw;" type="number" pattern="[0-9]+" placeholder="$2500" name="startingcash" required>');
|
||||||
|
$("#characterInfoContainer").append('<input id="startingBank" class="fourthRowInput" style="margin-right: 4.2vw;" type="number" pattern="[0-9]+" placeholder="$8000" name="startingbank" required>');
|
||||||
|
$("#startingBank").attr({
|
||||||
|
"max": item.maxStartingBank,
|
||||||
|
});
|
||||||
|
$("#startingCash").attr({
|
||||||
|
"max": item.maxStartingCash,
|
||||||
|
});
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
function createCharacter(firstName, lastName, dateOfBirth, gender, twtName, department, startingCash, startingBank, id) {
|
function createCharacter(firstName, lastName, dateOfBirth, gender, twtName, department, startingCash, startingBank, id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user