22 #ifndef ULTIMA8_GUMPS_GAMEMAPGUMP_H 23 #define ULTIMA8_GUMPS_GAMEMAPGUMP_H 25 #include "ultima/ultima8/gumps/gump.h" 26 #include "ultima/ultima8/misc/classtype.h" 27 #include "ultima/ultima8/misc/point3.h" 43 ENABLE_RUNTIME_CLASSTYPE()
51 Point3 GetCameraLocation(
int lerp_factor = 256);
54 uint16
TraceObjId(int32 mx, int32 my)
override;
57 virtual uint16 TraceCoordinates(
int mx,
int my,
Point3 &coords,
58 int offsetx = 0,
int offsety = 0,
64 int32 lerp_factor = 256)
override;
72 Gump *onMouseDown(
int button, int32 mx, int32 my)
override;
73 void onMouseUp(
int button, int32 mx, int32 my)
override;
74 void onMouseClick(
int button, int32 mx, int32 my)
override;
75 void onMouseDouble(
int button, int32 mx, int32 my)
override;
77 void IncSortOrder(
int count);
82 static void Set_highlightItems(
bool highlight) {
83 _highlightItems = highlight;
85 static bool is_highlightItems() {
86 return _highlightItems;
88 static void toggleFootpads() {
89 _showFootpads = !_showFootpads;
92 void RenderSurfaceChanged()
override;
95 bool _displayDragging;
96 uint32 _draggingShape;
97 uint32 _draggingFrame;
98 uint32 _draggingFlags;
101 static bool _highlightItems;
102 static bool _showFootpads;
void DropItem(Item *item, int mx, int my) override
bool StartDraggingItem(Item *item, int mx, int my) override
Definition: render_surface.h:40
Definition: detection.h:27
bool GetLocationOfItem(uint16 itemid, int32 &gx, int32 &gy, int32 lerp_factor=256) override
void DraggingItemLeftGump(Item *item) override
Called when an item that was being dragged over the gump left the gump.
bool DraggingItem(Item *item, int mx, int my) override
Definition: item_sorter.h:36
uint16 TraceObjId(int32 mx, int32 my) override
Trace a click, and return ObjId.
void PaintThis(RenderSurface *surf, int32 lerp_factor, bool scaled) override
Overloadable method to Paint just this Gump (RenderSurface is relative to this)
Definition: game_map_gump.h:38
void StopDraggingItem(Item *item, bool moved) override