public CameraView(RomInfo romInfo) { InitializeComponent(); info = romInfo; cameraOpenGLControl.InitializeContexts(); cameraOpenGLControl.MakeCurrent(); Gl.glEnable(Gl.GL_TEXTURE_2D); }
public ROMToolboxDialog(RomInfo romInfo) { InitializeComponent(); CheckStandardizedItems(); if (RomInfo.gameLanguage == "ENG" || RomInfo.gameLanguage == "ESP") { CheckARM9Expansion(); } else { disableARM9patch(); applyARM9ExpansionButton.Text = "Unsupported\nlanguage"; disableBDHCAMpatch(); BDHCAMpatchButton.Text = "Unsupported\nlanguage"; } switch (RomInfo.gameVersion) { case "D": case "P": disableOverlay1patch(); overlay1uncomprButton.Text = "Unsupported"; break; case "Plat": disableOverlay1patch(); overlay1uncomprButton.Text = "Unsupported"; CheckFilesBDHCAMpatchApplied(); break; case "HG": case "SS": if (!DSUtils.CheckOverlayHasCompressionFlag(1)) { disableOverlay1patch(); overlay1CB.Visible = true; overlay1uncomprButton.Text = "Already applied"; } CheckFilesBDHCAMpatchApplied(); break; } }
public ROMToolboxDialog(RomInfo romInfo) { InitializeComponent(); this.romInfo = romInfo; DSUtils.UnpackNarc(12); CheckStandardizedItems(); CheckARM9Expansion(); switch (RomInfo.gameVersion) { case "D": case "P": bdhcamARM9requiredLBL.Enabled = false; BDHCAMpatchButton.Text = "Unsupported"; overlay1uncomprButton.Enabled = false; overlay1uncompressedLBL.Enabled = false; overlay1patchtextLBL.Enabled = false; overlay1uncomprButton.Text = "Unsupported"; break; case "Plat": overlay1uncomprButton.Enabled = false; overlay1uncompressedLBL.Enabled = false; overlay1patchtextLBL.Enabled = false; overlay1uncomprButton.Text = "Unsupported"; CheckFilesBDHCAMPatchApplied(); break; case "HG": case "SS": if (!DSUtils.CheckOverlayHasCompressionFlag(1)) { overlay1uncomprButton.Enabled = false; overlay1uncompressedLBL.Enabled = false; overlay1patchtextLBL.Enabled = false; overlay1CB.Visible = true; overlay1uncomprButton.Text = "Already applied"; } CheckFilesBDHCAMPatchApplied(); break; } }
public BuildingEditor(RomInfo romInfo) { InitializeComponent(); rom = romInfo; buildingOpenGLControl.InitializeContexts(); buildingOpenGLControl.MakeCurrent(); buildingOpenGLControl.MouseWheel += new MouseEventHandler(buildingOpenGLControl_MouseWheel); Gl.glEnable(Gl.GL_TEXTURE_2D); if (RomInfo.gameVersion == "HG" || RomInfo.gameVersion == "SS") { interiorCheckBox.Enabled = true; } disableHandlers = true; FillListBox(false); FillTexturesBox(); textureComboBox.SelectedIndex = 0; disableHandlers = false; buildingEditorBldListBox.SelectedIndex = 0; }