OpenTD.VisibilityManager Class Reference
Last update: 16.07.2025Public Member Functions | |
| void | DisplayAll () |
| Turn visibility on for all objects. Does not affect layers or global type controls. | |
| void | DisplayOnly (IEnumerable< string > handles) |
| Turn visibility on for objects identified by handles. Turn off visibility for all other others. Does not affect layers or global type controls. | |
| void | DisplayOnly (string handle) |
| Turn visibility one for object identified by handle. Turn off visibility for all other others. Does not affect layers or global type controls. | |
| void | SetVisibilityOn (IEnumerable< string > handles) |
| Turn on visibility for objects identified by handles. Does not affect layers or global type controls. | |
| void | SetVisibilityOn (string handle) |
| Turn on visibility for one object identified by handle. Does not affect layers or global type controls. | |
| void | SetVisibilityOff (IEnumerable< string > handles) |
| Turn off visibility for objects identified by handles. Does not affect layers or global type controls. | |
| void | SetVisibilityOff (string handle) |
| Turn off visibility for one object identified by handle. Does not affect layers or global type controls. | |
| void | SetIdsOn (IEnumerable< string > handles) |
| Turn on ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls. | |
| void | SetIdsOn (string handle) |
| Turn on ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls. | |
| void | SetIdsOff (IEnumerable< string > handles) |
| Turn off ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls. | |
| void | SetIdsOff (string handle) |
| Turn off ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls. | |
| List< bool > | GetVisibility (IEnumerable< string > handles) |
| Get list of bools for whether objects selected by handles are set to visible. Does not account for layers or global type controls. | |
| bool | GetVisibility (string handle) |
| Get bool for single object selected by handle is set to visible. Does not account for layers or global type controls. | |
| List< bool > | GetIdVisibility (IEnumerable< string > handles) |
| Get list of bools for whether IDs for objects selected by handles are visible. Does not account for layers or global type controls. Objects that cannot have IDs displayed will always return false. | |
| bool | GetIdVisibility (string handle) |
| Get bool for whether ID single object selected by handle is visible. Does not account for layers or global type controls. Objects that cannot have IDs displayed will always return false. | |
Member Function Documentation
◆ DisplayAll()
|
inline |
Turn visibility on for all objects. Does not affect layers or global type controls.
◆ DisplayOnly() [1/2]
|
inline |
Turn visibility on for objects identified by handles. Turn off visibility for all other others. Does not affect layers or global type controls.
- Parameters
-
handles
◆ DisplayOnly() [2/2]
|
inline |
Turn visibility one for object identified by handle. Turn off visibility for all other others. Does not affect layers or global type controls.
- Parameters
-
handle
◆ GetIdVisibility() [1/2]
|
inline |
Get list of bools for whether IDs for objects selected by handles are visible. Does not account for layers or global type controls. Objects that cannot have IDs displayed will always return false.
- Parameters
-
handles
- Returns
◆ GetIdVisibility() [2/2]
|
inline |
Get bool for whether ID single object selected by handle is visible. Does not account for layers or global type controls. Objects that cannot have IDs displayed will always return false.
- Parameters
-
handle
- Returns
◆ GetVisibility() [1/2]
|
inline |
Get list of bools for whether objects selected by handles are set to visible. Does not account for layers or global type controls.
- Parameters
-
handles
- Returns
◆ GetVisibility() [2/2]
|
inline |
Get bool for single object selected by handle is set to visible. Does not account for layers or global type controls.
- Parameters
-
handle
- Returns
◆ SetIdsOff() [1/2]
|
inline |
Turn off ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.
- Parameters
-
handles
◆ SetIdsOff() [2/2]
|
inline |
Turn off ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.
- Parameters
-
handle
◆ SetIdsOn() [1/2]
|
inline |
Turn on ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.
- Parameters
-
handles
◆ SetIdsOn() [2/2]
|
inline |
Turn on ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.
- Parameters
-
handle
◆ SetVisibilityOff() [1/2]
|
inline |
Turn off visibility for objects identified by handles. Does not affect layers or global type controls.
- Parameters
-
handles
◆ SetVisibilityOff() [2/2]
|
inline |
Turn off visibility for one object identified by handle. Does not affect layers or global type controls.
- Parameters
-
handle
◆ SetVisibilityOn() [1/2]
|
inline |
Turn on visibility for objects identified by handles. Does not affect layers or global type controls.
- Parameters
-
handles
◆ SetVisibilityOn() [2/2]
|
inline |
Turn on visibility for one object identified by handle. Does not affect layers or global type controls.
- Parameters
-
handle
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD/VisibilityManager.cs