Skip to content

Commit

Permalink
a bug fix with the character menu
Browse files Browse the repository at this point in the history
I didn't notice it
  • Loading branch information
FireRainV committed Feb 7, 2025
1 parent 3ad6236 commit 4deb9c4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/engine/game/world/ui/dark/darkcharactermenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,17 @@ function DarkCharacterMenu:selection(num)

if chr then
chr:addFX(OutlineFX(), "outline")
chr:getFX("outline"):setColor(chr.party:getColor())

local color = chr.party.color or {1, 1, 1}
chr:getFX("outline"):setColor(unpack(color))

local soul_color = chr.party.soul_color or {1, 0, 0}
self.heart_sprite:setColor(soul_color)
self.heart_sprite:setColor(chr.party:getSoulColor())
self.heart_sprite:setSprite("player/"..chr.party:getSoulFacing().."/heart")

local text = chr.party.title_extended or chr.party:getTitle() or "* Placeholder~"
self.text:setText(text)
else
self.text:setText("Empty")
self.heart_sprite:setColor({1, 0, 0})
self.heart_sprite:setScale(1)
self.heart_sprite:setSprite("player/up/heart")
end

self.target_x = self.bg.x + (self.selected) * 100
Expand Down

0 comments on commit 4deb9c4

Please sign in to comment.