So, guys, I'm having a problem, I'm creating an editing tool for a PS2 football game.
And this game has two color "systems", which are:
The "normal" RGB that is; A: 0 to 255, G: 0 to 255, B: 0 to 255.
And the, or I think it's rsrs 5bitRGB; A: 0 to 31, G: 0 to 31, B: 0 to 31.
And it's as follows, the "normal" RGB I can send its value to the textbox. And after sending the value to the textBox, I saved that direct value in the game file via Hex, thus changing to the color I want, until then beauty.
This works because ... because the byte "slot" of this color in the game file is actually 3 bytes, so saving the value sent in Hex from the textBox works.
Except that now the problem is 5bitRGB, its slot in the game file is only 2 bytes, not 3, and the colorDialog color options are "normal" from 0 to 255 in both R , G and B, can not only do 0 to 31, and the problem worse, how to send the value of colorDialog in that format of 5bitRGB in 2 bytes to the textBox? Is it possible?