Skip to content

Commit

Permalink
Add documentation to SetStrategicUnderlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Jun 20, 2024
1 parent ab6c647 commit 183a6d8
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion engine/Sim/Unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ end

--- Sets the icon underlay to set texture.
--- Used in campaign to highlight objective targets.
---@param icon string
---@param icon 'icon_objective_primary' | 'icon_objective_secondary' | 'icon_objective_bonus' | string
function Unit:SetStrategicUnderlay(icon)
end

Expand Down
2 changes: 2 additions & 0 deletions lua/sim/Unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2324,6 +2324,8 @@ Unit = ClassUnit(moho.unit_methods, IntelComponent, VeterancyComponent) {
return false
end

self:SetStrategicUnderlay('icon_objective_support')

-- Create any idle effects on unit
if TrashEmpty(self.IdleEffectsBag) then
self:CreateIdleEffects()
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 183a6d8

Please sign in to comment.