Jump to content

Player Valuation Bar


statomatic7
 Share

Recommended Posts

Hi Skinners

This has just happened randomly.... and I can't figure out how to make it fully visible again!! As you can see the bottom part of the value has been chopped off, any help would be very appreciative :)

 

    <!--Value-->
                    <widget class="transfer_value_label" id="valu" alignment="centre_x,centre_y" style="semi_bold" size="11" colour="fm_23" auto_size="vertical">
                        <translation id="format" translation_id="383826" type="use" value="Valued at [%cash#1-roundsmall-short][COMMENT: FR 10661; player overview; string diaplyed a player's estimated monetary value]"/>
                        <record id="object_property">
                            <list id="get_properties">
                                <record>
                                    <integer id="get_property" value="Pdva"/>
                                    <boolean id="dont_set_hint" value="true"/>
                                </record>
                            </list>
                        </record>
                    </widget>

 

image.png.648da1fcaeea4ea751b28b7479d7acc8.png

Link to post
Share on other sites

8 minutes ago, Tyburn said:

Sorry, not the panel. What is the full code? To see where the widget sits. The container the widget is in probably needs altering.

 

Think that's all that's needed ;)

<panel>
    <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>
    
    <container>
        <layout class="arrange_vertical_attachment" layout="30,16,12,30,-1" offset="0" gap="2" />
        <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />

        <container class="player_scout_reports_panel" file="none">
            <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0" />

            <record id="object_property" get_property="objt" set_property="objt" />

            <container class="horizontal_adaptive_container" id="main" inset="0" gap="0" mode="dont_distribute">

                <container default_width="-1"/>

                <container id="caco" width="120" priority="1">
                    <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />
                    <layout class="arrange_vertical_attachment" alignment="middle" gap="0" offset="0" />

                    <widget class="label" alignment="centre_x,centre_y" height="12" size="8">
                        <translation id="text" translation_id="293291" type="use" value="Current Ability" />
                    </widget>
                    <widget class="scout_stars_label" id="CAic" alignment="centre_x,centre_y" height="18" click_event="ltms"/>
                </container>

                <container id="paco" width="120" priority="1">
                    <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />
                    <layout class="arrange_vertical_attachment" alignment="middle" gap="0" offset="0" />

                    <widget class="label" alignment="centre_x,centre_y" height="12" size="8">
                        <translation id="text" translation_id="293292" type="use" value="Potential Ability" />
                    </widget>
                    <widget class="scout_stars_label" id="PAic" alignment="centre_x,centre_y" height="18" click_event="ltms"/>
                </container>
                    
                <container default_width="-1"/>
            </container>
        </container>

        <!--Player extra details (e.g. onloan at...)-->
        <widget class="player_extra_details_text" id="plex" auto_size="vertical" multiline="false" size="10" alignment="centre_x,centre_y,can_scale">
            <record id="object_property" get_property="PExD" />
        </widget>
        
        <!-- Agreed playing time-->
        <widget class="playing_time_label" id="sqst" auto_size="vertical" size="8" alignment="centre_x,centre_y,can_scale">
            <record id="object_property" get_property="Pcpt" />
        </widget>    

        
        
        <!--Value-->        
        <!-- Added a container with horizontal layout to hold 2 spacer widgets before and after the value widget -->
        <!-- The width of the value widget is passed within the widget_properties definition -->
        <!-- The height of the container is defined at the top !!! where the big vertical container has it's layout defined , the 4th value-->
        
        <container class="horizontal_adaptive_container"  layout="-2,-5,-2" offset="0" gap="0">    
            <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true" />
            <widget class="spacer" />
            <widget class="editable_client_object_property_panel" id="valu" font="bold" colour="text" priority="1">
                <translation id="format" translation_id="383826" type="use" value="Valued at [%cash#1-roundsmall-short][COMMENT: FR 10661; player overview; string diaplyed a player's estimated monetary value]" />
                    
                    <record id="widget_properties" />                    
                    <record id="alignment" value="right"/>                    
                    
                    <record id="object_property" get_property="Pdva" dont_set_hint="true" />
            </widget>
            <widget class="spacer" />
        </container>
        <container class="vertical_adaptive_container" inset="0" offset="0" gap="4">    

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