Out of the Park Developments Online Manuals
 
Title
KeyExisting Key New Key
Create as
Find in this manual
Case sensitive

Replace with
Baseball Cards

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.

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

## 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.

Previous page: Weather
Next page: Sound