Skip to content

Commit

Permalink
enable in the workshops' work order details screen
Browse files Browse the repository at this point in the history
  • Loading branch information
TymurGubayev committed Nov 5, 2023
1 parent bf055ab commit 85b92c0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions gui/job-details.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ JobDetails.ATTRS {

function JobDetails:isManagerOrder()
return self.context == df.job_details_context_type.MANAGER_WORK_ORDER
or self.context == df.job_details_context_type.BUILDING_WORK_ORDER
end

function JobDetails:init(args)
Expand Down Expand Up @@ -379,7 +380,9 @@ local function show_job_details()
or context == df.job_details_context_type.TASK_LIST_TASK
then
job = scr.jb
elseif context == df.job_details_context_type.MANAGER_WORK_ORDER then
elseif context == df.job_details_context_type.MANAGER_WORK_ORDER
or context == df.job_details_context_type.BUILDING_WORK_ORDER
then
job = scr.wq
end
if job == nil then
Expand Down Expand Up @@ -438,7 +441,10 @@ DetailsHotkeyOverlay_BuildingTask = defclass(DetailsHotkeyOverlay_BuildingTask,
DetailsHotkeyOverlay_BuildingTask.ATTRS{
default_pos={x=7, y=6},
frame={w=1000, h= 1}, -- we'll move the text inside the line, that's why it's w=1000
viewscreens='dwarfmode/JobDetails/BUILDING_TASK_LIST',
viewscreens={
'dwarfmode/JobDetails/BUILDING_TASK_LIST',
'dwarfmode/JobDetails/BUILDING_WORK_ORDER',
}
}

function DetailsHotkeyOverlay_BuildingTask:updateTextButtonFrame()
Expand Down

0 comments on commit 85b92c0

Please sign in to comment.