make easier to tell local and global events apart
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user