// Add the mod UI
    public static void Initialize(OptionalUI.OptionInterface self)
    {
        self.Tabs    = new OptionalUI.OpTab[1];
        self.Tabs[0] = new OptionalUI.OpTab("Config");

        OptionalUI.OpLabel cfgTitle = new OptionalUI.OpLabel(new Vector2(100, 550), new Vector2(400, 40), "CONFIG", FLabelAlignment.Center, true);
        self.Tabs[0].AddItem(cfgTitle);
        OptionalUI.OpLabel cfgRadiusMulLabel = new OptionalUI.OpLabel(new Vector2(200, 300), new Vector2(200, 40), "Radius Multiplier %", FLabelAlignment.Center);
        self.Tabs[0].AddItem(cfgRadiusMulLabel);
        OptionalUI.OpDragger cfgRadiusMulDragger = new OptionalUI.OpDragger(new Vector2(300 - 12, 260), "RadiusMultiplier", 100);
        cfgRadiusMulDragger.max = 500;
        cfgRadiusMulDragger.min = 0;
        self.Tabs[0].AddItem(cfgRadiusMulDragger);
    }
Пример #2
0
 public InvalidSlugcatException(OptionInterface oi) : base($"OptionInterface {oi.rwMod.ModID} tried to use an invalid Slugcat number")
 {
 }
Пример #3
0
 public NoProgDataException(OptionInterface oi) : base($"OptionInterface {oi.rwMod.ModID} hasn't enabled hasProgData")
 {
 }
Пример #4
0
 public InvalidGetPropertyException(OptionInterface oi, string name) : base(
         string.Concat($"{oi.rwMod.ModID} called {name} eventhough its progData is false!"))
 {
 }
 // Apply changes to the mod
 public static void ConfigOnChange(OptionalUI.OptionInterface self)
 {
     DestructiveBombs.configRadiusMul = int.TryParse(OptionalUI.OptionInterface.config["RadiusMultiplier"], out int res) ? res / 100f : 1f;
 }
Пример #6
0
 public InvaildGetPropertyException(OptionInterface oi, string name) : base(
         string.Concat(oi.mod.ModID, " called ", name, "eventhough its progData is false!"))
 {
 }