Not an Issue Expand the Health Bar Color Options

coresnap

Supporter
Hello...it's me...

Would it be possible to add the ability to implement custom/different colors to choose from? ie. someone really likes Pink and requests that color.

I know this is prolly less practical than the last inquiry, but you know how players like to customize their experience. lol Totally get it if this isn't something you care to consider.

Thanks!
 
You can already add your own custom palette to the UI Color Palettes section in the config :)

A pink-themed palette might look something like this:
JSON:
"Pink": {
    "Health Bar Background Color": "#3A0326",
    "Health Bar Border Color": "#190213",
    "Health Bar Fill Color": "#D21192",
    "HP Value Text Color": "#FFD2EB"
}
Once that's added, players can simply use /healthbar Pink to switch to that color scheme
 
Ah ok. Didn’t know if it’d take some rework of the plugin or if it was a simple config option. I’d tried something similar, but wasn’t exactly like what you just provided. Sweet, I’ll try that out. Thanks! 😁
 
Simply create a new entry and add it to the list, just like the default ones already included
JSON:
  "Default Ui Color Palette": "Orange",
    "Ui Color Palettes": {
        "Orange": {
            "Health Bar Background Color": "#3A1E03",
            "Health Bar Border Color": "#190C02",
            "Health Bar Fill Color": "#D27411",
            "HP Value Text Color": "#FFE9C2"
        },
        "Green": {
            "Health Bar Background Color": "#033A0D",
            "Health Bar Border Color": "#051905",
            "Health Bar Fill Color": "#11D238",
            "HP Value Text Color": "#D7FFD2"
        },
        "Blue": {
            "Health Bar Background Color": "#03193A",
            "Health Bar Border Color": "#020E19",
            "Health Bar Fill Color": "#1192D2",
            "HP Value Text Color": "#D2F1FF"
        },
        "Red": {
            "Health Bar Background Color": "#3A0D03",
            "Health Bar Border Color": "#190503",
            "Health Bar Fill Color": "#D23811",
            "HP Value Text Color": "#ECD646"
        }
    }
 
Back
Top
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin. Parameters in < > are required, while [ ] are optional.
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Ensure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart