NakS Posted December 13, 2010 Share Posted December 13, 2010 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. 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 Link to post Share on other sites More sharing options...
kevaggel Posted December 13, 2010 Share Posted December 13, 2010 I think that the string for preferred move is "pref" have you tried to use it ? Link to post Share on other sites More sharing options...
NakS Posted December 13, 2010 Author Share Posted December 13, 2010 Thanks kevaggel, I'll try this right now EDIT: Sorry mate, Pref is actually player reflexes, thanks anyways Link to post Share on other sites More sharing options...
kevaggel Posted December 13, 2010 Share Posted December 13, 2010 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 More sharing options...
NakS Posted December 14, 2010 Author Share Posted December 14, 2010 Ok, it helps a lot kevaggel, I will do my best with the info you provide, I am a bit rubbish at programming but I will definitely try to figure out how to add this to a panel, if it is possible of course! Thanks Link to post Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.