Jump to content

background image help


willz71172

Recommended Posts

im guessing its something in the txt that i add or change can someone hightlight what it is i do.thanks

<!-- normal header container uutf-8n all screens except the match screen -->

<panel>

<layout class="fit_children_attachment" alignment="vertical" offset="0"/>

<layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true"/>

<!-- titlebar background image -->

<widget class="picture" id="pict" file="interface/titlebar/background/bar" auto_size="vertical" cached="true">

<layout class="stick_to_sides_attachment" alignment="bottom" inset="0"/>

</widget>

<!-- titlebar image -->

<widget class="picture" id="pict" file="interface/titlebar/bar" auto_size="vertical" cached="true" rthr="68">

<layout class="stick_to_sides_attachment" alignment="bottom" inset="0"/>

<!-- set the colour of the image to the team background colour -->

<attachment class="get_global_attachment" get_property="tbcl" set_property="colr"/>

</widget>

<!-- container to handle the layout of the 'background' logos -->

<container height="100">

<layout class="stick_to_sides_attachment" alignment="top" inset="0"/>

<layout class="fit_children_attachment" alignment="vertical" offset="0"/>

<!-- Right Side Logo -->

<widget class="picture" id="rgtB" auto_size="all" file="pictures/logos/background/default/left">

<layout class="stick_to_sides_attachment" alignment="top,right" inset="0"/>

<!-- set main 'background' logo -->

<attachment class="get_global_attachment" get_property="sbpc" set_property="file" skip_if_null="false"/>

</widget>

<!-- Left Side Logo -->

<widget class="picture" id="lftB" auto_size="all">

<layout class="stick_to_sides_attachment" alignment="top,left" inset="0"/>

<!-- set main 'background' logo -->

<attachment class="get_global_attachment" get_property="mbpc" set_property="file" skip_if_null="false"/>

</widget>

</container>

<!-- background logos container -->

<!-- main logos container -->

<container height="100">

<layout class="arrange_horizontal_attachment" layout="170,-1,170" alignment="centre" offset="0" gap="0"/>

<layout class="stick_to_sides_attachment" alignment="all" inset="0" offset="0"/>

<!-- left sided main logo -->

<container height="100">

<layout class="fit_children_attachment" alignment="vertical,extend" offset="0"/>

<layout class="stick_to_sides_attachment" alignment="vertical" inset="0"/>

<layout class="centre_in_parent_attachment" alignment="horizontal" offset="0" layout_children="true"/>

<!-- Primary Logo -->

<widget class="picture" id="rgtF" scale_picture="true" keep_aspect_ratio="true" height="100" width="100" image_alignment="centre">

<layout class="centre_in_parent_attachment" alignment="vertical" offset="5"/>

<!-- tells the picture to listen to the 'main picture' global property being set, and set its own file property from it -->

<attachment class="get_global_attachment" get_property="mnpc" set_property="file" skip_if_null="false"/>

</widget>

</container>

<!-- dummy container -->

<container>

</container>

<!-- right sided main logo -->

<container height="100">

<layout class="fit_children_attachment" alignment="vertical,extend" offset="0"/>

<layout class="stick_to_sides_attachment" alignment="vertical" inset="0"/>

<layout class="centre_in_parent_attachment" alignment="horizontal" offset="0" layout_children="true"/>

<!-- Primary Logo -->

<widget class="picture" id="lftF" scale_picture="true" keep_aspect_ratio="true" height="90" width="90" image_alignment="centre">

<layout class="centre_in_parent_attachment" alignment="vertical" offset="-2"/>

<attachment class="get_global_attachment" get_property="scpc" set_property="file" skip_if_null="false"/>

</widget>

</container>

</container>

<!-- main logos container -->

<!-- titlebar effect overlay -->

<widget class="picture" id="pict" file="interface/titlebar/overlay/bar" auto_size="vertical" cached="true">

<layout class="stick_to_sides_attachment" alignment="bottom" inset="0"/>

</widget>

<!-- titlebar outline -->

<widget class="picture" id="pict" file="interface/titlebar/outline/bar" auto_size="vertical" cached="true" rthr="68">

<layout class="stick_to_sides_attachment" alignment="bottom" inset="0"/>

<attachment class="get_global_attachment" get_property="ttcl" set_property="colr"/>

</widget>

Link to post
Share on other sites

Have you edited the header.xml file, as you'll need to edit these two lines in the header.xml file as they control the height of the header:

This controls the background image (yellow bar in your screenshot - looks like this line doesn't need editing):

<!-- coloured bar image -->

<widget class="picture" id="pict" file="interface/titlebar/bar" height="171" rthr="68">

This line controls the height of the titlebar content (background logo, main logo, quickflicks etc...):

<!-- titlebar -->

<container id="NHdr" file="titlebar" height="86">

Whilst the match titlebar height is controlled by this line:

<!-- match titlebar -->

<widget class="match_titlebar_panel" id="Mhdr" height="120">

So you'll need to increase the heights until you are happy, assuming of course that the background logos you are using are being cut off in your screenshot by the game and that is not the actual full graphic as the default ones are cut off like that and if thats the case then you'd need to create new background logos aswell.

Link to post
Share on other sites

It's not a problem with the skin, the background logos aren't being cut off by the skin the actual graphics look like that and are that size.

You'll need to either create new background graphics or get the game to resize them by changing the code in the titlebar.xml file for the left (and) right background logo:

From:

<!-- Left Side Logo -->

<widget class="picture" id="lftB" auto_size="all">

To:

<!-- Left Side Logo -->

<widget class="picture" id="lftB" scale_picture="true" keep_aspect_ratio="true" height="120" width="360" >

You'll need to pick a height and width value that works the images by default are 300x100 pixels.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...