| View previous topic :: View next topic |
| Author |
Message |
Serenity

Joined: 24 Jun 2008 Posts: 19
|
Posted: Sat Jul 12, 2008 5:01 am Post subject: Colored Player boxes |
|
|
So I had my player level up tonight and it made me think of something that could be cool
A script that we'd be able to color the background of each player using the HTML color code
IE something like this (but with the text remaining unchanged)

|
|
| Back to top |
|
 |
karma99 Developer
Joined: 27 Jun 2008 Posts: 34
|
|
| Back to top |
|
 |
Serenity

Joined: 24 Jun 2008 Posts: 19
|
Posted: Sat Jul 12, 2008 6:08 pm Post subject: |
|
|
I'd have no problem doing the photoshop work for the color of the box.
I'm mostly wondering if there would be a way to do it for each player individually instead of all of them. Kinda like the script that replaces the player picture in the PBP |
|
| Back to top |
|
 |
karma99 Developer
Joined: 27 Jun 2008 Posts: 34
|
Posted: Sun Jul 13, 2008 7:11 am Post subject: |
|
|
| Ok, so if I write a script that you add player id's and url links to the new backgrounds to and then it will do the swap for you, would that about do it? |
|
| Back to top |
|
 |
karma99 Developer
Joined: 27 Jun 2008 Posts: 34
|
Posted: Sun Jul 13, 2008 8:26 am Post subject: |
|
|
Ok a little more info as I thought I'd missed something and I had
The links above are for the top fade part of the box, then the main colour is just entered as an RGB value and fills out the rest of the box below the fade strip.
So to do it we need: PlayerID, link to the recoloured "fade" image, and then the colour of the bottom of that fade image as an RGB value (ie #E12FF8)
Also optionly there is a top and bottom line colour, currently there is a dark grey line at the top and bottom of the grey box, and a dark blue/purple line at the bottom of the blue (unspent sp) box. We could add matching colours to the new colour (RGB values again) or just leave them out. |
|
| Back to top |
|
 |
Serenity

Joined: 24 Jun 2008 Posts: 19
|
Posted: Sun Jul 13, 2008 1:15 pm Post subject: |
|
|
| karma99 wrote: | Ok a little more info as I thought I'd missed something and I had
The links above are for the top fade part of the box, then the main colour is just entered as an RGB value and fills out the rest of the box below the fade strip.
So to do it we need: PlayerID, link to the recoloured "fade" image, and then the colour of the bottom of that fade image as an RGB value (ie #E12FF8)
Also optionly there is a top and bottom line colour, currently there is a dark grey line at the top and bottom of the grey box, and a dark blue/purple line at the bottom of the blue (unspent sp) box. We could add matching colours to the new colour (RGB values again) or just leave them out. |
Leaving the grey lines at the top and bottom would be fine with me.
It's just the main box part that I really want, the grey lines are fine the way they are  |
|
| Back to top |
|
 |
karma99 Developer
Joined: 27 Jun 2008 Posts: 34
|
Posted: Sun Jul 13, 2008 4:12 pm Post subject: |
|
|
Ok, here ya go mate
Instructions are at the top of the script, just create a new line for each of your players...
boxArray.push('YourPlayerID,FadeImageURL,#RGBValueForTheBox');
ie boxArray.push('119449,http://goallineblitz.com/images/game/design/content_container.gif,#FF00FF');
Script is here, let me know if you have any issues: http://userscripts.org/scripts/show/33279 |
|
| Back to top |
|
 |
Serenity

Joined: 24 Jun 2008 Posts: 19
|
Posted: Sun Jul 13, 2008 5:26 pm Post subject: |
|
|
screenie
one suggestion I have would to possibly make the XP numbers darker if possible/not much work |
|
| Back to top |
|
 |
dudeamis Developer
Joined: 08 Jul 2008 Posts: 13
|
Posted: Sun Jul 13, 2008 6:15 pm Post subject: |
|
|
haha I guess I'm a hybrid... but I've been out of coding for sometime |
|
| Back to top |
|
 |
auron341
Joined: 21 Jul 2008 Posts: 16
|
Posted: Mon Jul 21, 2008 9:52 pm Post subject: |
|
|
Now if there is a bar at the top of the bow that is to be expected right?

|
|
| Back to top |
|
 |
|