Skip to content

Commit

Permalink
also scale iconTint
Browse files Browse the repository at this point in the history
  • Loading branch information
lemz1 committed Nov 10, 2024
1 parent 60c809e commit 701adfb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ class CharSelectIndexSubPage extends FlxSpriteGroup

iconTint.x = selectedIcon.x;
iconTint.y = selectedIcon.y;
iconTint.scale.set(selectedIcon.scale.x, selectedIcon.scale.y);

parentPage.selectedIndexData = cursorIndex;
FlxG.sound.play(Paths.sound('CS_confirm'));
Expand Down Expand Up @@ -359,5 +360,9 @@ class CharSelectIndexSubPage extends FlxSpriteGroup
}
}
}

var selectedIcon = grpIcons.members[parentPage.selectedIndexData];

iconTint.scale.set(selectedIcon.scale.x, selectedIcon.scale.y);
}
}

0 comments on commit 701adfb

Please sign in to comment.