Subversion Repositories spk

Rev

Rev 101 | Rev 170 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 101 Rev 103
Line 34... Line 34...
34
		this->tabPage6->Controls->Add(m_pCustomiseTurret);
34
		this->tabPage6->Controls->Add(m_pCustomiseTurret);
35
 
35
 
36
		_pGameDir = gameDir;
36
		_pGameDir = gameDir;
37
 
37
 
38
		this->SetupControls();
38
		this->SetupControls();
-
 
39
	}
-
 
40
 
-
 
41
	void CustomiseShip::SwitchGame()
-
 
42
	{
-
 
43
		bool m_bUpdateding = true;
-
 
44
 
-
 
45
		Utils::String dir = _S(this->ComboGame->Items[this->ComboGame->SelectedIndex]->ToString());
-
 
46
		dir = dir.token("[", -1).token("]", 1);
-
 
47
		
-
 
48
		_pGameDir->setSelectedDirectory(dir);
-
 
49
 
-
 
50
		((Form1 ^)m_pMainForm)->LoadText(_pGameDir->selectedVFS());
-
 
51
 
-
 
52
		// the ship info
-
 
53
		m_pCustomiseInfo->UpdateInfo();
-
 
54
		// the shield entries
-
 
55
		m_pCustomiseWeapons1->UpdateShields();
-
 
56
		// the cockpit entries
-
 
57
		m_pCustomiseTurret->UpdateCockpits();
-
 
58
		
-
 
59
		// notority preset
-
 
60
		this->UpdateDisplay();
-
 
61
 
-
 
62
		bool m_bUpdateing = false;
-
 
63
	}
-
 
64
 
-
 
65
	void CustomiseShip::LoadText(CVirtualFileSystem *vfs)
-
 
66
	{
-
 
67
		((Form1 ^)m_pMainForm)->LoadText(vfs);
39
	}
68
	}
40
 
69
 
41
	void CustomiseShip::SetupControls()
70
	void CustomiseShip::SetupControls()
42
	{
71
	{
43
		this->ComboGame->Enabled = true;
72
		this->ComboGame->Enabled = true;
Line 51... Line 80...
51
				highestGame = _pGameDir->currentGame();
80
				highestGame = _pGameDir->currentGame();
52
			}
81
			}
53
			this->ComboGame->Items->Add(_US(_pGameDir->currentName() + " [" + dir + "]"));
82
			this->ComboGame->Items->Add(_US(_pGameDir->currentName() + " [" + dir + "]"));
54
		}
83
		}
55
 
84
 
56
		((Form1 ^)m_pMainForm)->LoadText(NULL);
85
		//((Form1 ^)m_pMainForm)->LoadText(NULL);
57
 
86
 
58
		for ( int i = 1; i < m_pPackages->GetGameExe()->GetNumGames(); i++ )
87
		for ( int i = 1; i < m_pPackages->GetGameExe()->GetNumGames(); i++ )
59
		{
88
		{
60
			SGameExe *gameExe = m_pPackages->GetGameExe()->GetGame(i);
89
			SGameExe *gameExe = m_pPackages->GetGameExe()->GetGame(i);
61
			if ( gameExe )
90
			if ( gameExe )