MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsTransparencySet

Function IsTransparencySet

src/transparency.h:50–53  ·  view source on GitHub ↗

* Check if the transparency option bit is set * and if we aren't in the game menu (there's never transparency) * * @param to the structure which transparency option is ask for */

Source from the content-addressed store, hash-verified

48 * @param to the structure which transparency option is ask for
49 */
50inline bool IsTransparencySet(TransparencyOption to)
51{
52 return (HasBit(_transparency_opt, to) && _game_mode != GM_MENU);
53}
54
55/**
56 * Check if the invisibility option bit is set

Callers 15

DrawTile_IndustryFunction · 0.85
DrawWaterTileStructFunction · 0.85
ToolbarOptionsClickFunction · 0.85
DrawPillarFunction · 0.85
DrawBridgeRoadBitsFunction · 0.85
DrawTile_TunnelBridgeFunction · 0.85
DrawBridgeMiddleFunction · 0.85
OnClickMethod · 0.85
OnInvalidateDataMethod · 0.85
DrawTextEffectsFunction · 0.85
DoDrawVehicleFunction · 0.85
DrawTile_ObjectFunction · 0.85

Calls 1

HasBitFunction · 0.85

Tested by

no test coverage detected