| 
Nenue@6
 | 
     1 <Ui>
 | 
| 
Nenue@6
 | 
     2   <Script file="Layout.lua" />
 | 
| 
Nenue@6
 | 
     3 
 | 
| 
Nenue@6
 | 
     4   <Frame name="TurokStatusFrame" parent="UIParent" virtual="true" strata="MEDIUM" hidden="true">
 | 
| 
Nenue@6
 | 
     5     <Scripts>
 | 
| 
Nenue@6
 | 
     6       <OnShow>
 | 
| 
Nenue@6
 | 
     7         self.throttle_point = 0
 | 
| 
Nenue@6
 | 
     8         if self.labels then
 | 
| 
Nenue@6
 | 
     9           for _,label in pairs(self.labels) do
 | 
| 
Nenue@6
 | 
    10             label:Show()
 | 
| 
Nenue@6
 | 
    11           end
 | 
| 
Nenue@6
 | 
    12         end
 | 
| 
Nenue@6
 | 
    13       </OnShow>
 | 
| 
Nenue@6
 | 
    14       <OnHide>
 | 
| 
Nenue@6
 | 
    15         if self.labels then
 | 
| 
Nenue@6
 | 
    16           for _,label in pairs(self.labels) do
 | 
| 
Nenue@6
 | 
    17             label:Hide()
 | 
| 
Nenue@6
 | 
    18           end
 | 
| 
Nenue@6
 | 
    19         end
 | 
| 
Nenue@6
 | 
    20       </OnHide>
 | 
| 
Nenue@6
 | 
    21       <OnUpdate>
 | 
| 
Nenue@6
 | 
    22         if GetTime() < self.throttle_point then
 | 
| 
Nenue@6
 | 
    23           return
 | 
| 
Nenue@6
 | 
    24         end
 | 
| 
Nenue@6
 | 
    25         self.throttle_point = self.throttle_point + 0.010
 | 
| 
Nenue@6
 | 
    26         if self.db and self.db.preUpdate then
 | 
| 
Nenue@6
 | 
    27           self.db.preUpdate(self)
 | 
| 
Nenue@6
 | 
    28         end
 | 
| 
Nenue@6
 | 
    29         self:Update()
 | 
| 
Nenue@6
 | 
    30         if self.db and self.db.postUpdate then
 | 
| 
Nenue@6
 | 
    31           self.db.postUpdate(self)
 | 
| 
Nenue@6
 | 
    32         end
 | 
| 
Nenue@6
 | 
    33       </OnUpdate>
 | 
| 
Nenue@6
 | 
    34     </Scripts>
 | 
| 
Nenue@6
 | 
    35 
 | 
| 
Nenue@6
 | 
    36     <Backdrop bgFile="Interface\Addons\Turok\Media\border\BG-Solid.blp" edgeFile="Interface\Addons\Turok\Media\border\BigBorder-Solid.blp" tile="true">
 | 
| 
Nenue@6
 | 
    37       <EdgeSize val="12"/>
 | 
| 
Nenue@6
 | 
    38       <TileSize val="12"/>
 | 
| 
Nenue@6
 | 
    39       <BorderColor r="1" g="1" b="1" a="1" />
 | 
| 
Nenue@6
 | 
    40       <Color r="1" g="1" b="1" a="0" />
 | 
| 
Nenue@6
 | 
    41       <BackgroundInsets>
 | 
| 
Nenue@6
 | 
    42         <AbsInset left="2" right="2" top="2" bottom="2"/>
 | 
| 
Nenue@6
 | 
    43       </BackgroundInsets>
 | 
| 
Nenue@6
 | 
    44     </Backdrop>
 | 
| 
Nenue@6
 | 
    45   </Frame>
 | 
| 
Nenue@6
 | 
    46 
 | 
| 
Nenue@6
 | 
    47   <Frame name="TurokStatusBar" inherits="TurokStatusFrame" parent="UIParent" virtual="true" strata="HIGH" hidden="true">
 | 
| 
Nenue@6
 | 
    48     <Scripts>
 | 
| 
Nenue@6
 | 
    49       <OnLoad>
 | 
| 
Nenue@6
 | 
    50         self.lefttext = self.overlay.lefttext
 | 
| 
Nenue@6
 | 
    51         self.righttext = self.overlay.righttext
 | 
| 
Nenue@6
 | 
    52       </OnLoad>
 | 
| 
Nenue@6
 | 
    53     </Scripts>
 | 
| 
Nenue@6
 | 
    54     <Layers>
 | 
| 
Nenue@6
 | 
    55       <Layer level="BORDER">
 | 
| 
Nenue@6
 | 
    56         <Texture parentKey="background" name="$parent.background" alphaMode="BLEND" />
 | 
| 
Nenue@6
 | 
    57       </Layer>
 | 
| 
Nenue@6
 | 
    58       <Layer level="ARTWORK">
 | 
| 
Nenue@6
 | 
    59         <Texture parentKey="foreground" name="$parent.foreground" alphaMode="BLEND" textureSubLevel="0" />
 | 
| 
Nenue@6
 | 
    60         <Texture name="$parentIcon" parentKey="icon" blendMode="BLEND" textureSubLevel="1">
 | 
| 
Nenue@6
 | 
    61           <Anchors>
 | 
| 
Nenue@6
 | 
    62             <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parent" x="-2" y="0" />
 | 
| 
Nenue@6
 | 
    63           </Anchors>
 | 
| 
Nenue@6
 | 
    64         </Texture>
 | 
| 
Nenue@6
 | 
    65       </Layer>
 | 
| 
Nenue@6
 | 
    66     </Layers>
 | 
| 
Nenue@6
 | 
    67     <Frames>
 | 
