Hi Red,
It would be awesome if we could change the colour of the outside of the radial menu from the default blue
Hi Red,
It would be awesome if we could change the colour of the outside of the radial menu from the default blue
Hey, do you mean the color of all radial menus (including the buit-in ones)? Or only colors for radial menus created by plugins (via Player.showRadialMenu())? Do you want to set a general color for the entire menu, or individual colors per entry/item?
Ideally the accent colour on all menus, built in and API loaded ones.
But if we could set individual colours for each item that would be a bonus.
I could add a method to provide individual colors for each items (for plugin-created radial menus) However, changing built-in radial menus is a bit tricky... they're created dynamically, so it's very difficult to access them through the Internals class... the cleanest way for that would be to have an event (the event could then provide methods to modify the radial menu). It's on our to-do list, but unfortunately I have no ETA for that yet
But for plugin-created radial menus, it's actually already possible to modify it by overwriting the internal style of the menu. Unfortunately it's a bit cumbersome. The path to the entry is RadialMenuLayer/radialMenu/radial_X_Y_selector, while X is the amount of entries of the radial menu, and Y is the entry you want to change (first entry is 0).
For example, if you create a radial menu with 5 entries (i.e the arrays you provide have a length of 5) and you want to change the color of the first entry, the path would be RadialMenuLayer/radialMenu/radial_5_0_selector. The last entry, for example, would be RadialMenuLayer/radialMenu/radial_5_4_selector etc. The code could look like this:
But I will also add a parameter for that (to the Player.showRadialMenu() method), so there is no need to deal with internal styles. Probably it'll make it into the upcoming update
Thanks mate, that makes sense!
I'll have a mess with the Internals class.
Don’t have an account yet? Create a new account now and be part of our community!