I am using Syvkal's Menu Bars VXAce and was wondering how to change the colors of the bars. Thanks in advance.
HP/MP/TP Gauge Color change
RGSSx Script SupportYou can change the colors in these lines:
#===================================================# # ** C O M P L E X C O N F I G U R A T I O N ** # #===================================================# #-------------------------------------------------------------------------- # * HP Gauge Colors # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Control the colours of the HP gauge # (Edit only if you know what you're doing) - don't worry, I just came to break your script and crash my game. ( ͡° ͜ʖ ͡°) #-------------------------------------------------------------------------- def hp_gauge_color1 # HP Guage Color1 return Color.new(255, 0, 0, 255) end def hp_gauge_color2 # HP Guage Color2 return Color.new(0, 255, 0, 255) end(... MP)(... etc.)I see, there are some maths by default, but it's just RGB pallete, so it looks like this:
return Color.new(255, 0, 0, 255)
Three first numbers are just representing the color palette (use numbers from 0 -255), the fourth number is something like *power* of the color or something like this ~ change these numbers and see how it works. =]
(You can leave these maths and just tweak some numbers, to be honest IDK for what there are these maths)
#===================================================# # ** C O M P L E X C O N F I G U R A T I O N ** # #===================================================# #-------------------------------------------------------------------------- # * HP Gauge Colors # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Control the colours of the HP gauge # (Edit only if you know what you're doing) - don't worry, I just came to break your script and crash my game. ( ͡° ͜ʖ ͡°) #-------------------------------------------------------------------------- def hp_gauge_color1 # HP Guage Color1 return Color.new(255, 0, 0, 255) end def hp_gauge_color2 # HP Guage Color2 return Color.new(0, 255, 0, 255) end(... MP)(... etc.)I see, there are some maths by default, but it's just RGB pallete, so it looks like this:
return Color.new(255, 0, 0, 255)
Three first numbers are just representing the color palette (use numbers from 0 -255), the fourth number is something like *power* of the color or something like this ~ change these numbers and see how it works. =]
(You can leave these maths and just tweak some numbers, to be honest IDK for what there are these maths)
That did it. Many thanks!
Glad could help!
The fourth argument is the alpha channel value. 0, the minimum value, means full transparency and 255, the maximum value, means opaque (or no transparency). I personally wouldn't change them in this case. Transparent window backgrounds are nice to look at but for information like text (or bars, icons, or other graphics) it decreases readability, especially if the background is also transparent.
Original thread: https://forums.rpgmakerweb.com/threads/hp-mp-tp-gauge-color-change.43620/