OpenTTD Source 20241224-master-gf74b0cf984
|
The transparency GUI. More...
#include "stdafx.h"
#include "window_gui.h"
#include "transparency.h"
#include "sound_func.h"
#include "settings_type.h"
#include "widgets/transparency_widget.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "safeguards.h"
Go to the source code of this file.
Data Structures | |
class | TransparenciesWindow |
Functions | |
void | ShowTransparencyToolbar () |
Show the transparency toolbar. | |
Variables | |
TransparencyOptionBits | _transparency_opt |
The bits that should be transparent. | |
TransparencyOptionBits | _transparency_lock |
Prevent these bits from flipping with X. | |
TransparencyOptionBits | _invisibility_opt |
The bits that should be invisible. | |
uint8_t | _display_opt |
What do we want to draw/do? | |
static constexpr NWidgetPart | _nested_transparency_widgets [] |
static WindowDesc | _transparency_desc (WDP_MANUAL, "toolbar_transparency", 0, 0, WC_TRANSPARENCY_TOOLBAR, WC_NONE, 0, _nested_transparency_widgets) |
The transparency GUI.
Definition in file transparency_gui.cpp.
void ShowTransparencyToolbar | ( | ) |
Show the transparency toolbar.
Definition at line 161 of file transparency_gui.cpp.
Referenced by MenuClickSettings(), and MainWindow::OnHotkey().
uint8_t _display_opt |
What do we want to draw/do?
Definition at line 26 of file transparency_gui.cpp.
Referenced by CheckClickOnViewportSign(), DrawRoadBits(), SignList::FilterSignList(), LoadNewGRF(), MenuClickSettings(), SignList::OwnerVisibilityFilter(), SwitchNewGRFBlitter(), and ToolbarOptionsClick().
TransparencyOptionBits _invisibility_opt |
The bits that should be invisible.
Definition at line 25 of file transparency_gui.cpp.
Referenced by TransparenciesWindow::DrawWidget(), IsInvisibilitySet(), ToggleInvisibility(), and ToggleInvisibilityWithTransparency().
|
staticconstexpr |
Definition at line 128 of file transparency_gui.cpp.
TransparencyOptionBits _transparency_lock |
Prevent these bits from flipping with X.
Definition at line 24 of file transparency_gui.cpp.
Referenced by TransparenciesWindow::DrawWidget(), ResetRestoreAllTransparency(), and ToggleTransparencyLock().
TransparencyOptionBits _transparency_opt |
The bits that should be transparent.
Definition at line 23 of file transparency_gui.cpp.
Referenced by NWidgetViewport::Draw(), IsInvisibilitySet(), IsTransparencySet(), ResetRestoreAllTransparency(), ToggleInvisibilityWithTransparency(), and ToggleTransparency().