ClassicCityBuilderKit 1.9.1
|
base class for tools that are managed by ToolsManager
gets activated, deactivated, has a cost, ...
in general tools are buttons in the UI that can be clicked to interact with the game world using the pointer
for exmaple placing or demolishing buildings and structures
Public Member Functions | |
virtual void | ActivateTool () |
virtual void | DeactivateTool () |
virtual int | GetCost (Item item) |
![]() | |
void | OnPointerEnter (PointerEventData eventData) |
void | OnPointerExit (PointerEventData eventData) |
Public Attributes | |
View | View |
ToolEvent | Activating |
ToolEvent | Applied |
Protected Member Functions | |
void | onApplied () |
virtual void | updateTool () |
![]() | |
virtual void | OnDisable () |
void | enter () |
void | exit () |
Properties | |
virtual bool | ShowGrid [get] |
whether the IGridOverlay gets shown for this tool | |
virtual bool | IsTouchPanAllowed [get] |
whether the camera can be panned by touch drag | |
bool | IsToolActive [get] |
bool | IsTouchActivated [get] |
![]() | |
virtual string | TooltipName [get] |
main text in the tooltip | |
virtual string | TooltipDescription [get] |
smaller but potentially longer text below the main text | |
![]() |
Additional Inherited Members | |
![]() | |
bool | _isPointerInside |