![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"#include "CGUI.h"#include "graphics/Canvas2D.h"#include "graphics/Color.h"#include "gui/CGUISetting.h"#include "gui/CGUISprite.h"#include "gui/GUIObjectEventBroadcaster.h"#include "gui/IGUIScrollBar.h"#include "gui/ObjectBases/IGUIObject.h"#include "gui/ObjectTypes/CGUIDummyObject.h"#include "gui/ObjectTypes/CTooltip.h"#include "gui/Scripting/JSInterface_GUIProxy.h"#include "gui/Scripting/ScriptFunctions.h"#include "gui/SettingTypes/CGUISize.h"#include "i18n/L10n.h"#include "lib/bits.h"#include "lib/debug.h"#include "lib/external_libraries/libsdl.h"#include "lib/file/vfs/vfs_util.h"#include "lib/path.h"#include "lib/timer.h"#include "lib/utf8.h"#include "maths/Size2D.h"#include "network/NetClient.h"#include "ps/CLogger.h"#include "ps/Errors.h"#include "ps/Filesystem.h"#include "ps/GameSetup/Config.h"#include "ps/Hotkey.h"#include "ps/VideoMode.h"#include "ps/XMB/XMBData.h"#include "ps/XML/Xeromyces.h"#include "ps/algorithm.h"#include "renderer/backend/Sampler.h"#include "scriptinterface/FunctionWrapper.h"#include "scriptinterface/Object.h"#include "scriptinterface/Exceptions.h"#include "scriptinterface/Interface.h"#include "scriptinterface/Request.h"#include <algorithm>#include <js/CallAndConstruct.h>#include <js/Promise.h>#include <optional>#include <SDL_events.h>#include <SDL_mouse.h>#include <stdexcept>#include <string>#include <tuple>#include <unordered_map>#include <unordered_set>#include <utility>Macros | |
| #define | ELMT(x) int elmt_##x = xmb.GetElementID(#x) |
| #define | ATTR(x) int attr_##x = xmb.GetAttributeID(#x) |
| #define | ELMT(x) int elmt_##x = xmb.GetElementID(#x) |
| #define | ATTR(x) int attr_##x = xmb.GetAttributeID(#x) |
Variables | |
| const double | SELECT_DBLCLICK_RATE = 0.5 |
| const std::uint32_t | MAX_OBJECT_DEPTH = 100 |
| #define ATTR | ( | x | ) | int attr_##x = xmb.GetAttributeID(#x) |
| #define ATTR | ( | x | ) | int attr_##x = xmb.GetAttributeID(#x) |
| #define ELMT | ( | x | ) | int elmt_##x = xmb.GetElementID(#x) |
| #define ELMT | ( | x | ) | int elmt_##x = xmb.GetElementID(#x) |
| const std::uint32_t MAX_OBJECT_DEPTH = 100 |
| const double SELECT_DBLCLICK_RATE = 0.5 |