-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUMMSettingsUI.cs
53 lines (45 loc) · 1.83 KB
/
UMMSettingsUI.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using TabletopTweaks.Core.Config;
using TabletopTweaks.Core.UMMTools;
using UnityEngine;
using UnityModManagerNet;
namespace LegacyOfShadows
{
public static class UMMSettingsUI
{
private static int selectedTab;
public static void OnGUI(UnityModManager.ModEntry modEntry)
{
UI.AutoWidth();
UI.TabBar(ref selectedTab,
() => UI.Label("SETTINGS WILL NOT BE UPDATED UNTIL YOU RESTART YOUR GAME.".yellow().bold()),
new NamedAction("Added Content", () => SettingsTabs.NewContent())
);
}
}
static class SettingsTabs
{
public static void NewContent()
{
var TabLevel = SetttingUI.TabLevel.Zero;
var AddedContent = Main.LoSContext.NewContent;
UI.Div(0, 15);
using (UI.VerticalScope())
{
UI.Toggle("New Settings Off By Default".bold(), ref AddedContent.NewSettingsOffByDefault);
UI.Space(25);
SetttingUI.SettingGroup("Archetypes", TabLevel, AddedContent.Archetypes);
SetttingUI.SettingGroup("Feats", TabLevel, AddedContent.Feats);
SetttingUI.SettingGroup("Ninja Tricks", TabLevel, AddedContent.NinjaTricks);
SetttingUI.SettingGroup("Rogue Talents", TabLevel, AddedContent.RogueTalents);
SetttingUI.SettingGroup("Slayer Talents", TabLevel, AddedContent.SlayerTalents);
SetttingUI.SettingGroup("Wild Talents", TabLevel, AddedContent.WildTalents);
SetttingUI.SettingGroup("Items", TabLevel, AddedContent.Items);
SetttingUI.SettingGroup("Spells", TabLevel, AddedContent.Spells);
}
}
}
}