Jump to content

How to change colour

Pending 2.1.1

Russ
Russ

Posted

Hi guys,

Another great plugin.

I was just curious as to how I would go about turning the red into a different colour. I don't see any obvious way to change it other than changing code within the plugin itself and thats way beyond my abilities.

Russ

MeventSupport

Posted

Hi! you can change this in the file "oxide/data/VehicleBuy/Template/Fullscreen.json".

  • Like 1
Russ

Posted

Hi Mevent,

I tried that but its not updating in-game even after reloading the plugin multiple times.

Any ideas?

Russ

Posted

I'm also having trouble with players purchasing a horse. I get the following error when they try to place it on the ground.

Quote

Failed to call hook 'OnEntityBuilt' on plugin 'VehicleBuy v2.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at RidableHorse.ServerInit () [0x00062] in <1ea223b2dfb04ade964b6454d9a75d18>:0 
  at BaseNetworkable.Spawn () [0x0004f] in <1ea223b2dfb04ade964b6454d9a75d18>:0 
  at BaseEntity.Spawn () [0x00000] in <1ea223b2dfb04ade964b6454d9a75d18>:0 
  at BaseVehicle.Spawn () [0x00000] in <1ea223b2dfb04ade964b6454d9a75d18>:0 
  at Oxide.Plugins.VehicleBuy.OnEntityBuilt (Planner planner, UnityEngine.GameObject gameObject) [0x00180] in <60201566c2704979a57d7a6e005c02e2>:0 
  at Oxide.Plugins.VehicleBuy.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x011e9] in <60201566c2704979a57d7a6e005c02e2>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0 

 

MeventSupport

Posted

On 2/7/2025 at 9:40 PM, Russ said:

Hi Mevent,

I tried that but its not updating in-game even after reloading the plugin multiple times.

Any ideas?

are you using the plugin in normal mode? Or the ServerPanel integration?

MeventSupport

Posted

On 2/7/2025 at 9:59 PM, Russ said:

I'm also having trouble with players purchasing a horse. I get the following error when they try to place it on the ground.

 

Yes, this is a known issue at the moment, we are working on a fix

Russ

Posted

1 hour ago, MeventSupport said:

are you using the plugin in normal mode? Or the ServerPanel integration?

Normal mode. Looking at potentially adding ServerPanel soon instead of WelcomePanel but at the moment using normal.

MeventSupport

Posted (edited)

17 hours ago, MeventSupport said:

Yes, this is a known issue at the moment, we are working on a fix

fixed it in version 2.1.3

Edited by MeventSupport
  • Like 1
MeventSupport

Posted

18 hours ago, Russ said:

Normal mode. Looking at potentially adding ServerPanel soon instead of WelcomePanel but at the moment using normal.

So, are you sure you've changed all the colours you need?

because this file sets the colours for all UI elements.

Russ

Posted

I made changes to the Fullscreen.json file, saved it, uploaded it and then reloaded the plugin to reflect my changes and it resets them back to default

MeventSupport

Posted

It all makes sense now!

 

Follow these steps to complete the assignment:

1. Unload the plugin from the server (oxide.unload VehicleBuy).

2. Make the necessary changes to the Template.json file.

3. Upload the updated plugin back to the server (oxide.load VehicleBuy).

Russ

Posted

17 hours ago, MeventSupport said:

It all makes sense now!

 

Follow these steps to complete the assignment:

1. Unload the plugin from the server (oxide.unload VehicleBuy).

2. Make the necessary changes to the Template.json file.

3. Upload the updated plugin back to the server (oxide.load VehicleBuy).

Just tried again and I still have the same out come, when I load the plugin, its overwriting what I've changed. The below Fullscreen.json has my changes in, just changed the red buttons and slider to a blue.

