Serenity
|
Colored Player boxesSo 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)
|
karma99
|
The colours are background images that are repeated,
grey http://goallineblitz.com/images/game/design/dark_content_container.jpg
blue http://goallineblitz.com/images/game/equipment/content_container.gif
If you can "photoshop" those images to be the colour scale you want and host them somewhere then it's easy enough to write a script to swap out the links in the page to the new backgrounds. I'd offer to do it all but I'm a coder, image stuff is as beyond me as coding is to most artists
|
Serenity
|
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
|
karma99
|
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?
|
karma99
|
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.
|
Serenity
|
| 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
|
karma99
|
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
|
Serenity
|
screenie
one suggestion I have would to possibly make the XP numbers darker if possible/not much work
|
dudeamis
|
haha I guess I'm a hybrid... but I've been out of coding for sometime
|
auron341
|
Now if there is a bar at the top of the bow that is to be expected right?
|
mw54finest
|
| auron341 wrote: | Now if there is a bar at the top of the bow that is to be expected right?
 |
Yes, unless you modify color on the below files and host them somewhere. Then it will look like serenity's
|
auron341
|
What do you mean "host" them some where?
|
serialced
|
| auron341 wrote: | | What do you mean "host" them some where? |
having them on another webserver so you can access them online
|
mw54finest
|
You will have to upload to imageshack, photobucket, or any web picture hosting site. You must then use the link from the site and modify your script to point to it.
|
auron341
|
I got it now. thanks
|
StazNasty
|
Does anybody have a selection of colors, or a way to "invert" the text (example: black box with white text)
I've got very little to no skill with photoshop, and I'd like some boxes with a gradient similar to Serenity's
|
Serenity
|
| StazNasty wrote: | Does anybody have a selection of colors, or a way to "invert" the text (example: black box with white text)
I've got very little to no skill with photoshop, and I'd like some boxes with a gradient similar to Serenity's |
If you didn't have so many players I would have offered to help you with that
|
StazNasty
|
Ha, I've only got like 16 or so
I'm basically just looking to group them by team. I can edit the script and what not, I just need a few colors hosted.
|
Serenity
|
| StazNasty wrote: | Ha, I've only got like 16 or so
I'm basically just looking to group them by team. I can edit the script and what not, I just need a few colors hosted. |
What colors?
dark or light gradient?
|
StazNasty
|
Well, if we can get the text to show up light colored, then dark gradients would be nice
Red
Blue (more of a royal blue)
Emerald
Black (if we can get white text, if not...)
Orange
Yeller
Lime Green
and if we can't do black let's go with indigoooooooo (ish)
|
Serenity
|
better idea
pick out the ones that you want the most from here and I'll try and match as close as possible
http://html-color-codes.com/
|
StazNasty
|
lol much better idea
336600
3399FF
0033CC
CC0000
00FF00
000000
FFFF66
If black with white text isn't available: FF9933
|
WlI
|
Can someone do this for me ?Can someone set me up with this ? I want it to be the same colors serenity used green and yellow. Thanks in advance!
http://goallineblitz.com/game/player.pl?player_id=333025
http://goallineblitz.com/game/player.pl?player_id=374459
Those are my players thanks guys!
|
Catullus 16
|
any chance of a rehost?
|
WlI
|
rehost this please
|
Kirghiz
|
Would there be any way to do this, and bundle up a bunch of colors, like just primary colors or something, and pick the one you want for each player off a drop down menu?
|
Second Goalie
|
Does this still work? If so what exactly should the script look like after editing?
|
|
|