#include <ICmpSelectable.h>
|
static void | SetOverrideVisibility (bool visible) |
| Enables or disables rendering of all entities selectable. More...
|
|
static std::string | GetSchema () |
|
static void | RegisterComponentType (CComponentManager &mgr, EInterfaceId iid, EComponentTypeId cid, AllocFunc alloc, DeallocFunc dealloc, const char *name, const std::string &schema) |
|
static void | RegisterComponentTypeScriptWrapper (CComponentManager &mgr, EInterfaceId iid, EComponentTypeId cid, AllocFunc alloc, DeallocFunc dealloc, const char *name, const std::string &schema) |
|
static u8 | GetSerializationVersion () |
|
◆ IsEditorOnly()
virtual bool ICmpSelectable::IsEditorOnly |
( |
| ) |
const |
|
pure virtual |
Returns true if the entity is only selectable in Atlas editor, e.g.
a decorative visual actor.
Implemented in CCmpSelectable.
◆ SetOverrideVisibility()
static void ICmpSelectable::SetOverrideVisibility |
( |
bool |
visible | ) |
|
|
inlinestatic |
Enables or disables rendering of all entities selectable.
- Parameters
-
visible | Whether the selectable should be visible. |
◆ SetSelectionHighlight()
virtual void ICmpSelectable::SetSelectionHighlight |
( |
const CColor & |
color, |
|
|
bool |
selected |
|
) |
| |
|
pure virtual |
Sets the selection highlight state.
The highlight is typically a circle/square overlay around the unit.
- Parameters
-
color | color and alpha of the selection highlight. Set color.a = 0 to hide the highlight. |
selected | whether the entity is selected; affects desaturation for always visible highlights. |
Implemented in CCmpSelectable.
◆ SetSelectionHighlightAlpha()
virtual void ICmpSelectable::SetSelectionHighlightAlpha |
( |
float |
alpha | ) |
|
|
pure virtual |
Sets the alpha of the selection highlight.
Set to 0 to hide the highlight.
Implemented in CCmpSelectable.
◆ SetVisibility()
virtual void ICmpSelectable::SetVisibility |
( |
bool |
visible | ) |
|
|
pure virtual |
Enables or disables rendering of an entity's selectable.
- Parameters
-
visible | Whether the selectable should be visible. |
Implemented in CCmpSelectable.
◆ UpdateColor()
virtual void ICmpSelectable::UpdateColor |
( |
| ) |
|
|
pure virtual |
Updates the selection color to match the current owner.
Implemented in CCmpSelectable.
◆ m_OverrideVisible
bool ICmpSelectable::m_OverrideVisible = true |
|
staticprotected |
◆ ms_EnableDebugOverlays
bool ICmpSelectable::ms_EnableDebugOverlays = false |
|
static |
The documentation for this class was generated from the following files:
- /home/docker/jenkins/workspace/technical-docs/source/simulation2/components/ICmpSelectable.h
- /home/docker/jenkins/workspace/technical-docs/source/simulation2/components/ICmpSelectable.cpp