:FM19: :skin: Aide graphisme sur les skins

Qui pourrais me dire quel est le panel qui gère la taille des faces comme sur l’exemple suivant :

Je souhaite avoir la même disposition avec la taille réelle des faces. Actuellement avec le mod DF11 ma face (220x220) se voit agrandie et devient flou…

@i_am_the_shark @Krysler76

1 « J'aime »

Ca dépend du skin on peut pas vraiment répondre

Pourquoi, ce n’est pas le même panel quelque soit le skin qui gère cet affichage ?

Regarde dans player personal details panel.xml dans panels/player mais ça peut très bien être ailleurs, ça dépend comment le skinner fait son truc

dans player personal details panel j’ai ça :

<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true" />

<boolean id="should_force_refresh" value="true" />

<container class="bordered_box">
	<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true" />
	
	<container class="horizontal_adaptive_container" gap="10" mode="distribute_equally">
	
		<container default_width="257">

			<widget class="picture" id="prop" scale_picture="true" keep_aspect_ratio="true" image_alignment="centre_x,centre_y">
				<layout class="stick_to_sides_attachment" alignment="all" />

				<!-- only show the picture if we should show portraits -->
				<attachment class="test_setting_attachment" get_setting="show_portraits" default_value="true" set_property="hidn">
					<boolean id="value" value="false" />
				</attachment>

				<record id="object_property">
					<list id="get_properties">
						<!--Facegen data request-->
						<record get_property="fcgn" />
						<!--Fake name request-->
						<record get_property="Pfke" />
						<record get_property="prpc" set_property="valu" />
					</list>
				</record>
			</widget>
		</container>	
	
		<container class="vertical_adaptive_container" default_width="-1" mode="distribute_equally">
		
			<container height="100">
				<layout class="stick_to_sides_attachment" layout="left,extend" apply_to_children="true" />
				
				<container>
					<layout class="stick_to_sides_attachment" layout="all" inset="40" apply_to_children="true" />
					<!-- Club badge image -->
					<widget class="object_portrait_picture" id="pclB" image_alignment="left,centre" scale_picture="true" wants_mouse_events="true">
						<layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true"/>

						<record id="object_property" dont_set_hint="true" get_property="Pclb" set_property="objt" />
					</widget>
				</container>
				
				<!-- Attribute Analyser -->
				<container id="ppaa">
					<layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
					<layout class="stick_to_sides_attachment" alignment="horizontal,top" apply_to_children="true" inset="0" />

					<container class="subsection_box" id="ovrv" appearance="">
						<string id="title" value="" />
						<!-- there are two panels here: one for goalkeepers, and one for outfield players
						  only one panel is visible at any time -->
						<layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
						<layout class="stick_to_sides_attachment" alignment="top" inset="0" />
						<layout class="stick_to_sides_attachment" alignment="horizontal,top" apply_to_children="true" inset="0" />

						<!-- outfield player analyser panel : visible by default -->
						<widget class="person_attributes_analyser_panel" id="ofap" file="player/player attribute analyser outfield" hidden="false" auto_size="vertical" />
						<!-- goalkeeper player analyser panel : hidden by default -->
						<widget class="person_attributes_analyser_panel" id="gkap" file="player/player attribute analyser goalkeeper" hidden="true" auto_size="vertical" />
					</container>
				</container>
			</container>
		
			<container height="300">
				<attachment_group class="vertical_arrange_autosize" vertical_offset="0" vertical_gap="0" horizontal_alignment="horizontal" horizontal_inset="0" />

				<!--Player extra details (e.g. onloan at...)-->
				<container class="inner_box" height="30">
					<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true" />

					<widget class="player_extra_details_text" font="title" colour="white" alignment="centre" multiline="false">
						<record id="object_property" get_property="PExD" />
					</widget>
				</container>
				
				<container height="10"/>

				<!-- D.O.B / Age -->
				<widget class="label" font="title" size="small" auto_size="vertical">
					<translation id="text" translation_id="458477" type="use" value="D.O.B.[COMMENT: player profile, personal details; Abbreviation for 'Date of Birth']" />
				</widget>
				<container>
					<attachment_group class="horizontal_arrange_vertical_autosize" horizontal_alignment="left" horizontal_offset="0" horizontal_gap="0" vertical_alignment="top" vertical_inset="0" />

					<!-- Age -->
					<!-- We use an editable panel here just to make it disappear when editing-->
					<!-- fixed height as an attempt to fix 152615 -->--&gt;
					<widget class="editable_client_object_property_panel" id="age " height="22" auto_size="all">
						<record id="widget_info" class="formatted_label" alignment="left,centre_y" height="22" auto_size="all">
							<translation id="format" translation_id="242551" type="use" value="[%number#1] years old" />
						</record>
						<record id="widget_edit_info" width="0" height="0" />
						<record id="object_property" get_property="Page" />
					</widget>

					<!-- DoB -->
					<widget class="editable_client_object_property_panel" id="dobl" auto_size="all">
						<record id="widget_info" class="game_formatted_label" alignment="left,centre_y" auto_size="all" auto_size_minimum_height="20" format="([%date#1-short])" colour="faded text" />
						<record id="widget_properties" height="24" />
						<record id="object_property" get_property="Pdob" />
					</widget>
				</container>

				<!-- Nationality -->
				<widget class="label" font="title" size="small" auto_size="vertical">
					<translation id="text" translation_id="248033" type="use" value="Nationality[COMMENT - Hall of fame section]" />
				</widget>
				<widget class="editable_client_object_property_panel" id="intc " auto_size="vertical">
					<record id="widget_info" class="nation_button" icon_enabled="false" auto_size="vertical" size="small" format="[%nation#1-nationality]" />
					<record id="widget_properties" auto_size="vertical" />
					<record id="object_property" dont_set_hint="true" get_property="PNat" />
				</widget>

				<!-- Int Caps -->
				<widget class="international_appearances_label" size="small" auto_size="vertical">
					<record id="object_property" dont_set_hint="true" get_property="Pist" />
				</widget>

				<!--Value-->
				<widget class="label" font="title" size="small" auto_size="vertical">
					<translation id="text" translation_id="292633" type="use" value="Estimated Value[COMMENT: player profile; value label]" />
				</widget>
				<widget class="value_label" id="valu" auto_size="vertical">
					<record id="object_property" get_property="Pdva" dont_set_hint="true" />
				</widget>

				<!--Wage / Expiry date-->
				<widget class="label" font="title" size="small" auto_size="vertical">
					<translation id="text" translation_id="257347" type="use" value="Contract[COMMENT - transfer status filter text; offers at contract stage]" />
				</widget>
				<container height="23" id="wged">
					<layout class="arrange_horizontal_attachment" alignment="fill" offset="0" gap="0" />
					<layout class="stick_to_sides_attachment" alignment="vertical" apply_to_children="true" inset="0" />

					<widget class="editable_client_object_property_panel" id="Pcww">
						<record id="object_property" get_property="Pcww" />
					</widget>
					<widget class="editable_client_object_property_panel" id="Pcex">
						<record id="object_property" get_property="Pcex" />
					</widget>
				</container>
				<widget class="link_text" id="wgex" section="Pcnr" auto_size="vertical" />
			</container>		
		</container>
	</container>


