Skip to content

Commit 219eb87

Browse files
committed
Align x positions of Chart Editor waveforms to the center of the health icons
1 parent 607abc1 commit 219eb87

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/funkin/ui/debug/charting/ChartEditorState.hx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5784,17 +5784,15 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
57845784
if (healthIconBF != null)
57855785
{
57865786
// Base X position to the right of the grid.
5787-
var xOffset = 45 - (healthIconBF.width / 2);
5788-
healthIconBF.x = (gridTiledSprite == null) ? (0) : (GRID_X_POS + gridTiledSprite.width + xOffset);
5787+
healthIconBF.x = (gridTiledSprite == null) ? (0) : (GRID_X_POS + gridTiledSprite.width);
57895788
var yOffset = 30 - (healthIconBF.height / 2);
57905789
healthIconBF.y = (gridTiledSprite == null) ? (0) : (GRID_INITIAL_Y_POS - NOTE_SELECT_BUTTON_HEIGHT + 8) + yOffset;
57915790
}
57925791

57935792
// Visibly center the Dad health icon.
57945793
if (healthIconDad != null)
57955794
{
5796-
var xOffset = 75 + (healthIconDad.width / 2);
5797-
healthIconDad.x = (gridTiledSprite == null) ? (0) : (GRID_X_POS - xOffset);
5795+
healthIconDad.x = (gridTiledSprite == null) ? (0) : (measureTicks.x - healthIconDad.width);
57985796
var yOffset = 30 - (healthIconDad.height / 2);
57995797
healthIconDad.y = (gridTiledSprite == null) ? (0) : (GRID_INITIAL_Y_POS - NOTE_SELECT_BUTTON_HEIGHT + 8) + yOffset;
58005798
}

0 commit comments

Comments
 (0)