Jump to content

subtitle textdisplaying after title text


JR866Gunner

Recommended Posts

currently got the "description" text underneath the main title text and when I try to work out how to get the text to show in the same way the default does the description disappears with any kind of editing done to it.

Basically the description text is really small and when i make it larger it doesnt show completly so i came up with the idea, if the text is alongside one another theres room to make the description text bigger

ideas people? im stumped! lol

Currently the text displays like this with the description underneath the title text (ie Dennis bergkamp at top and manager walsall underneath)

[img ] http://img72.imageshack.us/img72/1036/dennisbergkamp5.png [/img ]

I want the text to display like this;

[img ] http://img37.imageshack.us/img37/3330/6dick.png [/img ]

look forward to hearing from an expert! because i aint a clue!

Link to post
Share on other sites

The file you need to edit is the titlebar.xml file, I assume you are using the Neue2 skin if so these are the changes you need to make.

Locate this load of code:

- Red Code needs deleting

- Green Code needs adding

- Black Code needs editing (replace the current value in the file with the below values).

<container>

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

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

<layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="4"/>

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

<!-- title area -->

<widget class="text" id="sect" alignment="left,top" size="13" font="fonts/verabd" multiline="false" auto_size="
horizontal
" colour="white">

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

<attachment class="get_global_attachment" get_property="titl" set_property="text"/>

</widget>

<!-- description -->

<widget class="text" id="subs" size="7" alignment="left, top" multiline="false" auto_size="
vertical
" colour="white">

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

<attachment class="test_global_attachment" get_property="subt" skip_if_null="false" set_property="hidn"/>

<attachment class="get_global_attachment" get_property="subt" set_property="text"/>

</widget>

</container>

After you have done that the coding should appear on the same line, though you may need to mess around with the inset values to get the text lined up vertically with the flag and logos.

Link to post
Share on other sites

Hi Michael below is the titlebar text I have ammended, now see the SS and that is how its appearing can you see why its looking like it is? I cant!! lol

http://yfrog.com/1xcardiffcityp

<!-- normal header container used on all screens except the match screen

-->

<panel>

<!-- hide this container when on the match screen -->

<!--<layout class="fit_children_attachment" alignment="vertical"

offset="0"/>-->

<layout class="stick_to_sides_attachment" alignment="horizontal"

inset="0" layout_children="true"/>

<!-- MAIN COLOUR -->

<widget class="picture" id="pict" file="interface/titlebar/colour"

auto_size="vertical" cached="true" rthr="68">

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

<layout class="stick_to_sides_attachment" alignment="left"

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>

<!-- SECOND COLOUR -->

<widget class="picture" id="pict" file="interface/titlebar/colour2"

auto_size="vertical" cached="true" rthr="68">

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

<layout class="stick_to_sides_attachment" alignment="left"

inset="0"/>

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

<attachment class="get_global_attachment" get_property="ttcl"

set_property="colr"/>

</widget>

<!-- COLOUR GRADIENT -->

<widget class="picture" id="pict" file="interface/titlebar/colour_over"

auto_size="vertical" cached="true">

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

<layout class="stick_to_sides_attachment" alignment="left"

inset="0"/>

</widget>

<!-- QUICK FLICKS -->

<widget class="quick_flick_button" auto_size="all"

appearance="button/custom/quickflicks/left/button" cached="true">

<layout class="stick_to_sides_attachment" alignment="top"

inset="12"/>

<layout class="stick_to_sides_attachment" alignment="left"

inset="75"/>

<integer id="step" value="-1" />

</widget>

<widget class="quick_flick_button" auto_size="all"

appearance="button/custom/quickflicks/right/button" cached="true">

<layout class="stick_to_sides_attachment" alignment="top"

inset="34"/>

<layout class="stick_to_sides_attachment" alignment="left"

inset="73"/>

<integer id="step" value="1" />

</widget>

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

<container id="BkLg">

