Changed 'reset' to recheck for clarity.

develop
Mikhail 2023-09-18 13:41:02 +03:00
parent 7d3786586a
commit 8826c27fa0
3 changed files with 9 additions and 9 deletions

@ -17,7 +17,7 @@ Usage
manager orders. It will not clear the orders that already exist.
``orders clear``
Deletes all manager orders in the current embark.
``orders reset``
``orders recheck``
Invalidates manager orders forcing material conditions recheck.
``orders sort``
Sorts current manager orders by repeat frequency so repeating orders don't

@ -62,8 +62,8 @@ local function do_export()
}:show()
end
local function do_reset()
dfhack.run_command('orders', 'reset')
local function do_recheck()
dfhack.run_command('orders', 'recheck')
end
local function do_sort_type()
@ -107,10 +107,10 @@ function OrdersOverlay:init()
},
widgets.HotkeyLabel{
frame={t=0, l=15},
label='reset',
label='recheck',
key='CUSTOM_CTRL_R',
auto_width=true,
on_activate=do_reset,
on_activate=do_recheck,
},
widgets.HotkeyLabel{
frame={t=1, l=15},

@ -66,7 +66,7 @@ static command_result orders_clear_command(color_ostream & out);
static command_result orders_sort_command(color_ostream & out);
static command_result orders_sort_type_command(color_ostream & out);
static command_result orders_sort_material_command(color_ostream & out);
static command_result orders_reset_command(color_ostream & out);
static command_result orders_recheck_command(color_ostream & out);
static command_result orders_command(color_ostream & out, std::vector<std::string> & parameters)
{
@ -124,9 +124,9 @@ static command_result orders_command(color_ostream & out, std::vector<std::strin
return orders_sort_material_command(out);
}
if (parameters[0] == "reset" && parameters.size() == 1)
if (parameters[0] == "recheck" && parameters.size() == 1)
{
return orders_reset_command(out);
return orders_recheck_command(out);
}
return CR_WRONG_USAGE;
@ -1160,7 +1160,7 @@ static command_result orders_sort_material_command(color_ostream & out)
return CR_OK;
}
static command_result orders_reset_command(color_ostream & out)
static command_result orders_recheck_command(color_ostream & out)
{
for (auto it : world->manager_orders)
{