Jump to content

[Suggestion] Make Second Nationality More Visible on Player's Profile


phd_angel
 Share

Recommended Posts

When I need to see whether a player has a second nationality (that would meet registration requirements), I need to search under information. It would be a time saver to have second nationality visible in the front page of the player's profile. Thanks.

 

image.png.2767c2b551657f92fa8cac3459386725.png

Link to post
Share on other sites

  • 2 weeks later...

@phd_angel You can add the following code to "player personal details panel" found in "your skin"/panels/player (or anywhere in a custom skin on the player screen that may have this widget):

Spoiler

<!-- Nationality -->
                    <!--Second Nationality -->
                    <container>
                        <layout class="fit_children_attachment" alignment="vertical" offset="0" />
                        <layout class="arrange_horizontal_attachment" alignment="left,extend" offset="0" gap="2" />
                        <layout class="stick_to_sides_attachment" alignment="top" apply_to_children="true" inset="0" />

                        <widget class="editable_client_object_property_panel" id="intc" auto_size="all">
                            <record id="widget_info" class="nation_button" icon_enabled="false" auto_size="all" size="10" style="bold"/>
                            <record id="widget_properties" auto_size="all" />
                            <record id="object_property" dont_set_hint="true" get_property="PNat">
                                <list id="get_properties">
                                    <record>
                                        <integer id="get_property" value="objt" />
                                        <integer id="set_property" value="Pers" />
                                    </record>
                                </list>
                            </record>
                        </widget>

                        <widget class="text" auto_size="all" size="small" text="/" >
                            <record id="object_property" set_property="Shwn" get_property="PHsn" />
                        </widget>

                        <widget class="editable_client_object_property_panel" id="insc" auto_size="all">
                            <record id="widget_info" class="nation_button" icon_enabled="false" auto_size="all" size="10" style="bold" />
                            <record id="widget_properties" auto_size="all" />

                            <record id="object_property" dont_set_hint="true" get_property="Psnt">
                                <list id="get_properties">
                                    <record>
                                        <integer id="get_property" value="objt" />
                                        <integer id="set_property" value="Pers" />
                                    </record>
                                </list>
                            </record>

                        </widget>

 

<widget class="text" auto_size="all" size="small" text="-" >
                            <record id="object_property" set_property="Shwn" get_property="PHsn" />
                        </widget>

 

                        <!--Born in location-->
<widget class="client_object_label" id="cits" size="small" auto_size="all" colour="text" style="italic" >
                                          
<layout class="stick_to_sides_attachment" alignment="top" inset="1"/>
      <layout class="stick_to_sides_attachment" alignment="right" inset="0"/>
     <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" />
                                        
                                              
<record id="object_property">
            <list id="get_properties">
              <record>
               <integer id="get_property" value="Pcob" />
                </record>
              </list>
          </record>
</widget>


                    </container>

Remove the <!-- Nationality --> container already in there and put the above code in it's place.

As an extra bonus you get the player's birthplace too.

image.thumb.png.d735c6364fc2ad49e81413e69e7ec59a.png

Edited by Tyburn
Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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