<layout class="stick_to_sides_attachment" alignment="vertical"

inset="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>

</container>

<!-- main logos container -->

<container id="MnLg">

<layout class="arrange_horizontal_attachment" layout="110,-1,140"

offset="0" gap="0" />

<layout class="stick_to_sides_attachment" alignment="vertical"

inset="0" offset="0"/>

<!--left sided main logo and quick flicks-->

<container id="LsLg">

<layout class="fit_children_attachment"

alignment="vertical,extend" offset="1" />

<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="lgtF" scale_picture="true"

keep_aspect_ratio="true" height="60" width="60" image_alignment="centre" >

<layout class="centre_in_parent_attachment"

alignment="horizontal" offset="-16" />

<layout class="centre_in_parent_attachment" alignment="vertical"

offset="1"/>

<!-- 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>

<!-- manager and club names -->

<container id="text">

<layout class="arrange_horizontal_attachment" alignment="left,extend"

gap="14"/>

<layout class="stick_to_sides_attachment" alignment="vertical"

inset="0"/>

<!-- flag -->

<widget class="nation_button" id="stfl" auto_size="all"

icon_alignment="right,can_scale" dspf="4">

<layout class="stick_to_sides_attachment" alignment="top"

inset="24"/>

<attachment class="test_global_attachment" get_property="stfl"

skip_if_null="false" set_property="hidn"/>

<attachment class="get_global_attachment" get_property="stfl"

set_property="valu"/>

</widget>

<!-- title area -->

<widget class="text" id="sect" alignment="left,top" size="13"

font="fonts/verabd" multiline="false" auto_size="horizontal"

colour="white">

<layout class="stick_to_sides_attachment" alignment="vertical"

inset="15"/>

<attachment class="get_global_attachment" get_property="titl"

set_property="text"/>

</widget>

<!-- description -->

<widget class="text" id="subs" size="7" alignment="left,top"

multiline="false" auto_size="vertical" colour="white">

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

<attachment class="test_global_attachment" get_property="subt"

skip_if_null="false" set_property="hidn"/>

<attachment class="get_global_attachment" get_property="subt"

set_property="text"/>

</widget>

</container>

</container>

<!-- right sided main logo -->

<container id="RsLg">

<layout class="stick_to_sides_attachment" alignment="vertical"

inset="0" />

<layout class="centre_in_parent_attachment" alignment="horizontal"

offset="30" layout_children="true"/>

<!-- Primary Logo -->

<widget class="picture" id="rftF" scale_picture="true"

keep_aspect_ratio="true" height="56" width="56" image_alignment="centre">

<layout class="centre_in_parent_attachment" alignment="vertical"

offset="0"/>

<attachment class="get_global_attachment" get_property="scpc"

set_property="file" skip_if_null="false"/>

</widget>

</container>

</panel>

Link to post
Share on other sites

The problem is at the end of the file you need to cut the container text in red and copy it to the end (green):

<attachment class="get_global_attachment" get_property="subt" set_property="text"/>

</widget>

</container>

</container>

<!-- right sided main logo -->

<container id="RsLg">

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

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

<!-- Primary Logo -->

<widget class="picture" id="rftF" scale_picture="true"

keep_aspect_ratio="true" height="56" width="56" image_alignment="centre">

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

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

</widget>

</container>

</container>

</panel>

So the coding near the end of the file should look like this:

<attachment class="get_global_attachment" get_property="subt" set_property="text"/>

</widget>

</container>

<!-- right sided main logo -->

<container id="RsLg">

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

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

<!-- Primary Logo -->

<widget class="picture" id="rftF" scale_picture="true"

keep_aspect_ratio="true" height="56" width="56" image_alignment="centre">

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

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

</widget>

</container>

</container>

</panel>

That will sort out the position of the logos, to sort out the vertical position of the text you'll need to change the inset values you added from my previous post to something else, you'll just need to try different values until you get something that looks right to you.

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