Jump to content

Powermonger

Members+
  • Posts

    1,445
  • Joined

  • Last visited

  • Days Won

    2

Powermonger last won the day on October 1 2021

Powermonger had the most liked content!

Reputation

392 "Greed, for lack of a better word, is good"

Recent Profile Visitors

4,975 profile views
  1. I like the concept, the example showing when they were born and where. Could you combine these so it reads more naturally? i.e Born on <dob-long> in <birth_city>, <country of birth> For the caps thing, could you not do a check on if caps are > 0 then say Lanzo has x caps for Italy, if = 0 then Lazio is currently uncapped for Italy. I am not at my computer to check but I think for Team Stats or Player Stats panels there is a similar logic check for goals scored, the label is different depending on the number found. Maybe you can follow that to do something similar for caps.
  2. I'm trying to refine my Player Facts panel for the team squad that currently looks like this (cropped section): I want to replace the static icon I am using with the National Team badge (person property: PNat) but spinning my wheels and getting nowhere. Example, the XML code for displaying the TOP EARNER is as follows: <!--HIGHEST-PAID-PLAYER--> <container class="tato"> <attachment_group class="horizontal_arrange_vertical_autosize_centre" horizontal_alignment="left,extend" horizontal_offset="0" horizontal_gap="0"/> <container width="80" height="58"> <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/> <!-- Graphic Icon --> <widget class="picture" file="icons/custom/player stats/earner" red_replacement="green" image_alignment="left,top" scale_picture="false" blue_replacement="black"/> <container class="property_list_viewer_xml_panel" > <record id="object_property" index="0" get_property="tpea" set_property="objt" should_force_refresh="true"/> <widget class="object_portrait_picture" id="ppic"> <layout class="stick_to_sides_attachment" alignment="all" inset="0"/> <boolean id="scale_picture" value="true"/> <boolean id="keep_aspect_ratio" value="true"/> <flags id="image_alignment" value="right,bottom"/> <record id="object_property"> <integer id="get_property" value="plys"/> <integer id="set_property" value="objt"/> </record> </widget> </container> </container> <container> <attachment_group class="vertical_arrange_autosize" vertical_offset="0" vertical_gap="1" horizontal_inset="0"/> <widget class="label" colour="title" alignment="centre_x,bottom" auto_size="vertical" font="label"> <translation id="text" translation_id="284316" type="use" value="Top Earner[COMMENT: heading; team_information_panel; the top earner]" /> </widget> <widget class="team_container_fact_text" id="Ttoe" property="tpea" alignment="centre" auto_size="vertical"> <record id="object_property" get_property="tpea"/> </widget> </container> </container> I want to replace <widget class="picture" file="icons/custom/player stats/earner" red_replacement="green" image_alignment="left,top" scale_picture="false" blue_replacement="black"/> with something like <widget class="object_portrait_picture" image_alignment="top,left" scale_picture="true" keep_aspect_ratio="true" > <record id="object_property" get_property="PNat" set_property="objt" /> </widget> As Team Facts are based on widget IDs and properties and not on property IDs stored in team_properties.xml, I am trying to find the correct method to call these so the widget loading PNat works and is linked with the player behind the Team Fact. Anyone have any pointers on how get this to work?
  3. Basically the following code (simplified): <container width="80" height="58"> <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/> <widget class="picture" file="icons/custom/player stats/prospect" red_replacement="title" image_alignment="left,top" scale_picture="false" /> <widget class="object_portrait_picture" id="ppic"> <layout class="stick_to_sides_attachment" alignment="all" inset="0"/> <boolean id="scale_picture" value="true"/> <boolean id="keep_aspect_ratio" value="true"/> <flags id="image_alignment" value="right,bottom"/> </widget> </container> Calling the background picture first <widget class="picture"> and then calling the portrait picture next <widget class="object_portrait_picture"> will put the portrait in front of the background icon. Both must be inside the same container and play around with each picture alignment settings to get them positioned together how you wish them to be displayed. Thanks again for your wisdom too, I wasted a good few hours trying to get it working before your very helpful advice.
  4. How about using a colour grading system instead, like how Scouts grade players? You could use a Grade in conjunction with your more verbose textual rating instead of using thumb and star icons.
  5. Thanks @lugui, much appreciated and I managed to get something basic working for now. Can't seem to get it working at the moment using <widget class="person_snapshot_club_overview_panel" /> but is working with the following code: <container class="client_object_viewer_xml_panel" file="team/pwm/person snapshot information" late_loading="true" > <record id="object_property" get_property="Tftm" set_property="objt"/> </container> person snapshot information.xml <panel> <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0"/> <container height="60"> <attachment_group class="horizontal_arrange" horizontal_alignment="fill" vertical_alignment="vertical" horizontal_gap="5" horizontal_inset="0" vertical_inset="0" draw_vertical_dividers="true" /> <container class="tato"> <attachment_group class="horizontal_arrange_vertical_autosize_centre" horizontal_alignment="left,extend" horizontal_offset="0" horizontal_gap="0"/> <container width="80" height="58" class="client_object_viewer_xml_panel"> <record id="object_property"> <integer id="get_property" value="Tcrf" /> <integer id="set_property" value="objt" /> </record> <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/> <widget class="picture" file="icons/custom/player stats/prospect" red_replacement="title" image_alignment="left,top" scale_picture="false" blue_replacement="black"/> <widget class="object_portrait_picture" id="ppic"> <layout class="stick_to_sides_attachment" alignment="all" inset="0"/> <boolean id="scale_picture" value="true"/> <boolean id="keep_aspect_ratio" value="true"/> <flags id="image_alignment" value="right,bottom"/> <record id="object_property"> <integer id="get_property" value="CtPR"/> <integer id="set_property" value="objt"/> </record> </widget> </container> <container class="client_object_viewer_xml_panel"> <record id="object_property"> <integer id="get_property" value="Tcrf" /> <integer id="set_property" value="objt" /> </record> <attachment_group class="vertical_arrange_autosize" vertical_offset="0" vertical_gap="1" horizontal_inset="0"/> <widget class="label" alignment="left,bottom,can_scale" font="title" auto_size="vertical" colour="text"> <translation id="text" translation_id="227404" type="use" value="Hot Prospect"/> </widget> <widget class="person_button" alignment="left,centre_y" auto_size="vertical" colour="text" multiline="true"> <record id="object_property" get_property="CtPR"/> </widget> </container> </container> </container> </panel> XML code is above is just something quick and dirty to test. @Tyburn with your testing were you using ? <widget class="person_snapshot_club_overview_panel" /> EDIT: Got the panel working fully now how I want it to be: I'll keep it how it is and not try to get it working with "person_snapshot_club_overview_panel" widget.
  6. Everything is worth a try. FM skinning feels like part science and part voodoo magic, no wonder SI don't (can't?) change the skin up so easily.
  7. hotp gets the panel to display but doesnt display any player information. HotP should be the correct ID but the panel won't even draw. Maybe a challenge for another day.
  8. Looking for some help for my Key Players ribbon I have for the Squad View screen. I am trying to add the Hot Prospect player but it just won't appear, this is the only player category that does not have property ID for it in Team Properties .xml and relies on using a widget ID. This is what I have thus far: team squad.xml <!--KEY-PLAYERS--> <widget class="club_overview_staff_panel" file="team/pwm/team squad key players ribbon" late_loading="true"> <record id="object_property" get_property="Tftm" set_property="objt"/> </widget> team squad key players ribbon.xml <panel height="60"> <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/> <container> <attachment_group class="horizontal_arrange" horizontal_alignment="fill" vertical_alignment="vertical" horizontal_gap="5" horizontal_inset="0" vertical_inset="0" draw_vertical_dividers="true"/> <widget class="person_snapshot_club_overview_panel" id="capt" player="true" file="team/pwm/person snapshot captain"> <record id="object_property"> <integer id="get_property" value="TCap" /> <integer id="set_property" value="objt" /> </record> </widget> <widget class="person_snapshot_club_overview_panel" id="vice" player="true" file="team/pwm/person snapshot vicecaptain"> <record id="object_property"> <integer id="get_property" value="TVca" /> <integer id="set_property" value="objt" /> </record> </widget> <widget class="person_snapshot_club_overview_panel" id="KeyP" player="true" file="team/pwm/person snapshot key player"> <record id="object_property"> <integer id="get_property" value="TKpL" /> <integer id="set_property" value="objt" /> </record> </widget> <widget class="person_snapshot_club_overview_panel" id="HotP" player="true" file="team/pwm/person snapshot hot prospect"> </widget> </container> </panel> person snapshot hot prospect.xml <panel> <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/> <record id="object_property" get_property="objt" set_property="objt"/> <container class="tato"> <!--<layout class="arrange_horizontal_attachment" layout="-1,-3"/>--> <attachment_group class="horizontal_arrange_vertical_autosize_centre" horizontal_layout="80,130,-1" horizontal_offset="0" horizontal_gap="0"/> <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true"/> <container width="80" height="58"> <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/> <widget class="picture" file="icons/custom/player stats/prospect" red_replacement="title" image_alignment="left,top" scale_picture="false" blue_replacement="black"/> <widget class="picture" id="picM" image_alignment="right,bottom" scale_picture="true" keep_aspect_ratio="true"> <attachment class="test_setting_attachment" get_setting="show_portraits" default_value="true" set_property="hidn"> <list id="value"> <boolean value="false"/> </list> </attachment> <record id="object_property"> <list id="get_properties"> <record> <integer id="get_property" value="fcgn"/> <!--Facegen data request--> </record> <record> <integer id="get_property" value="Pfke"/> <!--Fake name request--> </record> <record> <integer id="get_property" value="prpc"/> <integer id="set_property" value="valu"/> </record> </list> </record> </widget> </container> <container> <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/> <container id="info"> <layout class="arrange_vertical_attachment" layout="-1,-2" offset="0" gap="0"/> <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true"/> <widget class="label" alignment="left,top,can_scale" font="label" auto_size="vertical" > <translation id="text" translation_id="227404" type="use" value="Hot Prospect"/> </widget> <widget class="client_object_viewer_xml_panel" id="perM" file="widgets/person name and nationality widget" style="semi_bold" alignment="left,centre_y" info_popup_enabled="true" info_popup_alignment="left,centre_y" auto_size="vertical"> <record id="object_property"> <integer id="get_property" value="PNaN"/> <integer id="set_property" value="valu"/> </record> </widget> </container> <widget class="label" id="nofo"> <translation id="text" translation_id="320493" type="use" value="None currently[COMMENT: text indicating that there is no person to view here currently (e.g. a manager, captain, vice captain etc.)]"/> </widget> </container> <container> <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/> <widget class="client_object_viewer_xml_panel" file="player/player positions indicator tiny" alignment="left,centre_y"> <record id="object_property"> <integer id="get_property" value="PpsP"/> <integer id="set_property" value="valu"/> </record> </widget> </container> </container> </panel> Any tricks to get it working?
  9. Sure, I want to make a couple of updates to the top ribbon first and then will post up my files. I have given up on the calendar time-line for now and have gone with adding the league progress graph as part of the bottom panel. Sort of serves the same purpose in visualising how the season is tracking along in terms of start to end.
  10. Got some time to get back to enhancing my widescreen team squad view and tidying up the additional stat and facts ribbons. Reworked some of the XML code so it leverages SET_VAR tags more so it is easy to make quick edits. Next thing I want to tackle is trying to add a Calendar Time-line to the bottom so it updates as you process through the game. Might be biting off more than I can chew.
  11. OK I got it working after stripping it back to the bare bones. Now to see if I can get a portrait to load.
  12. Has anyone had luck pulling out individual stats from the Club Info > History > Records panel? The file used for this panel is team container records summary panel.xml, and seems to use a lot of IDs to reference information that are not property IDs. The team properties file does have 5 record IDs used for different record stats with a widget class of team_container_record_text, so not all of them are represented, but these are never used directly by the team container records summary panel.xml. I've been trying to pull out the Highest Transfer Fee Paid and Highest Transfer Fee Received which are found in the team properties as a starting point to see if I can get something working from the Squad Team view but no success yet. I used the following code to call my panel referencing the Transfer records but it would only display my labels and no data. <widget class="team_container_records_summary_panel" id="recs" file="team/pwm/team squad club records ribbon" late_loading="true" height="62" > <record id="object_property" get_property="Tftm" set_property="objt"/> </widget> Anyone have an helpful hints?
  13. I've been fiddling around with the <set_var name="insert_name_here"> and <var id="?????" name="insert_name"/> syntax to try and tidy up my XML panels and rework some of them, especially around portraits. Example: <var id="widget_id" name="portrait_id"/> <set_var name="portrait_id"> <flags value="tgsp"/> </set_var> From the example above, which is used as follows <widget class="object_portrait_picture" image_alignment="right,bottom" scale_picture="true" keep_aspect_ratio="true"> <var id="widget_id" name="portrait_id"/> </widget> This gets translated to the following <widget class="object_portrait_picture" id=tgsp /> correct? I am trying to see if I can use something similar to use with object_property for setting the get_property value but cannot find any examples anywhere. From the file searching I have done, it looks like <var id=""> has no equivalent to use with object_property? I feel like I have been jumping around looking at different XML code and experimenting that I am going around in circles and confusing myself Any helpful insights?
  14. Thanks for the suggestions, I'll give them a try. Currently I am isolating out the xG related stats and got them working, Next I will then work on the percentage based stats, they don't seem to play well with the xG based stats.
  15. I have success! I've managed to get the stats_ranking_label widget working in displaying the Ranking text in my panel and it persists between switching screens or switching teams with the up/down arrows. Unfortunately in the process I broke the various team stats from displaying. I am calling my panel from the Team Squad.XML view as follows: <container class="client_object_viewer_xml_panel" file="team/pwm/team squad stats ribbon" late_loading="true" height="62" > <record id="object_property" get_property="Tftm" set_property="objt"/> </container> For the xG and related stats that are now not displaying, I think I need to find the correct container class so they display. This is a snippet of what I am currently using for xG: <container> <layout class="arrange_horizontal_attachment" alignment="left,extend" offset="0" gap="3"/> <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true"/> <widget class="formatted_label" size="large" style="bold" auto_size="horizontal" alignment="left,top" format="[%fraction#1-2.1]" > <record id="object_property" get_property="ovxG" dont_set_object="true" /> </widget> </container> I've been searching the base skin files but can't find anything that can point me in the right direction.
×
×
  • Create New...