Jump to content

Player reputation - star rating / Tactics analysis


(sic)
 Share

Recommended Posts

I've been having an issue with player reputation stars showing up on the player popup panel.

266099643_PPproblem.png.7c3c9fe0b07c19b2ab585a5ec42d7211.png

As you can see 5 blank stars are there, but the actual yellow stars don't appear for some reason. I've copied the code from the player information page where stars appear normally.

Also another issue is with value, it's off-center and I can't seem to fix it. Even with enabled graphic it's still off center and glued to the top. While refreshing the skin or clicking the graphic when it is enabled, it moves central for a moment.

 

Reputation code

Spoiler

<container default_height="-1" minimum_height="50" priority="1">
                <layout class="arrange_horizontal_attachment" layout="-2,-1" offset="0" />
                <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true" />
                        <record id="object_property" get_property="objt" set_property="objt" />
                        
                        <!-- reputation -->
      <widget class="label" alignment="left, centre" size="8" font="label" colour="title">
        <translation id="text" translation_id="227963" type="use" value="Reputation" />
      </widget>
      <container class="horizontal_adaptive_container" inset="0" gap="0" mode="dont_distribute">
      <layout class="stick_to_sides_attachment" alignment="horizontal" apply_to_children="true" inset="0" />
      <widget class="global_reputation_stars_label" id="repw" row="1" auto_size="vertical" alignment="right, centre_y" default_width="130" minimum_width="70"/>
       </container>

                </container>

Value

Spoiler

<container default_height="-1" minimum_height="20" priority="1">
                        <layout class="arrange_horizontal_attachment" layout="-1,-2" offset="0" gap="0" />
                        <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true" />

                    <!--value label-->
                    <widget class="label" size="8" font="label" colour="title" alignment="left,centre">
                        <translation id="text" translation_id="227806" type="use" value="Value" />
                    </widget>
                    <widget class="transfer_value_label" id="valu" size="10" alignment="right,centre" show_button_appearance="false">
                        <translation id="hint" translation_id="227806" type="use" value="Value" />
                        <record id="object_property">
                            <integer id="get_property" value="Pdva" />
                        </record>
                    </widget>
                    </container>

 

 

Also, when clicking analysis, spacer.png

for some reason images like Player picture, kit picture and role ability all stay visible.

Edited by (sic)
Link to post
Share on other sites

  • (sic) changed the title to Player reputation - star rating / Tactics analysis

Fixed the value being off-centre by adding some inset to the container that holds the widget.

Edit: Also fixed the reputation, apparently it uses a different id?

 

Here's the complete code for anyone that might need it.

 

Spoiler

<container class="horizontal_adaptive_container" inset="0" gap="0" mode="dont_distribute">
      <layout class="stick_to_sides_attachment" alignment="horizontal" apply_to_children="true" inset="0" />
     <widget class="global_reputation_stars_label" id="Prsa" auto_size="vertical" alignment="right, centre_y" default_width="130" minimum_width="70">
     <record id="object_property">
                            <integer id="get_property" value="Prsa" />
                        </record>
     </widget>                    
       </container>

 

Edited by (sic)
Link to post
Share on other sites

For the kit stuff on the analysis pitch that is the default state (well just with the kits) - you'll need to check the code for how that bit works, there might be a hide/show bit of code to apply to other bits or you may need to redirect to a unique icon file to hide what you don't want on the analysis view.

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