|
|
@ -16,7 +16,6 @@
|
|
|
|
#include "df/viewscreen_joblistst.h"
|
|
|
|
#include "df/viewscreen_joblistst.h"
|
|
|
|
#include "df/viewscreen_unitlistst.h"
|
|
|
|
#include "df/viewscreen_unitlistst.h"
|
|
|
|
#include "df/viewscreen_layer_militaryst.h"
|
|
|
|
#include "df/viewscreen_layer_militaryst.h"
|
|
|
|
#include "df/viewscreen_layer_workshop_profilest.h"
|
|
|
|
|
|
|
|
#include "df/viewscreen_layer_noblelistst.h"
|
|
|
|
#include "df/viewscreen_layer_noblelistst.h"
|
|
|
|
#include "df/viewscreen_layer_overall_healthst.h"
|
|
|
|
#include "df/viewscreen_layer_overall_healthst.h"
|
|
|
|
#include "df/viewscreen_layer_assigntradest.h"
|
|
|
|
#include "df/viewscreen_layer_assigntradest.h"
|
|
|
@ -24,6 +23,7 @@
|
|
|
|
#include "df/viewscreen_dwarfmodest.h"
|
|
|
|
#include "df/viewscreen_dwarfmodest.h"
|
|
|
|
#include "df/viewscreen_petst.h"
|
|
|
|
#include "df/viewscreen_petst.h"
|
|
|
|
#include "df/viewscreen_storesst.h"
|
|
|
|
#include "df/viewscreen_storesst.h"
|
|
|
|
|
|
|
|
#include "df/viewscreen_workshop_profilest.h"
|
|
|
|
#include "df/layer_object_listst.h"
|
|
|
|
#include "df/layer_object_listst.h"
|
|
|
|
#include "df/assign_trade_status.h"
|
|
|
|
#include "df/assign_trade_status.h"
|
|
|
|
|
|
|
|
|
|
|
@ -310,23 +310,6 @@ DEFINE_SORT_HANDLER(unit_sorters, layer_military, "/Positions/Candidates", milit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
* Sort units in the workshop 'q'uery 'P'rofile modification screen.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEFINE_SORT_HANDLER(unit_sorters, layer_workshop_profile, "/Unit", profile)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
auto list1 = getLayerList(profile, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PARSE_SPEC("units", parameters);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (compute_order(*pout, L, top, &order, profile->workers))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
reorder_cursor(&list1->cursor, order);
|
|
|
|
|
|
|
|
reorder_vector(&profile->workers, order);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEFINE_SORT_HANDLER(unit_sorters, layer_noblelist, "/Appoint", nobles)
|
|
|
|
DEFINE_SORT_HANDLER(unit_sorters, layer_noblelist, "/Appoint", nobles)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
auto list2 = getLayerList(nobles, 1);
|
|
|
|
auto list2 = getLayerList(nobles, 1);
|
|
|
@ -443,6 +426,21 @@ DEFINE_SORT_HANDLER(unit_sorters, dwarfmode, "/QueryBuilding/Some/Assign", scree
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
* Sort units in the workshop 'q'uery 'P'rofile modification screen.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEFINE_SORT_HANDLER(unit_sorters, workshop_profile, "/Unit", profile)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
PARSE_SPEC("units", parameters);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (compute_order(*pout, L, top, &order, profile->workers))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
reorder_cursor(&profile->worker_idx, order);
|
|
|
|
|
|
|
|
reorder_vector(&profile->workers, order);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Sort pen assignment candidate units in 'z'->'N'.
|
|
|
|
* Sort pen assignment candidate units in 'z'->'N'.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|