Subversion Repositories spk

Rev

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

Rev 1 Rev 94
Line 4... Line 4...
4
namespace Creator {
4
namespace Creator {
5
	void CustomiseWeapons1::UpdateShields()
5
	void CustomiseWeapons1::UpdateShields()
6
	{
6
	{
7
		this->ComboShield->Items->Clear();
7
		this->ComboShield->Items->Clear();
8
 
8
 
9
		CyStringList *list = ((CustomiseShip ^)m_pParent)->GetShields();
9
		CGameDirectories *game = ((CustomiseShip ^)m_pParent)->gameDirectories();
-
 
10
		for(Utils::String shield = game->firstShield(); !shield.empty(); shield = game->nextShield()) {
10
		if ( !list || list->;Empty() )
11
			this->ComboShield->Items->;Add(_US(shield));
11
		{
12
		}
-
 
13
 
-
 
14
		// add some defaults if we dont have any
-
 
15
		if ( !this->ComboShield->Items->Count ) {
12
			for ( int i = 0; i < 6; i++ )
16
			for ( int i = 0; i < 6; i++ )
13
				this->ComboShield->Items->Add("SS_SHIELD_" + Convert::ToString(i));
17
				this->ComboShield->Items->Add("SS_SHIELD_" + Convert::ToString(i));
14
			return;
-
 
15
		}
18
		}
16
 
-
 
17
		for ( SStringList *str = list->Head(); str; str = str->next )
-
 
18
			this->ComboShield->Items->Add(this->AddText(this->AddText(this->FindText(-1, TEXTPAGE_OBJECTS, str->str.GetToken(";", 7, 7).ToInt()), SystemStringFromCyString(str->data)), SystemStringFromCyString(str->str.GetToken(";", 21, 21))));
-
 
19
	}
19
	}
20
 
-
 
21
	String ^CustomiseWeapons1::AddText(String ^text, String ^def) { return ((CustomiseShip ^)m_pParent)->AddText(text, def); }
-
 
22
	String ^CustomiseWeapons1::FindText(int game, int page, int id) { return ((CustomiseShip ^)m_pParent)->FindText(game, page, id); }
-
 
23
 
20
 
24
	void CustomiseWeapons1::UpdateDisplay()
21
	void CustomiseWeapons1::UpdateDisplay()
25
	{
22
	{
26
		m_bUpdateing = true;
23
		m_bUpdateing = true;
27
		if ( m_pShipData->iShieldType >= this->ComboShield->Items->Count )
24
		if ( m_pShipData->iShieldType >= this->ComboShield->Items->Count )