Пример #1
0
//--------------------------------------------------------------------------
//	功能:打开窗口,返回唯一的一个类对象实例
//--------------------------------------------------------------------------
KUiInit* KUiInit::OpenWindow(bool bStartMusic, bool bJustLaunched)
{
	if (m_pSelf == NULL)
	{
		m_pSelf = new KUiInit;
		if (m_pSelf)
			m_pSelf->Initialize();
	}
	if (m_pSelf)
	{
		if (bJustLaunched)
		{
			Wnd_ShowCursor(false);
			KUiOptions::LoadSetting(true, true);//音量只有在打开音乐才能使用。
			m_pSelf->m_nCurrentMovieIndex = 0;
			KUiLoginBackGround::CloseWindow(false);
			m_pSelf->PlayStartMovie();
		}
		else
		{
			UiSoundPlay(UI_SI_POPUP_OUTGAME_WND);
			KUiLoginBackGround::OpenWindow(m_pSelf->m_szLoginBg);
			m_pSelf->Show();
			if (bStartMusic)
				PlayTitleMusic();
		}
	}
	return m_pSelf;
}
Пример #2
0
void Scene_Title::Start() {
    LoadDatabase();

    static bool init = false;
    if (!init) {
        if (Data::system.ldb_id == 2003) {
            Output::Debug("Switching to Rpg2003 Interpreter");
            Player::engine = Player::EngineRpg2k3;
        }

        FileFinder::InitRtpPaths();
    }
    init = true;

    Main_Data::game_data.Setup();

    // Create Game System
    Game_System::Init();

    if (!Player::battle_test_flag) {
        CreateTitleGraphic();
        PlayTitleMusic();
    }

    CreateCommandWindow();
}
Пример #3
0
void Scene_Title::Start() {
	if (!Player::battle_test_flag && !Player::hide_title_flag) {
		CreateTitleGraphic();
		PlayTitleMusic();
	}

	CreateCommandWindow();
}