Jump to content

A challenge........


Mr Mikey787878

Recommended Posts

Okay.

I am pedantic - i know.

But I can't deal with my team's name "Harrogate Railway Athletic" being shortened to "H'gate" in the score panel on tv view whilst watching a match. (see below in pic)

By default the game displays the "short team name" here (as defined in the editor) :

Long team name: Harrogate Railway Athletic

Short team name: Harrogate Railway

6 digit name: H'gate

(don't stop reading, it is a skinning question i promise!)

Anyway "Harrogate Railway" appears to be just too long for the window size. The game therefore defaults it to the 6 figure name = "H'gate".

Now i could get round this using the editor to change my team's short name to be shorter (via trial and error have discovered it is only one digit too long!) but i don't want to do this as tis short name appears in lots of different screens throughout the game.

THEREFORE I need to skin this panel/screen/section to make it larger.

As you can see i've had a fair stab at doing this but try as i might cannot get it to use the longer name. I can make the box look visibly larger on the screen but it still just read "H'gate".

If anyone can work this out I owe them eternal gratitude.

Any SI folks reading - is there a hardcoded limit to the length of names in this screen? Is that the prob?

Anyway - screenie:

barea.png

By Mikey78787878

And xml code from what, i think, is the relevant panel xml ("match mini scoreboard xml"):

<panel>

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

<!--home team background colour-->

<widget class="picture" auto_size="vertical" file="pitch/scoreboard/bar" cached="true" height="30">

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

</widget>

<!-- match time -->

<container class="plain_box" width="100" height="30">

<layout class="fit_children_attachment" alignment="horizontal, fill"/>

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

<!-- normal time -->

<widget class="text" id="Matt" font="fonts/verabd" size="11" style="embossed" colour="white" alignment="centre" width="72" height="30">

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

<layout class="stick_to_sides_attachment" alignment="left" inset="5"/>

</widget>

<widget class="text" id="Mijt" font="fonts/verabd" size="8" colour="match scoreboard added time" alignment="centre" width="72" height="30">

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

<layout class="stick_to_sides_attachment" alignment="left" inset="47"/>

</widget>

<!-- injury time

<container class="plain_box" appearance="pitch/boxes/tactics/bar" width="40" height="30" >

<layout class="fit_children_attachment" alignment="horizontal, fill"/>

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

<layout class="stick_to_sides_attachment" alignment="left" inset="5"/>

<widget class="text" id="Mijt" font="fonts/verabd" size="11" colour="yellow2" alignment="centre" style="embossed">

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

<layout class="stick_to_sides_attachment" alignment="left" inset="4"/>

</widget>

</container>-->

</container>

<!-- team logos, names and scores -->

<container width="420" >

<layout class="arrange_horizontal_attachment" layout="220,220" offset="0" gap="0"/>

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

<!-- home team -->

<container width="220" height="30">

<layout class="arrange_horizontal_attachment" alignment="right" offset="0" gap="0"/>

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

<layout class="stick_to_sides_attachment" alignment="left" inset="104"/>

<!--home team background colour-->

<widget class="picture" id="hmbg" auto_size="vertical" file="pitch/scoreboard/team" cached="true" rthr="68">

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

</widget>

<container>

<layout class="arrange_horizontal_attachment" alignment="right" offset="0" gap="0"/>

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

<!--home team score-->

<widget class="text" id="hmsc" font="fonts/verabd" size="10" height="30" width="30" alignment="centre">

<layout class="stick_to_sides_attachment" alignment="right" inset="10"/>

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

</widget>

<!--home team aggregate score-->

<widget class="text" id="hmsa" font="fonts/verabd" colour="grey" size="8" height="30" width="30" alignment="centre">

<layout class="stick_to_sides_attachment" alignment="right" inset="30"/>

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

</widget>

</container>

<!--home team name and badge-->

<widget class="ctbt" id="hmnm" font="fonts/verabd" size="8" height="30" width="150" icon_alignment="none" alignment="centre" auto_size="horizontal" >

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

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

</widget>

</container>

<!-- away team -->

<container width="220" height="30">

<layout class="arrange_horizontal_attachment" alignment="right" offset="0" gap="5"/>

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

<layout class="stick_to_sides_attachment" alignment="right" inset="5"/>

<!--away team background colour-->

<widget class="picture" id="awbg" auto_size="vertical" file="pitch/scoreboard/team" cached="true" rthr="68">

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

</widget>

<container>

<layout class="arrange_horizontal_attachment" alignment="left" offset="0" gap="0"/>

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

<!--away team score-->

<widget class="text" id="awsc" font="fonts/verabd" size="10" height="30" width="30" alignment="centre">

<layout class="stick_to_sides_attachment" alignment="left" inset="10"/>

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

</widget>

<!--away team aggregate score-->

<widget class="text" id="awsa" font="fonts/verabd" colour="grey" size="8" height="30" width="30" alignment="centre">

<layout class="stick_to_sides_attachment" alignment="left" inset="30"/>

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

</widget>

<!--away team name and badge-->

<widget class="ctbt" id="awnm" font="fonts/verabd" size="8" height="30" width="100" alignment="centre" icon_alignment="none" auto_size="horizontal" display_format="3">

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

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

</widget>

</container>

</container>

</container>

</panel>

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