<?xml version="1.0" ?>
<FinalTemplateCollection>
    <base>
        <FinalTemplateCollection>
            <base>
                <Template templateName="MainScreenOrShopTank[tankId]CupTemplate">
                    <FixedChildrenListControl>
                        <position x="0" y="0" />
                        <children>
                            <ContextHelpClientControl>
                                <position x="0" y="0" />
                                <times initial="0.2" reshow="0.0" />
                                <controlToShow templateName="Tank[tankId]IndicatorsTooltipTemplate" />
                                <controlToMonitor>
                                    <ZeroAlphaControl>
                                        <position x="0" y="0" />
                                        <children>
                                            <StaticTextureControl>
                                                <position x="400" y="450" />
                                                <texture textureId="main_screen_indicator_group_mask" />
                                            </StaticTextureControl>
                                        </children>
                                    </ZeroAlphaControl>
                                </controlToMonitor>
                            </ContextHelpClientControl>
                            <FlashingStringControl>
                                <position x="522" y="530" />
                                <messageReceiver name="[tankId] Fish flash" />
                                <line fontName="white16" align="right" resourceName="Fish" />
                                <flash color="#ff0000" period="1.0" maxAlpha="0.3" />
                            </FlashingStringControl>
                            <FixedChildrenListControl>
                                <position x="530" y="532" />
                                <children>
                                    <ProgressBarControl>
                                        <position x="0" y="0" />
                                        <textures backgroundId="main_screen_indicator_background" fillingId="main_screen_indicator_red" shadowId="main_screen_indicator_shadow" maskId="main_screen_indicator_mask" frameId="main_screen_indicator_frame" />
                                        <variable name="[tankId] Fish indicator value" />
                                        <flash color="#ffffff" period="1.0" maxAlpha="0.3" />
                                        <change speed="1.0" noHintDelay="0.15" />
                                        <verticalLine textureId="indicator_vertical_line" startOffset="6" flashOffset="6" />
                                        <messageReceiver name="Fish indicator" />
                                    </ProgressBarControl>
                                    <EffectShowingControl soundId="100percents">
                                        <position x="[meterFullEffectX]" y="[meterFullEffectY]" />
                                        <messageReceiver name="[tankId] Fish indicator 100% effect" />
                                        <effect name="MeterFull" />
                                    </EffectShowingControl>
                                </children>
                            </FixedChildrenListControl>
                            <FlashingStringControl>
                                <position x="523" y="506" />
                                <messageReceiver name="[tankId] Beauty flash" />
                                <line fontName="white16" align="right" resourceName="Beauty" />
                                <flash color="#51b031" period="1.0" maxAlpha="0.4" />
                            </FlashingStringControl>
                            <FixedChildrenListControl>
                                <position x="530" y="508" />
                                <children>
                                    <ProgressBarControl>
                                        <position x="0" y="0" />
                                        <textures backgroundId="main_screen_indicator_background" fillingId="main_screen_indicator_green" shadowId="main_screen_indicator_shadow" maskId="main_screen_indicator_mask" frameId="main_screen_indicator_frame" />
                                        <variable name="[tankId] Beauty indicator value" />
                                        <flash color="#51b031" period="1.0" maxAlpha="0.4" />
                                        <change speed="1.0" noHintDelay="0.15" />
                                        <verticalLine textureId="indicator_vertical_line" startOffset="6" flashOffset="6" />
                                        <messageReceiver name="Beauty indicator" />
                                    </ProgressBarControl>
                                    <EffectShowingControl soundId="100percents">
                                        <position x="[meterFullEffectX]" y="[meterFullEffectY]" />
                                        <messageReceiver name="[tankId] Beauty indicator 100% effect" />
                                        <effect name="MeterFull" />
                                    </EffectShowingControl>
                                </children>
                            </FixedChildrenListControl>
                            <FlashingStringControl>
                                <position x="522" y="483" />
                                <messageReceiver name="[tankId] Comfort flash" />
                                <line fontName="white16" align="right" resourceName="Comfort" />
                                <flash color="#b242db" period="1.0" maxAlpha="0.7" />
                            </FlashingStringControl>
                            <FixedChildrenListControl>
                                <position x="530" y="485" />
                                <children>
                                    <ProgressBarControl>
                                        <position x="0" y="0" />
                                        <textures backgroundId="main_screen_indicator_background" fillingId="main_screen_indicator_violet" shadowId="main_screen_indicator_shadow" maskId="main_screen_indicator_mask" frameId="main_screen_indicator_frame" />
                                        <variable name="[tankId] Comfort indicator value" />
                                        <flash color="#b242db" period="1.0" maxAlpha="0.7" />
                                        <change speed="1.0" noHintDelay="0.15" />
                                        <verticalLine textureId="indicator_vertical_line" startOffset="6" flashOffset="6" />
                                        <messageReceiver name="Comfort indicator" />
                                    </ProgressBarControl>
                                    <EffectShowingControl soundId="100percents">
                                        <position x="[meterFullEffectX]" y="[meterFullEffectY]" />
                                        <messageReceiver name="[tankId] Comfort indicator 100% effect" />
                                        <effect name="MeterFull" />
                                    </EffectShowingControl>
                                </children>
                            </FixedChildrenListControl>
                            <VariableDrivenSwitchControl>
                                <position x="750" y="480" />
                                <variable name="[tankId] Cup" type="string" scope="local" defaultValue="None" />
                                <states>
                                    <state variableValue="None" templateName="MainScreenOrShopNoCupTemplate" />
                                    <state variableValue="Bronze" templateName="MainScreenOrShopBronzeCupTemplate" />
                                    <state variableValue="Silver" templateName="MainScreenOrShopSilverCupTemplate" />
                                    <state variableValue="Gold" templateName="MainScreenOrShopGoldCupTemplate" />
                                </states>
                            </VariableDrivenSwitchControl>
                            <MutableChildrenListControl>
                                <position x="0" y="0" />
                                <messageReceiver name="100 percents holder" />
                            </MutableChildrenListControl>
                        </children>
                    </FixedChildrenListControl>
                </Template>
            </base>
            <changes meterFullEffectX="90" meterFullEffectY="7" />
            <foreach>
                <changes tankId="1" />
                <changes tankId="2" />
                <changes tankId="3" />
            </foreach>
        </FinalTemplateCollection>
        <Template templateName="MainScreenOrShopNoCupTemplate">
            <ContextHelpClientControl>
                <position x="0" y="0" />
                <times initial="0.2" reshow="0.0" />
                <controlToShow templateName="MainScreenAndShopNoCupTooltipTemplate" />
                <controlToMonitor>
                    <CupRenderControl variable="ShowCupEffect">
                        <position x="0" y="0" />
                        <messageReceiver name="CupRenderElement" />
                        <first x="-2" y="-1" textureId="main_screen_no_cup" />
                        <second x="-2" y="-1" textureId="main_screen_no_cup" />
                    </CupRenderControl>
                </controlToMonitor>
            </ContextHelpClientControl>
        </Template>
        <Template templateName="MainScreenOrShopBronzeCupTemplate">
            <ContextHelpClientControl>
                <position x="0" y="0" />
                <times initial="0.2" reshow="0.0" />
                <controlToShow templateName="MainScreenAndShopBronzeCupTooltipTemplate" />
                <controlToMonitor>
                    <CupRenderControl variable="ShowCupEffect">
                        <position x="0" y="0" />
                        <messageReceiver name="CupRenderElement" />
                        <first x="-2" y="-1" textureId="main_screen_no_cup" />
                        <second x="1" y="0" textureId="main_screen_bronze_cup" />
                    </CupRenderControl>
                </controlToMonitor>
            </ContextHelpClientControl>
        </Template>
        <Template templateName="MainScreenOrShopSilverCupTemplate">
            <ContextHelpClientControl>
                <position x="0" y="0" />
                <times initial="0.2" reshow="0.0" />
                <controlToShow templateName="MainScreenAndShopSilverCupTooltipTemplate" />
                <controlToMonitor>
                    <CupRenderControl variable="ShowCupEffect">
                        <position x="0" y="0" />
                        <messageReceiver name="CupRenderElement" />
                        <first x="1" y="0" textureId="main_screen_bronze_cup" />
                        <second x="1" y="0" textureId="main_screen_silver_cup" />
                    </CupRenderControl>
                </controlToMonitor>
            </ContextHelpClientControl>
        </Template>
        <Template templateName="MainScreenOrShopGoldCupTemplate">
            <ContextHelpClientControl>
                <position x="0" y="0" />
                <times initial="0.2" reshow="0.0" />
                <controlToShow templateName="MainScreenAndShopGoldCupTooltipTemplate" />
                <controlToMonitor>
                    <CupRenderControl variable="ShowCupEffect">
                        <position x="0" y="0" />
                        <messageReceiver name="CupRenderElement" />
                        <first x="1" y="0" textureId="main_screen_silver_cup" />
                        <second x="1" y="0" textureId="main_screen_gold_cup" />
                    </CupRenderControl>
                </controlToMonitor>
            </ContextHelpClientControl>
        </Template>
    </base>
</FinalTemplateCollection>
