mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Fix ignored clicks on HUD mini-map (Fixes #2388)
This commit is contained in:
parent
6d62aa7544
commit
a5847afdac
@ -671,4 +671,14 @@ namespace MWGui
|
|||||||
mEnemyHealthTimer = -1;
|
mEnemyHealthTimer = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HUD::customMarkerCreated(MyGUI::Widget *marker)
|
||||||
|
{
|
||||||
|
marker->eventMouseButtonClick += MyGUI::newDelegate(this, &HUD::onMapClicked);
|
||||||
|
}
|
||||||
|
|
||||||
|
void HUD::doorMarkerCreated(MyGUI::Widget *marker)
|
||||||
|
{
|
||||||
|
marker->eventMouseButtonClick += MyGUI::newDelegate(this, &HUD::onMapClicked);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -119,6 +119,10 @@ namespace MWGui
|
|||||||
void onMagicClicked(MyGUI::Widget* _sender);
|
void onMagicClicked(MyGUI::Widget* _sender);
|
||||||
void onMapClicked(MyGUI::Widget* _sender);
|
void onMapClicked(MyGUI::Widget* _sender);
|
||||||
|
|
||||||
|
// LocalMapBase
|
||||||
|
virtual void customMarkerCreated(MyGUI::Widget* marker);
|
||||||
|
virtual void doorMarkerCreated(MyGUI::Widget* marker);
|
||||||
|
|
||||||
void updateEnemyHealthBar();
|
void updateEnemyHealthBar();
|
||||||
|
|
||||||
void updatePositions();
|
void updatePositions();
|
||||||
|
@ -112,7 +112,8 @@
|
|||||||
<Property key="ImageTexture" value="textures\compass.dds"/>
|
<Property key="ImageTexture" value="textures\compass.dds"/>
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
<Widget type="Button" skin="" position="0 0 1536 1536" name="MiniMapButton" align="Right Bottom">
|
<Widget type="Button" skin="" position_real="0 0 1 1" name="MiniMapButton" align="Stretch">
|
||||||
|
<Property key="Depth" value="10"/>
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
</Widget>
|
</Widget>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user