ORK Framework  2.34.1
API Documentation
ORKFramework.Shop.ShopScreen Class Reference
Inheritance diagram for ORKFramework.Shop.ShopScreen:
ORKFramework.IChoice ORKFramework.IDragOrigin ORKFramework.IQuantityCallback ORKFramework.IInventoryExchange ORKFramework.Events.IEventStarter ORKFramework.IChoiceSimple

Public Member Functions

 ShopScreen (IEventStarter starter, int shopID, string shopSceneID, int factionID)
 
virtual int GetModifiedBuyPrice (Combatant combatant, int buyPrice)
 
virtual int GetModifiedSellPrice (Combatant combatant, int sellPrice)
 
virtual void SetItemShop (List< ShopWrapperShortcut > list)
 
void SetTimestamp (ITimestamp shortcut)
 
virtual SortOption GetCurrentSortingOption ()
 
virtual List< ShopWrapperShortcutGetSellable ()
 
virtual bool HasSellable ()
 
virtual bool HasBuyable ()
 
virtual bool ShowOKButton (GUIBox origin)
 
virtual bool ShowCancelButton (GUIBox origin)
 
virtual bool IsOKButtonActive (GUIBox origin)
 
virtual bool IsCancelButtonActive (GUIBox origin)
 
virtual bool Tick (GUIBox origin)
 
virtual bool UnfocusedTick (GUIBox origin)
 
virtual bool NotControlableTick (GUIBox origin)
 
virtual void FocusGained (GUIBox origin)
 
virtual void FocusLost (GUIBox origin)
 
virtual bool IsFocused ()
 
virtual void OutOfBoxClick (GUIBox origin)
 
virtual void Show ()
 
virtual void Refresh ()
 
virtual void Close ()
 
virtual void Closed (GUIBox origin)
 
virtual void ChoiceSelected (int index, GUIBox origin)
 
virtual void SelectionChanged (int index, GUIBox origin)
 
virtual void Canceled (GUIBox origin)
 
virtual void Dropped (DragInfo drag)
 
virtual bool DroppedOnCombatant (Combatant c, DragInfo drag)
 
virtual bool DroppedToWorld (Vector3 position, DragInfo drag)
 
virtual void QuantityCallback (IShortcut shortcut, int quantity, QuantitySelectionMode mode)
 
virtual bool BuyAbility (IShortcut shortcut, bool showNotification, bool showConsole, bool markNewContent)
 
virtual bool BuyCombatant (IShortcut shortcut, bool showNotification, bool showConsole, bool markNewContent)
 
virtual bool BuyQuest (IShortcut shortcut, bool showNotification, bool showConsole, bool markNewContent)
 
virtual Combatant GetOwner ()
 
virtual IContentSimple GetContent ()
 
virtual void CheckDataChanged (bool checkItems, bool checkWeapons, bool checkArmors, bool checkAIBehaviours, bool checkAIRulesets, bool checkCraftingRecipes)
 
virtual void FireChanged ()
 
virtual void GetItemTypes (int parentType, ref List< int > list, bool onlySellable, bool addMoney, bool addEmptyMoney, bool addItems, bool addWeapons, bool addArmor, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes)
 
virtual bool HasNewItemTypes (bool checkParent, List< int > types, bool onlySellable, bool addItems, bool addWeapons, bool addArmor, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes)
 
virtual bool HasItemType (bool checkParent, int typeID, bool onlySellable, bool addMoney, bool addEmptyMoney, bool addItems, bool addWeapons, bool addArmor, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes, bool checkNewContent)
 
virtual void GetAll (bool addMoney, bool addEmptyMoney, bool addItems, bool addWeapons, bool addArmor, bool addAIBehaviours, bool addAIRulesets, bool addCraftingRecipes, int typeID, bool checkParent, ref List< IInventoryShortcut > list)
 
virtual bool AddAccess (IShortcut shortcut, bool showNotification, bool showConsole, bool markNewContent)
 
virtual void RemoveAccess (IShortcut shortcut, int quantity, bool showNotification, bool showConsole)
 
