<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">

	<Frame name="PanelCreationAuraTemplate" virtual="true">
		<Backdrop bgFile="Interface\Tooltips\ChatBubble-Background" edgeFile="Interface\GLUES\COMMON\TextPanel-Border" tile="true">
			<EdgeSize><AbsValue val="32"/></EdgeSize><TileSize><AbsValue val="32"/></TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Size x="775" y="550"/>
		<Frames>
			<Frame name="$parentFrameMenu">
				<Backdrop bgFile="Interface\Tooltips\ChatBubble-Background" edgeFile="Interface\GLUES\COMMON\TextPanel-Border" tile="true">
					<EdgeSize><AbsValue val="32"/></EdgeSize><TileSize><AbsValue val="32"/></TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Size x="150" y="140"/>
				<Anchors>
					<Anchor point="TOP" relativepoint="TOP" x="0" y="-25"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" inherits="GameFontNormal" justifyH="CENTER">
							<Size x="300" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="15"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="TRP2_CreaGen1Aide" inherits="TRP2_BoutonAideTemplate">
						<Size x="16" y="16"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.Page = "CreaGene";
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentSave" inherits="TRP2_UIPanelButtonTemplate" text="Save">
						<Size x="90" y="20"/>
						<Anchors>
							<Anchor point="TOP" x="0" y="-10"/>
						</Anchors>
						<Scripts>
							<OnClick>
								TRP2_AuraSave(TRP2_CreationFrameAura.ID);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentSaveSous" inherits="TRP2_UIPanelButtonTemplate" text="Save As">
						<Size x="100" y="20"/>
						<Anchors>
							<Anchor point="TOP" relativeto="$parentSave" relativepoint="BOTTOM" x="0" y="-5"/>
						</Anchors>
						<Scripts>
							<OnClick>
								TRP2_AuraSaveAs();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentAnnuler" inherits="TRP2_UIPanelButtonTemplate" text="Cancel">
						<Size x="90" y="20"/>
						<Anchors>
							<Anchor point="TOP" relativeto="$parentSaveSous" relativepoint="BOTTOM" x="0" y="-5"/>
						</Anchors>
						<Scripts>
							<OnClick>
								TRP2_CreationPanel();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentApercu" inherits="TRP2_MainMenuOngletTemplate">
						<Anchors>
							<Anchor point="TOP" relativeto="$parentAnnuler" relativepoint="BOTTOM" x="0" y="-20"/>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="$parentTexte" inherits="GameFontNormalSmall" justifyH="CENTER" text="Aperçululu">
									<Size x="300" y="0"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="15"/>
									</Anchors>
									<Color r="0.95" g="0.95" b="0.95"/>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnEnter>
								TRP2_SetAuraApercuTooltip(self,TRP2_CreationFrameAura.ID);
							</OnEnter>
							<OnLeave>
								TRP2_MainTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Button>
				</Frames>
			</Frame>
			<Frame name="$parentFrameGeneral">
				<Backdrop bgFile="Interface\Tooltips\ChatBubble-Background" edgeFile="Interface\GLUES\COMMON\TextPanel-Border" tile="true">
					<EdgeSize><AbsValue val="32"/></EdgeSize><TileSize><AbsValue val="32"/></TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Size x="260" y="245"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativepoint="TOPLEFT" x="10" y="-25"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" inherits="GameFontNormal" justifyH="CENTER" text="kek">
							<Size x="300" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="15"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<EditBox name="$parentNom" inherits="TRP2_EditBoxSmallText" autofocus="false">
						<Anchors>
							<Anchor point="TOP" relativeto="$parent" relativepoint="TOP" x="-55" y="-10"/>
						</Anchors>
					</EditBox>
					<EditBox name="$parentDureeDefaut" numeric="true" inherits="TRP2_EditBoxSmallText" autofocus="false">
						<Anchors>
							<Anchor point="TOP" relativeto="$parent" relativepoint="TOP" x="65" y="-10"/>
						</Anchors>
					</EditBox>
					<Frame name="$parentDescription" inherits="TRP2_ZoneSaisieTemplate">
						<Anchors>
							<Anchor point="TOP" relativeto="$parentDureeDefaut" relativepoint="BOTTOM" x="-65" y="-12"/>
						</Anchors>
					</Frame>
					<Slider name="$parentType" inherits="TRP2_SliderWithTitle">
						<Size x="150" y="15"/>
						<Anchors>
							<Anchor point="TOP" relativeto="$parentDescription" relativepoint="BOTTOM" x="0" y="-12"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								_G[self:GetName().."Text"]:SetText("");
								_G[self:GetName().."High"]:SetText();
								_G[self:GetName().."Low"]:SetText();
								self:SetValueStep(1);
								self:SetMinMaxValues(1,3);
							</OnLoad>
							<OnValueChanged>
																 -- start fix
   if not self._onsetting then   -- is single threaded 
     self._onsetting = true
     self:SetValue(self:GetValue())
     value = self:GetValue()     -- cant use original 'value' parameter
     self._onsetting = false
   else return end               -- ignore recursion for actual event handler
   -- end fix
								_G[self:GetName().."Titre"]:SetText(TRP2_CTS("{o}".."Type".." : "..TRP2_Auras_Color[value]..
																		TRP2_LOC_AuraType[value]));
							</OnValueChanged>
						</Scripts>
					</Slider>
					<Button name="$parentIcone" inherits="TRP2_MainMenuOngletTemplate">
						<Anchors>
							<Anchor point="TOP" relativeto="$parentType" relativepoint="BOTTOM" x="0" y="-20"/>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="$parentTexte" inherits="GameFontNormalSmall" justifyH="CENTER" text="kek">
									<Size x="300" y="0"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="15"/>
									</Anchors>
									<Color r="0.95" g="0.95" b="0.95"/>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnClick>
								TRP2_SetListFor("icones",TRP2_CreationFrame,nil,self:GetName().."Icon",self:GetName());
							</OnClick>
						</Scripts>
					</Button>
				
					<Slider name="$parentCategorie" inherits="TRP2_SliderWithTitle">
						<Size x="150" y="15"/>
						<Anchors>
							<Anchor point="TOP" relativeto="$parentIcone" relativepoint="BOTTOM" x="0" y="-20"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								_G[self:GetName().."Text"]:SetText("");
								_G[self:GetName().."High"]:SetText();
								_G[self:GetName().."Low"]:SetText();
								self:SetValueStep(1);
								self:SetMinMaxValues(2,#TRP2_Auras_Categorie);
							</OnLoad>
							<OnValueChanged>
															 -- start fix
   if not self._onsetting then   -- is single threaded 
     self._onsetting = true
     self:SetValue(self:GetValue())
     value = self:GetValue()     -- cant use original 'value' parameter
     self._onsetting = false
   else return end               -- ignore recursion for actual event handler
   -- end fix
								_G[self:GetName().."Titre"]:SetText(TRP2_CTS("{o}"..CATEGORY.." : "..TRP2_Auras_Categorie[value]));
							</OnValueChanged>
						</Scripts>
					</Slider>
				</Frames>
			</Frame>
			<Frame name="$parentFrameFlags">
				<Backdrop bgFile="Interface\Tooltips\ChatBubble-Background" edgeFile="Interface\GLUES\COMMON\TextPanel-Border" tile="true">
					<EdgeSize><AbsValue val="32"/></EdgeSize><TileSize><AbsValue val="32"/></TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Size x="260" y="65"/>
				<Anchors>
					<Anchor point="TOPRIGHT" relativepoint="TOPRIGHT" x="-10" y="-25"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" inherits="GameFontNormal" justifyH="CENTER">
							<Size x="300" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="15"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<CheckButton name="$parentWriteLock" inherits="TRP2_CheckButtonSmallTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeto="$parent" relativepoint="TOPLEFT" x="10" y="-5"/>
						</Anchors>
					</CheckButton>
					<CheckButton name="$parentDeletable" inherits="TRP2_CheckButtonSmallTemplate">
						<Anchors>
							<Anchor point="TOP" relativeto="$parentWriteLock" relativepoint="BOTTOM" x="0" y="0"/>
						</Anchors>
					</CheckButton>
					<CheckButton name="$parentTimeSet" inherits="TRP2_CheckButtonSmallTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeto="$parentWriteLock" relativepoint="RIGHT" x="100" y="0"/>
						</Anchors>
					</CheckButton>
					<CheckButton name="$parentAjoutable" inherits="TRP2_CheckButtonSmallTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeto="$parentDeletable" relativepoint="RIGHT" x="100" y="0"/>
						</Anchors>
					</CheckButton>
				</Frames>
			</Frame>
			<Frame name="$parentFrameModif" hidden="true">
				<Backdrop bgFile="Interface\Tooltips\ChatBubble-Background" edgeFile="Interface\GLUES\COMMON\TextPanel-Border" tile="true">
					<EdgeSize><AbsValue val="32"/></EdgeSize><TileSize><AbsValue val="32"/></TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Size x="260" y="250"/>
				<Anchors>
					<Anchor point="TOP" relativeto="$parentFrameFlags" relativepoint="Bottom" x="0" y="-25"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" inherits="GameFontNormal" justifyH="CENTER">
							<Size x="300" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="15"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentFrameTrigger">
				<Backdrop bgFile="Interface\Tooltips\ChatBubble-Background" edgeFile="Interface\GLUES\COMMON\TextPanel-Border" tile="true">
					<EdgeSize><AbsValue val="32"/></EdgeSize><TileSize><AbsValue val="32"/></TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Size x="260" y="125"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativepoint="BOTTOMRIGHT" x="-10" y="10"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" inherits="GameFontNormal" justifyH="CENTER" text="kek">
							<Size x="300" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="15"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentOnReceive" inherits="TRP2_ButtonTriggerTemplate">
						<Anchors>
							<Anchor point="TOP" relativeto="$parent" relativepoint="TOP" x="-50" y="-25"/>
						</Anchors>
						<Scripts>
							<OnEnter>
								TRP2_SetTooltipForFrame(self,self,"TOP",0,0,TRP2_LOC_TRIGOBJ_RECEIVE,TRP2_LOC_AURARECEIVETT..TRP2_TooltipTrigger(self.Conditions, self.Effets, self.Scripts));
								TRP2_RefreshTooltipForFrame(self);
							</OnEnter>
						</Scripts>
					</Button>
					<Button name="$parentOnDestroy" inherits="TRP2_ButtonTriggerTemplate">
						<Anchors>
							<Anchor point="TOP" relativeto="$parent" relativepoint="TOP" x="50" y="-25"/>
						</Anchors>
						<Scripts>
							<OnEnter>
								TRP2_SetTooltipForFrame(self,self,"TOP",0,0,TRP2_LOC_TRIGOBJ_DESTROY,TRP2_LOC_AURADESTROYTT..TRP2_TooltipTrigger(self.Conditions, self.Effets, self.Scripts));
								TRP2_RefreshTooltipForFrame(self);
							</OnEnter>
						</Scripts>
					</Button>
					<Button name="$parentOnLifeTime" inherits="TRP2_ButtonTriggerTemplate">
						<Anchors>
							<Anchor point="TOP" relativeto="$parentOnReceive" relativepoint="BOTTOM" x="0" y="-25"/>
						</Anchors>
						<Scripts>
							<OnEnter>
								TRP2_SetTooltipForFrame(self,self,"TOP",0,0,TRP2_LOC_TRIGOBJ_TIMEOUT,TRP2_LOC_AURALIFETIMETT..TRP2_TooltipTrigger(self.Conditions, self.Effets, self.Scripts));
								TRP2_RefreshTooltipForFrame(self);
							</OnEnter>
						</Scripts>
					</Button>
					<Button name="$parentOnUpdate" inherits="TRP2_ButtonTriggerTemplate">
						<Anchors>
							<Anchor point="TOP" relativeto="$parentOnDestroy" relativepoint="BOTTOM" x="0" y="-25"/>
						</Anchors>
						<Scripts>
							<OnEnter>
								TRP2_SetTooltipForFrame(self,self,"TOP",0,0,TRP2_LOC_SECONDS,TRP2_LOC_AURASECONDETT..TRP2_TooltipTrigger(self.Conditions, self.Effets, self.Scripts));
								TRP2_RefreshTooltipForFrame(self);
							</OnEnter>
						</Scripts>
					</Button>
				</Frames>
			</Frame>
			<Frame name="$parentFrameInfo">
				<Backdrop bgFile="Interface\Tooltips\ChatBubble-Background" edgeFile="Interface\GLUES\COMMON\TextPanel-Border" tile="true">
					<EdgeSize><AbsValue val="32"/></EdgeSize><TileSize><AbsValue val="32"/></TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Size x="200" y="90"/>
				<Anchors>
					<Anchor point="TOP" relativeto="$parentFrameMenu" relativepoint="BOTTOM" x="0" y="-20"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentTitle" inherits="GameFontNormal" justifyH="CENTER" text="kek">
							<Size x="300" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="15"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
						<FontString name="$parentID" inherits="GameFontNormalSmall" justifyH="CENTER" text="kek">
							<Size x="180" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="-10"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
						<FontString name="$parentCreateur" inherits="GameFontNormalSmall" justifyH="CENTER" text="kek">
							<Size x="180" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="-25"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
						<FontString name="$parentVernum" inherits="GameFontNormalSmall" justifyH="CENTER" text="kek">
							<Size x="180" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="-40"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
						<FontString name="$parentDate" inherits="GameFontNormalSmall" justifyH="CENTER" text="kek">
							<Size x="180" y="0"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="-55"/>
							</Anchors>
							<Color r="0.95" g="0.95" b="0.95"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentIDHelp" inherits="TRP2_HelpButtonTemplate">
						<Anchors>
							<Anchor point="CENTER" relativeto="$parentID" x="0" y="0"/>
						</Anchors>
						<Size x="180" y="20"/>
					</Button>
					<Button name="$parentAuteurHelp" inherits="TRP2_HelpButtonTemplate">
						<Anchors>
							<Anchor point="CENTER" relativeto="$parentCreateur" x="0" y="0"/>
						</Anchors>
						<Size x="180" y="20"/>
					</Button>
					<Button name="$parentVernumHelp" inherits="TRP2_HelpButtonTemplate">
						<Anchors>
							<Anchor point="CENTER" relativeto="$parentVernum" x="0" y="0"/>
						</Anchors>
						<Size x="180" y="20"/>
					</Button>
					<Button name="$parentDateHelp" inherits="TRP2_HelpButtonTemplate">
						<Anchors>
							<Anchor point="CENTER" relativeto="$parentDate" x="0" y="0"/>
						</Anchors>
						<Size x="180" y="25"/>
					</Button>
				</Frames>
			</Frame>
		</Frames>
	</Frame>
</Ui>