<CATUI>
    <!-- ProjectZ Fatigue & Stress Status 疲劳/压力特有状态条 -->
    <insertAfter xpath="//window[@name='HUDLeftStatBars']/rect[@name='Stat']/table/rect[@name='Mobility']">
        <!-- 疲劳 -->
        <rect name="Fatigue" width="50" height="50"  controller="HUDStatBar" tooltip_key="Fatigue" visible="{statvisible}">
            <sprite sprite="catui_bg_state" gradient_start="[darkestGrey]" gradient_end="[black]" style="CATUI.sprite.filled.prue" />
            <sprite sprite="catui_bg_state" type="filled" color="220,140,7" fill="{cvar($FatigueStatusHUD)}" filldirection="Radial360" style="CATUI.sprite.filled.prue" foregroundlayer="true" />
	        <rect pos="25, -20" pivot="center">
                <sprite size="28,28" sprite="ui_game_symbol_muscle" pivot="center" gradient_start="[white]" gradient_end="200,200,200" />
            </rect>
            <label pos="0,-36" width="100%" height="14" font_size="14" color="[white]" text="{cvar(.FatigueStatus)}%[-]" style="CATUI.text.outline.black.1px" justify="center" />
        </rect>
        <!-- 压力 -->
        <rect name="Stress" width="50" height="50"  controller="HUDStatBar" tooltip_key="Stress" visible="{statvisible}">
            <sprite sprite="catui_bg_state" gradient_start="[darkestGrey]" gradient_end="[black]" style="CATUI.sprite.filled.prue" />
            <sprite sprite="catui_bg_state" type="filled" color="175,35,175" fill="{cvar($StressStatusHUD)}" filldirection="Radial360" style="CATUI.sprite.filled.prue" foregroundlayer="true" />
            <rect pos="25, -20" pivot="center">
                <sprite size="28,28" sprite="ui_game_symbol_intellect" pivot="center" gradient_start="[white]" gradient_end="200,200,200" />
            </rect>
            <label pos="0,-36" width="100%" height="14" font_size="14" color="[white]" text="{cvar(.StressStatus)}%[-]" style="CATUI.text.outline.black.1px" justify="center" />
        </rect>
        <!-- 轻度辐射-恢复 -->
        <rect name="RadiationMed_Better" width="50" height="50" controller="HUDStatBar" stat_type="Health" visible="{cvar(RadHUDMediumBetter:true;false;false)}">
            <sprite sprite="catui_bg_state" gradient_start="[darkestGrey]" gradient_end="[black]" style="CATUI.sprite.filled.prue" />
            <rect pos="25, -20" pivot="center">
                <sprite size="28,28" sprite="ui_game_symbol_radiation" pivot="center" gradient_start="[green]" gradient_end="[CATUI_green]" />
            </rect>
            <label pos="0,-36" width="100%" height="14" font_size="14" color="[white]" text="{cvar(.IRradiationStatus)}%[-]" style="CATUI.text.outline.black.1px" justify="center" controller="MapStats" />
            <sprite depth="8" pos="50,-15" sprite="catui_icon_level_up" size="14,14" color="[green]" rotation="180" />
        </rect>
        <!-- 轻度辐射-伤害 -->
        <rect name="RadiationMed_Inc" width="50" height="50" controller="HUDStatBar" stat_type="Health" visible="{cvar(RadHUDMediumInc:true;false;false)}">
            <sprite sprite="catui_bg_state" gradient_start="[darkestGrey]" gradient_end="[black]" style="CATUI.sprite.filled.prue" />
            <rect pos="25, -20" pivot="center">
                <sprite size="28,28" sprite="ui_game_symbol_radiation" pivot="center" gradient_start="[green]" gradient_end="[CATUI_green]" />
            </rect>
            <label pos="0,-36" width="100%" height="14" font_size="14" color="[white]" text="{cvar(.IRradiationStatus)}%[-]" style="CATUI.text.outline.black.1px" justify="center" controller="MapStats" />
            <sprite depth="8" pos="36,0" sprite="catui_icon_level_up" size="14,14" color="[red]" />
        </rect>
        <!-- 中度辐射-恢复 -->
        <rect name="RadiationMed_Better" pos="0,0" width="50" height="50" controller="HUDStatBar" stat_type="Health" visible="{cvar(RadHUDHighBetter:true;false;false)}">
            <sprite sprite="catui_bg_state" gradient_start="[darkestGrey]" gradient_end="[black]" style="CATUI.sprite.filled.prue" />
            <rect pos="25, -20" pivot="center">
                <sprite size="28,28" sprite="ui_game_symbol_radiation" pivot="center" gradient_start="[yellow]" gradient_end="[CATUI_yellow]" />
            </rect>
            <label pos="0,-36" width="100%" height="14" font_size="14" color="[yellow]" text="{cvar(.IRradiationStatus)}%[-]" style="CATUI.text.outline.black.1px" justify="center" controller="MapStats" />
            <sprite depth="8" pos="50,-15" sprite="catui_icon_level_up" size="14,14" color="[green]" rotation="180" />
        </rect>
        <!-- 中度辐射-伤害 -->
        <rect name="RadiationMed_Inc" pos="0,0" width="50" height="50" controller="HUDStatBar" stat_type="Health" visible="{cvar(RadHUDHighInc:true;false;false)}">
            <sprite sprite="catui_bg_state" gradient_start="[darkestGrey]" gradient_end="[black]" style="CATUI.sprite.filled.prue" />
            <rect pos="25, -20" pivot="center">
                <sprite size="28,28" sprite="ui_game_symbol_radiation" pivot="center" gradient_start="[yellow]" gradient_end="[CATUI_yellow]" />
            </rect>
            <label pos="0,-36" width="100%" height="14" font_size="14" color="[yellow]" text="{cvar(.IRradiationStatus)}%[-]" style="CATUI.text.outline.black.1px" justify="center" controller="MapStats" />
            <sprite depth="8" pos="36,0" sprite="catui_icon_level_up" size="14,14" color="[red]" />
        </rect>
        <!-- 重度辐射-恢复 -->
        <rect name="RadiationMed_Better" pos="0,0" width="50" height="50" controller="HUDStatBar" stat_type="Health" visible="{cvar(RadHUDCriticalBetter:true;false;false)}">
            <sprite sprite="catui_bg_state" gradient_start="[darkestGrey]" gradient_end="[black]" style="CATUI.sprite.filled.prue" />
            <rect pos="25, -20" pivot="center">
                <sprite size="28,28" sprite="ui_game_symbol_radiation" pivot="center" gradient_start="[CATUI_red]" gradient_end="[red]" />
            </rect>
            <label pos="0,-36" width="100%" height="14" font_size="14" color="[red]" text="{cvar(.IRradiationStatus)}%[-]" style="CATUI.text.outline.black.1px" justify="center" controller="MapStats" />
            <sprite depth="8" pos="50,-15" sprite="catui_icon_level_up" size="14,14" color="[green]" rotation="180" />
        </rect>
        <!-- 中度辐射-伤害 -->
        <rect name="RadiationMed_Inc" pos="0,0" width="50" height="50" controller="HUDStatBar" stat_type="Health" visible="{cvar(RadHUDCriticalInc:true;false;false)}">
            <sprite sprite="catui_bg_state" gradient_start="[darkestGrey]" gradient_end="[black]" style="CATUI.sprite.filled.prue" />
            <rect pos="25, -20" pivot="center">
                <sprite size="28,28" sprite="ui_game_symbol_radiation" pivot="center" gradient_start="[CATUI_red]" gradient_end="[red]" />
            </rect>
            <label pos="0,-36" width="100%" height="14" font_size="14" color="[red]" text="{cvar(.IRradiationStatus)}%[-]" style="CATUI.text.outline.black.1px" justify="center" controller="MapStats" />
            <sprite depth="8" pos="36,0" sprite="catui_icon_level_up" size="14,14" color="[red]" />
        </rect>
    </insertAfter>
    <!-- 背包微调 -->
    <!-- <set xpath="//window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@height">376</set> -->
    <setattribute xpath="//window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']" name="transform_scale">0.927</setattribute>
    <set xpath="//window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@rows">6</set>
    <set xpath="//window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cols">13</set>
    <set xpath="//window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@pos">3,-3</set>
    <set xpath="//window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_width">67</set>
    <set xpath="//window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_height">67</set>

    <!-- 删除 ProjectZ 丧尸血条-->
    <remove xpath="//window[@name='windowTargetBar']/rect[@width='320']"/>
    <!-- itemInfoPanel -->
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/@width">180</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/@height">100%</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='backgroundMain']/@width">183</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='backgroundMain']/@height">100%</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='itemPreview']/@width">154</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='itemPreview']/@height">154</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='itemPreview']/@pos">89,-166</set>
    <remove xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='itemtypeicon']"/>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/CATUI_quality_item/@pos">159, -313</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='durabilityBackground']/@width">175</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='durabilityBackground']/@pos">1, -333</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='durabilityBar']/@width">175</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/sprite[@name='durabilityBar']/@pos">1, -333</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/label/@width">175</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/rect[@name='preview']/label/@pos">3,-318</set>
    <set xpath="//window[@name='itemInfoPanel']/rect[@name='contentInfo']/grid[@name='parts']/@pos">357,-271</set>
    <!-- craftingInfoPanel -->
    <append xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']">
        <sprite depth="8" name="backgroundMain" sprite="menu_empty3px" pos="180,0" width="177" height="348" color="[black]" type="sliced" fillcenter="false" />
	</append>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/@width">180</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/@height">344</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/sprite[@name='backgroundMain']/@width">183</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/sprite[@name='backgroundMain']/@height">347</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/sprite[@name='itemPreview']/@width">154</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/sprite[@name='itemPreview']/@height">154</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/sprite[@name='itemPreview']/@pos">89,-166</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/sprite[@name='itemtypeicon']/@pos">8,-55</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/CATUI_quality_item/@pos">88, -298</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/grid/@cell_width">88</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/grid/@pos">44, -297</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/grid/rect/@width">88</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/sprite[@name='clockIcon']/@pos">45, -314</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']/label[@name='craftingTime']/@pos">75, -315</set>
	<append xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='preview']">
        <rect name="recipeCraftCountControl" width="180" height="43" pos="0,0" controller="RecipeCraftCount">
            <sprite depth="1" color="[darkestGrey]" type="sliced" globalopacity="true" width="180" height="43" />
            <button depth="2" name="countDown" style="icon30px, press, held" pos="17,-23" sprite="ui_game_symbol_arrow_left" pivot="center" sound="[paging_click]" disabledcolor="[lightGrey]" enabled="{enablecountdown}"/>
            <textfield name="count_input" depth="2" pos="38,-9" width="62" height="27" character_limit="4" validation="integer" virtual_keyboard_prompt="vkPromptCount" />
            <button depth="2" name="countUp" style="icon30px, press, held" pos="121,-23" sprite="ui_game_symbol_arrow_right" pivot="center" sound="[paging_click]" disabledcolor="[lightGrey]" enabled="{enablecountup}"/>
            <button depth="2" name="countMax" style="icon30px, press" pos="157,-24" sprite="ui_game_symbol_arrow_max" pivot="center" sound="[paging_click]" disabledcolor="[lightGrey]" enabled="{enablecountup}"/>
        </rect>
	</append>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='searchControls']/@pos">357,0</set>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='CATUI_ingredients']/@pos">357,-46</set>
    <append xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='CATUI_ingredients']">
        <sprite depth="3" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="453" height="305" color="[black]" type="sliced" fillcenter="false" />
	</append>
    <set xpath="//window[@name='craftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='stat']/@pos">357,-47</set>
    <!-- windowCraftingQueue & windowCraftingQueue10 队列 -->
    <set xpath="//window[@name='windowCraftingQueue']/rect[@controller='CraftingQueue']/grid[@name='queue']/@cell_width">80</set>
    <set xpath="//window[@name='windowCraftingQueue']/rect[@controller='CraftingQueue']/grid[@name='queue']/@cell_height">80</set>
    <set xpath="//window[@name='windowCraftingQueue10']/rect[@controller='CraftingQueue']/@pos">88,-14</set>
    <set xpath="//window[@name='windowCraftingQueue10']/rect[@controller='CraftingQueue']/grid[@name='queue']/@pos">-85,0</set>
    <set xpath="//window[@name='windowCraftingQueue10']/rect[@controller='CraftingQueue']/grid[@name='queue']/@cell_width">80</set>
    <set xpath="//window[@name='windowCraftingQueue10']/rect[@controller='CraftingQueue']/grid[@name='queue']/@cell_height">80</set>
</CATUI>