예제 #1
0
        public override void Draw(Rect rect)
        {
            var hGrid = rect.GetHGrid(GUIPlus.LargePadding, -1f, -1f);

            var bubbles = new ListingPlus();

            bubbles.Begin(hGrid[1]);

            var hasBubbles = Mod_Bubbles.Instance.IsActive;

            bubbles.Label(Lang.Get("Integration.Bubbles").Bold(), Mod_Bubbles.Description);
            if (!hasBubbles)
            {
                bubbles.LinkLabel(Lang.Get("Integration.GetMod"), Mod_Bubbles.Url, Mod_Bubbles.Url);
            }

            var bubblesActive = hasBubbles && Mod_Bubbles.Activated.Value;

            bubbles.BoolToggle(Mod_Bubbles.Activated, hasBubbles);
            bubbles.BoolToggle(Mod_Bubbles.DoNonPlayer, bubblesActive);
            bubbles.BoolToggle(Mod_Bubbles.DoAnimals, bubblesActive);
            bubbles.GapLine(5f);
            bubbles.RangeSlider(Mod_Bubbles.ScaleStart, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.MinScale, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.MaxWidth, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.Spacing, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.StartOffset, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.OffsetDirection, bubblesActive);
            bubbles.GapLine(5f);
            bubbles.RangeSlider(Mod_Bubbles.StartOpacity, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.MouseOverOpacity, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.MinTime, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.FadeStart, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.FadeLength, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.MaxPerPawn, bubblesActive);
            bubbles.GapLine(5f);
            bubbles.RangeSlider(Mod_Bubbles.FontSize, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.PaddingX, bubblesActive);
            bubbles.RangeSlider(Mod_Bubbles.PaddingY, bubblesActive);

            bubbles.End();

            var pawnRules = new ListingPlus();

            pawnRules.Begin(hGrid[2]);
            pawnRules.Label(Lang.Get("Integration.PawnRules").Bold(), Mod_PawnRules.Description);
            var hasPawnRules = Mod_PawnRules.Instance.IsActive;

            if (!hasPawnRules)
            {
                pawnRules.LinkLabel(Lang.Get("Integration.GetMod"), Mod_PawnRules.Url, Mod_PawnRules.Url);
            }
            pawnRules.BoolToggle(Mod_PawnRules.ReplaceFoodSelector, hasPawnRules);
            pawnRules.BoolToggle(Mod_PawnRules.HideGizmo, hasPawnRules);

            pawnRules.End();
        }
예제 #2
0
        public override void Draw(Rect rect)
        {
            var hGrid = rect.GetHGrid(GUIPlus.LargePadding, -1f, -1f);
            var l     = new ListingPlus();

            l.Begin(hGrid[1]);

            l.RangeSlider(Theme.RefreshRate);
            l.GapLine();
            l.Gap();

            l.Label(Lang.Get("Theme.HudPosition").Bold());
            l.BoolToggle(Theme.HudDocked);
            l.RangeSlider(Theme.HudAnchor, !Theme.HudDocked.Value);
            l.RangeSliderEntry(Theme.HudOffsetX, ref _hudOffsetXText, 1, !Theme.HudDocked.Value);
            l.RangeSliderEntry(Theme.HudOffsetY, ref _hudOffsetYText, 2, !Theme.HudDocked.Value);
            l.GapLine();
            l.Gap();

            l.Label(Lang.Get("Theme.HudDimensions").Bold());
            l.RangeSliderEntry(Theme.HudWidth, ref _hudWidthText, 3, !Theme.HudDocked.Value);
            l.RangeSliderEntry(Theme.HudHeight, ref _hudHeightText, 4, !Theme.HudDocked.Value);
            l.GapLine();
            l.Gap();

            l.Label(Lang.Get("Theme.InspectPane").Bold());
            l.BoolToggle(Theme.InspectPaneTabModify);
            l.BoolToggle(Theme.InspectPaneTabAddLog, Theme.InspectPaneTabModify.Value && !Theme.HudDocked.Value);
            l.RangeSliderEntry(Theme.InspectPaneHeight, ref _inspectPaneHeightText, 5, Theme.InspectPaneTabModify.Value);
            l.RangeSlider(Theme.InspectPaneTabWidth, Theme.InspectPaneTabModify.Value);
            l.RangeSlider(Theme.InspectPaneMinTabs, Theme.InspectPaneTabModify.Value);

            l.End();

            l.Begin(hGrid[2]);

            l.TextStyleEditor(Theme.RegularTextStyle);
            l.RangeSlider(Theme.LabelWidth);
            l.RangeSlider(Theme.ValueWidth);
            l.GapLine();
            l.Gap();

            l.TextStyleEditor(Theme.LargeTextStyle, !Theme.HudDocked.Value);
            l.GapLine();
            l.Gap();

            l.TextStyleEditor(Theme.SmallTextStyle);
            l.GapLine();
            l.Gap();

            l.Label(Lang.Get("Theme.OtherOptions").Bold());
            l.BoolToggle(Theme.ShowDecimals);
            l.BoolToggle(Theme.LetterCompress);
            l.RangeSlider(Theme.LetterPadding, Theme.LetterCompress.Value);

            l.End();
        }
예제 #3
0
        public override void Draw(Rect rect)
        {
            var hGrid = rect.GetHGrid(GUIPlus.LargePadding, -1f, -1f);
            var l     = new ListingPlus();

            l.Begin(hGrid[1]);

            var hasBubbles = Bubbles.Instance.IsActive;

            l.Label(Lang.Get("Integration.Bubbles").Bold(), Bubbles.Description);
            if (!hasBubbles)
            {
                l.LinkLabel(Lang.Get("Integration.GetMod"), Bubbles.Url, Bubbles.Url);
            }

            var bubblesActive = hasBubbles && Bubbles.Activated.Value;

            l.BoolToggle(Bubbles.Activated, hasBubbles);
            l.BoolToggle(Bubbles.DoNonPlayer, bubblesActive);
            l.BoolToggle(Bubbles.DoAnimals, bubblesActive);
            l.GapLine();
            l.RangeSlider(Bubbles.ScaleStart, bubblesActive);
            l.RangeSlider(Bubbles.MinScale, bubblesActive);
            l.RangeSlider(Bubbles.MaxWidth, bubblesActive);
            l.RangeSlider(Bubbles.Spacing, bubblesActive);
            l.RangeSlider(Bubbles.StartOffset, bubblesActive);
            l.RangeSlider(Bubbles.OffsetDirection, bubblesActive);
            l.GapLine();
            l.RangeSlider(Bubbles.StartOpacity, bubblesActive);
            l.RangeSlider(Bubbles.MouseOverOpacity, bubblesActive);
            l.RangeSlider(Bubbles.MinTime, bubblesActive);
            l.RangeSlider(Bubbles.FadeStart, bubblesActive);
            l.RangeSlider(Bubbles.FadeLength, bubblesActive);
            l.RangeSlider(Bubbles.MaxPerPawn, bubblesActive);
            l.GapLine();
            l.RangeSlider(Bubbles.FontSize, bubblesActive);
            l.RangeSlider(Bubbles.PaddingX, bubblesActive);
            l.RangeSlider(Bubbles.PaddingY, bubblesActive);
            l.GapLine();

            l.End();
        }