示例#1
0
//----------------------------------------------------------------------------
BPFile::BPFile()
{
	EnableAnchorLayout(false);
	SetPivot(0.0f, 1.0f);

	SetName("BPFile");

	mIsEnable = true;

	mNameText = new0 UIFText();
	AttachChild(mNameText);
	mNameText->LocalTransform.SetTranslateY(-1.0f);
	mNameText->GetText()->SetFontScale(0.65f);
	mNameText->GetText()->SetColor(Float3::WHITE);
	mNameText->GetText()->SetText(GetName());
	mNameText->GetText()->SetAligns(TEXTALIGN_LEFT);
	mNameText->SetAnchorHor(0.0f, 1.0f);
	mNameText->SetAnchorVer(1.0f, 1.0f);
	mNameText->SetAnchorParamVer(5.0f, 0.0f);

	mTipText = new0 UIFText();
	AttachChild(mTipText);
	mTipText->LocalTransform.SetTranslateY(-1.0f);
	mTipText->GetText()->SetFontScale(0.5f);
	mTipText->GetText()->SetColor(Float3::YELLOW);
	mTipText->GetText()->SetText("BPFile contains functions.");
	mTipText->GetText()->SetAligns(TEXTALIGN_RIGHT);
	mTipText->SetAnchorHor(0.5f, 1.0f);
	mTipText->SetAnchorVer(1.0f, 1.0f);
	mTipText->SetAnchorParamVer(5.0f, 0.0f);

	//BPModulePtr startModule = new0 BPModule(BPModule::MT_FUNCTION_START);
	//startModule->RegistFunObj(*PX2_LOGICM.GetStartGF());
	//startModule->LocalTransform.SetTranslate(APoint(0.0f, -1.0f, 0.0f));
	//AttachChild(startModule);

	mSize = Sizef(1000.0f, 400.0f);
	SetSize(mSize);

	UIPicBox *backPicBox = CreateAddBackgroundPicBox();
	backPicBox->SetAlpha(0.5f);
}
//----------------------------------------------------------------------------
EU_SimuFrame::EU_SimuFrame()
{
	mToolFrame = new0 UIFrame();
	AttachChild(mToolFrame);
	mToolFrame->LocalTransform.SetTranslateY(-1.0f);
	UIPicBox *picBox = mToolFrame->CreateAddBackgroundPicBox();
	picBox->SetColor(PX2_UISM.Color_ToolBar);
	mToolFrame->SetAnchorHor(0.0f, 1.0f);
	mToolFrame->SetAnchorVer(1.0f, 1.0f);
	mToolFrame->SetPivot(0.5f, 1.0f);
	mToolFrame->SetSize(Sizef(0.0f, PX2_UISM.Size_ToolBar));

	mCanvasStageSimu = new0 EU_CanvasStageSimu();
	mCanvasStageSimu->LocalTransform.SetTranslateY(-1.0f);
	AttachChild(mCanvasStageSimu);
	mCanvasStageSimu->SetAnchorHor(0.0f, 1.0f);
	mCanvasStageSimu->SetAnchorVer(0.0f, 1.0f);
	mCanvasStageSimu->SetAnchorParamVer(0.0f, -PX2_UISM.Size_ToolBar);

	SetActivateSelfCtrled(false);
}
示例#3
0
//----------------------------------------------------------------------------
UIButton::UIButton() :
mAfterReleasedType(ART_NORMAL),
mIsRecoverBegin(false),
mAfterReleasedRecoverTime(6.0f),
mRecoverBeginTimeimg(0.0f),
mDoublePressedCount(0),
mDoublePressedTimeLimit(0.3f),
mDoublePressedTimeimg(0.0f)
{
	SetName("UIButton");

	if (BT_COLOR == mButType)
	{
		UIPicBox *picNormal = new0 UIPicBox("Data/engine/white.png");
		picNormal->SetName("Normal");
		SetPicBox(BS_NORMAL, picNormal);
	}
	else
	{
		UIPicBox *picNormal = new0 UIPicBox("Data/engine/white.png");
		picNormal->SetName("Normal");
		SetPicBox(BS_NORMAL, picNormal);

		UIPicBox *picOver = new0 UIPicBox("Data/engine/white.png");
		picOver->SetName("Over");
		SetPicBox(BS_HOVERED, picOver);

		UIPicBox *picDown = new0 UIPicBox("Data/engine/white.png");
		picDown->SetName("Down");
		SetPicBox(BS_PRESSED, picDown);

		UIPicBox *picDis = new0 UIPicBox("Data/engine/white.png");
		picDis->SetName("Dis");
		SetPicBox(BS_DISABLED, picDis);
	}

	SetButtonState(BS_NORMAL);

	SetSize(40.0f, 40.0f);
}
//----------------------------------------------------------------------------
EU_PreViewFrame::EU_PreViewFrame()
{
	float toolBarSize = PX2_UISM.Size_ToolBar;

	mToolFrame = new0 UIFrame();
	AttachChild(mToolFrame);
	mToolFrame->LocalTransform.SetTranslateY(-1.0f);
	UIPicBox *picBox = mToolFrame->CreateAddBackgroundPicBox();
	picBox->SetColor(PX2_UISM.Color_ToolBar);
	mToolFrame->SetAnchorHor(0.0f, 1.0f);
	mToolFrame->SetAnchorVer(1.0f, 1.0f);
	mToolFrame->SetPivot(0.5f, 1.0f);
	mToolFrame->SetSize(Sizef(0.0f, toolBarSize));

	float comboWidth = 50.0f;
	UIComboBox *comboBox = new0 UIComboBox();
	mToolFrame->AttachChild(comboBox);	
	comboBox->LocalTransform.SetTranslateY(-1.0f);
	comboBox->SetSize(comboWidth, toolBarSize);
	comboBox->SetAnchorHor(0.0f, 0.0f);
	comboBox->SetAnchorParamHor(comboWidth/2.0f, 0.0f);
	comboBox->SetAnchorVer(0.5f, 0.5f);
	comboBox->AddChooseStr("1");
	comboBox->AddChooseStr("2");
	comboBox->AddChooseStr("3");
	comboBox->SetChooseListHeightSameWithChooses();
	comboBox->Choose(0);

	mCanvasPreView = new0 EU_CanvasPreView();
	mCanvasPreView->SetName("CanvasPreView");
	mCanvasPreView->LocalTransform.SetTranslateY(-1.0f);
	AttachChild(mCanvasPreView);
	mCanvasPreView->LocalTransform.SetTranslateY(-1.0f);
	mCanvasPreView->SetAnchorHor(0.0f, 1.0f);
	mCanvasPreView->SetAnchorVer(0.0f, 1.0f);
	mCanvasPreView->SetAnchorParamVer(0.0f, -PX2_UISM.Size_ToolBar);
}
示例#5
0
//----------------------------------------------------------------------------
UIButton::UIButton ()
{
	SetName("UIButton");

	UIPicBox *picNormal = new0 UIPicBox();
	picNormal->SetName("Normal");
	picNormal->SetPicBoxType(UIPicBox::PBT_NINE);
	picNormal->SetTexture("Data/engine/common.xml", "buttonNormal");

	UIPicBox *picOver = new0 UIPicBox();
	picOver->SetName("Over");
	picOver->SetPicBoxType(UIPicBox::PBT_NINE);
	picOver->SetTexture("Data/engine/common.xml", "buttonOver");

	UIPicBox *picDown = new0 UIPicBox();
	picDown->SetName("Down");
	picDown->SetPicBoxType(UIPicBox::PBT_NINE);
	picDown->SetTexture("Data/engine/common.xml", "buttonDown");

	SetPicBox(BS_NORMAL, picNormal);
	SetPicBox(BS_OVER, picOver);
	SetPicBox(BS_DOWN, picDown);

	SetButtonState(BS_NORMAL);
}
示例#6
0
//----------------------------------------------------------------------------
void LP_Manager::Initlize()
{
	PX2_EW.ComeIn(this);

	PX2_SC_LUA->CallFile("DataLauncher/scripts/start.lua");

	RenderWindow *rw = PX2_GR.GetMainWindow();
	UICanvas *mainCanvas = (UICanvas*)(rw->GetMainCanvas());

	UIFrame *uiMainFrame = new0 UIFrame();
	mainCanvas->AttachChild(uiMainFrame);
	UIPicBox *picBox = uiMainFrame->CreateAddBackgroundPicBox();
	uiMainFrame->SetAnchorHor(0.0f, 1.0f);
	uiMainFrame->SetAnchorVer(0.0f, 1.0f);
	picBox->SetColor(Float3::BLACK);

	// top
	float topHeight = 64.0f;
	UIFrame *frameTop = new0 UIFrame();
	uiMainFrame->AttachChild(frameTop);
	frameTop->LocalTransform.SetTranslateY(-1.0f);
	UIPicBox *topBackPic = frameTop->CreateAddBackgroundPicBox();
	topBackPic->SetColor(Float3::WHITE);
	frameTop->SetAnchorHor(0.0f, 1.0f);
	frameTop->SetAnchorVer(1.0f, 1.0f);
	frameTop->SetSize(0.0f, topHeight);
	frameTop->SetAnchorParamVer(-topHeight/2.0f, 0.0f);

	UIFrame *headFrame = CreateHeadFrame();
	frameTop->AttachChild(headFrame);

	mTableFrame = new0 UITabFrame();
	mTableFrame->SetName("TheTabFrame");
	mTableFrame->SetUICallback(TabFrameUICallback);
	uiMainFrame->AttachChild(mTableFrame);
	mTableFrame->SetTabBarHeight(40.0f);
	mTableFrame->SetTabHeight(36.0f);
	mTableFrame->LocalTransform.SetTranslateY(-1.0f);
	UIPicBox *tabBackPic = mTableFrame->CreateAddBackgroundPicBox();
	tabBackPic->SetColor(Float3::WHITE);
	mTableFrame->SetAnchorHor(0.0f, 1.0f);
	mTableFrame->SetAnchorVer(0.0f, 1.0f);
	mTableFrame->SetAnchorParamVer(0.0f, -topHeight);

	// Awesomium
	WebCore* web_core = WebCore::Initialize(WebConfig());

	UIFrame *frameHub = AddTabFrame("ManyKit", PX2_LMVAL("ManyKit"));
	UIFrame *hubFrame = CreateHubFrame();
	frameHub->AttachChild(hubFrame);

	UIFrame *frameEngine = AddTabFrame("Edu", PX2_LMVAL("Edu"));
	UIFrame *engineFrame = CreateEngineFrame();
	frameEngine->AttachChild(engineFrame);

	//UIFrame *frameMarket = AddTabFrame("Toys", PX2_LMVAL("Toys"));
	//AweUIFrame *aweMarket = new0 AweUIFrame();
	//frameMarket->AttachChild(aweMarket);
	//aweMarket->SetAnchorHor(0.0f, 1.0f);
	//aweMarket->SetAnchorVer(0.0f, 1.0f);
	//aweMarket->OpenURL("http://www.baidu.com");

	//UIFrame *frameYouMake = AddTabFrame("Games", PX2_LMVAL("Games"));
	//AweUIFrame *aweYouMake = new0 AweUIFrame();
	//frameYouMake->AttachChild(aweYouMake);
	//aweYouMake->SetAnchorHor(0.0f, 1.0f);
	//aweYouMake->SetAnchorVer(0.0f, 1.0f);
	//aweYouMake->OpenURL("http://sg.zuiyouxi.com/");

	mTableFrame->SetActiveTab("ManyKit");

}
示例#7
0
//----------------------------------------------------------------------------
UIFrame *LP_Manager::CreateEngineFrame()
{
	UIFrame *engineFrame = new0 UIFrame();
	engineFrame->LocalTransform.SetTranslateY(-1.0f);
	engineFrame->SetAnchorHor(0.0f, 1.0f);
	engineFrame->SetAnchorVer(0.0f, 1.0f);

	float leftWidth = 200.0f;

	float engineButWidth = leftWidth - 10.0f;
	float engineButHeight = 50.0f;

	UIFrame *leftFrame = new0 UIFrame();
	engineFrame->AttachChild(leftFrame);
	leftFrame->SetAnchorHor(0.0f, 0.0f);
	leftFrame->SetAnchorVer(0.0f, 1.0f);
	leftFrame->SetAnchorParamHor(leftWidth / 2.0f, 0.0f);
	leftFrame->SetSize(leftWidth, 0.0f);
	UIPicBox *picBox = leftFrame->CreateAddBackgroundPicBox();
	picBox->SetColor(Float3::MakeColor(64, 64, 64));

	float height = -80.0f;
	// engine
	UIButton *butEngine = new0 UIButton();
	leftFrame->AttachChild(butEngine);
	butEngine->SetAnchorHor(0.5f, 0.5f);
	butEngine->SetAnchorVer(1.0f, 1.0f);
	butEngine->SetAnchorParamVer(height, 0.0f);
	butEngine->LocalTransform.SetTranslateY(-1.0f);
	butEngine->SetSize(engineButWidth, engineButHeight);

	// news
	height -= 100.0f;
	UIButton *butNews = new0 UIButton();
	butNews->SetStateColor(UIButtonBase::BS_NORMAL, Float3::MakeColor(80, 80, 80));
	butNews->SetStateColor(UIButtonBase::BS_HOVERED, Float3::MakeColor(100, 100, 100));
	butNews->SetStateColor(UIButtonBase::BS_PRESSED, Float3::MakeColor(60, 60, 60));
	leftFrame->AttachChild(butNews);
	butNews->SetAnchorHor(0.5f, 0.5f);
	butNews->SetAnchorVer(1.0f, 1.0f);
	butNews->SetAnchorParamVer(height, 0.0f);
	butNews->LocalTransform.SetTranslateY(-1.0f);
	butNews->SetSize(leftWidth, engineButHeight);

	// learn
	height -= 55.0f;
	UIButton *butLearn = new0 UIButton();
	leftFrame->AttachChild(butLearn);
	butLearn->SetAnchorHor(0.5f, 0.5f);
	butLearn->SetAnchorVer(1.0f, 1.0f);
	butLearn->SetAnchorParamVer(height, 0.0f);
	butLearn->LocalTransform.SetTranslateY(-1.0f);
	butLearn->SetSize(leftWidth, engineButHeight);

	// res
	height -= 55.0f;
	UIButton *butRes = new0 UIButton();
	leftFrame->AttachChild(butRes);
	butRes->SetAnchorHor(0.5f, 0.5f);
	butRes->SetAnchorVer(1.0f, 1.0f);
	butRes->SetAnchorParamVer(height, 0.0f);
	butRes->LocalTransform.SetTranslateY(-1.0f);
	butRes->SetSize(leftWidth, engineButHeight);

	UIFrame *rightFrame = new0 UIFrame();
	engineFrame->AttachChild(rightFrame);
	rightFrame->SetAnchorHor(0.0f, 1.0f);
	rightFrame->SetAnchorVer(0.0f, 1.0f);
	rightFrame->SetAnchorParamHor(leftWidth, 0.0f);

	AweUIFrame *aweFrame = new0 AweUIFrame();
	rightFrame->AttachChild(aweFrame);
	aweFrame->SetAnchorHor(0.0f, 1.0f);
	aweFrame->SetAnchorVer(0.0f, 1.0f);
	aweFrame->OpenURL("http://www.google.com/");

	return engineFrame;
}
示例#8
0
//----------------------------------------------------------------------------
UIFrame *LP_Manager::AddTabFrame(const std::string &name, 
	const std::string &title)
{
	UIFrame *uiFrame = new0 UIFrame();
	uiFrame->SetAnchorHor(0.0f, 1.0f);
	uiFrame->SetAnchorVer(0.0f, 1.0f);
	uiFrame->SetActivateSelfCtrled(true);

	UIFPicBox *fpicBox = new0 UIFPicBox();
	uiFrame->AttachChild(fpicBox);
	fpicBox->LocalTransform.SetTranslateY(-10.0f);
	fpicBox->SetAnchorHor(0.0f, 1.0f);
	fpicBox->SetAnchorVer(1.0f, 1.0f);
	fpicBox->SetPivot(0.5f, 1.0f);
	fpicBox->SetSize(0.0f, 3.0f);
	UIPicBox *picBox = fpicBox->GetUIPicBox();
	picBox->SetTexture("Data/engine/white.png");
	picBox->SetColor(Float3::YELLOW);
	
	mTableFrame->AddTab(name, title, uiFrame);
	UIText *text = mTableFrame->GetTabButton(name)->GetText();
	text->SetColorSelfCtrled(true);
	text->SetBrightnessSelfCtrled(true); 
	text->SetFontScale(0.65f);
	text->SetFontColor(Float3::WHITE);
	text->SetColor(Float3::WHITE);
	text->SetDrawStyle(FD_SHADOW);
	text->SetBorderShadowAlpha(0.8f);

	if ("ManyKit" == name)
	{
		text->SetFont("DataLauncher/fonts/msyh.ttc", 24, 24);
	}
	else
	{
		text->SetFont("DataLauncher/fonts/msyhl.ttc", 24, 24);
	}

	UIButton *tabBut = mTableFrame->GetTabButton(name);

	Float3 color = Float3::MakeColor(237, 28, 36);
	if ("ManyKit" == name)
	{
		color = Float3::MakeColor(237, 28, 36);
	}
	else if ("Edu" == name)
	{
		color = Float3::MakeColor(0, 162, 233);
	}
	else if ("Toys" == name)
	{
		color = Float3::MakeColor(255, 127, 39);
	}
	else if ("Games" == name)
	{
		color = Float3::MakeColor(24, 177, 76);
	}

	picBox->SetColor(color);

	tabBut->SetStateColor(UIButtonBase::BS_NORMAL, color);
	tabBut->SetStateColor(UIButtonBase::BS_HOVERED, color);
	tabBut->SetStateBrightness(UIButtonBase::BS_HOVERED, 1.2f);
	tabBut->SetStateColor(UIButtonBase::BS_PRESSED, color);
	tabBut->SetStateBrightness(UIButtonBase::BS_PRESSED, 1.0f);
	tabBut->SetActivateColor(color);

	return uiFrame;
}
//----------------------------------------------------------------------------
EU_StageFrame::EU_StageFrame()
{
	mToolFrame = new0 UIFrame();
	AttachChild(mToolFrame);
	mToolFrame->LocalTransform.SetTranslateY(-1.0f);
	UIPicBox *picBox = mToolFrame->CreateAddBackgroundPicBox();
	picBox->SetColor(PX2_UISM.Color_ToolBar);
	mToolFrame->SetAnchorHor(0.0f, 1.0f);
	mToolFrame->SetAnchorVer(1.0f, 1.0f);
	mToolFrame->SetPivot(0.5f, 1.0f);
	mToolFrame->SetSize(Sizef(0.0f, PX2_UISM.Size_ToolBar));
	mToolFrame->SetUIChildPickOnlyInSizeRange(false);

	Sizef butSize = Sizef(PX2_UISM.Size_ToolBarBut, PX2_UISM.Size_ToolBarBut);
	float butSpace = 2.0f;
	Sizef spliterSize = Sizef(4.0f, PX2_UISM.Size_ToolBar - 2);

	float addButPos = 0.0f;

	// edit type
	addButPos = butSize.Width / 2.0f;
	UIButton *butET_SCENE = new0 UIButton();
	mToolFrame->AttachChild(butET_SCENE);
	butET_SCENE->LocalTransform.SetTranslateY(-1.0f);
	butET_SCENE->SetAnchorHor(0.0f, 0.0f);
	butET_SCENE->SetAnchorVer(0.5f, 0.5f);
	butET_SCENE->SetAnchorParamHor(addButPos, 0.0f);
	butET_SCENE->SetSize(butSize);
	butET_SCENE->SetName("ButET_Scene");
	butET_SCENE->AddVisitor(this);
	butET_SCENE->CreateAddText("Sce");
	butET_SCENE->GetText()->SetFontColor(PX2_UISM.Color_ContentFont);
	butET_SCENE->GetText()->SetFontScale(PX2_UISM.Size_PropertyFontScale);

	addButPos += butSpace + butSize.Width;
	UIButton *butET_UI = new0 UIButton();
	mToolFrame->AttachChild(butET_UI);
	butET_UI->LocalTransform.SetTranslateY(-1.0f);
	butET_UI->SetAnchorHor(0.0f, 0.0f);
	butET_UI->SetAnchorVer(0.5f, 0.5f);
	butET_UI->SetAnchorParamHor(addButPos, 0.0f);
	butET_UI->SetSize(butSize);
	butET_UI->SetName("ButET_UI");
	butET_UI->AddVisitor(this);
	butET_UI->CreateAddText("UI");
	butET_UI->GetText()->SetFontColor(PX2_UISM.Color_ContentFont);
	butET_UI->GetText()->SetFontScale(PX2_UISM.Size_PropertyFontScale);

	addButPos += butSpace + butSize.Width;
	UIButton *butET_Terrain = new0 UIButton();
	mToolFrame->AttachChild(butET_Terrain);
	butET_Terrain->LocalTransform.SetTranslateY(-1.0f);
	butET_Terrain->SetAnchorHor(0.0f, 0.0f);
	butET_Terrain->SetAnchorVer(0.5f, 0.5f);
	butET_Terrain->SetAnchorParamHor(addButPos, 0.0f);
	butET_Terrain->SetSize(butSize);
	butET_Terrain->SetName("ButET_Terain");
	butET_Terrain->AddVisitor(this);
	butET_Terrain->CreateAddText("Ter");
	butET_Terrain->GetText()->SetFontColor(PX2_UISM.Color_ContentFont);
	butET_Terrain->GetText()->SetFontScale(PX2_UISM.Size_PropertyFontScale);

	addButPos += (butSize.Width / 2.0f + butSpace + spliterSize.Width / 2.0f);
	UIFPicBox *spliter = new0 UIFPicBox();
	mToolFrame->AttachChild(spliter);
	spliter->GetUIPicBox()->SetTexture("Data/engine/white.png");
	spliter->GetUIPicBox()->SetColor(PX2_UISM.Color_ToolBarSpliter);
	spliter->LocalTransform.SetTranslateY(-1.0f);
	spliter->SetAnchorHor(0.0f, 0.0f);
	spliter->SetAnchorVer(0.5f, 0.5f);
	spliter->SetAnchorParamHor(addButPos, 0.0f);
	spliter->SetSize(spliterSize);

	// edit mode
	float comboWidth = 100.0f;
	addButPos += (spliterSize.Width / 2.0f + butSpace + comboWidth / 2.0f);
	UIComboBox *axisComboBox = new0 UIComboBox();
	mToolFrame->AttachChild(axisComboBox);
	axisComboBox->LocalTransform.SetTranslateY(-1.0f);
	axisComboBox->SetAnchorHor(0.0f, 0.0f);
	axisComboBox->SetAnchorVer(0.5f, 0.5f);
	axisComboBox->SetAnchorParamHor(addButPos, 0.0f);
	axisComboBox->SetSize(Sizef(comboWidth, butSize.Height));
	axisComboBox->SetName("ComAxis");
	axisComboBox->AddChooseStr("World");
	axisComboBox->AddChooseStr("Local");
	axisComboBox->AddChooseStr("Parent");
	axisComboBox->SetChooseListHeightSameWithChooses();
	axisComboBox->SetTextColor(Float3::MakeColor(220, 220, 220));
	axisComboBox->GetSelectButton()->GetText()->SetFontScale(0.65f);
	axisComboBox->Choose(0);
	axisComboBox->AddUICallback(_AxisButtonCallback);

	addButPos += comboWidth / 2.0f + butSize.Width/2.0f + butSpace;
	UIButton *butEM_Select = new0 UIButton();
	mToolFrame->AttachChild(butEM_Select);
	butEM_Select->LocalTransform.SetTranslateY(-1.0f);
	butEM_Select->SetAnchorHor(0.0f, 0.0f);
	butEM_Select->SetAnchorVer(0.5f, 0.5f);
	butEM_Select->SetAnchorParamHor(addButPos, 0.0f);
	butEM_Select->SetSize(butSize);
	butEM_Select->SetName("ButEM_Select");
	butEM_Select->AddVisitor(this);
	butEM_Select->CreateAddText("Sel");
	butEM_Select->GetText()->SetFontColor(PX2_UISM.Color_ContentFont);
	butEM_Select->GetText()->SetFontScale(PX2_UISM.Size_PropertyFontScale);

	addButPos += butSize.Width + butSpace;
	UIButton *butEM_Trans = new0 UIButton();
	mToolFrame->AttachChild(butEM_Trans);
	butEM_Trans->LocalTransform.SetTranslateY(-1.0f);
	butEM_Trans->SetAnchorHor(0.0f, 0.0f);
	butEM_Trans->SetAnchorVer(0.5f, 0.5f);
	butEM_Trans->SetAnchorParamHor(addButPos, 0.0f);
	butEM_Trans->SetSize(butSize);
	butEM_Trans->SetName("ButEM_Trans");
	butEM_Trans->AddVisitor(this);
	butEM_Trans->CreateAddText("Tra");
	butEM_Trans->GetText()->SetFontColor(PX2_UISM.Color_ContentFont);
	butEM_Trans->GetText()->SetFontScale(PX2_UISM.Size_PropertyFontScale);

	addButPos += butSize.Width + butSpace;
	UIButton *butEM_Rotate = new0 UIButton();
	mToolFrame->AttachChild(butEM_Rotate);
	butEM_Rotate->LocalTransform.SetTranslateY(-1.0f);
	butEM_Rotate->SetAnchorHor(0.0f, 0.0f);
	butEM_Rotate->SetAnchorVer(0.5f, 0.5f);
	butEM_Rotate->SetAnchorParamHor(addButPos, 0.0f);
	butEM_Rotate->SetSize(butSize);
	butEM_Rotate->SetName("ButEM_Rotate");
	butEM_Rotate->AddVisitor(this);
	butEM_Rotate->CreateAddText("Rot");
	butEM_Rotate->GetText()->SetFontColor(PX2_UISM.Color_ContentFont);
	butEM_Rotate->GetText()->SetFontScale(PX2_UISM.Size_PropertyFontScale);

	addButPos += butSize.Width + butSpace;
	UIButton *butEM_Scale = new0 UIButton();
	mToolFrame->AttachChild(butEM_Scale);
	butEM_Scale->LocalTransform.SetTranslateY(-1.0f);
	butEM_Scale->SetAnchorHor(0.0f, 0.0f);
	butEM_Scale->SetAnchorVer(0.5f, 0.5f);
	butEM_Scale->SetAnchorParamHor(addButPos, 0.0f);
	butEM_Scale->SetSize(butSize);
	butEM_Scale->SetName("ButEM_Scale");
	butEM_Scale->AddVisitor(this);
	butEM_Scale->CreateAddText("Sle");
	butEM_Scale->GetText()->SetFontColor(PX2_UISM.Color_ContentFont);
	butEM_Scale->GetText()->SetFontScale(PX2_UISM.Size_PropertyFontScale);

	AddStage();
	PX2_EDIT.SetEditType(Edit::ET_SCENE);

	ComeInEventWorld();

	SetActivateSelfCtrled(false);
}