Jump to content

[FM21][MOD] New scoreboard in 3D match


lembergman
 Share

Recommended Posts

For the positioning check the various alignment, inset, offset and layout codes to make sure you haven't accidentally given them an offset/inset from the centre, also as you are using custom graphics check the paper xml file found in the same folder as your scoreboard graphic as that file sets the content margins so you might have uneven margins set.

Play button by default is controlled by the match continue panel xml file found in the panels\match folder.

Link to post
Share on other sites

1 час назад, michaeltmurrayuk сказал:

For the positioning check the various alignment, inset, offset and layout codes to make sure you haven't accidentally given them an offset/inset from the centre, also as you are using custom graphics check the paper xml file found in the same folder as your scoreboard graphic as that file sets the content margins so you might have uneven margins set.

Play button by default is controlled by the match continue panel xml file found in the panels\match folder.

I made 80x80 and 40x40 paper. Is this a normal size? does the original file come out not centered?

1score.rar

Link to post
Share on other sites

paper images/xmls look fine, what it might be is the horizontal_gap values set in the score area file - as the default files are slanted that might offset them so they look centre with the default graphics, but as your images are straight they'll now be off centre, so setting the gap to 0 might centre the text.

Link to post
Share on other sites

in which lines to center? I already did a lot. see someone else with your eye
Спойлер

 