| 
Nenue@6
 | 
    68       <Frame name="$parent_OverLay" parentKey="overlay">
 | 
| 
Nenue@6
 | 
    69         <Layers>
 | 
| 
Nenue@6
 | 
    70           <Layer point="OVERLAY">
 | 
| 
Nenue@6
 | 
    71             <FontString name="$parent_LeftText" inherits="TurokFont" parentKey="lefttext">
 | 
| 
Nenue@6
 | 
    72               <Anchors>
 | 
| 
Nenue@6
 | 
    73                 <Anchor point="LEFT" relativePoint="LEFT" x="6" y="0" />
 | 
| 
Nenue@6
 | 
    74               </Anchors>
 | 
| 
Nenue@6
 | 
    75             </FontString>
 | 
| 
Nenue@6
 | 
    76 
 | 
| 
Nenue@6
 | 
    77             <FontString name="$parent_RightText" inherits="TurokFontDetail" parentKey="righttext">
 | 
| 
Nenue@6
 | 
    78               <Anchors>
 | 
| 
Nenue@6
 | 
    79                 <Anchor point="RIGHT" relativePoint="RIGHT" x="-6" y="0" />
 | 
| 
Nenue@6
 | 
    80               </Anchors>
 | 
| 
Nenue@6
 | 
    81             </FontString>
 | 
| 
Nenue@6
 | 
    82           </Layer>
 | 
| 
Nenue@6
 | 
    83         </Layers>
 | 
| 
Nenue@6
 | 
    84       </Frame>
 | 
| 
Nenue@6
 | 
    85     </Frames>
 | 
| 
Nenue@6
 | 
    86   </Frame>
 | 
| 
Nenue@6
 | 
    87 
 | 
| 
Nenue@6
 | 
    88   <Font name="TurokFontBig" font="Interface\Addons\Turok\Media\font\ArchivoNarrow-Bold.ttf" outline="NORMAL">
 | 
| 
Nenue@6
 | 
    89     <Color r="1" g="1" b="1" a="1" />
 | 
| 
Nenue@6
 | 
    90     <FontHeight>
 | 
| 
Nenue@6
 | 
    91       <AbsValue val="32"/>
 | 
| 
Nenue@6
 | 
    92     </FontHeight>
 | 
| 
Nenue@6
 | 
    93   </Font>
 | 
| 
Nenue@6
 | 
    94   <Font name="TurokFontMed" font="Interface\Addons\Turok\Media\font\ArchivoNarrow-Bold.ttf" outline="NORMAL">
 | 
| 
Nenue@6
 | 
    95     <Color r="1" g="1" b="1" a="1" />
 | 
| 
Nenue@6
 | 
    96     <FontHeight>
 | 
| 
Nenue@6
 | 
    97       <AbsValue val="24"/>
 | 
| 
Nenue@6
 | 
    98     </FontHeight>
 | 
| 
Nenue@6
 | 
    99   </Font>
 | 
| 
Nenue@6
 | 
   100   <Font name="TurokFont" font="Interface\Addons\Turok\Media\font\ArchivoNarrow-Bold.ttf" outline="NORMAL">
 | 
| 
Nenue@6
 | 
   101     <Color r="1" g="1" b="1" a="1" />
 | 
| 
Nenue@6
 | 
   102     <FontHeight>
 | 
| 
Nenue@6
 | 
   103       <AbsValue val="16"/>
 | 
| 
Nenue@6
 | 
   104     </FontHeight>
 | 
| 
Nenue@6
 | 
   105   </Font>
 | 
| 
Nenue@6
 | 
   106   <Font name="TurokFontNormal" font="Interface\Addons\Turok\Media\font\ArchivoNarrow-Bold.ttf" outline="NONE">
 | 
| 
Nenue@6
 | 
   107     <Color r="1" g="1" b="1" a="1" />
 | 
| 
Nenue@6
 | 
   108     <FontHeight>
 | 
| 
Nenue@6
 | 
   109       <AbsValue val="16"/>
 | 
| 
Nenue@6
 | 
   110     </FontHeight>
 | 
| 
Nenue@6
 | 
   111   </Font>
 | 
| 
Nenue@6
 | 
   112   <Font name="TurokFontSmall" inherits="TurokFont">
 | 
| 
Nenue@6
 | 
   113     <FontHeight>
 | 
| 
Nenue@6
 | 
   114       <AbsValue val="14" />
 | 
| 
Nenue@6
 | 
   115     </FontHeight>
 | 
| 
Nenue@6
 | 
   116   </Font>
 | 
| 
Nenue@6
 | 
   117 
 | 
| 
Nenue@6
 | 
   118   <Font name="TurokFontDetail" font="Interface\Addons\Turok\Media\font\ArchivoNarrow-Regular.ttf" outline="NORMAL">
 | 
| 
Nenue@6
 | 
   119     <Color r="1" g="1" b="1" a="1" />
 | 
| 
Nenue@6
 | 
   120     <FontHeight>
 | 
| 
Nenue@6
 | 
   121       <AbsValue val="16"/>
 | 
| 
Nenue@6
 | 
   122     </FontHeight>
 | 
| 
Nenue@6
 | 
   123   </Font>
 | 
| 
Nenue@6
 | 
   124 
 | 
| 
Nenue@6
 | 
   125   <Font name="TurokFontDetailSmall" inherits="TurokFontDetail">
 | 
| 
Nenue@6
 | 
   126     <FontHeight>
 | 
| 
Nenue@6
 | 
   127       <AbsValue val="14"/>
 | 
| 
Nenue@6
 | 
   128     </FontHeight>
 | 
| 
Nenue@6
 | 
   129   </Font>
 | 
| 
Nenue@6
 | 
   130 </Ui> |