I do the color check for the predefined colors that I tried to match what the actual rust colored buttons look like. For ease of access to people that don't want to look up an RGBA number.
I suppose I can remove the Loaded() loop in the next patch as you are correct and that part is redundant.

Quick Menu
A easily accessible menu that contains configurable buttons.
Total Downloads: 1,751 - First Release: Apr 12, 2017 - Last Update: Apr 28, 2017
- 5/5, 10 likes
-
Config:
TopButtonColor = "0.698 0.133 0.133 1.0",
MidTopButtonColor = "1.000 0.412 0.706 1.0",
MidBotButtonColor = "1.000 0.271 0.000 1.0",
BotButtonColor = "0.416 0.353 0.804 1.0"
if so - every button would have the same color. If you want to give users ability to create custom colors you have to add more then one "custom" color - 1 for each button. -
-
Xianith updated Quick Menu with a new update entry:
0.0.7
-
-
-
So as far as I can see thro code without testing - everything should work just fine now, thanks for your time!
P.S. I hope you don't hate me now =D -
I liked the challenge of fixing my terrible messes lol
-
-
Thanks @Vlad-00003! Once you have the link DM me and I'll test it out and post it to the FAQ. Crediting you of course ;P
-
Updated FAQ!
Thanks @Vlad-00003 -
is there a way to add more column "button"
-
need a way to add more column buttons , tried to add in config but doesn't recognize input , also why is the trade button not of same size as the others? odd. pls update , want to use but need more added for a true quick menu in my server. thanks
-
If the command conatins args - they are not being called.
For example - chat.say /bgrade 0 being executed as chat.say /bgrade, ignoring 0 at the end.
Didn't test with trade, but I think there would be the same error... any ideas?
[DOUBLEPOST=1503068574][/DOUBLEPOST]OOook, I've found the reason - arguments after chat.say must be escaped with ",
So here is my solution -
Code:var array = arg.Args.ToArray(); if(array[0] == "chat.say") { cmd = $"chat.say \"{string.Join(" ", array.Skip(1).ToArray())}\""; }else { cmd = string.Join(" ", arg.Args); }
-
I installed this plugin and it does nothing... sadly I added it into my server and nothing is showing up when I type /qm it says its loaded but nothing is going on sadly, is this plugin broken?
-
Hey, @Xianith, here is something for you:
Code:private string ToRustColor(string input) { Color color; if (!ColorUtility.TryParseHtmlString(input, out color)) { var split = input.Split(' '); for (var i = 0; i < 4; i++) { float num; if (!float.TryParse(split[i], out num)) { return null; } color[i] = num; } } return string.Format("{0:F2} {1:F2} {2:F2} {3:F2}", color.r, color.g, color.b, color.a); }
Input types:
HEX RGB (includes color names)
HEX RGBA (simply add 0-255(in hex, ofc) to the end of the HEX RGB as an alpha)
Rust
So it would be much easier for the users to adjust colors =)
@FAxZ - what exacly doesn't work? Do you have any errors or the plugin compiles fine? What happens then you run /qm command?
Any console errors? -
The first time you type /menu nothing happens then you have to type it again for it to work
-
-
any possible solution?