#include "gfx_func.h"
Go to the source code of this file.
Typedefs | |
| typedef uint | TransparencyOptionBits |
| transparency option bits | |
Enumerations | |
| enum | TransparencyOption { TO_SIGNS = 0, TO_TREES, TO_HOUSES, TO_INDUSTRIES, TO_BUILDINGS, TO_BRIDGES, TO_STRUCTURES, TO_CATENARY, TO_LOADING, TO_END } |
| Transparency option bits: which position in _transparency_opt stands for which transparency. More... | |
Functions | |
| static bool | IsTransparencySet (TransparencyOption to) |
| Check if the transparency option bit is set and if we aren't in the game menu (there's never transparency). | |
| static bool | IsInvisibilitySet (TransparencyOption to) |
| Check if the invisibility option bit is set and if we aren't in the game menu (there's never transparency). | |
| static void | ToggleTransparency (TransparencyOption to) |
| Toggle the transparency option bit. | |
| static void | ToggleInvisibility (TransparencyOption to) |
| Toggle the invisibility option bit. | |
| static void | ToggleInvisibilityWithTransparency (TransparencyOption to) |
| Toggles between invisible and solid state. | |
| static void | ToggleTransparencyLock (TransparencyOption to) |
| Toggle the transparency lock bit. | |
| static void | ResetRestoreAllTransparency () |
| Set or clear all non-locked transparency options. | |
Variables | |
| TransparencyOptionBits | _transparency_opt |
| TransparencyOptionBits | _transparency_lock |
| TransparencyOptionBits | _invisibility_opt |
Definition in file transparency.h.
| enum TransparencyOption |
Transparency option bits: which position in _transparency_opt stands for which transparency.
If you change the order, change the order of the ShowTransparencyToolbar() stuff in transparency_gui.cpp too. If you add or remove an option don't forget to change the transparency 'hot keys' in main_gui.cpp.
Definition at line 15 of file transparency.h.
| static bool IsInvisibilitySet | ( | TransparencyOption | to | ) | [inline, static] |
Check if the invisibility option bit is set and if we aren't in the game menu (there's never transparency).
| to | the structure which invisibility option is ask for |
Definition at line 50 of file transparency.h.
References HasBit().
Referenced by DrawBridgePillars(), DrawBridgeTramBits(), DrawTile_Road(), DrawTile_Town(), DrawTile_TunnelBridge(), DrawTramCatenary(), HasCatenaryDrawn(), and ToggleInvisibilityWithTransparency().
| static bool IsTransparencySet | ( | TransparencyOption | to | ) | [inline, static] |
Check if the transparency option bit is set and if we aren't in the game menu (there's never transparency).
| to | the structure which transparency option is ask for |
Definition at line 39 of file transparency.h.
References HasBit().
Referenced by DrawBridgePillars(), DrawBridgeTramBits(), DrawCatenary(), DrawCatenaryOnTunnel(), DrawCatenaryRailway(), DrawTile_Road(), DrawTile_Town(), DrawTile_TunnelBridge(), and DrawTramCatenary().
| static void ToggleInvisibility | ( | TransparencyOption | to | ) | [inline, static] |
Toggle the invisibility option bit.
| to | the structure which invisibility option is toggle |
Definition at line 70 of file transparency.h.
References ToggleBit().
| static void ToggleInvisibilityWithTransparency | ( | TransparencyOption | to | ) | [inline, static] |
Toggles between invisible and solid state.
If object is transparent, then it is made invisible. Used by the keyboard shortcuts.
| to | the object type which invisibility option to toggle |
Definition at line 82 of file transparency.h.
References ClrBit(), IsInvisibilitySet(), and SetBit().
| static void ToggleTransparency | ( | TransparencyOption | to | ) | [inline, static] |
Toggle the transparency option bit.
| to | the transparency option to be toggled |
Definition at line 60 of file transparency.h.
References ToggleBit().
| static void ToggleTransparencyLock | ( | TransparencyOption | to | ) | [inline, static] |
Toggle the transparency lock bit.
| to | the transparency option to be locked or unlocked |
Definition at line 98 of file transparency.h.
References ToggleBit().
1.5.6