![]() |
#46 |
User
Join Date: Apr 2008
Posts: 286
![]() |
![]() But blizzard should know the colors, they gave to players.
These colors always work perfectly for me. |
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#47 |
Two Blue
|
![]() http://www.hiveworkshop.com/forums/498945-post3.html
__________________playercolours taken from the editor's Player Properties dialog. |
![]() |
![]() |
![]() |
#48 |
User
Join Date: Jan 2007
Posts: 80
![]() |
![]() Cyan is actually #1ce6b9 xD
__________________I got it from some file inside the mpq. I can't remember the exact file. Maybe something with replaceabletextures\teamcolor. But i still have the list of exact playercolors. Code:
# Player RED GREEN BLUE HEX-CODE 0 PLAYER_COLOR_RED = 255 3 3 ff0303 1 PLAYER_COLOR_BLUE = 0 66 255 0042ff 2 PLAYER_COLOR_CYAN = 28 230 185 1ce6b9 3 PLAYER_COLOR_PURPLE = 84 0 129 540081 4 PLAYER_COLOR_YELLOW = 255 252 1 fffc01 5 PLAYER_COLOR_ORANGE = 254 138 14 fe8a0e 6 PLAYER_COLOR_GREEN = 32 192 0 20c000 7 PLAYER_COLOR_PINK = 229 91 176 e55bb0 8 PLAYER_COLOR_LIGHT_GRAY = 149 150 151 959697 9 PLAYER_COLOR_LIGHT_BLUE = 126 191 241 7ebff1 10 PLAYER_COLOR_AQUA = 16 98 70 106246 11 PLAYER_COLOR_BROWN = 78 42 4 4e2a04 |
![]() |
![]() |
![]() |
#50 |
User
Join Date: May 2006
Posts: 129
![]() |
![]() Alpha doesn't work :/
|
![]() |
![]() |
![]() |
#51 | |
User
Join Date: Mar 2009
Posts: 1,079
![]() ![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#52 |
User
Join Date: Jan 2007
Posts: 542
![]() ![]() ![]() |
![]() Alpha doesnt work in what context? Where did you use it?
__________________ |
![]() |
![]() |
![]() |
#53 |
Free Software Terrorist
Technical Director
|
![]() 1.2, fixed the player colors, and added fromPlayerColor.
__________________If I remember correctly, I originally took the colors from the first place as Skater. if you had an older version of ARGB you may notice there are a lot of coincidences, apparently I just had a couple of typos when copying, sorry. |
![]() |
![]() |
![]() |
#54 | |
Free Software Terrorist
Technical Director
|
![]() Quote:
Then I would use that table to be able to convert "FF" to 15*16+15, etc. Then splity the string you provided to the function into four couples of hex values, each of these will generate a value from 0 to 255 then use ARGB.create with these values. |
|
![]() |
![]() |
![]() |
#55 |
Procrastination Incarnate
Development Director
|
![]() Okay, I seem to have stumbled on some weird bug with the ARGBrecolor module used in xefx:
__________________This works (the xefx are of the desired colour): call charge.fx.recolor(FX_END_COLOUR.red,FX_END_COLOUR.green,FX_END_COLOUR.blue,FX_END_COLOUR.alpha) And this doesn't (the xefx are invisible): call charge.fx.ARGBrecolor(FX_END_COLOUR) I tried making the xefx dummy unit public so I could also test this and it also worked: call FX_END_COLOUR.recolorUnit(charge.fx.dummy) I have the latest xefx and ARGB in my map. This line of code is the only one I changed between tests. I have no idea why ARGBrecolor doesn't work because it and recolorUnit seem to be using the exact same code. |
![]() |
![]() |
![]() |
#56 |
User
Join Date: Mar 2009
Posts: 149
![]() ![]() |
![]() So, I just tested this a bit, and should not this:
![]() module ARGBrecolor method ARGBrecolor takes ARGB color returns nothing ... local integer col=integer(this) ... look more like this way? ![]() module ARGBrecolor method ARGBrecolor takes ARGB color returns nothing ... local integer col=integer(color) ... Otherwise, it would convert the struct, in which the module is implemented to a color, or not? At least, for me some messages showed, col was always the current instance of the struct and not any color, thus it was usually translated to (instance) blue rest 0. Changing "this" to "color" made it work properly. This should be exactly the same problem Anitarf mentioned, I tried xefx, and the same error happened, the dummys became invisible. However, changing this to color in ARGBrecolor method fixed this, too. Or am I using ARGB wrong? Last edited by Kueken : 12-12-2009 at 07:01 PM. |
![]() |
![]() |
![]() |
#57 |
User
|
![]() can you change colors of players and their units with this system? this will include hero glow, right? sounds cool...
Last edited by SanKakU : 07-15-2010 at 06:39 PM. |
![]() |
![]() |
![]() |
#58 | |
Lackadaisically Absent.
Respected User
|
![]() Years late and many dollars short but... In case anyone else comes along and tries to use this (like I did), Kueken has correctly identified the error in ARGBrecolor. A fixed version of the library is located below.
__________________Quote:
![]() Last edited by Pyrogasm : 08-29-2016 at 03:06 AM. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|