Example #1
0
		private void ApplyToRom(string saveToFilename)
		{
			string[] lines = richTextBox1.Lines;
			InputParser parser = new InputParser(tool);
			parser.ProcessLines(lines);
			tool.SaveRom(saveToFilename);
			UpdateTitle(saveToFilename);
		}
Example #2
0
		public ModifyTeamForm()
		{
			m_InitDone = false;
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			m_PlaybookRegex    = new Regex("PLAYBOOK (R[1-8]{4})\\s*,\\s*(P[1-8]{4})");
			m_OffensiveFormationRegex = new Regex("OFFENSIVE_FORMATION\\s*=\\s*([a-zA-Z1234_]+)");
			m_Boxes = new PictureBox[8];
			m_Boxes[0] = m_Run1PictureBox;
			m_Boxes[1] = m_Run2PictureBox;
			m_Boxes[2] = m_Run3PictureBox;
			m_Boxes[3] = m_Run4PictureBox;
			m_Boxes[4] = m_Pass1PictureBox;
			m_Boxes[5] = m_Pass2PictureBox;
			m_Boxes[6] = m_Pass3PictureBox;
			m_Boxes[7] = m_Pass4PictureBox;

			m_RunPlaysGroupBox.Enabled = false;
			m_PassPlaysGroupBox.Enabled = false;
			m_FormationComboBox.Enabled = false;
			m_InputParser = new InputParser();
			PopulatePlayImages();
			m_TeamsComboBox.SelectedIndex = 0;
			m_InitDone = true;
		}
Example #3
0
		public static void ModifyStuff(string romfile, string inputfile)
		{
			ITecmoTool tt = TecmoToolFactory.GetToolForRom( romfile );

			InputParser parser  = new InputParser(tt);
			if(inputfile != null)
				parser.ProcessFile(inputfile);
			else
				parser.ReadFromStdin();
			tt.SaveRom(outFileName);
		}
Example #4
0
		public AttributeForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			m_SimStuff = new SimStuff();
			m_Parser = new InputParser();
			m_Attributes = new ComboBox[8];
			m_Attributes[0] = m_RSBox;
			m_Attributes[1] = m_RPBox;
			m_Attributes[2] = m_MSBox;
			m_Attributes[3] = m_HPBox;
			m_Attributes[4] = m_PS_BC_PI_KABox;
			m_Attributes[5] = m_PC_REC_QU_KABox;
			m_Attributes[6] = m_ACCBox;
			m_Attributes[7] = m_APBBox;

			m_SimAttrs = new NumericUpDown[4];
			m_SimAttrs[0] = m_Sim1UpDown;
			m_SimAttrs[1] = m_Sim2UpDown;
			m_SimAttrs[2] = m_Sim3UpDown;
			m_SimAttrs[3] = m_Sim4UpDown;

			m_TeamsComboBox.SelectedIndex    = 0;
			m_PositionComboBox.SelectedIndex = 0;
			m_DoneInit = true;
			CurrentState = StateEnum.QB;
		}