</container>

Tu vois le skinner doit utiliser d’autres fichiers parce que j’reconnais pas, il a peut-être fait ça dans player overview panel.xml

player overview panel :

<container class="horizontal_adaptive_container" mode="distribute_equally">		
	
			
	
	<container class="vertical_adaptive_container" default_width="-2" gap="0" mode="distribute_equally">
	


	   <!-- Header with portrait & important info-->
	   
		<widget class="player_personal_details_panel" id="ppdp" default_height="-6" priority="1"> 
			<record id="object_property" get_property="objt" set_property="objt"/>
		</widget>
		
     </container>
	



	<container class="vertical_adaptive_container" default_width="-5" mode="distribute_equally">	
		        
				
				<container class="horizontal_adaptive_container" default_height="-6" gap="0" mode="distribute_equally">
			
			<!-- Positions -->
			<widget class="player_positions_indicator_panel" id="ppi1" file="player/player positions indicator small horizontal" default_width="-2" priority="1">
				<record id="object_property" get_property="objt" set_property="objt"/>
			</widget>
				
				<container class="horizontal_adaptive_container" offset="0" inset="0" gap="6" default_height="-6" default_width="-4" mode="distribute_equally" >
				
				
					<!-- Default: Attributes -->
					<record id="default_properties" file="player/player overview big selector panel" save_session_state="true" />
					<container class="client_object_viewer_selector_panel" id="cos1" minimum_width="640" default_width="-2" priority="2">
						<widget class="player_attributes_panel" id="patt" late_loading="true">
							<translation id="title" translation_id="229822" type="use" value="Attributes" />
						</widget>

						<integer id="default_for_unemployed_managers" value="pat1"/>
						<integer id="default_for_international_managers_other_team" value="pat1"/>
						<integer id="default_for_everyone_else" value="pat1"/>
						<integer id="default_for_versus_mode" value="pat1"/>
					</container>
					
					<!-- Default: Biography -->
					<container class="client_object_viewer_selector_panel" id="cos2" minimum_width="330" default_width="-1" priority="3">
						<integer id="default_for_unemployed_managers" value="phb1"/>
						<integer id="default_for_international_managers_other_team" value="phb1"/>
						<integer id="default_for_everyone_else" value="phb1"/>
						<integer id="default_for_versus_mode" value="phb1"/>
					</container>
					
					<!-- Default: Comparison -->
					<container class="client_object_viewer_selector_panel" id="cos3" minimum_width="330" default_width="-1" priority="4">
						<integer id="default_for_unemployed_managers" value="pscR"/>
						<integer id="default_for_international_managers_other_team" value="pscR"/>
						<integer id="default_for_everyone_else" value="pscR"/>
						<integer id="default_for_versus_mode" value="pscR"/>
					</container>
						
			</container>
			
			</container>
			
		<container class="horizontal_adaptive_container" appearance="boxes/bordered/solid/paper1" default_height="-1">
		
		
		
		
		<container class="bordered_box" appearance="boxes/bordered/solid/paper1" default_height="-1" default_width="-1">
		<layout class="arrange_horizontal_attachment" alignment="fill" layout="-1,-1" offset="0" />
        <layout class="centre_in_parent_attachment" alignment="vertical" apply_to_children="true" gap="0" />
	    
		
		
		    <container>
			<layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
            <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="0" />
            <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" /> 
			
				<widget class="label"  alignment="centre_x,top" auto_size="vertical" size="10" font="title" colour="sidebar text">
			<translation id="text" translation_id="227956" type="use" value="Height[COMMENT - label for showing a player's height]" />
				</widget>
				<widget class="height_label" id="heig" font="value" size="10" style="semi_bold" alignment="centre_x, bot" auto_size="vertical">
					<record id="object_property">
						<integer id="get_property" value="Phei" />
					</record>
				</widget>
		       </container>
			   

			   
			   <container>
			<layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
            <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="0" />
            <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />
			
			     <widget class="label" alignment="centre_x,top" auto_size="vertical" size="10" font="title" colour="sidebar text">
			<translation id="text" translation_id="227957" type="use" value="Weight[COMMENT - label for showing a player's weight]" />
				</widget>
				<widget class="weight_label" id="weig" font="value" size="10" style="semi_bold" alignment="centre_x, bot" auto_size="vertical">
					<record id="object_property">
						<integer id="get_property" value="Pwei" />
					</record>
				</widget>
				</container>	
		</container>
		
		<container class="bordered_box" appearance="boxes/bordered/solid/paper1" default_height="-1" default_width="-1">
		<layout class="arrange_horizontal_attachment" alignment="fill" layout="-1,-1" offset="0" />
    <layout class="centre_in_parent_attachment" alignment="vertical" apply_to_children="true" gap="0" />
		
		
		<!-- Personality -->
	<container>
		<layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
         <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="0" />
         <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />

		<widget class="label" id="PPs:" alignment="centre_x,top" auto_size="vertical" size="10" font="title" colour="sidebar text">
			<record id="object_property" get_property="PPst" name="true" />
		</widget>
		<widget class="personality_label" id="PPst" font="value" size="10" style="semi_bold" alignment="centre_x, bot" auto_size="vertical">
			<record id="object_property" get_property="PPst" />
		</widget>
	</container>
	
    <!--Reputation label-->
	
	<container>
		<layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
         <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="0" />
         <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />
		 
					<widget class="label" alignment="centre_x,top" auto_size="vertical" size="10" font="title" colour="sidebar text">
			<translation id="text" translation_id="330399" type="use" value="Reputation[COMMENT - person list view column heading]" />
					</widget>		
					<!--Reputation-->
					<widget class="reputation_label" id="repU" font="value" size="10" style="semi_bold" alignment="centre_x, bot" auto_size="vertical">
						<record id="object_property">
							<integer id="get_property" value="Pcrp" />
						</record>
					</widget>
		
	</container>

		
		
		
		</container>
		
			
			<container class="bordered_box" appearance="boxes/bordered/solid/paper1" default_height="-1" default_width="-1">	
	            <layout class="arrange_horizontal_attachment" alignment="fill" layout="-1,-1" offset="0" />
                <layout class="centre_in_parent_attachment" alignment="vertical" apply_to_children="true" gap="0" />
		
		<container>
			<layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
            <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="0" />
            <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />
		
					<!--left foot label-->
					<widget class="label" alignment="centre_x,top" auto_size="vertical" size="10" font="title" colour="sidebar text">
						<translation id="text" translation_id="230000" type="use" value="Left Foot" />
					</widget>
					
					<!--left foot strenght-->
					<widget class="footedness_label" id="fotL" font="value" size="10" style="semi_bold" alignment="centre_x, bot" auto_size="vertical">
						<record id="object_property">
							<integer id="get_property" value="Plft" />
						</record>
					</widget>
			</container>

			
			
            <container>
			
			<layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
            <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="0" />
            <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />				
	
	                <!--right foot label-->
					<widget class="label" alignment="centre_x,top" auto_size="vertical" size="10" font="title" colour="sidebar text">
						<translation id="text" translation_id="230001" type="use" value="Right Foot" />
					</widget>
					
					<!--right foot strenght-->
					<widget class="footedness_label" id="fotR" font="value" size="10" style="semi_bold" alignment="centre_x, bot" auto_size="vertical">
					 <record id="object_property">
						 <integer id="get_property" value="Prft" />
					 </record>
					</widget>
	
	          </container>
	
	
		</container>
		</container>
		
		<!-- 2 small panels -->
		<container priority="2" default_height="-3">
			<layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0" />
			
		

		<container class="horizontal_adaptive_container" offset="0" gap="0" inset="0"  >

			<container class="client_object_viewer_selector_panel" id="cos7" file="player/player overview small selector panel" save_session_state="true" minimum_width="-1" default_width="-1" priority="1" >
				<integer id="default_for_unemployed_managers" value="Pfor"/>
				<integer id="default_for_international_managers_other_team" value="Pfor"/>
				<integer id="default_for_everyone_else" value="Pfor"/>
				<integer id="default_for_versus_mode" value="Pfor"/>
			</container>
			
			<container class="client_object_viewer_selector_panel" id="cosC" file="player/player overview small selector panel" save_session_state="true" minimum_width="-1" default_width="-1" priority="1" >
				<integer id="default_for_unemployed_managers" value="pac1"/>
				<integer id="default_for_international_managers_other_team" value="pac1"/>
				<integer id="default_for_everyone_else" value="pac1"/>
				<integer id="default_for_versus_mode" value="pac1"/>
			</container>
			
		</container>
		</container>
		
		<!-- Season stats-->
			<container class="bordered_box" default_height="-3" priority="2" default_width="-2" >
				<layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0" />

				<widget class="player_additional_stats_panel" id="pcsp" file="player/player additional stats small">
					<record id="object_property">
						<list id="get_properties">
							<!-- Hide this panel if player is in inactive league-->
							<record id="object_property" get_property="objt" set_property="objt"/>
							<record id="object_property" get_property="Pila" set_property="hidn"/>
						</list>
					</record>
				</widget>
				<widget class="player_stats_panel" id="pssp" file="player/player stats small">
					<record id="object_property">
						<list id="get_properties">
							<!-- Show this panel if player is in inactive league-->
							<record id="object_property" get_property="Pila" set_property="Shwn"/>
							<record id="object_property" get_property="objt" set_property="objt"/>
						</list>
					</record>
				</widget>
			</container>
		
		
	</container>

	
	<container class="vertical_adaptive_container" default_width="-2" mode="distribute_equally">
	
	
	<container class="vertical_adaptive_container" default_height="-6" offset="0" inset="0" gap="0" mode="distribute_equally">
			<record id="default_properties" file="player/player overview big selector panel" save_session_state="true" default_width="-1"  />
			
		<!-- Default: Biography -->
					<container class="client_object_viewer_selector_panel" id="cos2" minimum_width="-1" default_width="-1" default_height="-1" priority="3">
						<integer id="default_for_unemployed_managers" value="phb1"/>
						<integer id="default_for_international_managers_other_team" value="phb1"/>
						<integer id="default_for_everyone_else" value="phb1"/>
						<integer id="default_for_versus_mode" value="phb1"/>
					</container>
					
		</container>
	

			
			<!-- 2 small panels -->
		<container priority="2" default_height="-6">
			<layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0" />
			
		

		<container class="vertical_adaptive_container" offset="0" gap="0" inset="0">

			
			<container class="vertical_adaptive_container" default_height="-3" offset="0" inset="0" gap="0" mode="distribute_equally">
			<record id="default_properties" file="player/player overview small selector panel" save_session_state="true" default_width="-1"  />
	         
	         <container class="client_object_viewer_selector_panel" id="cosB" default_height="-1" priority="2">
			 
				<integer id="default_for_unemployed_managers" value="ptri"/>
				<integer id="default_for_international_managers_other_team" value="ptri"/>
				<integer id="default_for_everyone_else" value="ptri"/>
				<integer id="default_for_versus_mode" value="ptri"/>
			</container>
			
			</container>
	
	        <container class="vertical_adaptive_container" default_height="-3" offset="0" inset="0" gap="0" mode="distribute_equally">
			<record id="default_properties" file="player/player overview small selector panel" save_session_state="true" default_width="-1"  />
			 
	         <container class="client_object_viewer_selector_panel" id="cos8" file="player/player overview small selector panel" save_session_state="true" default_height="-1" default_width="-1" priority="3">
			
				<integer id="default_for_unemployed_managers" value="Pcrs"/>
				<integer id="default_for_international_managers_other_team" value="Pcrs"/>
				<integer id="default_for_everyone_else" value="Pcrs"/>
				<integer id="default_for_versus_mode" value="Pcrs"/>
			</container>
	
	     </container>
	
	    </container>
	    </container>
	</container>
	
	
	

	
	


	</container>

Ah mais le screen du skin que t’as mis n’a rien à voir avec le code que tu m’envoies en fait, c’est pas le même skin ? J’ai cru x)

Du coup c’est bien dans player personal details, après je pense qu’il suffit de mettre false à scale_picture=“true” dans le premier widget.

Mais bon sans tester et avoir tout devant les yeux c’est pas ce qu’il y a de plus pratique :smiley:

1 « J'aime »

@Kristo

Je confirme. Ça n’a rien à voir avec le screen que tu as posté plus haut. De base c’est ce fichier “player overview panel.xml”. Ensuite il faut regarder si ce fichier ne va pas en chercher un autre : file=“XXX”
Ça sera dans celui-là qu’il faudra chercher.

Si c’est bien les panels du skin et tu as trouvé, ça fonctionne… Merci…
j’ai même trouvé pour remonter la face et gagner de l’affichage en bas…

Putain ce que j’aimerais comprendre le codage des skins pour les modifier facilement…

Quel est ton skin ?