{
  "Screen background color": {
    "HEX": "#191919",
    "Opacity (0 - 100)": 90.0
  },
  "Material": "assets/content/ui/uibackgroundblur-ingamemenu.mat",
  "Sprite": "assets/content/ui/UI.Background.TileTex.psd",
  "Button Close": {
    "Background Button Close": {
      "Sprite": "assets/content/ui/UI.Background.TileTex.psd",
      "Material": "",
      "Image": "",
      "Color": {
        "HEX": "#E44028",
        "Opacity (0 - 100)": 100.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "1 1",
      "AnchorMax": "1 1",
      "OffsetMin": "-40 -40",
      "OffsetMax": "0 0"
    },
    "Color Button Close": {
      "HEX": "#FFFFFF",
      "Opacity (0 - 100)": 100.0
    },
    "Sprite Button Close": "assets/icons/close.png",
    "Material Button Close": null,
    "AnchorMin": "0.5 0.5",
    "AnchorMax": "0.5 0.5",
    "OffsetMin": "-9 -9",
    "OffsetMax": "9 9"
  },
  "Installed?": false,
  "Height of the main panel": 470.0,
  "Width of the main panel": 850.0,
  "Lot height": 205.0,
  "Lot width": 145.0,
  "Number of lots per line": 5,
  "Horizontal margins": 15.0,
  "Vertical margins": 20.0,
  "Background main panel": {
    "Sprite": "",
    "Material": "assets/content/ui/uibackgroundblur.mat",
    "Image": "",
    "Color": {
      "HEX": "#191919",
      "Opacity (0 - 100)": 50.0
    },
    "Cursor Enabled": false,
    "Keyboard Enabled": false,
    "AnchorMin": "0 0",
    "AnchorMax": "1 1",
    "OffsetMin": "0 0",
    "OffsetMax": "0 0"
  },
  "Header Settings": {
    "Background": {
      "Sprite": "assets/content/ui/UI.Background.Transparent.LinearLTR.tga",
      "Material": "",
      "Image": "",
      "Color": {
        "HEX": "#494949",
        "Opacity (0 - 100)": 100.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "0 1",
      "AnchorMax": "1 1",
      "OffsetMin": "0 -40",
      "OffsetMax": "-40 0"
    },
    "Title": {
      "Font Size": 18,
      "Is Bold?": true,
      "Align": "MiddleLeft",
      "Color": {
        "HEX": "#E2DBD3",
        "Opacity (0 - 100)": 100.0
      },
      "AnchorMin": "0 0",
      "AnchorMax": "1 1",
      "OffsetMin": "20 0",
      "OffsetMax": "0 0"
    },
    "Show Line?": false,
    "Line": {
      "Sprite": "",
      "Material": "",
      "Image": "",
      "Color": {
        "HEX": "#373737",
        "Opacity (0 - 100)": 50.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "0 0",
      "AnchorMax": "1 0",
      "OffsetMin": "0 -2",
      "OffsetMax": "0 0"
    }
  },
  "Lot Panel Settings": {
    "Background": {
      "Sprite": "",
      "Material": "",
      "Image": "",
      "Color": {
        "HEX": "#000000",
        "Opacity (0 - 100)": 0.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "0 0",
      "AnchorMax": "1 1",
      "OffsetMin": "20 50",
      "OffsetMax": "-20 -60"
    },
    "Scroll View": {
      "Scroll Type (Horizontal, Vertical)": "Vertical",
      "Movement Type (Unrestricted, Elastic, Clamped)": "Elastic",
      "Elasticity": 0.1,
      "Deceleration Rate": 1.0,
      "Scroll Sensitivity": 10.0,
      "Minimal Height": 0.0,
      "Additional Height": 0.0,
      "Scrollbar Settings": {
        "Invert": false,
        "Auto Hide": false,
        "Handle Sprite": "assets/content/ui/UI.Background.TileTex.psd",
        "Size": 3.0,
        "Handle Color": {
          "HEX": "#00ADEC",
          "Opacity (0 - 100)": 100.0
        },
        "Highlight Color": {
          "HEX": "#00ADEC",
          "Opacity (0 - 100)": 100.0
        },
        "Pressed Color": {
          "HEX": "#00ADEC",
          "Opacity (0 - 100)": 100.0
        },
        "Track Sprite": "assets/content/ui/UI.Background.TileTex.psd",
        "Track Color": {
          "HEX": "#38393F",
          "Opacity (0 - 100)": 40.0
        }
      }
    }
  },
  "Lot Settings": {
    "Background": {
      "Sprite": "assets/content/ui/UI.Background.Tile.psd",
      "Material": "assets/content/ui/namefontmaterial.mat",
      "Image": "",
      "Color": {
        "HEX": "#696969",
        "Opacity (0 - 100)": 15.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "0 0",
      "AnchorMax": "1 1",
      "OffsetMin": "0 0",
      "OffsetMax": "0 0"
    },
    "Lot Image": {
      "AnchorMin": "0.5 1",
      "AnchorMax": "0.5 1",
      "OffsetMin": "-66 -135",
      "OffsetMax": "66 -11"
    },
    "Show Name?": true,
    "Lot Name": {
      "Font Size": 13,
      "Is Bold?": true,
      "Align": "UpperLeft",
      "Color": {
        "HEX": "#E2DBD3",
        "Opacity (0 - 100)": 100.0
      },
      "AnchorMin": "0 1",
      "AnchorMax": "1 1",
      "OffsetMin": "10 -160",
      "OffsetMax": "0 -136"
    },
    "Lot Currency": {
      "Font Size": 12,
      "Is Bold?": true,
      "Align": "LowerLeft",
      "Color": {
        "HEX": "#cccccc",
        "Opacity (0 - 100)": 50.0
      },
      "AnchorMin": "0 0",
      "AnchorMax": "0 0",
      "OffsetMin": "10 24",
      "OffsetMax": "86 38"
    },
    "Lot Price": {
      "Font Size": 16,
      "Is Bold?": true,
      "Align": "LowerLeft",
      "Color": {
        "HEX": "#cccccc",
        "Opacity (0 - 100)": 100.0
      },
      "AnchorMin": "0 0",
      "AnchorMax": "0 0",
      "OffsetMin": "10 10",
      "OffsetMax": "86 32"
    },
    "Lot Button Buy": {
      "Button Color": {
        "HEX": "#00ADEC",
        "Opacity (0 - 100)": 100.0
      },
      "Sprite": "assets/content/ui/UI.Background.TileTex.psd",
      "Material": "assets/content/ui/namefontmaterial.mat",
      "Image": "",
      "Image Color": {
        "HEX": "#FFFFFF",
        "Opacity (0 - 100)": 100.0
      },
      "Use custom image position settings?": false,
      "Custom image position settings": {
        "AnchorMin": "0 0",
        "AnchorMax": "1 1",
        "OffsetMin": "0 0",
        "OffsetMax": "0 0"
      },
      "Font Size": 14,
      "Is Bold?": true,
      "Align": "MiddleCenter",
      "Color": {
        "HEX": "#E2DBD3",
        "Opacity (0 - 100)": 100.0
      },
      "AnchorMin": "1 0",
      "AnchorMax": "1 0",
      "OffsetMin": "-74 10",
      "OffsetMax": "-10 38"
    }
  }
}

 

MeventSupport

Posted

12 hours ago, Russ said:

Just tried again and I still have the same out come, when I load the plugin, its overwriting what I've changed. The below Fullscreen.json has my changes in, just changed the red buttons and slider to a blue.

{
  "Screen background color": {
    "HEX": "#191919",
    "Opacity (0 - 100)": 90.0
  },
  "Material": "assets/content/ui/uibackgroundblur-ingamemenu.mat",
  "Sprite": "assets/content/ui/UI.Background.TileTex.psd",
  "Button Close": {
    "Background Button Close": {
      "Sprite": "assets/content/ui/UI.Background.TileTex.psd",
      "Material": "",
      "Image": "",
      "Color": {
        "HEX": "#E44028",
        "Opacity (0 - 100)": 100.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "1 1",
      "AnchorMax": "1 1",
      "OffsetMin": "-40 -40",
      "OffsetMax": "0 0"
    },
    "Color Button Close": {
      "HEX": "#FFFFFF",
      "Opacity (0 - 100)": 100.0
    },
    "Sprite Button Close": "assets/icons/close.png",
    "Material Button Close": null,
    "AnchorMin": "0.5 0.5",
    "AnchorMax": "0.5 0.5",
    "OffsetMin": "-9 -9",
    "OffsetMax": "9 9"
  },
  "Installed?": false,
  "Height of the main panel": 470.0,
  "Width of the main panel": 850.0,
  "Lot height": 205.0,
  "Lot width": 145.0,
  "Number of lots per line": 5,
  "Horizontal margins": 15.0,
  "Vertical margins": 20.0,
  "Background main panel": {
    "Sprite": "",
    "Material": "assets/content/ui/uibackgroundblur.mat",
    "Image": "",
    "Color": {
      "HEX": "#191919",
      "Opacity (0 - 100)": 50.0
    },
    "Cursor Enabled": false,
    "Keyboard Enabled": false,
    "AnchorMin": "0 0",
    "AnchorMax": "1 1",
    "OffsetMin": "0 0",
    "OffsetMax": "0 0"
  },
  "Header Settings": {
    "Background": {
      "Sprite": "assets/content/ui/UI.Background.Transparent.LinearLTR.tga",
      "Material": "",
      "Image": "",
      "Color": {
        "HEX": "#494949",
        "Opacity (0 - 100)": 100.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "0 1",
      "AnchorMax": "1 1",
      "OffsetMin": "0 -40",
      "OffsetMax": "-40 0"
    },
    "Title": {
      "Font Size": 18,
      "Is Bold?": true,
      "Align": "MiddleLeft",
      "Color": {
        "HEX": "#E2DBD3",
        "Opacity (0 - 100)": 100.0
      },
      "AnchorMin": "0 0",
      "AnchorMax": "1 1",
      "OffsetMin": "20 0",
      "OffsetMax": "0 0"
    },
    "Show Line?": false,
    "Line": {
      "Sprite": "",
      "Material": "",
      "Image": "",
      "Color": {
        "HEX": "#373737",
        "Opacity (0 - 100)": 50.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "0 0",
      "AnchorMax": "1 0",
      "OffsetMin": "0 -2",
      "OffsetMax": "0 0"
    }
  },
  "Lot Panel Settings": {
    "Background": {
      "Sprite": "",
      "Material": "",
      "Image": "",
      "Color": {
        "HEX": "#000000",
        "Opacity (0 - 100)": 0.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "0 0",
      "AnchorMax": "1 1",
      "OffsetMin": "20 50",
      "OffsetMax": "-20 -60"
    },
    "Scroll View": {
      "Scroll Type (Horizontal, Vertical)": "Vertical",
      "Movement Type (Unrestricted, Elastic, Clamped)": "Elastic",
      "Elasticity": 0.1,
      "Deceleration Rate": 1.0,
      "Scroll Sensitivity": 10.0,
      "Minimal Height": 0.0,
      "Additional Height": 0.0,
      "Scrollbar Settings": {
        "Invert": false,
        "Auto Hide": false,
        "Handle Sprite": "assets/content/ui/UI.Background.TileTex.psd",
        "Size": 3.0,
        "Handle Color": {
          "HEX": "#00ADEC",
          "Opacity (0 - 100)": 100.0
        },
        "Highlight Color": {
          "HEX": "#00ADEC",
          "Opacity (0 - 100)": 100.0
        },
        "Pressed Color": {
          "HEX": "#00ADEC",
          "Opacity (0 - 100)": 100.0
        },
        "Track Sprite": "assets/content/ui/UI.Background.TileTex.psd",
        "Track Color": {
          "HEX": "#38393F",
          "Opacity (0 - 100)": 40.0
        }
      }
    }
  },
  "Lot Settings": {
    "Background": {
      "Sprite": "assets/content/ui/UI.Background.Tile.psd",
      "Material": "assets/content/ui/namefontmaterial.mat",
      "Image": "",
      "Color": {
        "HEX": "#696969",
        "Opacity (0 - 100)": 15.0
      },
      "Cursor Enabled": false,
      "Keyboard Enabled": false,
      "AnchorMin": "0 0",
      "AnchorMax": "1 1",
      "OffsetMin": "0 0",
      "OffsetMax": "0 0"
    },
    "Lot Image": {
      "AnchorMin": "0.5 1",
      "AnchorMax": "0.5 1",
      "OffsetMin": "-66 -135",
      "OffsetMax": "66 -11"
    },
    "Show Name?": true,
    "Lot Name": {
      "Font Size": 13,
      "Is Bold?": true,
      "Align": "UpperLeft",
      "Color": {
        "HEX": "#E2DBD3",
        "Opacity (0 - 100)": 100.0
      },
      "AnchorMin": "0 1",
      "AnchorMax": "1 1",
      "OffsetMin": "10 -160",
      "OffsetMax": "0 -136"
    },
    "Lot Currency": {
      "Font Size": 12,
      "Is Bold?": true,
      "Align": "LowerLeft",
      "Color": {
        "HEX": "#cccccc",
        "Opacity (0 - 100)": 50.0
      },
      "AnchorMin": "0 0",
      "AnchorMax": "0 0",
      "OffsetMin": "10 24",
      "OffsetMax": "86 38"
    },
    "Lot Price": {
      "Font Size": 16,
      "Is Bold?": true,
      "Align": "LowerLeft",
      "Color": {
        "HEX": "#cccccc",
        "Opacity (0 - 100)": 100.0
      },
      "AnchorMin": "0 0",
      "AnchorMax": "0 0",
      "OffsetMin": "10 10",
      "OffsetMax": "86 32"
    },
    "Lot Button Buy": {
      "Button Color": {
        "HEX": "#00ADEC",
        "Opacity (0 - 100)": 100.0
      },
      "Sprite": "assets/content/ui/UI.Background.TileTex.psd",
      "Material": "assets/content/ui/namefontmaterial.mat",
      "Image": "",
      "Image Color": {
        "HEX": "#FFFFFF",
        "Opacity (0 - 100)": 100.0
      },
      "Use custom image position settings?": false,
      "Custom image position settings": {
        "AnchorMin": "0 0",
        "AnchorMax": "1 1",
        "OffsetMin": "0 0",
        "OffsetMax": "0 0"
      },
      "Font Size": 14,
      "Is Bold?": true,
      "Align": "MiddleCenter",
      "Color": {
        "HEX": "#E2DBD3",
        "Opacity (0 - 100)": 100.0
      },
      "AnchorMin": "1 0",
      "AnchorMax": "1 0",
      "OffsetMin": "-74 10",
      "OffsetMax": "-10 38"
    }
  }
}

 

Kk, I will check it out 

  • Like 1
Russ

Posted

Any luck with this? 

Russ

Posted

On 2/19/2025 at 3:39 PM, MeventSupport said:

No, but I'll do it soon

Hi, do you have an update on this? We're still having the same issue.

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.6k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.