Exemplo n.º 1
0
void
SceneRegister::RegisterAllScenes(void)
{
	static const wchar_t* PANEL_BLANK = L"";
	static FormFactory formFactory;
	//static PanelFactory panelFactory;
	//static SceneTransitionPolicyProvider policyProvider;

	//AppLog("----------------------------------------------------------------");

	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);
	pSceneManager->RegisterFormFactory(formFactory);

	/*
	pSceneManager->RegisterPanelFactory(panelFactory);
	pSceneManager->SetSceneTransitionPolicyProvider(&policyProvider);*/
	//pSceneManager->AddSceneManagerEventListener(SceneRegister::changeLogger);

	pSceneManager->RegisterScene(SCENE_MAIN_MENU, GameMain, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_MAIN_MENU2, GameMain2, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_Ranking, Ranking, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_GAME_SECLECT, GameSelect, PANEL_BLANK);

}
Exemplo n.º 2
0
void
SceneRegister::RegisterAllScenes(void)
{
	static const wchar_t* PANEL_BLANK =L"";
	static TizenProjectFormFactory formFactory;
	//static TizenProjectPanelFactory panelFactory;

	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);
	pSceneManager->RegisterFormFactory(formFactory);
	//pSceneManager->RegisterPanelFactory(panelFactory);


	pSceneManager->RegisterScene(SCENE_MAIN_FORM, IDL_FORM, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_CHATTING_FORM, IDL_FORM2, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_PARTNER_LIST_FORM, IDL_FORM3, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_PARTNER_SEARCH_FORM, IDL_FORM4, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_SETTING_FORM, IDL_FORM5, PANEL_BLANK);


	pSceneManager->RegisterScene(SCENE_TUTORIAL1, IDL_TUTORIAL1, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_TUTORIAL2, IDL_TUTORIAL2, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_TUTORIAL3, IDL_TUTORIAL3, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_TUTORIAL4, IDL_TUTORIAL4, PANEL_BLANK);


	pSceneManager->RegisterScene(SCENE_EDITING_FORM, IDL_FORM6, PANEL_BLANK);

	pSceneManager->RegisterScene(SCENE_CHATTING, IDL_FORM_CHAT, PANEL_BLANK);

	pSceneManager->RegisterScene(SCENE_COMMENT_FORM, IDL_FORM7, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_MYHOME_FORM, IDL_FORM8, PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_NOTE_FORM, IDL_FORM9, PANEL_BLANK);

}
Exemplo n.º 3
0
result HelloWorldFrame::OnInitializing(void)
{
  // Prepare Scene management.
  SceneManager* pSceneManager = SceneManager::GetInstance();
  static HelloWorldFormFactory formFactory;
  static HelloWorldPanelFactory panelFactory;
  pSceneManager->RegisterFormFactory(formFactory);
  pSceneManager->RegisterPanelFactory(panelFactory);
  pSceneManager->RegisterScene(L"workflow");

  // Go to the scene.
  result r = pSceneManager->GoForward(SceneTransitionId(IDSCNT_MAIN_SCENE));

  // TODO: Add your frame initialization code here.
  return r;
}
Exemplo n.º 4
0
result
ProjectGiraffeFrame::OnInitializing(void)
{
	// Prepare Scene management.
	SceneManager* pSceneManager = SceneManager::GetInstance();
	static ProjectGiraffeFormFactory formFactory;
	static ProjectGiraffePanelFactory panelFactory;
	pSceneManager->RegisterFormFactory(formFactory);
	pSceneManager->RegisterPanelFactory(panelFactory);
	pSceneManager->RegisterScene(L"workflow");

	// Goto the scene.
	result r = pSceneManager->GoForward(SceneTransitionId(L"ID_SCNT_START"));

	// TODO: Add your initialization code here
	return r;
}
Exemplo n.º 5
0
void SceneRegister::RegisterAllScenes(void) {
	static const wchar_t* PANEL_BLANK = L"";
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	static HideItFormFactory formFactory;
	static HideItPanelFactory panelFactory;

	pSceneManager->RegisterPanelFactory(panelFactory);
	pSceneManager->RegisterFormFactory(formFactory);

	pSceneManager->RegisterScene(SCENE_CALCULATOR, FORM_CALCULATOR,
			PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_SETTING, FORM_SETTING, PANEL_BLANK);

	pSceneManager->RegisterScene(SCENE_FILEBROWSER, FORM_FILEBROWSER, PANEL_BLANK);

	pSceneManager->RegisterScene(SCENE_FILEBROWSER_MANAGEMENT, FORM_FILEBROWSER, PANEL_MANAGEMENT);
	pSceneManager->RegisterScene(SCENE_FILEBROWSER_HIDDEN, FORM_FILEBROWSER, PANEL_HIDDEN);
	pSceneManager->RegisterScene(SCENE_TEXTVIEWER, FORM_TEXTVIEWER, PANEL_BLANK);


}