楼主: giggsxbr

[原创] 我来拯救一下需要显示体力百分比的小伙伴

  [复制链接]
发表于 2024-8-31 13:56 | 显示全部楼层
666666666666666
发表于 2024-8-31 15:12 | 显示全部楼层
6666666666
发表于 2024-8-31 16:18 | 显示全部楼层
感谢大佬!
感谢大佬!
发表于 2024-8-31 17:58 | 显示全部楼层
感谢大佬!
分享给大伙只要体能/状态百分比环图的方法

1. 打开皮肤目录下/panels/team/team squad.xml文件
捕获.PNG
在视图的record标签下,增加一行
<!-- player condition/fitness 体能/状态百分比环图  -->
<record id="PRCF" auto_hide_priority="11" width="140"/>

2. 检查皮肤目录下/panels/widgets/pie condition label mixed.xml 文件是否存在,不存在就将lz提供的文件拷贝进去
3. 检查皮肤目录下/properties/person properties.xml 文件中是否包含PRCF的内容
捕获2.PNG
如上图所示,若没有此内容,则复制以下代码进去

<!-- 体&#8203;能/状&#8203;态 -->
                <record>
                        <integer id="id" value="PRCF" />
                        <integer id="width" value="20" />
                        <translation id="name" type="use" value="体&#8203;能/状&#8203;态[COMMENT: Overall Physical Condition/Match Sharpness]" />
                        <flags id="customisation_context" value="play" />
                        <translation id="category"  type="use" value="体&#8203;能[COMMENT: Fitness]" />
                        <boolean id="sort_ascending" value="false" />
                        <list id="multi_sort_props">
                                <record index="0">
                                        <translation id="name" translation_id="394524" type="use" value="Overall Physical Condition[COMMENT: label for a player's overall physical condition, when taking every element of his game into account]" />
                                </record>
                                <record index="1">
                                        <translation id="name" translation_id="388919" type="use" value="Match Sharpness[COMMENT: label for the player's match fitness, i.e. what condition he's currently in if he were to be selected for the next fixture]" />
                                </record>
                        </list>
                        <integer id="auto_hide_priority" value="1200" />
                        <record id="widget_info" file="widgets/pie condition label mixed">
                                <symbol id="class" value="pie_condition_label" />
                                <flags id="mode" value="2" />
                        </record>

                        <record id="widget_edit_info">
                                <symbol id="class" value="max_edit_box" />
                                <flags id="edit_event" value="CDBd" />
                                <flags id="mode" value="2" />
                                <integer id="min_value" value="1" />
                                <integer id="max_value" value="10000" />
                        </record>

                        <!-- Need the raw fitness to display this as we combine them slightly -->
                        <list id="dependent_properties">
                                <integer value="Pfit" />
                        </list>

                        <record id="column_widget_properties">
                                <flags id="alignment" value="centre" />
                        </record>
                        <record id="column_heading">
                                <flags id="alignment" value="centre" />
                                <translation id="text" type="use" value="体&#8203;能/状&#8203;态[COMMENT: CON/SHP]" />
                                <translation_list id="hint">
                                        <translation type="use" value="体&#8203;能/状&#8203;态[COMMENT: Overall Physical Condition/Match Sharpness]" />
                                        <translation />
                                        <translation translation_id="396496" type="use" value="Overall Physical Condition represents the player's level of fitness. If he is fatigued, recently recovered from injury or just unfit he will have a low Overall Physical Condition rating. Playing matches when this is low risks injury as well as an even lower rating in future. Only rest from matches and/or training can help a player to recover.[COMMENT: hint explanation for Overall Conditioning label, use top ten matches, change to ID 396172 to add context]" />
                                        <translation />
                                        <translation translation_id="396491" type="use" value="Match Sharpness represents the player's readiness for competitive football. If he is lacking in recent game time this rating will suffer, but the only way to build it up is through minutes on the pitch. Players low in Match Sharpness will struggle to keep up with the pace of a competitive match and will also be more susceptible to injury.[COMMENT: hint explanation for Next Match Availability fitness label, use top ten matches, change to ID 396173 based on match team feedback]" />
                                </translation_list>
                        </record>

                        <!-- can't put a filter on this yet as it shows two values-->
                        <!--<record id="search_filter">
                                        <integer id="id" value="pfpc"/>
                                </record>-->
                </record>

                <record>
                        <integer id="id" value="ShPC" />
                        <integer id="width" value="100" />
                        <translation id="name" type="use" value="体&#8203;能/状&#8203;态[COMMENT: Overall Physical Condition/Match Sharpness]" />
                        <flags id="customisation_context" value="none" />
                        <integer id="exchange_column_id" value="PRCF" />
                        <boolean id="sort_ascending" value="false" />
                        <list id="multi_sort_props">
                                <record index="0">
                                        <translation id="name" translation_id="394524" type="use" value="Overall Physical Condition[COMMENT: label for a player's overall physical condition, when taking every element of his game into account]" />
                                </record>
                                <record index="1">
                                        <translation id="name" translation_id="388919" type="use" value="Match Sharpness[COMMENT: label for the player's match fitness, i.e. what condition he's currently in if he were to be selected for the next fixture]" />
                                </record>
                        </list>
                        <integer id="auto_hide_priority" value="1201" />
                        <record id="widget_info" file="widgets/pie condition label mixed">
                                <symbol id="class" value="pie_condition_label" />
                                <flags id="mode" value="2" />
                        </record>

                        <record id="widget_edit_info">
                                <symbol id="class" value="max_edit_box" />
                                <flags id="edit_event" value="CDBd" />
                                <flags id="mode" value="2" />
                                <integer id="min_value" value="1" />
                                <integer id="max_value" value="10000" />
                        </record>

                        <!-- Need the raw fitness to display this as we combine them slightly -->
                        <list id="dependent_properties">
                                <integer value="Pfit" />
                        </list>

                        <record id="column_widget_properties">
                                <flags id="alignment" value="centre" />
                        </record>
                        <record id="column_heading">
                                <flags id="alignment" value="centre" />
                                <translation id="text" type="use" value="体&#8203;能/状&#8203;态[COMMENT: CON/SHP]" />
                                <translation_list id="hint">
                                        <translation type="use" value="体&#8203;能/状&#8203;态[COMMENT: Overall Physical Condition/Match Sharpness]" />
                                        <translation />
                                        <translation translation_id="396496" type="use" value="Overall Physical Condition represents the player's level of fitness. If he is fatigued, recently recovered from injury or just unfit he will have a low Overall Physical Condition rating. Playing matches when this is low risks injury as well as an even lower rating in future. Only rest from matches and/or training can help a player to recover.[COMMENT: hint explanation for Overall Conditioning label, use top ten matches, change to ID 396172 to add context]" />
                                        <translation />
                                        <translation translation_id="396491" type="use" value="Match Sharpness represents the player's readiness for competitive football. If he is lacking in recent game time this rating will suffer, but the only way to build it up is through minutes on the pitch. Players low in Match Sharpness will struggle to keep up with the pace of a competitive match and will also be more susceptible to injury.[COMMENT: hint explanation for Next Match Availability fitness label, use top ten matches, change to ID 396173 based on match team feedback]" />
                                </translation_list>
                        </record>

                        <!-- can't put a filter on this yet as it shows two values-->
                        <!--<record id="search_filter">
                                <integer id="id" value="pfpc"/>
                        </record>-->
                </record>


