Loading...
Searching...
No Matches
CityBuilderCore.InventoryVisualizer Class Reference

Detailed Description

visualizes the quantity of an item in unity UI

https://citybuilder.softleitner.com/manual/resources

Inheritance diagram for CityBuilderCore.InventoryVisualizer:
CityBuilderCore.TooltipOwnerBase CityBuilderCore.ITooltipOwner

Public Types

enum  InventoryMode {
  Global = 0 , Stored = 10 , Owned = 20 , OwnedBuildings = 21 ,
  OwnedWalkers = 22 , Store = 30
}
 determines how the visualized quantity is calculated More...
 

Public Attributes

Item Item
 
InventoryMode Mode
 
TMPro.TMP_Text Text
 
TMPro.TMP_Text TextCost
 
ItemStore Store
 

Properties

override string TooltipName [get]
 main text in the tooltip
 
- Properties inherited from CityBuilderCore.TooltipOwnerBase
virtual string TooltipName [get]
 main text in the tooltip
 
virtual string TooltipDescription [get]
 smaller but potentially longer text below the main text
 
- Properties inherited from CityBuilderCore.ITooltipOwner

Additional Inherited Members

- Public Member Functions inherited from CityBuilderCore.TooltipOwnerBase
void OnPointerEnter (PointerEventData eventData)
 
void OnPointerExit (PointerEventData eventData)
 
- Protected Member Functions inherited from CityBuilderCore.TooltipOwnerBase
virtual void OnDisable ()
 
void enter ()
 
void exit ()
 
- Protected Attributes inherited from CityBuilderCore.TooltipOwnerBase
bool _isPointerInside
 

Member Enumeration Documentation

◆ InventoryMode

determines how the visualized quantity is calculated

Enumerator
Global 

gets quantity from IGlobalStorage

Stored 

sums up quantities in all IStorageComponents

Owned 

sums up quantities in all IItemOwners

OwnedBuildings 

sums up quantities in IItemOwner buildings

OwnedWalkers 

sums up quantities in IItemOwner walkers

Store 

gets quantity from a specific ItemStore

Property Documentation

◆ TooltipName

override string CityBuilderCore.InventoryVisualizer.TooltipName
get

main text in the tooltip

Implements CityBuilderCore.ITooltipOwner.