Jump to content

[HELP with panels] How to add player preferred moves?


NakS

Recommended Posts

Hi guys,

First post in this forum and I need some help.

Basically, I am working on a “tutoring” panel, I have suggested this idea in Surferosa’s panels thread right here.

I am using his work as a basis here and I have included the modification he told me. So far I have managed to do this.

315244Capturedcran2010121053959PM.png

But now I’d like to add Player Preferred Move to this panel, and I don’t know how to do this…I have looked for a similar thread but I have not found anything relevant

What do you think? Is it possible to add PPMs in a panels?

If it helps, I put the code of the tutoring view which is located in the teamsquad.xml file :)

<record id="dtut">
<string id="name" value="Tutoring"/>
<record id="view">

<record id="Pnfo" width="27"/> <!-- player status/info -->
<record id="Pnms" width="90"/> <!-- person name -->
<record id="Pnat" use_format="short" width="25"/> <!-- person nationality -->
<record id="Page" width="15"/> <!-- person age -->
<record id="Pccs" width="50"/> <!-- squad status -->		
<record id="Pbpc" width="16"/> <!-- best position -->
<record id="Pcac" width="42"/> <!-- assman CA -->
<record id="Pppc" width="42"/> <!-- assman PA -->
<record id="Pcrp" width="30"/> <!-- reputation COACHING REP-->						
<record id="Pdet" width="20"/><!-- determination -->
<record id="Ppec" width="65"/> <!-- personality -->
<flags id="Pghm"/> <!-- media handling style-->						

</record>
</record>

Thanks for any tips or advices :thup:

Link to post
Share on other sites

That's the part of the code from the players' position screen that makes the preferred moves to appear.

As you can see the string is "pref" but the widget class is "table".

       <!-- preferred moves table -->
       <widget class="table" id="pref" mode="fill_rows, stripe_rows" layout="-1" stretch_to_fit_rows="true" auto_size_rows="false" fixed_size_rows="true" row_height="20">

         <list id="headings">
           <record text="Preferred Moves" alignment="left,centre_y" />
         </list>

         <list id="column_properties">
           <record index="0" alignment="left,centre_y" spec="text" auto_size="vertical" />
         </list>

         <list id="column_display_properties">
           <record indx="0" left="4" top="2" bottom="2" sort_disabled="true" />
         </list>

       </widget>

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