This folder contains subfolders. Each subfolder represents a baseball card template set. To choose which template set your OOTP should use, you need to edit the file /config/app.cfg (see Preferences dialog) - there's a setting bb_cards_template_set. For example:

bb_cards_template_set
	ootp
	
Restart OOTP and it will use the template set from that subfolder.
To create your own template set, just copy an existing folder, rename it, and edit the files found in that folder.

OOTP uses customizable templates for the baseball cards which it generates for players. The forum user and beta tester "BMW" created a great guide for these templates. You can download it here: http://www.mediafire.com/file/b2qqlmvyrjxezo6/Creating_Baseball_Card_Templates_for_OOTP_11.pdf

From time to time, we add new features to the template engine. Here are some:

## type="random_image"
<ELEMENT type="random_image" x="0" y="0" zorder="10" width="400" height="600" content="random_background_" />
This will load one of the images in the template folder that start with "random_background_", like "random_background_1.png", "random_background_2.png", "random_background_whatever.png"

## align="center" for images
<ELEMENT type="image" x="200" y="522" max_content_width="180" align="center" zorder="100" content="TEAM_LOGO" />
The center of this image will be at the given x/y coordinate (instead of the upper left corner of the image)

## recolor_new
<ELEMENT type="image" x="0" y="14" zorder="50" content="primary_tc.png" recolor_new="[%TEAM_BG_COLOR]" />
The image will be "recolored", i.e. the given color (here: team background color) will be used to put a color layer over the image primary_tc.png.

## max_content_height/max_content_width
<ELEMENT type="image" x="200" y="522" max_content_height="100" align="center" zorder="100" content="TEAM_LOGO" />
In this case, we have 100 pixel height available for the logo. The "Indians" logo is wide. If we resize it from 150 to 100 to match the height, it will be very tiny. The setting max_content_height="100" let's OOTP ignore the transparent lines at the top and at the bottom of the logo. The actual content is only 80 pixel high. So OOTP will even increase the size of the logo and it will still only be 100 pixel high.

## shadowed="1"
<ELEMENT type="text" x="10" y="434" width="380" height="50" align="center" valign="bottom" zorder="80" shadowed="1" font_name="ERASBD" font_color="#FFFFFF" font_x_size="57" font_y_size="57" content="[%PERSON_FIRST_NAME]" />
The setting shadowed="1" will add a shadow effect to the font

## shadow_x_offset="3"
Sets the horicontal shadow offset

## shadow_y_offset="3"
Sets the vertical shadow offset

## shadow_alpha="200"
Sets the transparency of the black shadow

## upper_case="1"
<ELEMENT type="text" x="35" y="60" width="230" height="50" align="left" valign="top" zorder="80" upper_case="1" font_name="Roboto-Black" font_color="#000000" font_x_size="33" font_y_size="33" content="[%PERSON_LAST_NAME]" />
The setting upper_case="1" will convert the text to upper case.

## sync_font_size="1" and sync_font_size="2"
Fonts will be resized to a smaller font size if the text is too long for the width of a text element. If you have several text elements and wish to let them all use the same text size, you can "group" them by adding sync_font_size="1" to each of these elements. If one of them is resized to a smaller font size, all of them will use that smaller font size. If you use sync_font_size="2" for one of them, if will still be a member of that group, but it will only be resized if it does not fit into it's text box.

## repl_color_old and repl_color_new
For example <ELEMENT type="image" ... repl_color_old="#FF0000" and repl_color_new="[%TEAM_BG_COLOR]" />
In this example, each pixel in the image that is red will be replaced with the team background color. 

## team_name_filter="dodgers" 
This element will only be used if the team name contains the word (here: dodgers).

Tokens:
[%TEXT_COLOR] returns either white or black, whatever is best on this team's back ground color
[%TEAM_TEXT_COLOR]
[%TEAM_BG_COLOR]
[%TEAM_JERSEY_MAIN_COLOR]
[%TEAM_JERSEY_SECONDARY_COLOR]
[%TEAM_JERSEY_PIN_STRIPES_COLOR]
[%TEAM_BALLCAPS_MAIN_COLOR]
[%TEAM_BALLCAPS_VISOR_COLOR]
[%TEAM_TEXT_COLOR_FOR_BG=#2C2C2C] return either text or background color of the team, whatever works better on the given background color (here: #2C2C2C)

PT_POSITION_YEAR
PT_POSITION_YEAR_WITH_LB
PT_POSITION
PT_YEAR

PERSON_NAME
PT_PERSON_NAME_WITH_LB
