You are viewing a potentially older version of this package. View all versions.
Largo-POG_Config-1.0.0 icon

POG Config

In-game config UI framework for Pit of Goblin mods with toggles, sliders, options, and keybind entries.

By Largo
Date uploaded 2 months ago
Version 1.0.0
Download link Largo-POG_Config-1.0.0.zip
Downloads 25
Dependency string Largo-POG_Config-1.0.0

This mod requires the following mods to function

LavaGang-MelonLoader-0.7.2 icon
LavaGang-MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono

Preferred version: 0.7.2

README

POGConfig

In-game config menu framework for Pit of Goblin mods.

POGConfig provides reusable UI entries for mod settings and keeps values persistent with MelonPreferences.

Install: Thunderstore Mod Manager / App, or place POGConfig.dll in the game Mods folder.

What this package provides

  • Shared MOD SETTINGS panel infrastructure.
  • ToggleEntry, SliderEntry, OptionsSliderEntry, KeyEntry.
  • Numeric text editing with suffix-aware parsing (for example 43s).
  • Optional step markers and origin-based slider fill.

For Developers

Click To Expand

Basic registration

POGConfig.Register("My Mod", new List<ConfigEntry>
{
    new ToggleEntry("Enable Feature", () => enabled, v => enabled = v),
    new SliderEntry("Speed", () => speed, v => speed = v, 0f, 10f, x => $"{x:F1}"),
    new KeyEntry("Hotkey", () => hotkey, v => hotkey = v),
});

Advanced slider examples

new SliderEntry(
    "Temperature Offset (origin=0)",
    () => temperature,
    v => temperature = v,
    -50f, 50f, v => $"{v:F1}",
    "TemperatureOffset", 0f, true, false);
new SliderEntry(
    "Point Selector (whole numbers)",
    () => points,
    v => points = v,
    -2f, 6f, v => $"{v:F0}",
    "PointSelector", 0f, false, true, 9);
new SliderEntry(
    "Duration With Suffix",
    () => durationSeconds,
    v => durationSeconds = v,
    5f, 180f, v => $"{v:F0}s",
    "DurationSeconds", 5f, true, true);

Options list example

new OptionsSliderEntry(
    "Difficulty",
    () => difficulty,
    v => difficulty = v,
    new[] { "Easy", "Normal", "Hard" },
    "Difficulty");

Best practices

  • Persist values with prefKey where relevant.
  • Avoid heavy logic in entry callbacks.
  • Disable gameplay hotkeys while menu is open: if (!POGConfig.PanelOpen) { ... }

CHANGELOG

Changelog

1.0.7

  • The MODS button in the main menu is now a real NetworkMenuButton injected into the in-game Buttons Panel (between START and SETTINGS) instead of a floating overlay. It matches the game's button style, sound, and selection visuals.
  • The pause-menu MODS button keeps the floating-overlay approach for now.
  • Vertical scrollbar fixed: the thumb is now draggable on both the mod list (sidebar) and the settings list (content), and clicking on the empty track centres the thumb on the cursor and starts a drag from that point. Mouse wheel now scrolls only the section the cursor is over.
  • Switching between mods in the sidebar resets the content scroll position back to the top.
  • Mouse and keyboard input on the underlying main/pause menu is suppressed while the config panel is open (Enter no longer triggers main-menu buttons by accident).
  • Pressing Esc now closes the config panel.

1.0.6

  • Added a full developer Wiki for POGConfig with entry-by-entry docs, architecture notes, runtime behavior details, persistence guidance, and troubleshooting pages.
  • Included CHANGELOG.md in the package build to ensure release notes are visible on Thunderstore.

1.0.3

  • SliderEntry now exposes LabelFraction and ValueFraction properties so mod authors can override the default column widths (35 % / 15 % / 50 %) via object initializer syntax.
  • KeyEntry now shows a Clear button to remove the keybind (KeyCode.None). Unbound keys display as — none —.

1.0.1

  • Added OptionsSliderEntry for discrete string option lists.
  • Added KeyEntry.AllowMouseButtons opt-in property to allow mouse button binding.
  • Added POGConfig.PanelOpen public property; other mods can suppress hotkeys while the panel is open.
  • Added vertical scrollbar; scroll wheel supported.
  • Added marquee text animation for long labels and value strings (hover to scroll).

1.0.0

  • Initial release: in-game settings UI framework for Pit of Goblin mods.
  • ToggleEntry, SliderEntry, KeyEntry.
  • MelonPreferences persistence via prefKey.