View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-13-2023 , 00:57   Re: Menu to choose color for hud
Reply With Quote #14

You're certainly welcome to request something else but how do we know what you want if you don't explain what about the working option isn't what you want.

As far as I can tell, your original code looked just fine. All you need to do to add a "random" option is to add a "Random" option to the menu and if that option is chosen then use random values for RGB instead of the values from the array. The easiest would be to add the "Random" option as the last menu option (after your for loop). Then in the menu handler check if iItem is equal to sizeof(g_Colors) then use random values otherwise, index g_Colors like you already do.

Quote:
Originally Posted by amirwolf View Post
I used this method to reach Rahel
What does this mean? Can you translate this to English?
__________________
fysiks is offline