84 lines
2.4 KiB
JavaScript
84 lines
2.4 KiB
JavaScript
// ===========================================================================
|
|
// Vortrex's Roleplay Resource
|
|
// https://github.com/VortrexFTW/v-roleplay
|
|
// ===========================================================================
|
|
// 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("v.rp.businessManagerSave", businessManager.data.businessIndex);
|
|
}
|
|
*/
|
|
|
|
// ===========================================================================
|