<panel width="656">

    <list id="properties_to_forward">
        <record get_property="disable_animations" set_property="disable_animations" target="clkc"/>
        <record get_property="disable_animations" set_property="disable_animations" target="temc"/>
    </list>

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

    <container>

        <attachment_group class="horizontal_arrange" horizontal_gap="-13" horizontal_offset="0" vertical_inset="0" />
        <!-- Competition icon -->
        <container class="client_object_viewer_xml_panel"  width="47" >

            <record id="object_property" get_property="fxCo" set_property="objt" />
            <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0"/>

            <container class="main_box_no_margin" appearance="boxes/custom/match/tv captions/si tv/score/comp/paper" >
                <record id="object_property" get_property="bkcl" set_property="rrep" />
                <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="10,0"/>

                <widget class="object_portrait_picture" scale_picture="true" keep_aspect_ratio="true" image_alignment="centre">
                    <record id="object_property" get_property="objt" set_property="objt" />
                </widget>
            </container>

        </container>

        <!--clock-->
        <container width="90" class="main_box_no_margin" appearance="boxes/custom/match/tv captions/si tv/score/time/paper" red_replacement="blue grey 900" id="clkc">

            <animation class="translate_animation" start_value="-1, 0" end_value="0, 0" duration="0.4" delay="0" end_mode="hold_end" tween="ease_out_4" coord_mode="relative_to_target"/>
            <animation class="fade_animation" start_value="0" end_value="1" duration="0.3" delay="0.8" end_mode="hold_end"/>

            <attachment_group class="vertical_arrange" vertical_alignment="bottom,extend" vertical_offset="0" vertical_gap="0" />

            <!--clock-->
            <container id="ClkC">
                <attachment_group class="vertical_arrange" vertical_alignment="middle" vertical_gap="0" horizontal_inset="0" />

                <record id="default_properties" auto_size="vertical" alignment="centre" />

                <container >
                    <attachment_group class="horizontal_arrange_vertical_autosize_centre" horizontal_alignment="middle" horizontal_gap="0" vertical_inset="0" horizontal_offset="0,9,0,0"/>

                    <record id="default_properties" auto_size="all" alignment="centre" />


                    <widget class="text" id="Mclk" size="xlarge" font="title" auto_size="all" />

                    <!--injury time indicator-->
                    <container id="MijC" height="16">
                        <attachment_group class="horizontal_arrange_autosize"/>

                        <widget class="text" id="Mijt" auto_size="horizontal"  alignment="centre" colour="fg positive"/>
                    </container>

                </container>


                <widget class="text" id="ClkT" font="title" size="small" multiline="true"/>
                <!--<widget class="text" id="Pent" size="14" style="semi_bold" />-->
            </container>

            <!--match time bar-->
            <widget class="match_time_slider_panel"  height="4" file="match/match time slider panel small">
                <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0,0,0,13"/>

                <record id="object_property">
                    <integer id="get_property" value="objt" />
                    <integer id="set_property" value="objt" />
                </record>
            </widget>

        </container>


        <!--team names and score-->
        <container width="535" id="temc">

            <animation class="scale_animation" start_value="0, 1" end_value="1, 1" duration="0.5" delay="0.9" end_mode="hold_end" tween="ease_out" coord_mode="relative_to_target" centre_point="left"/>
            <animation class="fade_animation" start_value="0" end_value="1" duration="0.4" delay="1" end_mode="hold_end"/>

            <attachment_group class="horizontal_arrange" horizontal_gap="-14" horizontal_layout="-1,75,-1" vertical_inset="0" />


            <container class="main_box_no_margin" red_replacement="white" appearance="boxes/custom/match/tv captions/si tv/score/home team/paper" id="T1Co">

                <attachment_group class="horizontal_arrange" horizontal_alignment="right" horizontal_gap="10" />    

                <widget class="team_button" id="homN" icon_enabled="false" auto_size="horizontal" font="title" size="10" alignment="right,centre_y,can_scale" click_event="htac" navigation_focus_target="false" colour="white" mode="1">
                    <record id="object_property" get_property="home" set_property="valu" />
                </widget>
                
                <widget class="picture" id="hmtF" scale_picture="true" keep_aspect_ratio="true" height="30" width="30" image_alignment="left, centre_y">
                    <layout class="centre_in_parent_attachment" alignment="vertical" offset="0"/>
                    <record id="object_property">
                        <integer id="get_property" value="htpc" />
                        <integer id="set_property" value="file" />
                    </record>
                </widget>
                
                <container width="5" />

            </container>

            <container id="MInf">
                <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0"/>
                <container class="main_box_no_margin" appearance="boxes/custom/match/tv captions/si tv/score/time/paper" red_replacement="blue grey 900" >
                    <attachment_group class="vertical_arrange" vertical_alignment="bottom,extend" vertical_gap="-2" vertical_offset="0" horizontal_inset="0" />

                    <container navigation_focus_target="false">
                        <attachment_group class="horizontal_arrange" horizontal_alignment="middle" horizontal_gap="0" horizontal_offset="0" vertical_inset="0" />

                        <widget class="text" id="T1sc" size="xlarge" font="title" alignment="right,centre_y" colour="white" auto_size="horizontal"/>

                        <widget class="text" size="xlarge" font="title" alignment="centre" text="-" colour="white" auto_size="horizontal"/>

                        <widget class="text" id="T2sc" size="xlarge" font="title" alignment="left,centre_y" colour="white" auto_size="horizontal"/>

                    </container>

                    <container id="asco">
                        <attachment_group class="horizontal_arrange_vertical_autosize" horizontal_alignment="middle"  horizontal_gap="0" horizontal_offset="0" vertical_inset="0" />

                        <widget class="text" id="T1as" font="title" alignment="right,centre_y" auto_size="all"/>

                        <widget class="text" font="title" alignment="centre" text="-" auto_size="all"/>

                        <widget class="text" id="T2as" font="title" alignment="left,centre_y" auto_size="all"/>

                    </container>

                </container>


            </container>


            <container class="main_box_no_margin" red_replacement="white" appearance="boxes/custom/match/tv captions/si tv/score/away team/paper" id="T2Co">
                
                <attachment_group class="horizontal_arrange" horizontal_gap="10" />

                <container width="5" />

                <widget class="picture" id="awtF" scale_picture="true" keep_aspect_ratio="true" height="30" width="30" image_alignment="left, centre_y">
                    <layout class="centre_in_parent_attachment" alignment="vertical" offset="0"/>
                    <record id="object_property">
                        <integer id="get_property" value="atpc" />
                        <integer id="set_property" value="file" />
                    </record>
                </widget>

                <widget class="team_button" id="awaN" icon_enabled="false" auto_size="horizontal" font="title" size="10" alignment="left,centre_y,can_scale" click_event="atac" navigation_focus_target="false" colour="white" mode="1">
                    <record id="object_property" get_property="away" set_property="valu" />
                </widget>

            </container>


        </container>

    </container>

    <widget class="button" appearance="" navigation_focus_target="false">
        <record id="click_event">
            <flags id="event_id" value="TNeV" />
            <integer id="evfl" value="7" />
            <flags id="evtg" value="root" />
        </record>
    </widget>

</panel>

 

12.thumb.png.f8314474f549485a8dc54cd75f55e6b0.png

match score area panel.xml

Edited by lembergman
Link to post
Share on other sites

15 hours ago, lembergman said:
in which lines to center? I already did a lot. see someone else with your eye
  Hide contents

 

