Class VisibilityManager
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
public class VisibilityManager
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
DisplayAll()
Turn visibility on for all objects. Does not affect layers or global type controls.
public void DisplayAll()
DisplayOnly(IEnumerable<string>)
Turn visibility on for objects identified by handles. Turn off visibility for all other others. Does not affect layers or global type controls.
public void DisplayOnly(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
DisplayOnly(string)
Turn visibility one for object identified by handle. Turn off visibility for all other others. Does not affect layers or global type controls.
public void DisplayOnly(string handle)
Parameters
handle string
GetIdVisibility(IEnumerable<string>)
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.
public List<bool> GetIdVisibility(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
Returns
GetIdVisibility(string)
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.
public bool GetIdVisibility(string handle)
Parameters
handle string
Returns
GetVisibility(IEnumerable<string>)
Get list of bools for whether objects selected by handles are set to visible. Does not account for layers or global type controls.
public List<bool> GetVisibility(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
Returns
GetVisibility(string)
Get bool for single object selected by handle is set to visible. Does not account for layers or global type controls.
public bool GetVisibility(string handle)
Parameters
handle string
Returns
SetIdsOff(IEnumerable<string>)
Turn off ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.
public void SetIdsOff(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
SetIdsOff(string)
Turn off ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.
public void SetIdsOff(string handle)
Parameters
handle string
SetIdsOn(IEnumerable<string>)
Turn on ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.
public void SetIdsOn(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
SetIdsOn(string)
Turn on ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.
public void SetIdsOn(string handle)
Parameters
handle string
SetVisibilityOff(IEnumerable<string>)
Turn off visibility for objects identified by handles. Does not affect layers or global type controls.
public void SetVisibilityOff(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
SetVisibilityOff(string)
Turn off visibility for one object identified by handle. Does not affect layers or global type controls.
public void SetVisibilityOff(string handle)
Parameters
handle string
SetVisibilityOn(IEnumerable<string>)
Turn on visibility for objects identified by handles. Does not affect layers or global type controls.
public void SetVisibilityOn(IEnumerable<string> handles)
Parameters
handles IEnumerable<string>
SetVisibilityOn(string)
Turn on visibility for one object identified by handle. Does not affect layers or global type controls.
public void SetVisibilityOn(string handle)
Parameters
handle string