注意,以上操作需要懂xml规范,操作完记得检查格式是否正确
发表于 2024-9-1 02:02 | 显示全部楼层
11111111111111111111111111111111
发表于 2024-9-1 09:18 | 显示全部楼层
就需要这个 谢谢
发表于 2024-9-1 17:24 | 显示全部楼层
谢谢分享·········
发表于 2024-9-1 19:18 | 显示全部楼层
666666666666
发表于 2024-9-2 00:16 | 显示全部楼层
666666666666666
发表于 2024-9-2 22:05 | 显示全部楼层
谢谢楼主 拯救勒需要体力的人
发表于 2024-9-2 23:17 | 显示全部楼层
666666666666666666
发表于 2024-9-3 09:26 | 显示全部楼层
1111111111111
发表于 2024-9-3 10:51 | 显示全部楼层
ddddddddddd
发表于 2024-9-3 17:27 | 显示全部楼层
666666666666
发表于 2024-9-3 17:34 | 显示全部楼层
11111111111111
发表于 2024-9-3 20:14 | 显示全部楼层
感谢大佬的分享
发表于 2024-9-3 23:40 | 显示全部楼层
66666666666666
发表于 2024-9-4 10:31 | 显示全部楼层
111111111111111111111111111111111111111111111
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|爆棚小组 PlayGM论坛

GMT+8, 2024-11-23 08:05 , Processed in 0.029188 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表