header, main panel addition
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package view;
|
||||
|
||||
import feathers.events.FeathersEvent;
|
||||
import model.Constants;
|
||||
import components.NekoRectangle;
|
||||
import feathers.controls.Panel;
|
||||
import t9.util.ColorTraces.*;
|
||||
|
||||
class MainPanel extends Panel {
|
||||
|
||||
private var mh:MainHeader;
|
||||
|
||||
public function new() {
|
||||
super();
|
||||
|
||||
addEventListener(FeathersEvent.CREATION_COMPLETE, onCreationComplete);
|
||||
}
|
||||
|
||||
override private function initialize():Void {
|
||||
super.initialize();
|
||||
|
||||
autoSizeMode = STAGE;
|
||||
backgroundSkin = new NekoRectangle(Constants.MAIN_COLOR3);
|
||||
|
||||
mh = new MainHeader();
|
||||
addChild(mh);
|
||||
}
|
||||
|
||||
private function onCreationComplete(event:FeathersEvent):Void {
|
||||
traceBlue(this + " --> onCreationComplete()");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user