Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.VisibilityManager Class Reference

Last update: 16.07.2025

Public 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()

void OpenTD.VisibilityManager.DisplayAll ( )
inline

Turn visibility on for all objects. Does not affect layers or global type controls.

◆ DisplayOnly() [1/2]

void OpenTD.VisibilityManager.DisplayOnly ( IEnumerable< string > handles)
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]

void OpenTD.VisibilityManager.DisplayOnly ( string handle)
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]

List< bool > OpenTD.VisibilityManager.GetIdVisibility ( IEnumerable< string > handles)
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]

bool OpenTD.VisibilityManager.GetIdVisibility ( string handle)
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]

List< bool > OpenTD.VisibilityManager.GetVisibility ( IEnumerable< string > handles)
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]

bool OpenTD.VisibilityManager.GetVisibility ( string handle)
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]

void OpenTD.VisibilityManager.SetIdsOff ( IEnumerable< string > handles)
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]

void OpenTD.VisibilityManager.SetIdsOff ( string handle)
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]

void OpenTD.VisibilityManager.SetIdsOn ( IEnumerable< string > handles)
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]

void OpenTD.VisibilityManager.SetIdsOn ( string handle)
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]

void OpenTD.VisibilityManager.SetVisibilityOff ( IEnumerable< string > handles)
inline

Turn off visibility for objects identified by handles. Does not affect layers or global type controls.

Parameters
handles

◆ SetVisibilityOff() [2/2]

void OpenTD.VisibilityManager.SetVisibilityOff ( string handle)
inline

Turn off visibility for one object identified by handle. Does not affect layers or global type controls.

Parameters
handle

◆ SetVisibilityOn() [1/2]

void OpenTD.VisibilityManager.SetVisibilityOn ( IEnumerable< string > handles)
inline

Turn on visibility for objects identified by handles. Does not affect layers or global type controls.

Parameters
handles

◆ SetVisibilityOn() [2/2]

void OpenTD.VisibilityManager.SetVisibilityOn ( string handle)
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

Connect with Ansys