Home | Webstore
Latest News: OOTP 13 THIRD Update Available: Version 13.3.9! - OOTP 13 Released! Download Now! - iOOTP 2012 Available NOW on the AppStore - Title Bout Championship Boxing 2.5 released!

Download OOTP 13 Now! | Download iOOTP 2012 from the AppStore

Go Back   OOTP Developments Forums > Out of the Park Baseball 13 > OOTP Mods > OOTP Mods - Logos, Graphics, and HTML

Reply
 
LinkBack Thread Tools Display Modes
Old 07-23-2008, 10:06 PM   #1 (permalink)
Hall Of Famer
 
satchel's Avatar
 
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
How to change the blue color?

How does one change the color of the background of the league "home page" title bar, where the name of the league and the date are displayed on the far left side?

This color is 15203E, but I've changed it in the styles.css file, and the color doesn't change within the game.

All the other areas seem to be responding to changes in the style sheet, although only newly generated reports will reflect the latest version of one's .css file.

The color I'm referring to is the dark blue in this screenshot, where the white writing says "Jamaica League 01-01-2000/Home".
Attached Images
 
satchel is offline   Reply With Quote
Old 07-27-2008, 01:33 AM   #2 (permalink)
Hall Of Famer
 
satchel's Avatar
 
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
In the template files, I've found references to this color, which is a token (Andreas discusses "tokens" in this thread). It's identified by the code
Code:
%LEAGUE_FG_COLOR
but I cannot find the origin of this token, in order to change it.

Where could this value be hiding?
satchel is offline   Reply With Quote
Old 07-27-2008, 07:27 PM   #3 (permalink)
All Star Starter
 
koohead's Avatar
 
Join Date: Dec 2001
Location: Litchfield Park, AZ
Posts: 1,671
Thanks: 58
Thanked 30x in 19 posts
That's a great question and one I've been trying to figure out for 2 years. Please let me know if you find it.
__________________
Mass Select feature in OOTP11! woot!

GM - NC Clippers of the NPBL; 2001,2004,2007 FF Central Division Champs; 2001, 2004, 2007,2038 FFL Champions; 2004,2038 NPBL Champions
koohead is offline   Reply With Quote
Old 07-27-2008, 08:23 PM   #4 (permalink)
Hall Of Famer
 
satchel's Avatar
 
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
I'm also pursuing the answer to this question in the HTML Customization Guide thread.
satchel is offline   Reply With Quote
Old 09-22-2008, 01:34 AM   #5 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,749
Thanks: 15
Thanked 275x in 125 posts
I haven't been able to find a way to set the value of %LEAGUE_BG_COLOR in the game or any style sheets, however you can remove the reference to it and set it directly in the template file that generates that portion of the HTML page.

The file is called "league_title_bar.tpl", and resides in the OOTP templates folder. You'll probably want to copy the whole templates folder into your league folder and edit that copy of it so it only applies to the league you want it to instead of all leagues. You league folder won't have a template folder in it, but if you put the OOTP templates folder in there, it overrides the OOTP one. I think you have to copy the entire templates folder into your league folder for the custom template to work.

Once you've got a copy of the templates folder in your league folder, open the "league_title_bar.tpl" file. There will be two spots where %LEAGUE_BG_COLOR needs to be replaced. Enter the hex code of the color you want preceded by a pound sign (e.g. #FF0000 for red), and remove the brackets. You can also change the color of the text by replacing %LEAGUE_FG_COLOR with a hex code.

So as an example, change
Code:
background-color:[%LEAGUE_BG_COLOR];">
to
Code:
background-color:#FF0000;">
%LEAGUE_BG_COLOR is the blue background color.
%LEAGUE_FG_COLOR is the white text color.

Finally, if you do this with the game open, you'll have to restart the game or switch over to another league and then back for the change to take effect.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers

Last edited by fhomess; 09-22-2008 at 01:40 AM.
fhomess is offline   Reply With Quote
Old 09-22-2008, 06:10 PM   #6 (permalink)
Hall Of Famer
 
satchel's Avatar
 
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
Excellent suggestion, thanks a ton!

Workarounds like these are necessary to mod many of the portions of the templates and the resulting HTML. I never thought about just replacing a token with a value.

I'm already switching out template sets to generate reports for different leagues and circumstances, so that's no big deal.
satchel is offline   Reply With Quote
Old 09-24-2008, 10:44 AM   #7 (permalink)
All Star Starter
 
koohead's Avatar
 
Join Date: Dec 2001
Location: Litchfield Park, AZ
Posts: 1,671
Thanks: 58
Thanked 30x in 19 posts
ahhhh...that's a great idea. thanks!

One word about editing tpl files though. I odd errors when I converted my OOTP8 game to OOTP9 because I had modified some tpl files. Once I placed the default files into my league folder, all the errors went away. So just keep that in mind.

thanks, and I'll give this a whirl tonight!
__________________
Mass Select feature in OOTP11! woot!

GM - NC Clippers of the NPBL; 2001,2004,2007 FF Central Division Champs; 2001, 2004, 2007,2038 FFL Champions; 2004,2038 NPBL Champions
koohead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:05 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0
Copyright © 2009 Out of the Park Developments