Jump to content

Adding a Logo Type to a Skin


Recommended Posts

You need to edit the titlebar.xml file located in the panels folder.

This is the general code for the rightsided logo:

      
<widget class="picture" id="lftF" scale_picture="true" keep_aspect_ratio="true" height="90" width="125" 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"/>
<!-- tells the picture to listen for the 'main picture needs recolouring' property and sets its own 'should recolour' property from it -->
<attachment class="get_global_attachment" get_property="sprc" set_property="srec" skip_if_null="false"/>
<!-- recolours default logo -->
<attachment class="get_global_attachment" get_property="bkcl" set_property="rrep"/>
<attachment class="get_global_attachment" get_property="fcol" set_property="grep"/>
<attachment class="get_global_attachment" get_property="ocol" set_property="brep"/>
</widget>

Though where to add it depends on what changes have been made to the skin by the skinner, if you are lucky he has just commented out the above lines with <!-- and --> - if he has it's just a case of removing the <!-- and -->

If he has completly removed the code for the normal logos, then you'll have to add it back in, the following code will display the comp logo in the default posititon, leaving the club logo in the sidebar:

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

<!-- dummy container -->
   <container>
   </container>

<!-- dummy container -->
   <container>
   </container>

<!-- right Normal 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"/>

PASTE THE CODE FOR THE RIGHT LOGO I DID ABOVE HERE INSTEAD OF THIS CAPS TEXT

 </container>
 </container>

Put that into the titlerbar.xml file below the code for the background logos. Though backup the original file before editing it. Save the file load the game with skin cache off and the comp logo should display.

(The two dummy containers are to ensure the comp logo appears on the right hand side of the screen)

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