Selenium

Quick rating

Selenium

No reviews yet

A simple mod that allows the player to create and customise their own gui. Mainly useful for other mod developers who don't want to spend the time and energy in creating a gui

Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Unsupported

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.0.0
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Selenium

A simple mod that allows YOU to make your own gui complete with editable hud. This mod aims at easing the lives of developers who don't wish to spend the excessive time needed to create a gui. They can directly use this mod's api to easily add buttons that control their functions.

This includes:

  • creating main tabs
  • creating settings
  • creating child settings
  • choosing type (CHECK, NUMBER, TEXT)
  • setting default value
  • marking them as HUD
  • reading/writing your values later

The current api includes the following features

Ensures a main tab exists in Selenium.

SeleniumApi.ensureMainTab(name)

Registers a top-level setting with default locked API permissions.

SeleniumApi.registerSetting(ownerModId, key, mainTab, label, type, renderType, defaultValue, hud, subSettings)

Registers a top-level setting with explicit player-edit permissions.

SeleniumApi.registerSetting(ownerModId, key, mainTab, label, type, renderType, defaultValue, hud, subSettings, permissions)

Registers a child setting under an existing parent with default locked API permissions.

SeleniumApi.registerChildSetting(ownerModId, key, mainTab, parentId, label, type, renderType, defaultValue, hud, subSettings)

Registers a child setting under an existing parent with explicit player-edit permissions.

SeleniumApi.registerChildSetting(ownerModId, key, mainTab, parentId, label, type, renderType, defaultValue, hud, subSettings, permissions)

Checks whether a Selenium setting with that id exists.

SeleniumApi.hasSetting(id)

Reads a check/toggle setting as a boolean.

SeleniumApi.getToggle(id)

Sets a check/toggle setting value.

SeleniumApi.setToggle(id, enabled)

Reads a number setting as a double.

SeleniumApi.getNumber(id)

Sets a number setting value.

SeleniumApi.setNumber(id, value)

Reads a text setting value.

SeleniumApi.getText(id)

Sets a text setting value.

SeleniumApi.setText(id, value)

Declares a boolean on/off setting type

SeleniumApi.SettingType.CHECK

Declares a numeric setting type.

SeleniumApi.SettingType.NUMBER

Declares a text/string setting type.

SeleniumApi.SettingType.TEXT

Defines what the player is allowed to do to an API-created setting.

SeleniumApi.Permissions(allowHudEdits, allowGuiAdd, allowGuiEdit, allowHiding)

Returns the default API permissions: locked editing, hiding allowed.

SeleniumApi.Permissions.defaults()

Returns permissions that let the player fully edit the setting and HUD.

SeleniumApi.Permissions.fullyEditable()

Add a color setting type (stores the color as hex #RRGGBB)

SeleniumApi.registerSetting(ownerModId, key, mainTab, label, SeleniumApi.SettingType.COLOR, renderType, "#FFFFFF", hud, subSettings, permissions)

Add a bounded slider setting type (min/max/step)

SeleniumApi.registerSetting(ownerModId, key, mainTab, label, 
    SeleniumApi.SettingType.SLIDER, renderType, "50", 
    Map.of("min", "0", "max", "100", "step", "1"), 
    hud, subSettings, permissions)

You can pass metadata via a Map<String, String> parameter to set the min/max/steps. The default value is set by "50" by hardcoding it (This is where the slider starts by default)

Add a selectable choice setting type (comma separated options)

    SeleniumApi.SettingType.CHOICE, renderType, "Medium", 
    Map.of("options", "Low, Medium, High"), 
    hud, subSettings, permissions)

Same as slider, the metadata can be passed via a Map<String, String> parameter to set the choices. The default chocie is set by hardcoding it

Commands

Selenium adds a few commands, namely:

/selenium gui

Opens the main gui, listing all the options allowing enabling/disabling options

/selenium edithud

Allows the editing of the hud, by dragging and resizing the elements

/selenium editgui

Allows the creation/deletion of new buttons

Editing is disbaled by default, unless the develpoer chooses to enable it.

/selenium tutorial

Opens the tutorial screen

Hud rendering

A simple example of how the hud renders

The main UI

The main UI

Editing main tab

Editing main tab

Editing an existing setting

Editing an existing setting

Creating a main tab (shown on the left side of the ui)

Creating a main tab (shown on the left side of the ui)

Easily hide settings and access them

Easily hide settings and access them

The tutorial screen

The tutorial screen

Screenshots

Gallery

  • The main ui
    The main ui
  • The hud
    The hud
  • Creating a main setting
    Creating a main setting
  • Editing a setting
    Editing a setting
  • Editing main tab
    Editing main tab
  • The hidden tab
    The hidden tab
  • Tutorial
    Tutorial
  • Color picker and slider
    Color picker and slider

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works