Subversion Repositories spk

Rev

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

Rev 1 Rev 6
Line 97... Line 97...
97
		this->toolTip2->SetToolTip(this->ComboPluginType, "The plugin type is used to display roughly what type the plugin comes under, this is displayed during installation\nNormal = Just a normal package\nStable = A stable or final release of a package\nExperimental = Potentinally unstable package\nCheat = Considered to be a cheat, ie breaks game balance\nMod = A Mod, can only run 1 at a time and not compatable with other mods");
97
		this->toolTip2->SetToolTip(this->ComboPluginType, "The plugin type is used to display roughly what type the plugin comes under, this is displayed during installation\nNormal = Just a normal package\nStable = A stable or final release of a package\nExperimental = Potentinally unstable package\nCheat = Considered to be a cheat, ie breaks game balance\nMod = A Mod, can only run 1 at a time and not compatable with other mods");
98
	}
98
	}
99
 
99
 
100
	void PackageForm::UpdateScriptType()
100
	void PackageForm::UpdateScriptType()
101
	{
101
	{
102
		 if ( this->ComboType->SelectedIndex == SCRIPTTYPE_CUSTOM )
102
		if ( this->ComboType->SelectedIndex == CSpkFile::SCRIPTTYPE_CUSTOM )
103
		 {
103
		{
104
			 this->TextCustomType->Visible = true;
104
			this->TextCustomType->Visible = true;
105
			 this->ComboType->Dock = Windows::Forms::DockStyle::Left;
105
			this->ComboType->Dock = Windows::Forms::DockStyle::Left;
106
			 if ( !m_bLoading )
106
			if ( !m_bLoading )
107
				((CSpkFile *)m_pPackage)->SetScriptType(CyStringFromSystemString(this->TextCustomType->Text));
107
				((CSpkFile *)m_pPackage)->SetScriptType(CyStringFromSystemString(this->TextCustomType->Text));
108
		 }
108
		 }
109
		 else
109
		 else
110
		 {
110
		 {
111
			 this->TextCustomType->Visible = false;
111
			 this->TextCustomType->Visible = false;
Line 359... Line 359...
359
			else
359
			else
360
			{
360
			{
361
				this->RadioTypeScript->Checked = true;
361
				this->RadioTypeScript->Checked = true;
362
				this->ComboType->SelectedIndex = spk->GetScriptType();
362
				this->ComboType->SelectedIndex = spk->GetScriptType();
363
				this->ComboType->Enabled = true;
363
				this->ComboType->Enabled = true;
364
				if ( this->ComboType->SelectedIndex == SCRIPTTYPE_CUSTOM )
364
				if ( this->ComboType->SelectedIndex == CSpkFile::SCRIPTTYPE_CUSTOM )
365
					this->TextCustomType->Text = SystemStringFromCyString(spk->GetCustomScriptType(m_pP->GetLanguage()));
365
					this->TextCustomType->Text = SystemStringFromCyString(spk->GetCustomScriptType(m_pP->GetLanguage()));
366
			}
366
			}
367
 
367
 
368
			this->CheckOther->Checked = spk->IsAnotherMod();
368
			this->CheckOther->Checked = spk->IsAnotherMod();
369
			this->TextOtherAuthor->Enabled = this->CheckOther->Checked;
369
			this->TextOtherAuthor->Enabled = this->CheckOther->Checked;
Line 837... Line 837...
837
 
837
 
838
		this->ButGame->Text = "- Select Game -";
838
		this->ButGame->Text = "- Select Game -";
839
		this->ButGameAdd->Enabled = false;
839
		this->ButGameAdd->Enabled = false;
840
 
840
 
841
		m_pTypeList->Clear();
841
		m_pTypeList->Clear();
842
		for ( int i = 0; i < SCRIPTTYPE_MAX; i++ )
842
		for ( int i = 0; i < CSpkFile::SCRIPTTYPE_MAX; i++ )
843
		{
843
		{
844
			m_pTypeList->PushBack(CSpkFile::GetScriptTypeStringStatic(i));
844
			m_pTypeList->PushBack(CSpkFile::GetScriptTypeStringStatic(i));
845
			ComboType->Items->Add(SystemStringFromCyString(CSpkFile::GetScriptTypeStringStatic(i)));
845
			ComboType->Items->Add(SystemStringFromCyString(CSpkFile::GetScriptTypeStringStatic(i)));
846
		}
846
		}
847
 
847