make easier to tell local and global events apart

This commit is contained in:
lunarcleint
2025-03-26 15:00:45 -07:00
parent 4ab77a4eb6
commit 4122f0a2c6
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -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);
@@ -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) {