initial commit, kind of working.
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
package com.arc.dh.util
|
||||
{
|
||||
import com.arc.dh.util.text.TextSystem;
|
||||
import com.arc.flixel.ArcGroup;
|
||||
import com.arc.flixel.ArcSprite;
|
||||
import org.flixel.FlxBitmapText;
|
||||
import org.flixel.FlxPoint;
|
||||
|
||||
public class AchievementWindow extends ArcGroup
|
||||
{
|
||||
|
||||
private static const sprite:Class = AchievementWindow_sprite;
|
||||
|
||||
public var bg:ArcSprite;
|
||||
|
||||
public var text:FlxBitmapText;
|
||||
|
||||
public var timer:Number = 2;
|
||||
|
||||
public function AchievementWindow(param1:String = "SPAAAAAAAAAAAAACE")
|
||||
{
|
||||
super();
|
||||
var _loc2_:int = 80;
|
||||
var _loc3_:int = 200;
|
||||
this.bg = new ArcSprite(_loc2_,_loc3_,sprite);
|
||||
this.add(this.bg);
|
||||
this.text = new FlxBitmapText(_loc2_ + 3,_loc3_ + 18,Fonts.font(Fonts.SMALL_WHITE),param1,"center",199);
|
||||
this.add(this.text);
|
||||
if(TextSystem.active())
|
||||
{
|
||||
this.bg.y = 176;
|
||||
this.text.y = this.bg.y + 18;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.bg.y = 200;
|
||||
this.text.y = this.bg.y + 18;
|
||||
}
|
||||
setAll("scrollFactor",new FlxPoint(0,0));
|
||||
}
|
||||
|
||||
override public function update() : void
|
||||
{
|
||||
this.bg.alpha = alpha;
|
||||
this.text.alpha = alpha;
|
||||
if(TextSystem.active())
|
||||
{
|
||||
this.bg.y = 176;
|
||||
this.text.y = this.bg.y + 18;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.bg.y = 200;
|
||||
this.text.y = this.bg.y + 18;
|
||||
}
|
||||
super.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user