<panel width="656">

    <list id="properties_to_forward">
        <record get_property="disable_animations" set_property="disable_animations" target="clkc"/>
        <record get_property="disable_animations" set_property="disable_animations" target="temc"/>
    </list>

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

    <container>

        <attachment_group class="horizontal_arrange" horizontal_gap="-13" horizontal_offset="0" vertical_inset="0" />
        <!-- Competition icon -->
        <container class="client_object_viewer_xml_panel"  width="47" >

            <record id="object_property" get_property="fxCo" set_property="objt" />
            <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0"/>

            <container class="main_box_no_margin" appearance="boxes/custom/match/tv captions/si tv/score/comp/paper" >
                <record id="object_property" get_property="bkcl" set_property="rrep" />
                <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="10,0"/>

                <widget class="object_portrait_picture" scale_picture="true" keep_aspect_ratio="true" image_alignment="centre">
                    <record id="object_property" get_property="objt" set_property="objt" />
                </widget>
            </container>

        </container>

        <!--clock-->
        <container width="90" class="main_box_no_margin" appearance="boxes/custom/match/tv captions/si tv/score/time/paper" red_replacement="blue grey 900" id="clkc">

            <animation class="translate_animation" start_value="-1, 0" end_value="0, 0" duration="0.4" delay="0" end_mode="hold_end" tween="ease_out_4" coord_mode="relative_to_target"/>
            <animation class="fade_animation" start_value="0" end_value="1" duration="0.3" delay="0.8" end_mode="hold_end"/>

            <attachment_group class="vertical_arrange" vertical_alignment="bottom,extend" vertical_offset="0" vertical_gap="0" />

            <!--clock-->
            <container id="ClkC">
                <attachment_group class="vertical_arrange" vertical_alignment="middle" vertical_gap="0" horizontal_inset="0" />

                <record id="default_properties" auto_size="vertical" alignment="centre" />

                <container >
                    <attachment_group class="horizontal_arrange_vertical_autosize_centre" horizontal_alignment="middle" horizontal_gap="0" vertical_inset="0" horizontal_offset="0,9,0,0"/>

                    <record id="default_properties" auto_size="all" alignment="centre" />


                    <widget class="text" id="Mclk" size="xlarge" font="title" auto_size="all" />

                    <!--injury time indicator-->
                    <container id="MijC" height="16">
                        <attachment_group class="horizontal_arrange_autosize"/>

                        <widget class="text" id="Mijt" auto_size="horizontal"  alignment="centre" colour="fg positive"/>
                    </container>

                </container>


                <widget class="text" id="ClkT" font="title" size="small" multiline="true"/>
                <!--<widget class="text" id="Pent" size="14" style="semi_bold" />-->
            </container>

            <!--match time bar-->
            <widget class="match_time_slider_panel"  height="4" file="match/match time slider panel small">
                <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0,0,0,13"/>

                <record id="object_property">
                    <integer id="get_property" value="objt" />
                    <integer id="set_property" value="objt" />
                </record>
            </widget>

        </container>


        <!--team names and score-->
        <container width="535" id="temc">

            <animation class="scale_animation" start_value="0, 1" end_value="1, 1" duration="0.5" delay="0.9" end_mode="hold_end" tween="ease_out" coord_mode="relative_to_target" centre_point="left"/>
            <animation class="fade_animation" start_value="0" end_value="1" duration="0.4" delay="1" end_mode="hold_end"/>

            <attachment_group class="horizontal_arrange" horizontal_gap="-14" horizontal_layout="-1,75,-1" vertical_inset="0" />

....

 

12.thumb.png.f8314474f549485a8dc54cd75f55e6b0.png

match score area panel.xml 7.5 kB · 1 download

The bits I've highlighted in red in the spoiler text - try changing those values from -13 -14 to 0.

Link to post
Share on other sites

On 19/01/2021 at 20:15, lembergman said:

Thanks for helping to me

scoreboard.thumb.png.00d24eaab0c0b3102b4ac5fe82d03e47.png

skin 21\graphics\boxes\custom\match\tv captions\si tv\score

skin 21\panels\match

match score area panel.xml 7.5 kB · 15 downloads score.rar 4.25 kB · 13 downloads

hey mate. How did you make the capital letters in the scoreboard? I made my own but intsead MANSFIELD-BOLTON , it shows Mansfield-Bolton.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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