Any idea why HitText
isn’t aligning to the right?
I want a 2 texts on the top row, one aligned left, one right.
BarSize := vector2{X:= 500.0, Y := 40.0}
return canvas_slot:
SizeToContent := true
Offsets := margin:
Left := (1920.0 - BarSize.X) / 2.0
Top := 1080.0 - 200.0
Widget := stack_box:
Orientation := orientation.Vertical
Slots := array:
# Level/Hit
stack_box_slot:
HorizontalAlignment := horizontal_alignment.Left
Widget := overlay:
Slots := array:
overlay_slot:
Widget := LevelText
HorizontalAlignment := horizontal_alignment.Left
overlay_slot:
Widget := HitText
HorizontalAlignment := horizontal_alignment.Right
# Progress Bar
stack_box_slot:
Widget := overlay:
Slots := array:
overlay_slot:
Widget := texture_block:
DefaultImage := Textures.T_UI_Whitebox128
DefaultDesiredSize := BarSize
DefaultTint := MakeColorFromHex("#C70000FF")
overlay_slot:
Widget := ProgressText
# Next Hit
stack_box_slot:
Widget := NextHitText
HorizontalAlignment := horizontal_alignment.Right