private void Option_StaticSetExportMode_SelectedIndexChanged(object sender, EventArgs e) { if (Option_StaticSetExportMode.SelectedIndex == 1) { PicBox_StaticSetExpMode.Image = Warning; MainTooltip.SetToolTip(PicBox_StaticSetExpMode, "This option can result in a exporting lot of extra/junk models that you don't want!"); } else { PicBox_StaticSetExpMode.Image = Accepted; MainTooltip.SetToolTip(PicBox_StaticSetExpMode, string.Empty); } }
private void ProtectAgainstZeroScaleChanged(object sender, EventArgs e) { if (CheckBox_ProtectAgainstZeroScale.Checked == false) { PicBox_ZeroScale.Image = Warning; MainTooltip.SetToolTip(PicBox_ZeroScale, "Some models may be unusable in your editor if they have a zero scale!"); } else { PicBox_ZeroScale.Image = Accepted; MainTooltip.SetToolTip(PicBox_ZeroScale, string.Empty); } }
/// <summary> /// Verifies the integrity of both the load and save path. /// </summary> private void VerifyAllPathIntegrity() { string loadPath = TextBox_DefaultLoadLoc.Text; string savePath = TextBox_DefaultSaveLoc.Text; string rsrcPath = TextBox_RsrcDirectory.Text; bool loadOK = IsPathOK(loadPath); bool saveOK = IsPathOK(savePath); bool rsrcOK = IsPathOK(rsrcPath); IsOK = loadOK && saveOK & rsrcOK; PicBox_DefLoadLoc.Image = loadOK ? Accepted : Error; MainTooltip.SetToolTip(PicBox_DefLoadLoc, loadOK ? string.Empty : "The given directory is invalid (you didn't input a path) or it doesn't exist!" ); PicBox_DefSaveLoc.Image = saveOK ? Accepted : Error; MainTooltip.SetToolTip(PicBox_DefSaveLoc, saveOK ? string.Empty : "The given directory is invalid (you didn't input a path) or it doesn't exist!" ); if (rsrcOK) { bool namedRsrc = new DirectoryInfo(rsrcPath).Name == "rsrc"; if (namedRsrc) { PicBox_RsrcDir.Image = Accepted; MainTooltip.SetToolTip(PicBox_RsrcDir, string.Empty); } else { PicBox_RsrcDir.Image = Warning; MainTooltip.SetToolTip(PicBox_RsrcDir, "This path is valid, but the folder is not named rsrc. Only continue if you're sure this is the right folder (e.g. you made it)!"); } } else { PicBox_RsrcDir.Image = Error; MainTooltip.SetToolTip(PicBox_RsrcDir, "The given directory is invalid (you didn't input a path) or it doesn't exist!"); } Option_StaticSetExportMode_SelectedIndexChanged(null, null); BtnSave.Enabled = IsOK; }
private void VerboseLoggingChanged(object sender, EventArgs e) { // SelectedIndex translates to the level nicely. if (Option_LogLevel.SelectedIndex > XanLogger.STANDARD) { if (!CheckBox_PreferSpeed.Checked) { PicBox_VerboseLogging.Image = Warning; MainTooltip.SetToolTip(PicBox_VerboseLogging, "Enabling debug or trace logging can slow down the program\n(it has to wait while the text is written to the console). This does not need to be set\nto change how latest.log is written, and is only useful for debugging during runtime."); } else { PicBox_VerboseLogging.Image = Information; MainTooltip.SetToolTip(PicBox_VerboseLogging, "Generally, setting this above standard is not advised, however since\nPrefer Speed Over Feedback is enabled, the effects of this option do not apply."); } } else { PicBox_VerboseLogging.Image = Accepted; MainTooltip.SetToolTip(PicBox_VerboseLogging, string.Empty); } }