From 01670a29fc0e4ad90a8c1e530a5e5966e051086f Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 29 Sep 2022 11:08:57 -0500 Subject: [PATCH] Start working on business manager GUI --- scripts/client/gui/bizmgr.js | 76 ++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/scripts/client/gui/bizmgr.js b/scripts/client/gui/bizmgr.js index 717eda31..27c80221 100644 --- a/scripts/client/gui/bizmgr.js +++ b/scripts/client/gui/bizmgr.js @@ -6,4 +6,80 @@ // FILE: bizmgr.js // DESC: Provides business manager GUI // 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); +} +*/ + // =========================================================================== \ No newline at end of file