Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / ui / StackHeader.as
blob6918db7e181ed9d82f7b2079dcbf01f4ff26f634
1 package org.sevenchan.dongs.ui
3 import flash.display.Sprite;
4 import flash.text.*;
5 /**
6 * ...
7 * @author Harbinger
8 */
9 public class StackHeader extends Sprite //implements IHovertextRecipient
11 private var textContent:TextField = new TextField();
12 public function StackHeader(text:String)
14 addChild(textContent);
15 this.textContent.width = 125;
16 this.textContent.x = 0;
17 this.textContent.y = 0;
18 textContent.text = text;
20 var tf:TextFormat = new TextFormat();
21 tf.font = "Verdana";
22 tf.bold = true;
23 tf.align = TextFormatAlign.CENTER;
24 tf.size = 20;
25 this.textContent.setTextFormat(tf);
26 this.textContent.height = textContent.textHeight + 4;
27 draw();
31 public function draw():void {
32 graphics.clear();
33 graphics.lineStyle(1,0x000000, 0.35);
34 graphics.moveTo(0, this.textContent.y + this.textContent.height);
35 graphics.lineTo(124,this.textContent.y + this.textContent.height);
36 graphics.lineStyle();