glbscripts.myfreeforum.org Forum Index glbscripts.myfreeforum.org
Forum dedicated to Greasemonkey Scripts made for Goal Line Blitz online game.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Join! (free) Join! (free)
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Colored Player boxes
Page 1, 2, 3  Next
 
Post new topic   Reply to topic    glbscripts.myfreeforum.org Forum Index -> Original Scripts
View previous topic :: View next topic  
Author Message
Serenity



Joined: 24 Jun 2008
Posts: 19

PostPosted: Sat Jul 12, 2008 5:01 am    Post subject: Colored Player boxes Reply with quote

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
View user's profile Send private message
karma99
Developer


Joined: 27 Jun 2008
Posts: 34

PostPosted: Sat Jul 12, 2008 9:55 am    Post subject: Reply with quote

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   Razz
Back to top
View user's profile Send private message
Serenity



Joined: 24 Jun 2008
Posts: 19

PostPosted: Sat Jul 12, 2008 6:08 pm    Post subject: Reply with quote

karma99 wrote:
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   Razz


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
View user's profile Send private message
karma99
Developer


Joined: 27 Jun 2008
Posts: 34

PostPosted: Sun Jul 13, 2008 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message
karma99
Developer


Joined: 27 Jun 2008
Posts: 34

PostPosted: Sun Jul 13, 2008 8:26 am    Post subject: Reply with quote

Ok a little more info as I thought I'd missed something and I had    Razz
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
View user's profile Send private message
Serenity



Joined: 24 Jun 2008
Posts: 19

PostPosted: Sun Jul 13, 2008 1:15 pm    Post subject: Reply with quote

karma99 wrote:
Ok a little more info as I thought I'd missed something and I had    Razz
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 Smile
Back to top
View user's profile Send private message
karma99
Developer


Joined: 27 Jun 2008
Posts: 34

PostPosted: Sun Jul 13, 2008 4:12 pm    Post subject: Reply with quote

Ok, here ya go mate   Very Happy

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
View user's profile Send private message
Serenity



Joined: 24 Jun 2008
Posts: 19

PostPosted: Sun Jul 13, 2008 5:26 pm    Post subject: Reply with quote

screenie



one suggestion I have would to possibly make the XP numbers darker if possible/not much work
Back to top
View user's profile Send private message
dudeamis
Developer


Joined: 08 Jul 2008
Posts: 13

PostPosted: Sun Jul 13, 2008 6:15 pm    Post subject: Reply with quote

karma99 wrote:
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   Razz


haha I guess I'm a hybrid... but I've been out of coding for sometime
Back to top
View user's profile Send private message
auron341



Joined: 21 Jul 2008
Posts: 16

PostPosted: Mon Jul 21, 2008 9:52 pm    Post subject: Reply with quote

Now if there is a bar at the top of the bow that is to be expected right?




Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    glbscripts.myfreeforum.org Forum Index -> Original Scripts All times are GMT - 6 Hours
Page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum