We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4034df3 commit df244aaCopy full SHA for df244aa
1 file changed
plugins/mousequery.cpp
@@ -28,7 +28,7 @@ using namespace df::enums::ui_sidebar_mode;
28
29
DFHACK_PLUGIN("mousequery");
30
31
-#define PLUGIN_VERSION 0.17
+#define PLUGIN_VERSION 0.18
32
33
static int32_t last_clicked_x, last_clicked_y, last_clicked_z;
34
static int32_t last_pos_x, last_pos_y, last_pos_z;
@@ -539,6 +539,13 @@ struct mousequery_hook : public df::viewscreen_dwarfmodest
539
if (mx < 1 || mx > right_margin - 2 || my < 1 || my > gps->dimy - 2)
540
mpos_valid = false;
541
542
+ // Check if in lever binding mode
543
+ if (Gui::getFocusString(Core::getTopViewscreen()) ==
544
+ "dwarfmode/QueryBuilding/Some/Lever/AddJob")
545
+ {
546
+ return;
547
+ }
548
+
549
if (mpos_valid)
550
{
551
if (mpos.x != last_move_pos.x || mpos.y != last_move_pos.y || mpos.z != last_move_pos.z)
0 commit comments