package ui{
	import jp.progression.casts.*;
	import jp.progression.commands.display.*;
	import jp.progression.commands.lists.*;
	import jp.progression.commands.net.*;
	import jp.progression.commands.tweens.*;
	import jp.progression.commands.*;
	import jp.progression.data.*;
	import jp.progression.events.*;
	import jp.progression.scenes.*;
	
	import flash.display.Sprite;
	
	/**
	 * ...2009.10.10
	 * @oshige ...
	 */
	public class UIPanel extends CastSprite {
		private var indexBtn:GoIndexButton;
		private var prevSceneBtn:PrevSceneButton;
		private var nextSceneBtn:NextSceneButton;
		public function UIPanel( initObject:Object = null ) {
			// 親クラスを初期化します。
			super( initObject );
			//パネルを作る
			creatPanel();
		}
		private function creatPanel():void {
			var panel:Sprite = new Sprite();
			panel.graphics.beginFill(0xDDDDDD);
			panel.graphics.drawRoundRect(0,0,360,30,10,10);
			panel.graphics.endFill();
			panel.alpha = 0.4;
			addChild(panel);
			indexBtn = new GoIndexButton({sceneId:new SceneId( "/index" )});
			prevSceneBtn = new PrevSceneButton({managerId:"index",useTurnBack:true,useRightKey: true});
			nextSceneBtn = new NextSceneButton({managerId:"index",useTurnBack:true,useRightKey: true});
			//nextSceneBtn = new NextSceneButton();
			indexBtn.x = 10;
			prevSceneBtn.x = 130;
			nextSceneBtn.x = 250;
			indexBtn.y = prevSceneBtn.y = nextSceneBtn.y = 4;
			panel.addChild(indexBtn);
			panel.addChild(prevSceneBtn);
			panel.addChild(nextSceneBtn);
		}
		protected override function atCastAdded():void {
			addCommand(
			)
		}
		//
		protected override function atCastRemoved():void {
			addCommand(
			)
		}
	}
}
