From 79dd5a313f4f23418a835ab7a43ab6cbb49d5553 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 17 Mar 2023 09:55:04 -0700 Subject: [PATCH] rename Build button to Confirm and update docs --- docs/changelog.txt | 1 + docs/plugins/buildingplan.rst | 23 +++++++++++----------- plugins/lua/buildingplan/itemselection.lua | 12 +++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index b0ebc87f1..28f3ab904 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -47,6 +47,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: -@ `buildingplan`: can now filter by whether a slab is engraved -@ `buildingplan`: add "minimize" button to temporarily get the planner overlay out of the way if you would rather use the vanilla UI for placing the current building -@ `buildingplan`: add ``buildingplan reset`` command for resetting all filters to defaults +-@ `buildingplan`: rename "Build" button to "Confirm" on the item selection dialog and change the hotkey from "B" to "C" - `blueprint`: now writes blueprints to the ``dfhack-config/blueprints`` directory - `blueprint-library-guide`: library blueprints have moved from ``blueprints`` to ``hack/data/blueprints`` - player-created blueprints should now go in the ``dfhack-config/blueprints`` folder. please move your existing blueprints from ``blueprints`` to ``dfhack-config/blueprints``. you don't need to move the library blueprints -- those can be safely deleted from the old ``blueprints`` directory. diff --git a/docs/plugins/buildingplan.rst b/docs/plugins/buildingplan.rst index 378d3b140..ca33106f2 100644 --- a/docs/plugins/buildingplan.rst +++ b/docs/plugins/buildingplan.rst @@ -47,11 +47,14 @@ to build the planned buildings as they are produced, with minimal space dedicated to stockpiles. The DFHack `orders` library can help with setting these manager workorders up for you. -If you do not wish to use the ``buildingplan`` interface, you can turn off the +IF you don't want to use the ``buildingplan`` interface for the building you're +currently trying to place, you can hit :kbd:`Alt`:kbd:`M` or click on the +minimize toggle in the upper left corner of the panel. If you do not wish to +ever use the ``buildingplan`` interface, you can turn off the ``buildingplan.planner`` overlay in `gui/control-panel` (on the "Overlays" -tab). You should not disable the ``buildingplan`` "System service" in -`gui/control-panel` since existing planned buildings in loaded forts will stop -functioning. +tab). Be sure to keep the ``buildingplan`` "System service" itself enabled in +`gui/control-panel` since if you turn it off, existing planned buildings in +saved forts will stop functioning. Usage ----- @@ -119,12 +122,8 @@ tiles selected in the construction area are not appropriate for building. For example, if you want to fill an area with flooring, you can select the entire area, and any tiles with existing buildings or walls will simply be skipped. -Setting heat safety filters -+++++++++++++++++++++++++++ - -If you specifically need the building to be magma- or fire-safe, click on the -"Building safety" button or hit :kbd:`g` until the desired heat safety is -displayed. This filter applies to all items used to construct the building. +For weapon and spike traps, you can choose how many weapons will be included +on this panel. Setting quality and material filters ++++++++++++++++++++++++++++++++++++ @@ -165,8 +164,8 @@ name or selecting it with the arrow keys and hitting :kbd:`Enter`. You can instead select items one at a time by Ctrl-clicking (:kbd:`Shift`:kbd:`Right`) to increment or Ctrl-Shift-clicking (:kbd:`Shift`:kbd:`Left`) to decrement. -Once you are satisfied with your choices, click on the "Build" button or hit -:kbd:`B` to continue building. Note that you don't have to select all the items +Once you are satisfied with your choices, click on the "Confirm" button or hit +:kbd:`C` to continue building. Note that you don't have to select all the items that the building needs. Any remaining items will be automatically chosen from other available items (or future items if not all items are available yet). If there are multiple item types to choose for the current building, one dialog diff --git a/plugins/lua/buildingplan/itemselection.lua b/plugins/lua/buildingplan/itemselection.lua index 7e6567d04..8134b9455 100644 --- a/plugins/lua/buildingplan/itemselection.lua +++ b/plugins/lua/buildingplan/itemselection.lua @@ -76,13 +76,13 @@ function ItemSelection:init() }, }, widgets.Label{ - frame={r=0, w=9, t=0, h=3}, + frame={r=0, w=11, t=0, h=3}, text_pen=BUILD_TEXT_PEN, text_hpen=BUILD_TEXT_HPEN, text={ - ' ', NEWLINE, - ' Build ', NEWLINE, - ' ', + ' ', NEWLINE, + ' Confirm ', NEWLINE, + ' ', }, on_click=self:callback('submit'), }, @@ -115,8 +115,8 @@ function ItemSelection:init() }, widgets.HotkeyLabel{ frame={l=22, b=1}, - key='CUSTOM_SHIFT_B', - label='Build', + key='CUSTOM_SHIFT_C', + label='Confirm', auto_width=true, on_activate=self:callback('submit'), },