drswit Posted November 30, 2014 Share Posted November 30, 2014 I need some help folks. I'd want to load the player_information_preferred_moves.xml in the player_attributes_panel_overview.xml, instead of the morale label (which is commented in original code). <container> <layout class="arrange_vertical_attachment" alignment="top" offset="18"/> <layout class="centre_in_parent_attachment" alignment="horizontal" inset="0" layout_children="true"/> <widget class="morale_label" id="morl" spec="text, large" size="12" auto_size="all"/> <widget class="label" text="Morale" spec="text" auto_size="all"/> </container> [b] <!-- <container class="subsection_box" id="ppm1"> <translation id="title" translation_id="229993" type="use" value="Preferred Moves" /> <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" /> <widget class="preferred_moves_panel" file="player information preferred moves" id="pfmp"> <record id="object_property"> <integer id="get_property" value="objt" /> <integer id="set_property" value="objt" /> </record> </widget> </container>[/b] --> After replacing it, i get this (i coloured the box to highlight it) : Below the coloured and highlighted player_information_preferred_moves.xml : it seems it loads only a part, or the background, or whatever, but not the content. Anyone to help ? Thanks in advance Link to post Share on other sites More sharing options...
michaeltmurrayuk Posted December 1, 2014 Share Posted December 1, 2014 You can try putting the PPM code in the actual file rather than just linking to the ppm.xml file, however after playing around with that screen for something else I have a feeling that attribute panel is one of the annonying panels in the game that will only display the preset content and not custom content. Link to post Share on other sites More sharing options...
drswit Posted December 1, 2014 Author Share Posted December 1, 2014 Thanks for your answer. Yes, i tried to put the PPM code instead of linking, for the same result Though, i managed to put custom code in here before (height and weights labels). Link to post Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.