Skip to content

Commit

Permalink
Add missing staged files for ab6c647
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Jun 20, 2024
1 parent 183a6d8 commit ddd15d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 11 additions & 2 deletions engine/Sim/Unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,17 @@ end
function Unit:SetStat(name, value)
end

--- Sets the icon underlay to set texture.
--- Used in campaign to highlight objective targets.
--- Sets the icon underlay to a given texture.
---
--- The provided string is used as a lookup to find the relevant textures in `fa/textures/ui/common/game/strategicicons`. It ends up using:
---
--- - fa/textures/ui/common/game/strategicicons/x_over.dds
--- - fa/textures/ui/common/game/strategicicons/x_rest.dds
--- - fa/textures/ui/common/game/strategicicons/x_selected.dds
--- - fa/textures/ui/common/game/strategicicons/x_selectedover.dds
---
--- Where `x` is the string provided.
--- Often used in campaign to highlight objective targets.
---@param icon 'icon_objective_primary' | 'icon_objective_secondary' | 'icon_objective_bonus' | string
function Unit:SetStrategicUnderlay(icon)
end
Expand Down
2 changes: 0 additions & 2 deletions lua/sim/Unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2324,8 +2324,6 @@ 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

0 comments on commit ddd15d8

Please sign in to comment.