Megaquarium

Megaquarium

What will you create?
Access an ocean of content for Megaquarium created by players like you. New animals, decorations, tanks and more are available to expand your game and tailor it to your liking.
더 보기
stlnegril9 32 2020년 6월 2일 오전 8시 21분
mod question on color codes
Some items (such as food items, tools) use a "color" tag to change the text color in menus (perhaps among other things) and the 'code' used is not very obvious.e.g.:
"color":"0xFBAC46FF",

Some, but not all of these have descriptions in gui.data (for zones). It resembles some type of hex, but a (not very thorough) web search can't find anything anywhere matching/describing these.

For our own color selection is there either
A) a definition of what the code means (a translator)
or
B) a thorough list of all the codes recognized (with color described, ala gui.data)?
< >
전체 댓글 3개 중 1~3개 표시 중
Twice Circled  [개발자] 3 2020년 6월 3일 오전 1시 03분 
Yes, no problem. I hope I've understood your questions.

0xFBAC46FF is as you suggested a hex code. The 0x is "computer speak" for "the following series of numbers is going to be in hex".

On the web (HTML, CSS) hex colors normally appear with a # in front of them so the first thing is to replace the 0x withe a #.

#FBAC46FF

Each pair of numbers refers to a color component FB = red, AC = green, 46 = blue, FF = alpha/transparency. FF is opaque, 00 is transparent. Each of the components is on a scale of 00 to FF.

To see what the color is online, the easiest thing is to remove the alpha digits so you are left with #FBAC46.

Copy and paste that into google: https://www.google.com/search?q=%23FBAC46 and you get a color. Drag the color picker around it will give you the hex for any color imaginable. Add the FF back on, swap the # for 0x and you have translated it back to the format used by the game.
Twice Circled 님이 마지막으로 수정; 2020년 6월 3일 오전 1시 04분
stlnegril9 32 2020년 6월 3일 오전 6시 55분 
Twice Circled 님이 먼저 게시:
...

FF = alpha/transparency. ...

:steamfacepalm: 4th bit is transparency! That's why we couldn't find it anywhere.
Thanks.
Twice Circled  [개발자] 3 2020년 6월 3일 오전 7시 05분 
Happy to help. :)
< >
전체 댓글 3개 중 1~3개 표시 중
페이지당 표시 개수: 1530 50