Jump to content

Centralise main text?


dave byrd

Recommended Posts

As per the screenshot can anyone tell me how to move the '10. David Villa Striker, Valencia' to the centre of the screen instead of on the left hand side? Now my skin has club background logos it looks a little cluttered there.

Ok after lot's of tinkering here it is

FIND

    <!-- manager and club names -->
   <container id="text">
     <layout class="arrange_horizontal_attachment" alignment="left,extend" gap="8"/>
     <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="18"/>
       <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="14" font="fonts/verabd" multiline="false" auto_size="horizontal">
       <layout class="stick_to_sides_attachment" alignment="vertical" inset="15"/>
       <attachment class="get_global_attachment" get_property="titl" set_property="text"/>
       <attachment class="get_global_attachment" get_property="ttcl" set_property="colr"/>
     </widget>

     <!-- description -->
     <widget class="text" id="subs" size="10" alignment="left, top" multiline="true" auto_size="vertical">
       <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"/>
       <attachment class="get_global_attachment" get_property="ttcl" set_property="colr"/>
     </widget>
   </container>

and REPLACE with

  <!-- manager and club names -->
 <container id="text">
   <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="-3"/>
   <layout class="stick_to_sides_attachment" alignment="vertical" inset="0"/>

   <container width="170">
     <layout class="arrange_vertical_attachment" alignment="bottom" offset="0" gap="-1"/>
     <layout class="stick_to_sides_attachment" alignment="horizontal" inset="2" layout_children="true"/>

     <widget class="text" id="pers" text="" standard_spec="text,small" colour="white" alignment="left" auto_size="vertical" multiline="false">
       <attachment class="get_global_attachment" get_property="user" set_property="text"/>
     </widget>

   </container>

   <!-- main text -->
   <container id="tita">
     <layout class="arrange_vertical_attachment" alignment="top" offset="3" gap="-3"/>
     <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true"/>
     <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>

     <!-- title area -->
     <widget class="text" id="sect" alignment="centre_x,top" size="20" font="fonts/verabd" multiline="false" auto_size="vertical">
       <attachment class="get_global_attachment" get_property="titl" set_property="text"/>
       <attachment class="get_global_attachment" get_property="ttcl" set_property="colr"/>
     </widget>

     <!-- subtitle area -->
     <container height="22">
       <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>
       <layout class="centre_in_parent_attachment" alignment="horizontal" layout_children="true"/>

       <!-- hide when no subtitle -->
       <attachment class="test_global_attachment" get_property="subt" skip_if_null="false" set_property="hidn"/>

       <container>
         <layout class="arrange_horizontal_attachment" alignment="left" offset="0" gap="8"/>
         <layout class="fit_children_attachment" alignment="horizontal,fill" offset="0" gap="8"/>
         <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true"/>

         <!-- flag -->
         <widget class="nation_button" id="stfl" auto_size="horizontal" icon_alignment="right,can_scale" dspf="4">
           <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>

         <!-- description -->
         <widget class="text" id="subs" size="12" alignment="centre" mlti="false" auto_size="all">
           <attachment class="get_global_attachment" get_property="subt" set_property="text"/>
           <attachment class="get_global_attachment" get_property="ttcl" set_property="colr"/>
         </widget>

       </container>
     </container>
   </container>
 </container>

I hope this has helped

Laters :thup:

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