Skip to content

Commit

Permalink
Prevent stockpiles hotkey label from overlapping with autodump
Browse files Browse the repository at this point in the history
stockflow moved to last slot because it isn't enabled in dfhack.init-example

Ref #1764
  • Loading branch information
lethosor committed Jan 31, 2021
1 parent 9c65c1f commit fd7c3fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/stockflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class LuaHelper {
auto dims = Gui::getDwarfmodeViewDims();
int left_margin = dims.menu_x1 + 1;
int x = left_margin;
int y = dims.y2 - 3;
int y = dims.y2 - 2; // below autodump, automelt, autotrade, stocks, stockpiles

int links = 0;
links += sp->links.give_to_pile.size();
Expand Down
2 changes: 1 addition & 1 deletion plugins/stockpiles/stockpiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ struct stockpiles_import_hook : public df::viewscreen_dwarfmodest
auto dims = Gui::getDwarfmodeViewDims();
int left_margin = dims.menu_x1 + 1;
int x = left_margin;
int y = dims.y2 - 7; // above automelt, autotrade, stocks, and stockflow
int y = dims.y2 - 3; // below autodump, automelt, autotrade, stocks; above stockflow
OutputHotkeyString ( x, y, "Load/Save Settings", "l", true, left_margin, COLOR_WHITE, COLOR_LIGHTRED );
}
};
Expand Down

0 comments on commit fd7c3fc

Please sign in to comment.