Start working on business manager GUI
This commit is contained in:
@@ -6,4 +6,80 @@
|
|||||||
// FILE: bizmgr.js
|
// FILE: bizmgr.js
|
||||||
// DESC: Provides business manager GUI
|
// DESC: Provides business manager GUI
|
||||||
// TYPE: Client (JavaScript)
|
// TYPE: Client (JavaScript)
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
/*
|
||||||
|
class BusinessManagerData {
|
||||||
|
constructor(businessIndex, name, locked, entranceFee, buyPrice, rentPrice, floorItems, storageItems) {
|
||||||
|
this.businessIndex = businessIndex;
|
||||||
|
this.name = name;
|
||||||
|
this.locked = locked;
|
||||||
|
this.entranceFee = entranceFee;
|
||||||
|
this.buyPrice = buyPrice;
|
||||||
|
this.rentPrice = rentPrice;
|
||||||
|
this.till = till;
|
||||||
|
this.ownerName = ownerName;
|
||||||
|
this.floorItems = floorItems;
|
||||||
|
this.storageItems = storageItems;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
let businessManager = {
|
||||||
|
window: null,
|
||||||
|
generalTabButton: null,
|
||||||
|
floorItemsTab: null,
|
||||||
|
storageItemsTab: null,
|
||||||
|
orderItemsTab: null,
|
||||||
|
data: null,
|
||||||
|
|
||||||
|
// General Tab
|
||||||
|
businessName: null,
|
||||||
|
businessOwnerName: null,
|
||||||
|
businessEntranceFee: null,
|
||||||
|
businessBuyPrice: null,
|
||||||
|
businessRentPrice: null,
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function initBusinessManagerGUI() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function showBusinessManagerGUI() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function hideBusinessManagerGUI() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function updateBusinessManagerGUIStrings() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function receiveBusinessManagerData(businessIndex, name, locked, entranceFee, buyPrice, rentPrice, floorItems, storageItems) {
|
||||||
|
let businessManagerData = new BusinessManagerData(businessIndex, name, locked, entranceFee, buyPrice, rentPrice, floorItems, storageItems);
|
||||||
|
businessManager.data = businessManagerData;
|
||||||
|
updateBusinessManagerGUIStrings();
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function saveBusinessData() {
|
||||||
|
sendNetworkEventToServer("agrp.businessManagerSave", businessManager.data.businessIndex);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user