![]() |
TilePlus Version 5
Unity3D Tilemap Extension
|
Customized Zone Action to implement Radio Buttons. More...


Public Member Functions | |
| override bool | Exec (TilePlusBase sourceInstance, Type? targetType, string tagString, ObjectPacket.EventsPropagationMode eventPropagationMode=ObjectPacket.EventsPropagationMode.None, string optionalString="", int optionalInt=0, bool optionalBool=false, object? optionalObject=null) |
| This ZoneAction emulates a RadioButton set in one of two mutually exclusive ways: | |
Additional Inherited Members | |
| Public Attributes inherited from TilePlus.TpTileZoneAction | |
| ScriptableObject? | m_Subasset |
| A subasset: optional. | |
| Static Public Attributes inherited from TilePlus.TpTileZoneAction | |
| const string | Command_ZoneAction = "ZONE_ACTION" |
| Name used for info string in the ObjectPacket sent to targets. | |
Customized Zone Action to implement Radio Buttons.
|
virtual |
This ZoneAction emulates a RadioButton set in one of two mutually exclusive ways:
Use whatever method works for you. If the tiles are more-or-less adjacent use a zone. If they're not, use tags. It only works if the target and source are both UiControls derived from TpSlideShow.
Messages other tiles. Fetches the Zone Bounds from a tile. Messages tiles which implement IZoneActionTarget, and have an explicit implementation of an ObjectPacket message target. Note the different way that the 'zone' is used. For TpZoneSlideShow the zone is used to demark which tiles will be messaged. For others, such as TpZoneAnimator or TpAnimZoneLoader or TpAnimZoneSpawner, the zone is used to detect when a supplied grid coordinate is contained within the zone with the intent of some sort of state change.
| sourceInstance | TilePlus tile that's calling this method |
| tagString | optional tags for targets |
| targetType | Type of tile to target. If null, all types. |
| optionalString | Optional string value for packet |
| optionalInt | Optional int value for packet |
| optionalBool | Optional bool value for packet. |
| eventPropagationMode | how receipients of the messages sent by this should or should not propagate the event. |
| optionalObject | optional object value for packet. |
Reimplemented from TilePlus.TpTileZoneAction.