35 lines
973 B
C++
35 lines
973 B
C++
#ifndef CMEXT_HOTKEYS_HPP
|
|
#define CMEXT_HOTKEYS_HPP
|
|
|
|
#include "../window_type.h"
|
|
|
|
namespace citymania {
|
|
|
|
extern bool _fn_mod;
|
|
extern bool _estimate_mod;
|
|
extern bool _remove_mod;
|
|
|
|
enum class ToolRemoveMode : uint8 {
|
|
NONE = 0,
|
|
BUTTON = 1,
|
|
MOD = 2,
|
|
};
|
|
|
|
void UpdateModKeys(bool shift_pressed, bool ctrl_pressed, bool alt_pressed);
|
|
|
|
bool RailToolbar_IsRemoveInverted(int widget);
|
|
void RailToolbar_UpdateRemoveWidgetStatus(Window *w, int widged, bool remove_active);
|
|
bool RailToolbar_RemoveModChanged(Window *w, bool invert_remove, bool remove_active, bool button_clicked);
|
|
|
|
ToolRemoveMode RoadToolbar_GetRemoveMode(int widget);
|
|
void RoadToolbar_UpdateOptionWidgetStatus(Window *w, int widget, bool remove_active, bool is_road);
|
|
bool RoadToolbar_RemoveModChanged(Window *w, bool remove_active, bool button_clicked, bool is_road);
|
|
|
|
void CountEffectiveAction();
|
|
void ResetEffectivveActionCounter();
|
|
std::pair<uint32, uint32> GetEPM();
|
|
|
|
} // namespace citymania
|
|
|
|
#endif
|