| 1 | cycrow | 1 | #pragma once
 | 
        
           |  |  | 2 |   | 
        
           |  |  | 3 | using namespace System;
 | 
        
           |  |  | 4 | using namespace System::ComponentModel;
 | 
        
           |  |  | 5 | using namespace System::Collections;
 | 
        
           |  |  | 6 | using namespace System::Windows::Forms;
 | 
        
           |  |  | 7 | using namespace System::Data;
 | 
        
           |  |  | 8 | using namespace System::Drawing;
 | 
        
           |  |  | 9 |   | 
        
           |  |  | 10 |   | 
        
           |  |  | 11 | namespace Creator {
 | 
        
           |  |  | 12 |   | 
        
           |  |  | 13 | 	/// <summary>
 | 
        
           |  |  | 14 | 	/// Summary for CustomiseTurret
 | 
        
           |  |  | 15 | 	/// </summary>
 | 
        
           |  |  | 16 | 	public ref class CustomiseTurret : public System::Windows::Forms::UserControl
 | 
        
           |  |  | 17 | 	{
 | 
        
           |  |  | 18 | 	public:
 | 
        
           |  |  | 19 | 		CustomiseTurret(Windows::Forms::Form ^parent, ImageList ^imagesSmall, ImageList ^imagesLarge, CyStringList *pModels, CShipData *shipData, CXspFile *shipFile)
 | 
        
           |  |  | 20 | 		{
 | 
        
           |  |  | 21 | 			InitializeComponent();
 | 
        
           |  |  | 22 |   | 
        
           |  |  | 23 | 			this->ListTurret->SmallImageList = imagesSmall;
 | 
        
           |  |  | 24 | 			this->ListTurret->LargeImageList = imagesLarge;
 | 
        
           |  |  | 25 |   | 
        
           |  |  | 26 | 			m_pCurrentCockpit = NULL;
 | 
        
           |  |  | 27 | 			m_pParent = parent;
 | 
        
           |  |  | 28 | 			m_pModels = pModels;
 | 
        
           |  |  | 29 | 			m_pShipData = shipData;
 | 
        
           |  |  | 30 | 			m_pShipFile = shipFile;
 | 
        
           |  |  | 31 |   | 
        
           |  |  | 32 | 			m_bUpdateing = false;
 | 
        
           |  |  | 33 |   | 
        
           |  |  | 34 | 			this->SetupControls();
 | 
        
           |  |  | 35 | 		}
 | 
        
           |  |  | 36 |   | 
        
           |  |  | 37 | 		void AddGameEntry(String ^game) { this->ComboGameCockpit->Items->Add(game);	}
 | 
        
           |  |  | 38 |   | 
        
           |  |  | 39 | 		String ^GetPosition(int dir);
 | 
        
           |  |  | 40 | 		void SetupControlsEnd();
 | 
        
           |  |  | 41 | 		void SetupControls();
 | 
        
           |  |  | 42 | 		void UpdateDisplay();
 | 
        
           |  |  | 43 | 		void UpdateTurrets();
 | 
        
           |  |  | 44 | 		void UpdateCockpitDisplay();
 | 
        
           |  |  | 45 | 		void UpdateCockpitDisplay2();
 | 
        
           |  |  | 46 | 		void UpdateCockpitWeaponsList();
 | 
        
           |  |  | 47 | 		void UpdateCockpits();
 | 
        
           |  |  | 48 | 		String ^EditTurret(int id);
 | 
        
           |  |  | 49 | 		void EditTurret(ListViewItem ^item);
 | 
        
           |  |  | 50 | 		void SaveCockpitWeaponsList();
 | 
        
           |  |  | 51 |   | 
        
           |  |  | 52 | 	protected:
 | 
        
           |  |  | 53 | 		ListViewItem			^m_pSelectedItem;
 | 
        
           |  |  | 54 | 		bool					 m_bUpdateing;
 | 
        
           |  |  | 55 | 		CyStringList			*m_pModels;
 | 
        
           |  |  | 56 | 		CXspFile				*m_pShipFile;
 | 
        
           |  |  | 57 | 		CShipData				*m_pShipData;
 | 
        
           |  |  | 58 | 		Windows::Forms::Form	^m_pParent;
 | 
        
           |  |  | 59 | 		SCockpit				*m_pCurrentCockpit;
 | 
        
           |  |  | 60 |   | 
        
           |  |  | 61 | 		/// <summary>
 | 
        
           |  |  | 62 | 		/// Clean up any resources being used.
 | 
        
           |  |  | 63 | 		/// </summary>
 | 
        
           |  |  | 64 | 		~CustomiseTurret()
 | 
        
           |  |  | 65 | 		{
 | 
        
           |  |  | 66 | 			if (components)
 | 
        
           |  |  | 67 | 			{
 | 
        
           |  |  | 68 | 				delete components;
 | 
        
           |  |  | 69 | 			}
 | 
        
           |  |  | 70 | 		}
 | 
        
           |  |  | 71 |   | 
        
           |  |  | 72 | 	private:
 | 
        
           |  |  | 73 | 		/// <summary>
 | 
        
           |  |  | 74 | 		/// Required designer variable.
 | 
        
           |  |  | 75 | 		/// </summary>
 | 
        
           |  |  | 76 | 	private: System::ComponentModel::IContainer^  components;
 | 
        
           |  |  | 77 | 	private: System::Windows::Forms::GroupBox^  GroupCockpit;
 | 
        
           |  |  | 78 | 	private: System::Windows::Forms::Panel^  PanelCockpit;
 | 
        
           |  |  | 79 | 	private: System::Windows::Forms::ListView^  ListWeaponCockpit;
 | 
        
           |  |  | 80 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader7;
 | 
        
           |  |  | 81 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader8;
 | 
        
           |  |  | 82 | 	private: System::Windows::Forms::Panel^  panel39;
 | 
        
           |  |  | 83 | 	private: System::Windows::Forms::ComboBox^  ComboGameCockpit;
 | 
        
           |  |  | 84 | 	private: System::Windows::Forms::CheckBox^  CheckWeaponDefaultCockpit;
 | 
        
           |  |  | 85 | 	private: System::Windows::Forms::Label^  label54;
 | 
        
           |  |  | 86 | 	private: System::Windows::Forms::Panel^  panel38;
 | 
        
           |  |  | 87 | 	private: System::Windows::Forms::TextBox^  TextCockpitScene;
 | 
        
           |  |  | 88 | 	private: System::Windows::Forms::Label^  label53;
 | 
        
           |  |  | 89 | 	private: System::Windows::Forms::Panel^  panel37;
 | 
        
           |  |  | 90 | 	private: System::Windows::Forms::ComboBox^  ComboCockpitCustom;
 | 
        
           |  |  | 91 | 	private: System::Windows::Forms::Button^  ButNewCockpit;
 | 
        
           |  |  | 92 | 	private: System::Windows::Forms::RadioButton^  RadioCockpitCustom;
 | 
        
           |  |  | 93 | 	private: System::Windows::Forms::Panel^  panel35;
 | 
        
           |  |  | 94 | 	private: System::Windows::Forms::ComboBox^  ComboCockpitStd;
 | 
        
           |  |  | 95 | 	private: System::Windows::Forms::RadioButton^  RadioCockpitStd;
 | 
        
           |  |  | 96 | 	private: System::Windows::Forms::ListView^  ListTurret;
 | 
        
           |  |  | 97 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader3;
 | 
        
           |  |  | 98 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader4;
 | 
        
           |  |  | 99 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader5;
 | 
        
           |  |  | 100 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader6;
 | 
        
           |  |  | 101 | 	private: System::Windows::Forms::Panel^  panel36;
 | 
        
           |  |  | 102 | 	private: System::Windows::Forms::ComboBox^  ComboCockpit;
 | 
        
           |  |  | 103 | 	private: System::Windows::Forms::Label^  label52;
 | 
        
           |  |  | 104 | 	private: System::Windows::Forms::ContextMenuStrip^  contextMenuStrip1;
 | 
        
           |  |  | 105 | 	private: System::Windows::Forms::ToolStripMenuItem^  ContextTurretAdd;
 | 
        
           |  |  | 106 | 	private: System::Windows::Forms::ToolStripMenuItem^  leftToolStripMenuItem;
 | 
        
           |  |  | 107 | 	private: System::Windows::Forms::ToolStripMenuItem^  rightToolStripMenuItem;
 | 
        
           |  |  | 108 | 	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator3;
 | 
        
           |  |  | 109 | 	private: System::Windows::Forms::ToolStripMenuItem^  frontToolStripMenuItem;
 | 
        
           |  |  | 110 | 	private: System::Windows::Forms::ToolStripMenuItem^  rearToolStripMenuItem;
 | 
        
           |  |  | 111 | 	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator4;
 | 
        
           |  |  | 112 | 	private: System::Windows::Forms::ToolStripMenuItem^  upToolStripMenuItem;
 | 
        
           |  |  | 113 | 	private: System::Windows::Forms::ToolStripMenuItem^  downToolStripMenuItem;
 | 
        
           |  |  | 114 | 	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator1;
 | 
        
           |  |  | 115 | 	private: System::Windows::Forms::ToolStripMenuItem^  editTurretToolStripMenuItem;
 | 
        
           |  |  | 116 | 	private: System::Windows::Forms::ToolStripMenuItem^  changePositionToolStripMenuItem;
 | 
        
           |  |  | 117 | 	private: System::Windows::Forms::ToolStripMenuItem^  leftToolStripMenuItem1;
 | 
        
           |  |  | 118 | 	private: System::Windows::Forms::ToolStripMenuItem^  rightToolStripMenuItem1;
 | 
        
           |  |  | 119 | 	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator5;
 | 
        
           |  |  | 120 | 	private: System::Windows::Forms::ToolStripMenuItem^  frontToolStripMenuItem1;
 | 
        
           |  |  | 121 | 	private: System::Windows::Forms::ToolStripMenuItem^  rearToolStripMenuItem1;
 | 
        
           |  |  | 122 | 	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator6;
 | 
        
           |  |  | 123 | 	private: System::Windows::Forms::ToolStripMenuItem^  upToolStripMenuItem1;
 | 
        
           |  |  | 124 | 	private: System::Windows::Forms::ToolStripMenuItem^  downToolStripMenuItem1;
 | 
        
           |  |  | 125 | 	private: System::Windows::Forms::ToolStripMenuItem^  removeSelectedToolStripMenuItem;
 | 
        
           |  |  | 126 | 	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator2;
 | 
        
           |  |  | 127 | 	private: System::Windows::Forms::ToolStripMenuItem^  clearAllToolStripMenuItem;
 | 
        
           |  |  | 128 |   | 
        
           |  |  | 129 | #pragma region Windows Form Designer generated code
 | 
        
           |  |  | 130 | 		/// <summary>
 | 
        
           |  |  | 131 | 		/// Required method for Designer support - do not modify
 | 
        
           |  |  | 132 | 		/// the contents of this method with the code editor.
 | 
        
           |  |  | 133 | 		/// </summary>
 | 
        
           |  |  | 134 | 		void InitializeComponent(void)
 | 
        
           |  |  | 135 | 		{
 | 
        
           |  |  | 136 | 			this->components = (gcnew System::ComponentModel::Container());
 | 
        
           |  |  | 137 | 			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(CustomiseTurret::typeid));
 | 
        
           |  |  | 138 | 			this->GroupCockpit = (gcnew System::Windows::Forms::GroupBox());
 | 
        
           |  |  | 139 | 			this->PanelCockpit = (gcnew System::Windows::Forms::Panel());
 | 
        
           |  |  | 140 | 			this->ListWeaponCockpit = (gcnew System::Windows::Forms::ListView());
 | 
        
           |  |  | 141 | 			this->columnHeader7 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 142 | 			this->columnHeader8 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 143 | 			this->panel39 = (gcnew System::Windows::Forms::Panel());
 | 
        
           |  |  | 144 | 			this->ComboGameCockpit = (gcnew System::Windows::Forms::ComboBox());
 | 
        
           |  |  | 145 | 			this->CheckWeaponDefaultCockpit = (gcnew System::Windows::Forms::CheckBox());
 | 
        
           |  |  | 146 | 			this->label54 = (gcnew System::Windows::Forms::Label());
 | 
        
           |  |  | 147 | 			this->panel38 = (gcnew System::Windows::Forms::Panel());
 | 
        
           |  |  | 148 | 			this->TextCockpitScene = (gcnew System::Windows::Forms::TextBox());
 | 
        
           |  |  | 149 | 			this->label53 = (gcnew System::Windows::Forms::Label());
 | 
        
           |  |  | 150 | 			this->panel37 = (gcnew System::Windows::Forms::Panel());
 | 
        
           |  |  | 151 | 			this->ComboCockpitCustom = (gcnew System::Windows::Forms::ComboBox());
 | 
        
           |  |  | 152 | 			this->ButNewCockpit = (gcnew System::Windows::Forms::Button());
 | 
        
           |  |  | 153 | 			this->RadioCockpitCustom = (gcnew System::Windows::Forms::RadioButton());
 | 
        
           |  |  | 154 | 			this->panel35 = (gcnew System::Windows::Forms::Panel());
 | 
        
           |  |  | 155 | 			this->ComboCockpitStd = (gcnew System::Windows::Forms::ComboBox());
 | 
        
           |  |  | 156 | 			this->RadioCockpitStd = (gcnew System::Windows::Forms::RadioButton());
 | 
        
           |  |  | 157 | 			this->ListTurret = (gcnew System::Windows::Forms::ListView());
 | 
        
           |  |  | 158 | 			this->columnHeader3 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 159 | 			this->columnHeader4 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 160 | 			this->columnHeader5 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 161 | 			this->columnHeader6 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 162 | 			this->contextMenuStrip1 = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
 | 
        
           |  |  | 163 | 			this->ContextTurretAdd = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 164 | 			this->leftToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 165 | 			this->rightToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 166 | 			this->toolStripSeparator3 = (gcnew System::Windows::Forms::ToolStripSeparator());
 | 
        
           |  |  | 167 | 			this->frontToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 168 | 			this->rearToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 169 | 			this->toolStripSeparator4 = (gcnew System::Windows::Forms::ToolStripSeparator());
 | 
        
           |  |  | 170 | 			this->upToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 171 | 			this->downToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 172 | 			this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
 | 
        
           |  |  | 173 | 			this->editTurretToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 174 | 			this->changePositionToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 175 | 			this->leftToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 176 | 			this->rightToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 177 | 			this->toolStripSeparator5 = (gcnew System::Windows::Forms::ToolStripSeparator());
 | 
        
           |  |  | 178 | 			this->frontToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 179 | 			this->rearToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 180 | 			this->toolStripSeparator6 = (gcnew System::Windows::Forms::ToolStripSeparator());
 | 
        
           |  |  | 181 | 			this->upToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 182 | 			this->downToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 183 | 			this->removeSelectedToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 184 | 			this->toolStripSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
 | 
        
           |  |  | 185 | 			this->clearAllToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
 | 
        
           |  |  | 186 | 			this->panel36 = (gcnew System::Windows::Forms::Panel());
 | 
        
           |  |  | 187 | 			this->ComboCockpit = (gcnew System::Windows::Forms::ComboBox());
 | 
        
           |  |  | 188 | 			this->label52 = (gcnew System::Windows::Forms::Label());
 | 
        
           |  |  | 189 | 			this->GroupCockpit->SuspendLayout();
 | 
        
           |  |  | 190 | 			this->PanelCockpit->SuspendLayout();
 | 
        
           |  |  | 191 | 			this->panel39->SuspendLayout();
 | 
        
           |  |  | 192 | 			this->panel38->SuspendLayout();
 | 
        
           |  |  | 193 | 			this->panel37->SuspendLayout();
 | 
        
           |  |  | 194 | 			this->panel35->SuspendLayout();
 | 
        
           |  |  | 195 | 			this->contextMenuStrip1->SuspendLayout();
 | 
        
           |  |  | 196 | 			this->panel36->SuspendLayout();
 | 
        
           |  |  | 197 | 			this->SuspendLayout();
 | 
        
           |  |  | 198 | 			// 
 | 
        
           |  |  | 199 | 			// GroupCockpit
 | 
        
           |  |  | 200 | 			// 
 | 
        
           |  |  | 201 | 			this->GroupCockpit->Controls->Add(this->PanelCockpit);
 | 
        
           |  |  | 202 | 			this->GroupCockpit->Controls->Add(this->panel37);
 | 
        
           |  |  | 203 | 			this->GroupCockpit->Controls->Add(this->panel35);
 | 
        
           |  |  | 204 | 			this->GroupCockpit->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 205 | 			this->GroupCockpit->Location = System::Drawing::Point(0, 169);
 | 
        
           |  |  | 206 | 			this->GroupCockpit->Name = L"GroupCockpit";
 | 
        
           |  |  | 207 | 			this->GroupCockpit->Size = System::Drawing::Size(520, 400);
 | 
        
           |  |  | 208 | 			this->GroupCockpit->TabIndex = 6;
 | 
        
           |  |  | 209 | 			this->GroupCockpit->TabStop = false;
 | 
        
           |  |  | 210 | 			this->GroupCockpit->Text = L"Cockpits";
 | 
        
           |  |  | 211 | 			// 
 | 
        
           |  |  | 212 | 			// PanelCockpit
 | 
        
           |  |  | 213 | 			// 
 | 
        
           |  |  | 214 | 			this->PanelCockpit->Controls->Add(this->ListWeaponCockpit);
 | 
        
           |  |  | 215 | 			this->PanelCockpit->Controls->Add(this->panel39);
 | 
        
           |  |  | 216 | 			this->PanelCockpit->Controls->Add(this->panel38);
 | 
        
           |  |  | 217 | 			this->PanelCockpit->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 218 | 			this->PanelCockpit->Location = System::Drawing::Point(3, 68);
 | 
        
           |  |  | 219 | 			this->PanelCockpit->Name = L"PanelCockpit";
 | 
        
           |  |  | 220 | 			this->PanelCockpit->Padding = System::Windows::Forms::Padding(5);
 | 
        
           |  |  | 221 | 			this->PanelCockpit->Size = System::Drawing::Size(514, 329);
 | 
        
           |  |  | 222 | 			this->PanelCockpit->TabIndex = 3;
 | 
        
           |  |  | 223 | 			// 
 | 
        
           |  |  | 224 | 			// ListWeaponCockpit
 | 
        
           |  |  | 225 | 			// 
 | 
        
           |  |  | 226 | 			this->ListWeaponCockpit->CheckBoxes = true;
 | 
        
           |  |  | 227 | 			this->ListWeaponCockpit->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(2) {this->columnHeader7, 
 | 
        
           |  |  | 228 | 				this->columnHeader8});
 | 
        
           |  |  | 229 | 			this->ListWeaponCockpit->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 230 | 			this->ListWeaponCockpit->FullRowSelect = true;
 | 
        
           |  |  | 231 | 			this->ListWeaponCockpit->Location = System::Drawing::Point(5, 51);
 | 
        
           |  |  | 232 | 			this->ListWeaponCockpit->Name = L"ListWeaponCockpit";
 | 
        
           |  |  | 233 | 			this->ListWeaponCockpit->Size = System::Drawing::Size(504, 273);
 | 
        
           |  |  | 234 | 			this->ListWeaponCockpit->TabIndex = 11;
 | 
        
           |  |  | 235 | 			this->ListWeaponCockpit->UseCompatibleStateImageBehavior = false;
 | 
        
           |  |  | 236 | 			this->ListWeaponCockpit->View = System::Windows::Forms::View::Details;
 | 
        
           |  |  | 237 | 			this->ListWeaponCockpit->ItemChecked += gcnew System::Windows::Forms::ItemCheckedEventHandler(this, &CustomiseTurret::ListWeaponCockpit_ItemChecked);
 | 
        
           |  |  | 238 | 			// 
 | 
        
           |  |  | 239 | 			// columnHeader7
 | 
        
           |  |  | 240 | 			// 
 | 
        
           |  |  | 241 | 			this->columnHeader7->Text = L"Group";
 | 
        
           |  |  | 242 | 			// 
 | 
        
           |  |  | 243 | 			// columnHeader8
 | 
        
           |  |  | 244 | 			// 
 | 
        
           |  |  | 245 | 			this->columnHeader8->Text = L"Weapons";
 | 
        
           |  |  | 246 | 			// 
 | 
        
           |  |  | 247 | 			// panel39
 | 
        
           |  |  | 248 | 			// 
 | 
        
           |  |  | 249 | 			this->panel39->Controls->Add(this->ComboGameCockpit);
 | 
        
           |  |  | 250 | 			this->panel39->Controls->Add(this->CheckWeaponDefaultCockpit);
 | 
        
           |  |  | 251 | 			this->panel39->Controls->Add(this->label54);
 | 
        
           |  |  | 252 | 			this->panel39->Dock = System::Windows::Forms::DockStyle::Top;
 | 
        
           |  |  | 253 | 			this->panel39->Location = System::Drawing::Point(5, 29);
 | 
        
           |  |  | 254 | 			this->panel39->Name = L"panel39";
 | 
        
           |  |  | 255 | 			this->panel39->Size = System::Drawing::Size(504, 22);
 | 
        
           |  |  | 256 | 			this->panel39->TabIndex = 9;
 | 
        
           |  |  | 257 | 			// 
 | 
        
           |  |  | 258 | 			// ComboGameCockpit
 | 
        
           |  |  | 259 | 			// 
 | 
        
           |  |  | 260 | 			this->ComboGameCockpit->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 261 | 			this->ComboGameCockpit->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
 | 
        
           |  |  | 262 | 			this->ComboGameCockpit->FormattingEnabled = true;
 | 
        
           |  |  | 263 | 			this->ComboGameCockpit->Location = System::Drawing::Point(188, 0);
 | 
        
           |  |  | 264 | 			this->ComboGameCockpit->Name = L"ComboGameCockpit";
 | 
        
           |  |  | 265 | 			this->ComboGameCockpit->Size = System::Drawing::Size(234, 21);
 | 
        
           |  |  | 266 | 			this->ComboGameCockpit->TabIndex = 0;
 | 
        
           |  |  | 267 | 			this->ComboGameCockpit->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseTurret::ComboGameCockpit_SelectedIndexChanged);
 | 
        
           |  |  | 268 | 			// 
 | 
        
           |  |  | 269 | 			// CheckWeaponDefaultCockpit
 | 
        
           |  |  | 270 | 			// 
 | 
        
           |  |  | 271 | 			this->CheckWeaponDefaultCockpit->AutoSize = true;
 | 
        
           |  |  | 272 | 			this->CheckWeaponDefaultCockpit->Dock = System::Windows::Forms::DockStyle::Right;
 | 
        
           |  |  | 273 | 			this->CheckWeaponDefaultCockpit->Location = System::Drawing::Point(422, 0);
 | 
        
           |  |  | 274 | 			this->CheckWeaponDefaultCockpit->Name = L"CheckWeaponDefaultCockpit";
 | 
        
           |  |  | 275 | 			this->CheckWeaponDefaultCockpit->Size = System::Drawing::Size(82, 22);
 | 
        
           |  |  | 276 | 			this->CheckWeaponDefaultCockpit->TabIndex = 2;
 | 
        
           |  |  | 277 | 			this->CheckWeaponDefaultCockpit->Text = L"Use Default";
 | 
        
           |  |  | 278 | 			this->CheckWeaponDefaultCockpit->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 279 | 			this->CheckWeaponDefaultCockpit->CheckedChanged += gcnew System::EventHandler(this, &CustomiseTurret::CheckWeaponDefaultCockpit_CheckedChanged);
 | 
        
           |  |  | 280 | 			// 
 | 
        
           |  |  | 281 | 			// label54
 | 
        
           |  |  | 282 | 			// 
 | 
        
           |  |  | 283 | 			this->label54->Dock = System::Windows::Forms::DockStyle::Left;
 | 
        
           |  |  | 284 | 			this->label54->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
 | 
        
           |  |  | 285 | 				static_cast<System::Byte>(0)));
 | 
        
           |  |  | 286 | 			this->label54->Location = System::Drawing::Point(0, 0);
 | 
        
           |  |  | 287 | 			this->label54->Name = L"label54";
 | 
        
           |  |  | 288 | 			this->label54->Size = System::Drawing::Size(188, 22);
 | 
        
           |  |  | 289 | 			this->label54->TabIndex = 1;
 | 
        
           |  |  | 290 | 			this->label54->Text = L"X-Universe Game:";
 | 
        
           |  |  | 291 | 			this->label54->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
 | 
        
           |  |  | 292 | 			// 
 | 
        
           |  |  | 293 | 			// panel38
 | 
        
           |  |  | 294 | 			// 
 | 
        
           |  |  | 295 | 			this->panel38->Controls->Add(this->TextCockpitScene);
 | 
        
           |  |  | 296 | 			this->panel38->Controls->Add(this->label53);
 | 
        
           |  |  | 297 | 			this->panel38->Dock = System::Windows::Forms::DockStyle::Top;
 | 
        
           |  |  | 298 | 			this->panel38->Location = System::Drawing::Point(5, 5);
 | 
        
           |  |  | 299 | 			this->panel38->Name = L"panel38";
 | 
        
           |  |  | 300 | 			this->panel38->Padding = System::Windows::Forms::Padding(2);
 | 
        
           |  |  | 301 | 			this->panel38->Size = System::Drawing::Size(504, 24);
 | 
        
           |  |  | 302 | 			this->panel38->TabIndex = 8;
 | 
        
           |  |  | 303 | 			// 
 | 
        
           |  |  | 304 | 			// TextCockpitScene
 | 
        
           |  |  | 305 | 			// 
 | 
        
           |  |  | 306 | 			this->TextCockpitScene->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 307 | 			this->TextCockpitScene->Location = System::Drawing::Point(142, 2);
 | 
        
           |  |  | 308 | 			this->TextCockpitScene->Name = L"TextCockpitScene";
 | 
        
           |  |  | 309 | 			this->TextCockpitScene->Size = System::Drawing::Size(360, 20);
 | 
        
           |  |  | 310 | 			this->TextCockpitScene->TabIndex = 1;
 | 
        
           |  |  | 311 | 			this->TextCockpitScene->TextChanged += gcnew System::EventHandler(this, &CustomiseTurret::TextCockpitScene_TextChanged);
 | 
        
           |  |  | 312 | 			// 
 | 
        
           |  |  | 313 | 			// label53
 | 
        
           |  |  | 314 | 			// 
 | 
        
           |  |  | 315 | 			this->label53->Dock = System::Windows::Forms::DockStyle::Left;
 | 
        
           |  |  | 316 | 			this->label53->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
 | 
        
           |  |  | 317 | 				static_cast<System::Byte>(0)));
 | 
        
           |  |  | 318 | 			this->label53->Location = System::Drawing::Point(2, 2);
 | 
        
           |  |  | 319 | 			this->label53->Name = L"label53";
 | 
        
           |  |  | 320 | 			this->label53->Size = System::Drawing::Size(140, 20);
 | 
        
           |  |  | 321 | 			this->label53->TabIndex = 0;
 | 
        
           |  |  | 322 | 			this->label53->Text = L"Scene File";
 | 
        
           |  |  | 323 | 			this->label53->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
 | 
        
           |  |  | 324 | 			// 
 | 
        
           |  |  | 325 | 			// panel37
 | 
        
           |  |  | 326 | 			// 
 | 
        
           |  |  | 327 | 			this->panel37->Controls->Add(this->ComboCockpitCustom);
 | 
        
           |  |  | 328 | 			this->panel37->Controls->Add(this->ButNewCockpit);
 | 
        
           |  |  | 329 | 			this->panel37->Controls->Add(this->RadioCockpitCustom);
 | 
        
           |  |  | 330 | 			this->panel37->Dock = System::Windows::Forms::DockStyle::Top;
 | 
        
           |  |  | 331 | 			this->panel37->Location = System::Drawing::Point(3, 42);
 | 
        
           |  |  | 332 | 			this->panel37->Name = L"panel37";
 | 
        
           |  |  | 333 | 			this->panel37->Padding = System::Windows::Forms::Padding(3);
 | 
        
           |  |  | 334 | 			this->panel37->Size = System::Drawing::Size(514, 26);
 | 
        
           |  |  | 335 | 			this->panel37->TabIndex = 2;
 | 
        
           |  |  | 336 | 			// 
 | 
        
           |  |  | 337 | 			// ComboCockpitCustom
 | 
        
           |  |  | 338 | 			// 
 | 
        
           |  |  | 339 | 			this->ComboCockpitCustom->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 340 | 			this->ComboCockpitCustom->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
 | 
        
           |  |  | 341 | 			this->ComboCockpitCustom->Enabled = false;
 | 
        
           |  |  | 342 | 			this->ComboCockpitCustom->FormattingEnabled = true;
 | 
        
           |  |  | 343 | 			this->ComboCockpitCustom->Location = System::Drawing::Point(102, 3);
 | 
        
           |  |  | 344 | 			this->ComboCockpitCustom->Name = L"ComboCockpitCustom";
 | 
        
           |  |  | 345 | 			this->ComboCockpitCustom->Size = System::Drawing::Size(370, 21);
 | 
        
           |  |  | 346 | 			this->ComboCockpitCustom->TabIndex = 1;
 | 
        
           |  |  | 347 | 			this->ComboCockpitCustom->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseTurret::ComboCockpitCustom_SelectedIndexChanged);
 | 
        
           |  |  | 348 | 			// 
 | 
        
           |  |  | 349 | 			// ButNewCockpit
 | 
        
           |  |  | 350 | 			// 
 | 
        
           |  |  | 351 | 			this->ButNewCockpit->AutoSize = true;
 | 
        
           |  |  | 352 | 			this->ButNewCockpit->AutoSizeMode = System::Windows::Forms::AutoSizeMode::GrowAndShrink;
 | 
        
           |  |  | 353 | 			this->ButNewCockpit->Dock = System::Windows::Forms::DockStyle::Right;
 | 
        
           |  |  | 354 | 			this->ButNewCockpit->Location = System::Drawing::Point(472, 3);
 | 
        
           |  |  | 355 | 			this->ButNewCockpit->Name = L"ButNewCockpit";
 | 
        
           |  |  | 356 | 			this->ButNewCockpit->Size = System::Drawing::Size(39, 20);
 | 
        
           |  |  | 357 | 			this->ButNewCockpit->TabIndex = 2;
 | 
        
           |  |  | 358 | 			this->ButNewCockpit->Text = L"New";
 | 
        
           |  |  | 359 | 			this->ButNewCockpit->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 360 | 			this->ButNewCockpit->Click += gcnew System::EventHandler(this, &CustomiseTurret::ButNewCockpit_Click);
 | 
        
           |  |  | 361 | 			// 
 | 
        
           |  |  | 362 | 			// RadioCockpitCustom
 | 
        
           |  |  | 363 | 			// 
 | 
        
           |  |  | 364 | 			this->RadioCockpitCustom->Dock = System::Windows::Forms::DockStyle::Left;
 | 
        
           |  |  | 365 | 			this->RadioCockpitCustom->Location = System::Drawing::Point(3, 3);
 | 
        
           |  |  | 366 | 			this->RadioCockpitCustom->Name = L"RadioCockpitCustom";
 | 
        
           |  |  | 367 | 			this->RadioCockpitCustom->Size = System::Drawing::Size(99, 20);
 | 
        
           |  |  | 368 | 			this->RadioCockpitCustom->TabIndex = 0;
 | 
        
           |  |  | 369 | 			this->RadioCockpitCustom->Text = L"Custom";
 | 
        
           |  |  | 370 | 			this->RadioCockpitCustom->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 371 | 			this->RadioCockpitCustom->CheckedChanged += gcnew System::EventHandler(this, &CustomiseTurret::RadioCockpitCustom_CheckedChanged);
 | 
        
           |  |  | 372 | 			// 
 | 
        
           |  |  | 373 | 			// panel35
 | 
        
           |  |  | 374 | 			// 
 | 
        
           |  |  | 375 | 			this->panel35->Controls->Add(this->ComboCockpitStd);
 | 
        
           |  |  | 376 | 			this->panel35->Controls->Add(this->RadioCockpitStd);
 | 
        
           |  |  | 377 | 			this->panel35->Dock = System::Windows::Forms::DockStyle::Top;
 | 
        
           |  |  | 378 | 			this->panel35->Location = System::Drawing::Point(3, 16);
 | 
        
           |  |  | 379 | 			this->panel35->Name = L"panel35";
 | 
        
           |  |  | 380 | 			this->panel35->Padding = System::Windows::Forms::Padding(3);
 | 
        
           |  |  | 381 | 			this->panel35->Size = System::Drawing::Size(514, 26);
 | 
        
           |  |  | 382 | 			this->panel35->TabIndex = 1;
 | 
        
           |  |  | 383 | 			// 
 | 
        
           |  |  | 384 | 			// ComboCockpitStd
 | 
        
           |  |  | 385 | 			// 
 | 
        
           |  |  | 386 | 			this->ComboCockpitStd->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 387 | 			this->ComboCockpitStd->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
 | 
        
           |  |  | 388 | 			this->ComboCockpitStd->FormattingEnabled = true;
 | 
        
           |  |  | 389 | 			this->ComboCockpitStd->Location = System::Drawing::Point(102, 3);
 | 
        
           |  |  | 390 | 			this->ComboCockpitStd->Name = L"ComboCockpitStd";
 | 
        
           |  |  | 391 | 			this->ComboCockpitStd->Size = System::Drawing::Size(409, 21);
 | 
        
           |  |  | 392 | 			this->ComboCockpitStd->TabIndex = 1;
 | 
        
           |  |  | 393 | 			this->ComboCockpitStd->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseTurret::ComboCockpitStd_SelectedIndexChanged);
 | 
        
           |  |  | 394 | 			// 
 | 
        
           |  |  | 395 | 			// RadioCockpitStd
 | 
        
           |  |  | 396 | 			// 
 | 
        
           |  |  | 397 | 			this->RadioCockpitStd->Checked = true;
 | 
        
           |  |  | 398 | 			this->RadioCockpitStd->Dock = System::Windows::Forms::DockStyle::Left;
 | 
        
           |  |  | 399 | 			this->RadioCockpitStd->Location = System::Drawing::Point(3, 3);
 | 
        
           |  |  | 400 | 			this->RadioCockpitStd->Name = L"RadioCockpitStd";
 | 
        
           |  |  | 401 | 			this->RadioCockpitStd->Size = System::Drawing::Size(99, 20);
 | 
        
           |  |  | 402 | 			this->RadioCockpitStd->TabIndex = 0;
 | 
        
           |  |  | 403 | 			this->RadioCockpitStd->TabStop = true;
 | 
        
           |  |  | 404 | 			this->RadioCockpitStd->Text = L"Standard";
 | 
        
           |  |  | 405 | 			this->RadioCockpitStd->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 406 | 			this->RadioCockpitStd->CheckedChanged += gcnew System::EventHandler(this, &CustomiseTurret::RadioCockpitStd_CheckedChanged);
 | 
        
           |  |  | 407 | 			// 
 | 
        
           |  |  | 408 | 			// ListTurret
 | 
        
           |  |  | 409 | 			// 
 | 
        
           |  |  | 410 | 			this->ListTurret->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(4) {this->columnHeader3, this->columnHeader4, 
 | 
        
           |  |  | 411 | 				this->columnHeader5, this->columnHeader6});
 | 
        
           |  |  | 412 | 			this->ListTurret->ContextMenuStrip = this->contextMenuStrip1;
 | 
        
           |  |  | 413 | 			this->ListTurret->Dock = System::Windows::Forms::DockStyle::Top;
 | 
        
           |  |  | 414 | 			this->ListTurret->FullRowSelect = true;
 | 
        
           |  |  | 415 | 			this->ListTurret->HideSelection = false;
 | 
        
           |  |  | 416 | 			this->ListTurret->Location = System::Drawing::Point(0, 32);
 | 
        
           |  |  | 417 | 			this->ListTurret->Name = L"ListTurret";
 | 
        
           |  |  | 418 | 			this->ListTurret->Size = System::Drawing::Size(520, 137);
 | 
        
           |  |  | 419 | 			this->ListTurret->TabIndex = 5;
 | 
        
           |  |  | 420 | 			this->ListTurret->UseCompatibleStateImageBehavior = false;
 | 
        
           |  |  | 421 | 			this->ListTurret->View = System::Windows::Forms::View::Details;
 | 
        
           |  |  | 422 | 			this->ListTurret->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &CustomiseTurret::ListTurret_MouseDoubleClick);
 | 
        
           |  |  | 423 | 			this->ListTurret->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseTurret::ListTurret_SelectedIndexChanged);
 | 
        
           |  |  | 424 | 			// 
 | 
        
           |  |  | 425 | 			// columnHeader3
 | 
        
           |  |  | 426 | 			// 
 | 
        
           |  |  | 427 | 			this->columnHeader3->Text = L"#";
 | 
        
           |  |  | 428 | 			// 
 | 
        
           |  |  | 429 | 			// columnHeader4
 | 
        
           |  |  | 430 | 			// 
 | 
        
           |  |  | 431 | 			this->columnHeader4->Text = L"Type";
 | 
        
           |  |  | 432 | 			// 
 | 
        
           |  |  | 433 | 			// columnHeader5
 | 
        
           |  |  | 434 | 			// 
 | 
        
           |  |  | 435 | 			this->columnHeader5->Text = L"Position";
 | 
        
           |  |  | 436 | 			// 
 | 
        
           |  |  | 437 | 			// columnHeader6
 | 
        
           |  |  | 438 | 			// 
 | 
        
           |  |  | 439 | 			this->columnHeader6->Text = L"Body";
 | 
        
           |  |  | 440 | 			// 
 | 
        
           |  |  | 441 | 			// contextMenuStrip1
 | 
        
           |  |  | 442 | 			// 
 | 
        
           |  |  | 443 | 			this->contextMenuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(7) {this->ContextTurretAdd, 
 | 
        
           |  |  | 444 | 				this->toolStripSeparator1, this->editTurretToolStripMenuItem, this->changePositionToolStripMenuItem, this->removeSelectedToolStripMenuItem, 
 | 
        
           |  |  | 445 | 				this->toolStripSeparator2, this->clearAllToolStripMenuItem});
 | 
        
           |  |  | 446 | 			this->contextMenuStrip1->Name = L"contextMenuStrip1";
 | 
        
           |  |  | 447 | 			this->contextMenuStrip1->Size = System::Drawing::Size(181, 206);
 | 
        
           |  |  | 448 | 			this->contextMenuStrip1->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &CustomiseTurret::contextMenuStrip1_Opening);
 | 
        
           |  |  | 449 | 			// 
 | 
        
           |  |  | 450 | 			// ContextTurretAdd
 | 
        
           |  |  | 451 | 			// 
 | 
        
           |  |  | 452 | 			this->ContextTurretAdd->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(8) {this->leftToolStripMenuItem, 
 | 
        
           |  |  | 453 | 				this->rightToolStripMenuItem, this->toolStripSeparator3, this->frontToolStripMenuItem, this->rearToolStripMenuItem, this->toolStripSeparator4, 
 | 
        
           |  |  | 454 | 				this->upToolStripMenuItem, this->downToolStripMenuItem});
 | 
        
           |  |  | 455 | 			this->ContextTurretAdd->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextTurretAdd.Image")));
 | 
        
           |  |  | 456 | 			this->ContextTurretAdd->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
 | 
        
           |  |  | 457 | 			this->ContextTurretAdd->Name = L"ContextTurretAdd";
 | 
        
           |  |  | 458 | 			this->ContextTurretAdd->Size = System::Drawing::Size(180, 38);
 | 
        
           |  |  | 459 | 			this->ContextTurretAdd->Text = L"Add Turret";
 | 
        
           |  |  | 460 | 			// 
 | 
        
           |  |  | 461 | 			// leftToolStripMenuItem
 | 
        
           |  |  | 462 | 			// 
 | 
        
           |  |  | 463 | 			this->leftToolStripMenuItem->Name = L"leftToolStripMenuItem";
 | 
        
           |  |  | 464 | 			this->leftToolStripMenuItem->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 465 | 			this->leftToolStripMenuItem->Text = L"Left";
 | 
        
           |  |  | 466 | 			this->leftToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseTurret::leftToolStripMenuItem_Click);
 | 
        
           |  |  | 467 | 			// 
 | 
        
           |  |  | 468 | 			// rightToolStripMenuItem
 | 
        
           |  |  | 469 | 			// 
 | 
        
           |  |  | 470 | 			this->rightToolStripMenuItem->Name = L"rightToolStripMenuItem";
 | 
        
           |  |  | 471 | 			this->rightToolStripMenuItem->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 472 | 			this->rightToolStripMenuItem->Text = L"Right";
 | 
        
           |  |  | 473 | 			this->rightToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseTurret::rightToolStripMenuItem_Click);
 | 
        
           |  |  | 474 | 			// 
 | 
        
           |  |  | 475 | 			// toolStripSeparator3
 | 
        
           |  |  | 476 | 			// 
 | 
        
           |  |  | 477 | 			this->toolStripSeparator3->Name = L"toolStripSeparator3";
 | 
        
           |  |  | 478 | 			this->toolStripSeparator3->Size = System::Drawing::Size(111, 6);
 | 
        
           |  |  | 479 | 			// 
 | 
        
           |  |  | 480 | 			// frontToolStripMenuItem
 | 
        
           |  |  | 481 | 			// 
 | 
        
           |  |  | 482 | 			this->frontToolStripMenuItem->Name = L"frontToolStripMenuItem";
 | 
        
           |  |  | 483 | 			this->frontToolStripMenuItem->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 484 | 			this->frontToolStripMenuItem->Text = L"Front";
 | 
        
           |  |  | 485 | 			this->frontToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseTurret::frontToolStripMenuItem_Click);
 | 
        
           |  |  | 486 | 			// 
 | 
        
           |  |  | 487 | 			// rearToolStripMenuItem
 | 
        
           |  |  | 488 | 			// 
 | 
        
           |  |  | 489 | 			this->rearToolStripMenuItem->Name = L"rearToolStripMenuItem";
 | 
        
           |  |  | 490 | 			this->rearToolStripMenuItem->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 491 | 			this->rearToolStripMenuItem->Text = L"Rear";
 | 
        
           |  |  | 492 | 			this->rearToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseTurret::rearToolStripMenuItem_Click);
 | 
        
           |  |  | 493 | 			// 
 | 
        
           |  |  | 494 | 			// toolStripSeparator4
 | 
        
           |  |  | 495 | 			// 
 | 
        
           |  |  | 496 | 			this->toolStripSeparator4->Name = L"toolStripSeparator4";
 | 
        
           |  |  | 497 | 			this->toolStripSeparator4->Size = System::Drawing::Size(111, 6);
 | 
        
           |  |  | 498 | 			// 
 | 
        
           |  |  | 499 | 			// upToolStripMenuItem
 | 
        
           |  |  | 500 | 			// 
 | 
        
           |  |  | 501 | 			this->upToolStripMenuItem->Name = L"upToolStripMenuItem";
 | 
        
           |  |  | 502 | 			this->upToolStripMenuItem->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 503 | 			this->upToolStripMenuItem->Text = L"Top";
 | 
        
           |  |  | 504 | 			this->upToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseTurret::upToolStripMenuItem_Click);
 | 
        
           |  |  | 505 | 			// 
 | 
        
           |  |  | 506 | 			// downToolStripMenuItem
 | 
        
           |  |  | 507 | 			// 
 | 
        
           |  |  | 508 | 			this->downToolStripMenuItem->Name = L"downToolStripMenuItem";
 | 
        
           |  |  | 509 | 			this->downToolStripMenuItem->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 510 | 			this->downToolStripMenuItem->Text = L"Bottom";
 | 
        
           |  |  | 511 | 			this->downToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseTurret::downToolStripMenuItem_Click);
 | 
        
           |  |  | 512 | 			// 
 | 
        
           |  |  | 513 | 			// toolStripSeparator1
 | 
        
           |  |  | 514 | 			// 
 | 
        
           |  |  | 515 | 			this->toolStripSeparator1->Name = L"toolStripSeparator1";
 | 
        
           |  |  | 516 | 			this->toolStripSeparator1->Size = System::Drawing::Size(177, 6);
 | 
        
           |  |  | 517 | 			// 
 | 
        
           |  |  | 518 | 			// editTurretToolStripMenuItem
 | 
        
           |  |  | 519 | 			// 
 | 
        
           |  |  | 520 | 			this->editTurretToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"editTurretToolStripMenuItem.Image")));
 | 
        
           |  |  | 521 | 			this->editTurretToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
 | 
        
           |  |  | 522 | 			this->editTurretToolStripMenuItem->Name = L"editTurretToolStripMenuItem";
 | 
        
           |  |  | 523 | 			this->editTurretToolStripMenuItem->Size = System::Drawing::Size(180, 38);
 | 
        
           |  |  | 524 | 			this->editTurretToolStripMenuItem->Text = L"Edit Turret";
 | 
        
           |  |  | 525 | 			this->editTurretToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseTurret::editTurretToolStripMenuItem_Click);
 | 
        
           |  |  | 526 | 			// 
 | 
        
           |  |  | 527 | 			// changePositionToolStripMenuItem
 | 
        
           |  |  | 528 | 			// 
 | 
        
           |  |  | 529 | 			this->changePositionToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(8) {this->leftToolStripMenuItem1, 
 | 
        
           |  |  | 530 | 				this->rightToolStripMenuItem1, this->toolStripSeparator5, this->frontToolStripMenuItem1, this->rearToolStripMenuItem1, this->toolStripSeparator6, 
 | 
        
           |  |  | 531 | 				this->upToolStripMenuItem1, this->downToolStripMenuItem1});
 | 
        
           |  |  | 532 | 			this->changePositionToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"changePositionToolStripMenuItem.Image")));
 | 
        
           |  |  | 533 | 			this->changePositionToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
 | 
        
           |  |  | 534 | 			this->changePositionToolStripMenuItem->Name = L"changePositionToolStripMenuItem";
 | 
        
           |  |  | 535 | 			this->changePositionToolStripMenuItem->Size = System::Drawing::Size(180, 38);
 | 
        
           |  |  | 536 | 			this->changePositionToolStripMenuItem->Text = L"Change Position";
 | 
        
           |  |  | 537 | 			// 
 | 
        
           |  |  | 538 | 			// leftToolStripMenuItem1
 | 
        
           |  |  | 539 | 			// 
 | 
        
           |  |  | 540 | 			this->leftToolStripMenuItem1->Name = L"leftToolStripMenuItem1";
 | 
        
           |  |  | 541 | 			this->leftToolStripMenuItem1->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 542 | 			this->leftToolStripMenuItem1->Text = L"Left";
 | 
        
           |  |  | 543 | 			this->leftToolStripMenuItem1->Click += gcnew System::EventHandler(this, &CustomiseTurret::leftToolStripMenuItem1_Click);
 | 
        
           |  |  | 544 | 			// 
 | 
        
           |  |  | 545 | 			// rightToolStripMenuItem1
 | 
        
           |  |  | 546 | 			// 
 | 
        
           |  |  | 547 | 			this->rightToolStripMenuItem1->Name = L"rightToolStripMenuItem1";
 | 
        
           |  |  | 548 | 			this->rightToolStripMenuItem1->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 549 | 			this->rightToolStripMenuItem1->Text = L"Right";
 | 
        
           |  |  | 550 | 			this->rightToolStripMenuItem1->Click += gcnew System::EventHandler(this, &CustomiseTurret::rightToolStripMenuItem1_Click);
 | 
        
           |  |  | 551 | 			// 
 | 
        
           |  |  | 552 | 			// toolStripSeparator5
 | 
        
           |  |  | 553 | 			// 
 | 
        
           |  |  | 554 | 			this->toolStripSeparator5->Name = L"toolStripSeparator5";
 | 
        
           |  |  | 555 | 			this->toolStripSeparator5->Size = System::Drawing::Size(111, 6);
 | 
        
           |  |  | 556 | 			// 
 | 
        
           |  |  | 557 | 			// frontToolStripMenuItem1
 | 
        
           |  |  | 558 | 			// 
 | 
        
           |  |  | 559 | 			this->frontToolStripMenuItem1->Name = L"frontToolStripMenuItem1";
 | 
        
           |  |  | 560 | 			this->frontToolStripMenuItem1->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 561 | 			this->frontToolStripMenuItem1->Text = L"Front";
 | 
        
           |  |  | 562 | 			this->frontToolStripMenuItem1->Click += gcnew System::EventHandler(this, &CustomiseTurret::frontToolStripMenuItem1_Click);
 | 
        
           |  |  | 563 | 			// 
 | 
        
           |  |  | 564 | 			// rearToolStripMenuItem1
 | 
        
           |  |  | 565 | 			// 
 | 
        
           |  |  | 566 | 			this->rearToolStripMenuItem1->Name = L"rearToolStripMenuItem1";
 | 
        
           |  |  | 567 | 			this->rearToolStripMenuItem1->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 568 | 			this->rearToolStripMenuItem1->Text = L"Rear";
 | 
        
           |  |  | 569 | 			this->rearToolStripMenuItem1->Click += gcnew System::EventHandler(this, &CustomiseTurret::rearToolStripMenuItem1_Click);
 | 
        
           |  |  | 570 | 			// 
 | 
        
           |  |  | 571 | 			// toolStripSeparator6
 | 
        
           |  |  | 572 | 			// 
 | 
        
           |  |  | 573 | 			this->toolStripSeparator6->Name = L"toolStripSeparator6";
 | 
        
           |  |  | 574 | 			this->toolStripSeparator6->Size = System::Drawing::Size(111, 6);
 | 
        
           |  |  | 575 | 			// 
 | 
        
           |  |  | 576 | 			// upToolStripMenuItem1
 | 
        
           |  |  | 577 | 			// 
 | 
        
           |  |  | 578 | 			this->upToolStripMenuItem1->Name = L"upToolStripMenuItem1";
 | 
        
           |  |  | 579 | 			this->upToolStripMenuItem1->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 580 | 			this->upToolStripMenuItem1->Text = L"Top";
 | 
        
           |  |  | 581 | 			this->upToolStripMenuItem1->Click += gcnew System::EventHandler(this, &CustomiseTurret::upToolStripMenuItem1_Click);
 | 
        
           |  |  | 582 | 			// 
 | 
        
           |  |  | 583 | 			// downToolStripMenuItem1
 | 
        
           |  |  | 584 | 			// 
 | 
        
           |  |  | 585 | 			this->downToolStripMenuItem1->Name = L"downToolStripMenuItem1";
 | 
        
           |  |  | 586 | 			this->downToolStripMenuItem1->Size = System::Drawing::Size(114, 22);
 | 
        
           |  |  | 587 | 			this->downToolStripMenuItem1->Text = L"Bottom";
 | 
        
           |  |  | 588 | 			this->downToolStripMenuItem1->Click += gcnew System::EventHandler(this, &CustomiseTurret::downToolStripMenuItem1_Click);
 | 
        
           |  |  | 589 | 			// 
 | 
        
           |  |  | 590 | 			// removeSelectedToolStripMenuItem
 | 
        
           |  |  | 591 | 			// 
 | 
        
           |  |  | 592 | 			this->removeSelectedToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"removeSelectedToolStripMenuItem.Image")));
 | 
        
           |  |  | 593 | 			this->removeSelectedToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
 | 
        
           |  |  | 594 | 			this->removeSelectedToolStripMenuItem->Name = L"removeSelectedToolStripMenuItem";
 | 
        
           |  |  | 595 | 			this->removeSelectedToolStripMenuItem->Size = System::Drawing::Size(180, 38);
 | 
        
           |  |  | 596 | 			this->removeSelectedToolStripMenuItem->Text = L"Remove Selected";
 | 
        
           |  |  | 597 | 			this->removeSelectedToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseTurret::removeSelectedToolStripMenuItem_Click);
 | 
        
           |  |  | 598 | 			// 
 | 
        
           |  |  | 599 | 			// toolStripSeparator2
 | 
        
           |  |  | 600 | 			// 
 | 
        
           |  |  | 601 | 			this->toolStripSeparator2->Name = L"toolStripSeparator2";
 | 
        
           |  |  | 602 | 			this->toolStripSeparator2->Size = System::Drawing::Size(177, 6);
 | 
        
           |  |  | 603 | 			// 
 | 
        
           |  |  | 604 | 			// clearAllToolStripMenuItem
 | 
        
           |  |  | 605 | 			// 
 | 
        
           |  |  | 606 | 			this->clearAllToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"clearAllToolStripMenuItem.Image")));
 | 
        
           |  |  | 607 | 			this->clearAllToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
 | 
        
           |  |  | 608 | 			this->clearAllToolStripMenuItem->Name = L"clearAllToolStripMenuItem";
 | 
        
           |  |  | 609 | 			this->clearAllToolStripMenuItem->Size = System::Drawing::Size(180, 38);
 | 
        
           |  |  | 610 | 			this->clearAllToolStripMenuItem->Text = L"Clear All";
 | 
        
           |  |  | 611 | 			this->clearAllToolStripMenuItem->Click += gcnew System::EventHandler(this, &CustomiseTurret::clearAllToolStripMenuItem_Click);
 | 
        
           |  |  | 612 | 			// 
 | 
        
           |  |  | 613 | 			// panel36
 | 
        
           |  |  | 614 | 			// 
 | 
        
           |  |  | 615 | 			this->panel36->Controls->Add(this->ComboCockpit);
 | 
        
           |  |  | 616 | 			this->panel36->Controls->Add(this->label52);
 | 
        
           |  |  | 617 | 			this->panel36->Dock = System::Windows::Forms::DockStyle::Top;
 | 
        
           |  |  | 618 | 			this->panel36->Location = System::Drawing::Point(0, 0);
 | 
        
           |  |  | 619 | 			this->panel36->Name = L"panel36";
 | 
        
           |  |  | 620 | 			this->panel36->Padding = System::Windows::Forms::Padding(5);
 | 
        
           |  |  | 621 | 			this->panel36->Size = System::Drawing::Size(520, 32);
 | 
        
           |  |  | 622 | 			this->panel36->TabIndex = 4;
 | 
        
           |  |  | 623 | 			// 
 | 
        
           |  |  | 624 | 			// ComboCockpit
 | 
        
           |  |  | 625 | 			// 
 | 
        
           |  |  | 626 | 			this->ComboCockpit->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 627 | 			this->ComboCockpit->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
 | 
        
           |  |  | 628 | 			this->ComboCockpit->FormattingEnabled = true;
 | 
        
           |  |  | 629 | 			this->ComboCockpit->Location = System::Drawing::Point(164, 5);
 | 
        
           |  |  | 630 | 			this->ComboCockpit->Name = L"ComboCockpit";
 | 
        
           |  |  | 631 | 			this->ComboCockpit->Size = System::Drawing::Size(351, 21);
 | 
        
           |  |  | 632 | 			this->ComboCockpit->TabIndex = 1;
 | 
        
           |  |  | 633 | 			this->ComboCockpit->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseTurret::ComboCockpit_SelectedIndexChanged);
 | 
        
           |  |  | 634 | 			// 
 | 
        
           |  |  | 635 | 			// label52
 | 
        
           |  |  | 636 | 			// 
 | 
        
           |  |  | 637 | 			this->label52->Dock = System::Windows::Forms::DockStyle::Left;
 | 
        
           |  |  | 638 | 			this->label52->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
 | 
        
           |  |  | 639 | 				static_cast<System::Byte>(0)));
 | 
        
           |  |  | 640 | 			this->label52->Location = System::Drawing::Point(5, 5);
 | 
        
           |  |  | 641 | 			this->label52->Name = L"label52";
 | 
        
           |  |  | 642 | 			this->label52->Size = System::Drawing::Size(159, 22);
 | 
        
           |  |  | 643 | 			this->label52->TabIndex = 0;
 | 
        
           |  |  | 644 | 			this->label52->Text = L"Main Cockpit";
 | 
        
           |  |  | 645 | 			this->label52->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
 | 
        
           |  |  | 646 | 			// 
 | 
        
           |  |  | 647 | 			// CustomiseTurret
 | 
        
           |  |  | 648 | 			// 
 | 
        
           |  |  | 649 | 			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
 | 
        
           |  |  | 650 | 			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
 | 
        
           |  |  | 651 | 			this->Controls->Add(this->GroupCockpit);
 | 
        
           |  |  | 652 | 			this->Controls->Add(this->ListTurret);
 | 
        
           |  |  | 653 | 			this->Controls->Add(this->panel36);
 | 
        
           |  |  | 654 | 			this->Name = L"CustomiseTurret";
 | 
        
           |  |  | 655 | 			this->Size = System::Drawing::Size(520, 569);
 | 
        
           |  |  | 656 | 			this->GroupCockpit->ResumeLayout(false);
 | 
        
           |  |  | 657 | 			this->PanelCockpit->ResumeLayout(false);
 | 
        
           |  |  | 658 | 			this->panel39->ResumeLayout(false);
 | 
        
           |  |  | 659 | 			this->panel39->PerformLayout();
 | 
        
           |  |  | 660 | 			this->panel38->ResumeLayout(false);
 | 
        
           |  |  | 661 | 			this->panel38->PerformLayout();
 | 
        
           |  |  | 662 | 			this->panel37->ResumeLayout(false);
 | 
        
           |  |  | 663 | 			this->panel37->PerformLayout();
 | 
        
           |  |  | 664 | 			this->panel35->ResumeLayout(false);
 | 
        
           |  |  | 665 | 			this->contextMenuStrip1->ResumeLayout(false);
 | 
        
           |  |  | 666 | 			this->panel36->ResumeLayout(false);
 | 
        
           |  |  | 667 | 			this->ResumeLayout(false);
 | 
        
           |  |  | 668 |   | 
        
           |  |  | 669 | 		}
 | 
        
           |  |  | 670 | #pragma endregion
 | 
        
           |  |  | 671 | 	private: System::Void ComboCockpit_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 672 | 				 if ( m_pModels && !m_pModels->Empty() )
 | 
        
           |  |  | 673 | 				 {
 | 
        
           |  |  | 674 | 					 m_pShipData->lTurrets.Get(0)->iSceneNode = this->ComboCockpit->SelectedIndex;
 | 
        
           |  |  | 675 | 					 m_pShipData->lTurrets.Get(0)->sModel = m_pModels->GetAt(this->ComboCockpit->SelectedIndex)->str;
 | 
        
           |  |  | 676 | 				 }
 | 
        
           |  |  | 677 | 			 }
 | 
        
           |  |  | 678 | private: System::Void ListTurret_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 679 | 			 this->UpdateCockpitDisplay();
 | 
        
           |  |  | 680 | 		 }
 | 
        
           |  |  | 681 | private: System::Void RadioCockpitCustom_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 682 | 			 this->RadioCockpitStd->Checked = !this->RadioCockpitCustom->Checked;
 | 
        
           |  |  | 683 | 			 this->ComboCockpitCustom->Enabled = this->RadioCockpitCustom->Checked;
 | 
        
           |  |  | 684 | 			 this->PanelCockpit->Enabled = this->RadioCockpitCustom->Checked;
 | 
        
           |  |  | 685 | 			 this->UpdateCockpitDisplay2();
 | 
        
           |  |  | 686 | 		 }
 | 
        
           |  |  | 687 | private: System::Void ComboCockpitCustom_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 688 | 			if ( this->ListTurret->SelectedItems->Count )
 | 
        
           |  |  | 689 | 			{
 | 
        
           |  |  | 690 | 				ListViewItem ^item = this->ListTurret->SelectedItems[0];
 | 
        
           |  |  | 691 | 				item->SubItems[1]->Text = this->ComboCockpitCustom->Text;
 | 
        
           |  |  | 692 | 				m_pShipData->cockpits[Convert::ToInt32(item->Tag) - 1].iCockpit = -1;
 | 
        
           |  |  | 693 | 				m_pShipData->cockpits[Convert::ToInt32(item->Tag) - 1].sCockpit = CyStringFromSystemString(this->ComboCockpitCustom->Text);
 | 
        
           |  |  | 694 | 				this->ListTurret->AutoResizeColumns(ColumnHeaderAutoResizeStyle::HeaderSize);
 | 
        
           |  |  | 695 | 			}
 | 
        
           |  |  | 696 |   | 
        
           |  |  | 697 | 			this->UpdateCockpitDisplay2();
 | 
        
           |  |  | 698 | 		 }
 | 
        
           |  |  | 699 | private: System::Void ComboGameCockpit_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 700 | 			 this->UpdateCockpitWeaponsList();
 | 
        
           |  |  | 701 | 		 }
 | 
        
           |  |  | 702 | private: System::Void CheckWeaponDefaultCockpit_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 703 | 			 this->ListWeaponCockpit->Enabled = !this->CheckWeaponDefaultCockpit->Checked;
 | 
        
           |  |  | 704 | 			 if ( m_bUpdateing ) return;
 | 
        
           |  |  | 705 | 			 int value = (this->CheckWeaponDefaultCockpit->Checked) ? -1 : 0;
 | 
        
           |  |  | 706 | 			 bool found = false;
 | 
        
           |  |  | 707 | 			 for ( SWeaponMask *m = m_pCurrentCockpit->lWeaponMask.First(); m; m = m_pCurrentCockpit->lWeaponMask.Next() )
 | 
        
           |  |  | 708 | 			 {
 | 
        
           |  |  | 709 | 				if ( m->iGame == this->ComboGameCockpit->SelectedIndex )
 | 
        
           |  |  | 710 | 				{
 | 
        
           |  |  | 711 | 					m->iMask = value;
 | 
        
           |  |  | 712 | 					found = true;
 | 
        
           |  |  | 713 | 					break;
 | 
        
           |  |  | 714 | 				}
 | 
        
           |  |  | 715 | 			}
 | 
        
           |  |  | 716 | 			if ( !found )
 | 
        
           |  |  | 717 | 			{
 | 
        
           |  |  | 718 | 				SWeaponMask *m = m_pCurrentCockpit->lWeaponMask.push_back(new SWeaponMask);
 | 
        
           |  |  | 719 | 				m->iGame = this->ComboGameCockpit->SelectedIndex;
 | 
        
           |  |  | 720 | 				m->iMask = value;
 | 
        
           |  |  | 721 | 			}
 | 
        
           |  |  | 722 | 			this->UpdateCockpitWeaponsList();
 | 
        
           |  |  | 723 | 		 }
 | 
        
           |  |  | 724 | private: System::Void ListTurret_MouseDoubleClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
 | 
        
           |  |  | 725 | 			 if ( !this->ListTurret->SelectedItems->Count ) return;
 | 
        
           |  |  | 726 | 			 ListViewItem ^item = this->ListTurret->SelectedItems[0];
 | 
        
           |  |  | 727 | 			 this->EditTurret(item);
 | 
        
           |  |  | 728 | 		 }
 | 
        
           |  |  | 729 | private: System::Void ComboCockpitStd_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 730 | 			 if ( !this->ListTurret->SelectedItems->Count ) return;
 | 
        
           |  |  | 731 | 			 ListViewItem ^item = this->ListTurret->SelectedItems[0];
 | 
        
           |  |  | 732 | 			 int t = Convert::ToInt32(item->Tag);
 | 
        
           |  |  | 733 | 			 m_pShipData->cockpits[t - 1].iCockpit = this->ComboCockpitStd->SelectedIndex;
 | 
        
           |  |  | 734 | 			 m_pShipData->cockpits[t - 1].sCockpit = "";
 | 
        
           |  |  | 735 | 			 item->SubItems[1]->Text = Convert::ToString(this->ComboCockpitStd->SelectedIndex);
 | 
        
           |  |  | 736 | 		 }
 | 
        
           |  |  | 737 | private: System::Void RadioCockpitStd_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 738 | 			 this->RadioCockpitCustom->Checked = !this->RadioCockpitStd->Checked;
 | 
        
           |  |  | 739 | 			 this->ComboCockpitStd->Enabled = this->RadioCockpitStd->Checked;
 | 
        
           |  |  | 740 | 		 }
 | 
        
           |  |  | 741 | private: System::Void ButNewCockpit_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 742 | 			 InputBox ^input = gcnew InputBox("Enter the cockpit id to add", "SS_COCKPIT_");
 | 
        
           |  |  | 743 | 			 if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
 | 
        
           |  |  | 744 | 			 {
 | 
        
           |  |  | 745 | 				 m_pShipFile->NewCockpit(CyStringFromSystemString(input->GetInput()), "4512", 0);
 | 
        
           |  |  | 746 | 				 this->ComboCockpitCustom->Items->Add(input->GetInput());
 | 
        
           |  |  | 747 | 				 this->ComboCockpitCustom->Text = input->GetInput();
 | 
        
           |  |  | 748 | 				 this->RadioCockpitCustom->Checked = true;
 | 
        
           |  |  | 749 | 				 this->RadioCockpitCustom->Enabled = true;
 | 
        
           |  |  | 750 | 			 }
 | 
        
           |  |  | 751 | 		 }
 | 
        
           |  |  | 752 | private: System::Void TextCockpitScene_TextChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 753 | 			 if ( m_pCurrentCockpit )
 | 
        
           |  |  | 754 | 				 m_pCurrentCockpit->sCockpit = m_pCurrentCockpit->sCockpit.RepToken(";", 8, CyStringFromSystemString(this->TextCockpitScene->Text));
 | 
        
           |  |  | 755 | 		 }
 | 
        
           |  |  | 756 | private: System::Void ListWeaponCockpit_ItemChecked(System::Object^  sender, System::Windows::Forms::ItemCheckedEventArgs^  e) {
 | 
        
           |  |  | 757 | 			 this->SaveCockpitWeaponsList();
 | 
        
           |  |  | 758 | 		 }
 | 
        
           |  |  | 759 | private: System::Void contextMenuStrip1_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
 | 
        
           |  |  | 760 |   | 
        
           |  |  | 761 | 			 Point ^mousePoint = this->ListTurret->PointToClient(this->contextMenuStrip1->MousePosition);
 | 
        
           |  |  | 762 | 			 ListViewItem ^item = this->ListTurret->GetItemAt(mousePoint->X, mousePoint->Y);
 | 
        
           |  |  | 763 |   | 
        
           |  |  | 764 | 			 this->removeSelectedToolStripMenuItem->Enabled = (item) ? true : false;
 | 
        
           |  |  | 765 | 			 this->editTurretToolStripMenuItem->Enabled = (item && m_pModels) ? true : false;
 | 
        
           |  |  | 766 |   | 
        
           |  |  | 767 | 			 this->ContextTurretAdd->Enabled = (this->ListTurret->Items->Count < 6) ? true : false;
 | 
        
           |  |  | 768 | 			 this->clearAllToolStripMenuItem->Enabled = (this->ListTurret->Items->Count) ? true : false;
 | 
        
           |  |  | 769 | 			 this->changePositionToolStripMenuItem->Enabled = (item) ? true : false;
 | 
        
           |  |  | 770 |   | 
        
           |  |  | 771 | 			 this->leftToolStripMenuItem1->Checked = false;
 | 
        
           |  |  | 772 | 			 this->rightToolStripMenuItem1->Checked = false;
 | 
        
           |  |  | 773 | 			 this->frontToolStripMenuItem1->Checked = false;
 | 
        
           |  |  | 774 | 			 this->rearToolStripMenuItem1->Checked = false;
 | 
        
           |  |  | 775 | 			 this->upToolStripMenuItem1->Checked = false;
 | 
        
           |  |  | 776 | 			 this->downToolStripMenuItem1->Checked = false;
 | 
        
           |  |  | 777 | 			 if ( item )
 | 
        
           |  |  | 778 | 			 {
 | 
        
           |  |  | 779 | 				 switch(m_pShipData->cockpits[Convert::ToInt32(item->Tag) - 1].iPos)
 | 
        
           |  |  | 780 | 				 {
 | 
        
           |  |  | 781 | 					case 1:
 | 
        
           |  |  | 782 | 						this->frontToolStripMenuItem1->Checked = true;
 | 
        
           |  |  | 783 | 						break;
 | 
        
           |  |  | 784 | 					case 2:
 | 
        
           |  |  | 785 | 						this->rearToolStripMenuItem1->Checked = true;
 | 
        
           |  |  | 786 | 						break;
 | 
        
           |  |  | 787 | 					case 3:
 | 
        
           |  |  | 788 | 						this->leftToolStripMenuItem1->Checked = true;
 | 
        
           |  |  | 789 | 						break;
 | 
        
           |  |  | 790 | 					case 4:
 | 
        
           |  |  | 791 | 						this->rightToolStripMenuItem1->Checked = true;
 | 
        
           |  |  | 792 | 						break;
 | 
        
           |  |  | 793 | 					case 5:
 | 
        
           |  |  | 794 | 						this->upToolStripMenuItem1->Checked = true;
 | 
        
           |  |  | 795 | 						break;
 | 
        
           |  |  | 796 | 					case 6:
 | 
        
           |  |  | 797 | 						this->downToolStripMenuItem1->Checked = true;
 | 
        
           |  |  | 798 | 						break;
 | 
        
           |  |  | 799 | 				 }
 | 
        
           |  |  | 800 | 			 }
 | 
        
           |  |  | 801 |   | 
        
           |  |  | 802 | 			 m_pSelectedItem = item;
 | 
        
           |  |  | 803 | 			 e->Cancel = false;
 | 
        
           |  |  | 804 | 		 }
 | 
        
           |  |  | 805 | private: System::Void editTurretToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 806 | 			 if ( !m_pSelectedItem ) return;
 | 
        
           |  |  | 807 | 			 this->EditTurret(m_pSelectedItem);
 | 
        
           |  |  | 808 | 		 }
 | 
        
           |  |  | 809 | private: System::Void removeSelectedToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 810 | 			 if ( !m_pSelectedItem ) return;
 | 
        
           |  |  | 811 | 			 m_pShipData->RemoveTurret(Convert::ToInt32(m_pSelectedItem->Tag));
 | 
        
           |  |  | 812 | 			 this->UpdateTurrets();
 | 
        
           |  |  | 813 | 		 }
 | 
        
           |  |  | 814 | private: System::Void clearAllToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 815 | 			 m_pShipData->ClearTurrets();
 | 
        
           |  |  | 816 | 			 this->UpdateTurrets();
 | 
        
           |  |  | 817 | 		 }
 | 
        
           |  |  | 818 | private: System::Void leftToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 819 | 			 m_pShipData->AddNewTurret(3);
 | 
        
           |  |  | 820 | 			 this->EditTurret(m_pShipData->iTurretCount - 1);
 | 
        
           |  |  | 821 | 			 this->UpdateTurrets();
 | 
        
           |  |  | 822 | 		 }
 | 
        
           |  |  | 823 | private: System::Void rightToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 824 | 			 m_pShipData->AddNewTurret(4);
 | 
        
           |  |  | 825 | 			 this->EditTurret(m_pShipData->iTurretCount - 1);
 | 
        
           |  |  | 826 | 			 this->UpdateTurrets();
 | 
        
           |  |  | 827 | 		 }
 | 
        
           |  |  | 828 | private: System::Void frontToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 829 | 			 m_pShipData->AddNewTurret(1);
 | 
        
           |  |  | 830 | 			 this->EditTurret(m_pShipData->iTurretCount - 1);
 | 
        
           |  |  | 831 | 			 this->UpdateTurrets();
 | 
        
           |  |  | 832 | 		 }
 | 
        
           |  |  | 833 | private: System::Void rearToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 834 | 			 m_pShipData->AddNewTurret(2);
 | 
        
           |  |  | 835 | 			 this->EditTurret(m_pShipData->iTurretCount - 1);
 | 
        
           |  |  | 836 | 			 this->UpdateTurrets();
 | 
        
           |  |  | 837 | 		 }
 | 
        
           |  |  | 838 | private: System::Void upToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 839 | 			 m_pShipData->AddNewTurret(5);
 | 
        
           |  |  | 840 | 			 this->EditTurret(m_pShipData->iTurretCount - 1);
 | 
        
           |  |  | 841 | 			 this->UpdateTurrets();
 | 
        
           |  |  | 842 | 		 }
 | 
        
           |  |  | 843 | private: System::Void downToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 844 | 			 m_pShipData->AddNewTurret(6);
 | 
        
           |  |  | 845 | 			 this->EditTurret(m_pShipData->iTurretCount - 1);
 | 
        
           |  |  | 846 | 			 this->UpdateTurrets();
 | 
        
           |  |  | 847 | 		 }
 | 
        
           |  |  | 848 | private: System::Void leftToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 849 | 			 m_pShipData->cockpits[Convert::ToInt32(m_pSelectedItem->Tag) - 1].iPos = 3;
 | 
        
           |  |  | 850 | 			 m_pSelectedItem->SubItems[2]->Text = this->GetPosition(3);
 | 
        
           |  |  | 851 | 		 }
 | 
        
           |  |  | 852 | private: System::Void rightToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 853 | 			 m_pShipData->cockpits[Convert::ToInt32(m_pSelectedItem->Tag) - 1].iPos = 4;
 | 
        
           |  |  | 854 | 			 m_pSelectedItem->SubItems[2]->Text = this->GetPosition(4);
 | 
        
           |  |  | 855 | 		 }
 | 
        
           |  |  | 856 | private: System::Void frontToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 857 | 			 m_pShipData->cockpits[Convert::ToInt32(m_pSelectedItem->Tag) - 1].iPos = 1;
 | 
        
           |  |  | 858 | 			 m_pSelectedItem->SubItems[2]->Text = this->GetPosition(1);
 | 
        
           |  |  | 859 | 		 }
 | 
        
           |  |  | 860 | private: System::Void rearToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 861 | 			 m_pShipData->cockpits[Convert::ToInt32(m_pSelectedItem->Tag) - 1].iPos = 2;
 | 
        
           |  |  | 862 | 			 m_pSelectedItem->SubItems[2]->Text = this->GetPosition(2);
 | 
        
           |  |  | 863 | 		 }
 | 
        
           |  |  | 864 | private: System::Void upToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 865 | 			 m_pShipData->cockpits[Convert::ToInt32(m_pSelectedItem->Tag) - 1].iPos = 5;
 | 
        
           |  |  | 866 | 			 m_pSelectedItem->SubItems[2]->Text = this->GetPosition(5);
 | 
        
           |  |  | 867 | 		 }
 | 
        
           |  |  | 868 | private: System::Void downToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 869 | 			 m_pShipData->cockpits[Convert::ToInt32(m_pSelectedItem->Tag) - 1].iPos = 6;
 | 
        
           |  |  | 870 | 			 m_pSelectedItem->SubItems[2]->Text = this->GetPosition(6);
 | 
        
           |  |  | 871 | 		 }
 | 
        
           |  |  | 872 | };
 | 
        
           |  |  | 873 | }
 |