Page 1 of 1
(done) player_colors
Posted: Fri May 02, 2008 11:08 pm
by ian_scho
Hi again,
I see that
player_colors is a four length array of... Colours for the champions. Great, we can change that at start-up.
Buuuut changing it on the fly does nothing whatsoever. It's not important as I can change the text colour anyways, just a gimmick, but I always wanted a pink champion
I see similar arrays such as
g_disabled_runes are updated by the dsb functions.
Re: player_colors
Posted: Sat May 03, 2008 10:06 am
by ian_scho
ian_scho wrote:Great, we can change that at start-up..... does nothing whatsoever.
My bad, you use this to generate the Resurrected/Reincarnated/Gained a level messages and changing it will not change the champions colours - only their message colours. The bar colours and the four hero icons are effectively static, they dont change.
Posted: Sat May 03, 2008 7:44 pm
by Sophia
The initial champion colors are "cached" at program start and the table isn't consulted again.
I'll expand dsb_update_strings into a more generic "update" function (and give it a new name, but the old one will still work) that will handle things like this.
Posted: Wed Aug 20, 2008 9:56 am
by ian_scho
I see that youve implemented this, Thanks
The images for the characters in the top right dont change and I assume these are images and are not dynamic like the bars.
Code: Select all
player_colors[1] = {100, 100, 100}
player_colors[2] = {200, 200, 200}
dsb_update_system()
Posted: Thu Aug 21, 2008 7:35 pm
by Sophia
ian_scho wrote:I assume these are images and are not dynamic like the bars.
Correct assumption.
They're automatically created, but only once. I'll fix this.