32 #include "render/graphics.h"
50 mScrollRadius(
config.getIntValue(
"ScrollRadius")),
51 mScrollLaziness(
config.getIntValue(
"ScrollLaziness")),
52 mScrollCenterOffsetX(
config.getIntValue(
"ScrollCenterOffsetX")),
53 mScrollCenterOffsetY(
config.getIntValue(
"ScrollCenterOffsetY")),
61 mShowBeingPopup(
config.getBoolValue(
"showBeingPopup")),
62 mSelfMouseHeal(
config.getBoolValue(
"selfMouseHeal")),
63 mEnableLazyScrolling(
config.getBoolValue(
"enableLazyScrolling")),
64 mMouseDirectionMove(
config.getBoolValue(
"mouseDirectionMove")),
65 mLongMouseClick(
config.getBoolValue(
"longmouseclick")),
67 mPlayerFollowMouse(false)
231 if (name ==
"ScrollLaziness")
233 else if (name ==
"ScrollRadius")
235 else if (name ==
"showBeingPopup")
237 else if (name ==
"selfMouseHeal")
239 else if (name ==
"enableLazyScrolling")
241 else if (name ==
"mouseDirectionMove")
243 else if (name ==
"longmouseclick")
void setOpaque(Opaque opaque)
void draw(Graphics *const graphics)
bool getBoolValue(const std::string &key) const
void addListener(const std::string &key, ConfigListener *const listener)
void removeListeners(ConfigListener *const listener)
int getIntValue(const std::string &key) const
Widget * getSource() const
virtual void fillRectangle(const Rect &rectangle)=0
virtual void setColor(const Color &color)
static uint8_t getMouseState(int &x, int &y)
bool openContextMenu(const MouseEvent &event)
bool mEnableLazyScrolling
void optionChanged(const std::string &name)
void mouseMoved(MouseEvent &event)
void mousePressed(MouseEvent &event)
void draw(Graphics *const graphics)
void walkByMouse(const MouseEvent &event)
void mouseDragged(MouseEvent &event)
void setMap(Map *const map)
void drawDebugPath(Graphics *const graphics)
void safeDraw(Graphics *const graphics)
void mouseReleased(MouseEvent &event)
#define BLOCK_START(name)