diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 51aa9de2..864de5c7 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -555,7 +555,9 @@ class Charter extends UIState { add(leftEventsGroup); add(rightEventsGroup); add(leftEventRowText); + add(localAddEventSpr.sideText); add(rightEventRowText); + add(globalAddEventSpr.sideText); add(noteHoverer); add(noteDeleteAnims); diff --git a/source/funkin/editors/charter/CharterEventAdd.hx b/source/funkin/editors/charter/CharterEventAdd.hx index 4fd68721..09f96de5 100644 --- a/source/funkin/editors/charter/CharterEventAdd.hx +++ b/source/funkin/editors/charter/CharterEventAdd.hx @@ -7,6 +7,7 @@ class CharterEventAdd extends UISliceSprite { public var curCharterEvent:CharterEvent = null; + public var sideText:UIText; public var global:Bool = false; public function new(global:Bool) { @@ -14,6 +15,9 @@ class CharterEventAdd extends UISliceSprite { this.global = flipX = global; + sideText = new UIText(0, -40, 0, global ? "Global Event" : "Local Event", 12); + sideText.alignment = "center"; sideText.alpha = 0.75; + text = new UIText(0, 0, 0, ""); members.push(text); @@ -34,8 +38,11 @@ class CharterEventAdd extends UISliceSprite { super.update(elapsed); text.follow(this, global ? bWidth - text.width - (text.text == "Add event" ? 15 : 20) : 20, (bHeight - text.height) / 2); + sideText.follow(this, (bWidth/2) - (sideText.fieldWidth/2), -(sideText.height + 2)); alpha = sprAlpha * 0.75; text.alpha = sprAlpha; + + sideText.alpha = sprAlpha; } public function updatePos(step:Float) {