Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions scripts/ai/parameters/CpAIParameterUnloadingStation.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
--- Parameter to selected an unloading station.
---@class CpAIParameterUnloadingStation : AIParameterSettingList
CpAIParameterUnloadingStation = CpObject(AIParameterSettingList)

function CpAIParameterUnloadingStation:init(data, vehicle, class)
AIParameterSettingList.init(self, data, vehicle, class)
self.guiParameterType = AIParameterType.UNLOADING_STATION
return self
end

function CpAIParameterUnloadingStation:clone(...)
return CpAIParameterUnloadingStation(self.data,...)
end
Expand Down
5 changes: 4 additions & 1 deletion scripts/gui/pages/CpCourseGeneratorFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,10 @@ function CpCourseGeneratorFrame:setActiveJobTypeSelection(jobTypeIndex)
element = self.createPositionTemplate:clone(self.jobMenuLayout)
elseif parameterType == AIParameterType.POSITION_ANGLE then
element = self.createPositionRotationTemplate:clone(self.jobMenuLayout)
elseif parameterType == AIParameterType.SELECTOR or parameterType == AIParameterType.UNLOADING_STATION or parameterType == AIParameterType.LOADING_STATION or parameterType == AIParameterType.FILLTYPE then
elseif parameterType == AIParameterType.SELECTOR or
parameterType == AIParameterType.LOADING_STATION or
parameterType == AIParameterType.FILLTYPE then

element = self.createMultiOptionTemplate:clone(self.jobMenuLayout)

element:setDataSource(item)
Expand Down