static void OnGUI(UnityModManager.ModEntry modEntry) { if (!enabled) { return; } var fixedWidth = new GUILayoutOption[1] { GUILayout.ExpandWidth(false) }; if (testedGameVersion != GameVersion.GetVersion()) { GUILayout.Label($"<b>This mod was tested against game version {testedGameVersion}, but you are running {GameVersion.GetVersion()}.</b>", fixedWidth); } if (failedPatches.Count > 0) { GUILayout.BeginVertical(); GUILayout.Label("<b>Error: Some patches failed to apply. These features may not work:</b>", fixedWidth); foreach (var featureName in failedPatches) { GUILayout.Label($" • <b>{featureName}</b>", fixedWidth); } GUILayout.EndVertical(); } if (failedLoading.Count > 0) { GUILayout.BeginVertical(); GUILayout.Label("<b>Error: Some assets failed to load. Saves using these features won't work:</b>", fixedWidth); foreach (var featureName in failedLoading) { GUILayout.Label($" • <b>{featureName}</b>", fixedWidth); } GUILayout.EndVertical(); } settings.EldritchKnightFix = GUILayout.Toggle(settings.EldritchKnightFix, "Eldritch Knight requires martial class (doesn't affect existing EKs)", fixedWidth); settings.ShowCustomPortraits = GUILayout.Toggle(settings.ShowCustomPortraits, "Show custom portraits in the portrait list at character creation (if changed, requires restart)", fixedWidth); settings.OracleHas3SkillPoints = GUILayout.Toggle(settings.OracleHas3SkillPoints, "Give Oracle class 3+int skill points on level up (instead of 4, due to condensed skills)"); OracleClass.MaybeUpdateSkillPoints(); settings.RelaxAncientLorekeeper = GUILayout.Toggle(settings.RelaxAncientLorekeeper, "Any race can choose the Oracle Ancient Lorekeeper archetype", fixedWidth); settings.RelaxTonguesCurse = GUILayout.Toggle(settings.RelaxTonguesCurse, "Disable Tongues curse penalty (that party members need 1 rank Knowledge: World to be controlled by PC in combat)", fixedWidth); }
static void OnGUI(UnityModManager.ModEntry modEntry) { if (!enabled) { return; } var fixedWidth = new GUILayoutOption[1] { GUILayout.ExpandWidth(false) }; if (testedGameVersion != GameVersion.GetVersion()) { GUILayout.Label(string.Format(RES.testedGameVersion_warning, testedGameVersion, GameVersion.GetVersion()), fixedWidth); } if (failedPatches.Count > 0) { GUILayout.BeginVertical(); GUILayout.Label(RES.failedPatches_error, fixedWidth); foreach (var featureName in failedPatches) { GUILayout.Label(string.Format(RES.featureName_error, featureName), fixedWidth); } GUILayout.EndVertical(); } if (failedLoading.Count > 0) { GUILayout.BeginVertical(); GUILayout.Label(RES.failedLoading_error, fixedWidth); foreach (var featureName in failedLoading) { GUILayout.Label(string.Format(RES.featureName_error, featureName), fixedWidth); } GUILayout.EndVertical(); } settings.EldritchKnightFix = GUILayout.Toggle(settings.EldritchKnightFix, RES.EldritchKnightFix_info, fixedWidth); settings.DrawbackForextraTraits = GUILayout.Toggle(settings.DrawbackForextraTraits, RES.DrawbackForextraTraits_info, fixedWidth); settings.OracleHas3SkillPoints = GUILayout.Toggle(settings.OracleHas3SkillPoints, RES.OracleHas3SkillPoints_info, fixedWidth); OracleClass.MaybeUpdateSkillPoints(); settings.RelaxAncientLorekeeper = GUILayout.Toggle(settings.RelaxAncientLorekeeper, RES.RelaxAncientLorekeeper_info, fixedWidth); settings.RelaxTonguesCurse = GUILayout.Toggle(settings.RelaxTonguesCurse, RES.RelaxTonguesCurse_info, fixedWidth); settings.ShowCustomPortraits = GUILayout.Toggle(settings.ShowCustomPortraits, RES.ShowCustomPortraits_info, fixedWidth); settings.CheatCustomTraits = GUILayout.Toggle(settings.CheatCustomTraits, RES.CheatCustomTraits_info, fixedWidth); settings.HighDCl = GUILayout.Toggle(settings.HighDCl, RES.HighDCl_info, fixedWidth); }
static void OnGUI(UnityModManager.ModEntry modEntry) { if (!enabled) { return; } GL.BeginVertical("box"); if (testedGameVersion != GameVersion.GetVersion()) { SingleLineLabel(string.Format(RES.testedGameVersion_warning, testedGameVersion, GameVersion.GetVersion())); } if (failedPatches.Count > 0) { SingleLineLabel(RES.failedPatches_error); foreach (var featureName in failedPatches) { SingleLineLabel(string.Format(RES.featureName_error, featureName)); } } if (failedLoading.Count > 0) { SingleLineLabel(RES.failedLoading_error); foreach (var featureName in failedLoading) { SingleLineLabel(string.Format(RES.featureName_error, featureName)); } } SingleLineToggle(ref settings.EldritchKnightFix, RES.EldritchKnightFix_info, RES.EldritchKnightFix_tip); SingleLineToggle(ref settings.DrawbackForextraTraits, RES.DrawbackForextraTraits_info); SingleLineToggle(ref settings.OracleHas3SkillPoints, RES.OracleHas3SkillPoints_info); OracleClass.MaybeUpdateSkillPoints(); SingleLineToggle(ref settings.RelaxAncientLorekeeper, RES.RelaxAncientLorekeeper_info); SingleLineToggle(ref settings.RelaxTonguesCurse, RES.RelaxTonguesCurse_info, RES.RelaxTonguesCurse_tip); SingleLineToggle(ref settings.ShowCustomPortraits, RES.ShowCustomPortraits_info); SingleLineToggle(ref settings.CheatCustomTraits, RES.CheatCustomTraits_info); SingleLineToggle(ref settings.HighDCl, RES.HighDCl_info); GL.EndVertical(); ShowTooltip(); }
static void OnGUI(UnityModManager.ModEntry modEntry) { if (!enabled) { return; } var fixedWidth = new GUILayoutOption[1] { GUILayout.ExpandWidth(false) }; if (testedGameVersion != GameVersion.GetVersion()) { GUILayout.Label($"<b>This mod was tested against game version {testedGameVersion}, but you are running {GameVersion.GetVersion()}.</b>", fixedWidth); } if (failedPatches.Count > 0) { GUILayout.BeginVertical(); GUILayout.Label("<b>Error: Some patches failed to apply. These features may not work:</b>", fixedWidth); foreach (var featureName in failedPatches) { GUILayout.Label($" • <b>{featureName}</b>", fixedWidth); } GUILayout.EndVertical(); } if (failedLoading.Count > 0) { GUILayout.BeginVertical(); GUILayout.Label("<b>Error: Some assets failed to load. Saves using these features won't work:</b>", fixedWidth); foreach (var featureName in failedLoading) { GUILayout.Label($" • <b>{featureName}</b>", fixedWidth); } GUILayout.EndVertical(); } settings.EldritchKnightFix = GUILayout.Toggle(settings.EldritchKnightFix, "Eldritch Knight requires martial class (doesn't affect existing EKs)", fixedWidth); settings.ShowCustomPortraits = GUILayout.Toggle(settings.ShowCustomPortraits, "Show custom portraits in the portrait list at character creation (if changed, requires restart)", fixedWidth); settings.CheatCustomTraits = GUILayout.Toggle(settings.CheatCustomTraits, "Enable Show alll traits,spells even custom and homebrew(if changed, requires restart for changes to show up)", fixedWidth); string message = "Enable Picking Bloodline mutations on every bloodline class(if changed, requires new save but it doesn't work yet)"; settings.DrawbackForextraTraits = GUILayout.Toggle(settings.DrawbackForextraTraits, "features incompatible with call of the wild(Turn off for compatibility Call of the wild 1.57+)(if changed, requires restart)", fixedWidth); settings.FavoredMetamagic = GUILayout.Toggle(settings.FavoredMetamagic, "favored class bonus and metamagic feats", fixedWidth); settings.HighDCl = GUILayout.Toggle(settings.HighDCl, "Outlander spells gain caster level and Dc max{cheat}", fixedWidth); settings.OracleHas3SkillPoints = GUILayout.Toggle(settings.OracleHas3SkillPoints, "Give Oracle class 3+int skill points on level up (instead of 4, due to condensed skills)"); OracleClass.MaybeUpdateSkillPoints(); settings.RelaxAncientLorekeeper = GUILayout.Toggle(settings.RelaxAncientLorekeeper, "Any race can choose the Oracle Ancient Lorekeeper archetype", fixedWidth); settings.RelaxTonguesCurse = GUILayout.Toggle(settings.RelaxTonguesCurse, "Disable Tongues curse penalty (that party members need 1 rank Knowledge: World to be controlled by PC in combat)", fixedWidth); }