virtual void DropAccess (IShortcut shortcut, int quantity, bool showNotification, bool showConsole)
 
virtual bool CanCollect (IShortcut item, int quantity)
 
virtual int GetAllowedQuantity (IShortcut shortcut, int quantity)
 
virtual int GetCount (IShortcut shortcut)
 
virtual bool HasEnoughMoney (int id, int quantity)
 
virtual int GetMoney (int id)
 
virtual void AddMoneyAccess (int id, int quantity, bool showNotification, bool showConsole)
 
virtual void SubMoneyAccess (int id, int quantity, bool showNotification, bool showConsole)
 
virtual void EventEnded ()
 
virtual void DontDestroy ()
 
virtual void OnSceneLoaded ()
 

Protected Member Functions

virtual void Register ()
 
virtual void Unregister ()
 
virtual void ChangeInfoPage (int change)
 
virtual void ChangeUserInfoPage (int change)
 
virtual void ChangeBuyCombatantInfoPage (int change)
 
virtual void ShowBackground ()
 
virtual void CloseBackground ()
 
virtual void CloseShop ()
 
virtual void ShowNameBox ()
 
virtual void ShowBuySell ()
 
virtual void ShowMode (ShopMode mode)
 
virtual void ShowTypes ()
 
virtual void ShowItems ()
 
virtual void ShowDescription (string desc, string name, GUIBox origin)
 
virtual void ShowBuyCombatantInfo ()
 
virtual void Cancel (GUIBox origin)
 
virtual void CloseItemSelection ()
 
virtual void CreateTypeChoices (List< ShopWrapperShortcut > list)
 
virtual void CreateItemChoices (List< ShopWrapperShortcut > list, bool sort)
 
virtual void MarkNewContent (ShopWrapperShortcut shortcut)
 
virtual bool CheckSpace (float space, bool add)
 
virtual void RecalculateSpace ()
 
virtual bool AddToList (ShopWrapperShortcut item)
 
virtual int GetAllowedCount (IShortcut shortcut)
 

Protected Attributes

string shopSceneID = ""
 
IEventStarter starter
 
Combatant combatant
 
bool locked = false
 
ShopSetting setting
 
ShopLayout layout
 
MenuScreen menuScreen
 
float buyMod = 1
 
float sellMod = 1
 
GUIBox [] bgBox
 
GUIBox nameBox
 
GUIBox buySellBox
 
GUIBox typeBox
 
GUIBox listBox
 
GUIBox descriptionBox
 
GUIBox infoBox
 
GUIBox userInfoBox
 
GUIBox buyCombatantInfoBox
 
ShopData shopData
 
List< ShopWrapperShortcutitemList
 
bool itemListSorted = false
 
int currentBS = 0
 
ShopMode mode = ShopMode.Buy
 
bool closeFlag = false
 
bool closeItemSel = false
 
List< int > sellItemTypes
 
ChoiceContent [] typeChoice
 
int [] typeAction
 
int currentType = 0
 
ChoiceContent [] itemChoice
 
List< ShopWrapperShortcutitems
 
int currentItem = 0
 
int infoPage = 0
 
int userInfoPage = 0
 
int buyCombatantInfoPage = 0
 
bool transactionHappened = false
 
QuantitySelection openQuantitySelection
 
Notify changedHandler
 

Properties

virtual bool Locked [get, set]
 
virtual Combatant User [get, set]
 
virtual ShopSetting Setting [get]
 
virtual ShopLayout Layout [get]
 
virtual bool IsBuyAll [get]
 
virtual bool IsSellAll [get]
 
float LastTimestamp [get, set]
 
float Space [get]
 
float TotalSpace [get]
 
virtual bool IsEmpty [get]
 
Notify Changed
 
virtual GameObject GameObject [get]
 
- Properties inherited from ORKFramework.IInventoryExchange
float Space [get]
 
float TotalSpace [get]
 
bool IsEmpty [get]
 
- Properties inherited from ORKFramework.Events.IEventStarter
GameObject GameObject [get]
 

Additional Inherited Members

- Events inherited from ORKFramework.IInventoryExchange
Notify Changed