uiDialog RankUp
{
   Width = 800.000000
   Height = 600.000000
   StyleMap = ~data/scripts/interface/stylemaps/dialog.osm

   objEffectMap TransIn
   {
      Effect = ~data/scripts/effects/ui/dialog/rankup.ofx
   }

   objEffectMap TransOut
   {
      Effect = ~data/scripts/effects/ui/dialog/trans_out.ofx
   }

   uiSprite Mask
   {
      Position = [ 0.000000, 0.000000, 0.000000 ]
      Width = 800.000000
      Height = 600.000000
      Color = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
      Sprite = ~data/textures/transition/fade_mask.tga
   }

   uiFrame Frame
   {
      Position = [ 400.000000, 300.000000, 0.000000 ]
      AnchorHorz = CENTER
      AnchorVert = CENTER

      uiSprite dialog_bg
      {
         Position = [ 0.000000, 0.000000, 0.000000 ]
         Sprite = ~data/textures/dialogs/dialog_1.jpg*data/textures/dialogs/dialog_1_alpha.tga
      }

      uiTextWidget Header
      {
         Style = "header"
         Text = T( "Promotion" )
      }

      uiFrame
      {
         Position = [ 320.000000, 242.000000, 0.000000 ]
         AnchorHorz = CENTER
         AnchorVert = CENTER

         uiFlowLayout flow
         {
            Type = VERT
            Spacing = 12.000000
         }

         uiTextWidget Text_1
         {
            Style = "light_yellow"
            Position = [ 150.466156, 0.000000, 0.000000 ]
            Height = 32.000000
            AnchorHorz = CENTER
            Anim = "outline"
            Layered = true
            LayerOffset = [ 3.000000, 3.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "Great Job!" )
         }

         uiTextWidget Text_2
         {
            Style = "light_green"
            Position = [ 150.466156, 44.000000, 0.000000 ]
            AnchorHorz = CENTER
            Anim = "outline"
            Layered = true
            LayerOffset = [ 3.000000, 3.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "You Have Risen To The Rank Of:" )
         }

         uiSprite Rank_Icon
         {
            Position = [ 150.466156, 82.000000, 0.000000 ]
            AnchorHorz = CENTER
            AnchorVert = TOP
            Sprite = ~data/sprites/main/ranks.spr
            Anim = "rank1"
         }

         uiTextWidget Text_Rank
         {
            Style = "light_red"
            Position = [ 150.466156, 158.000000, 0.000000 ]
            AnchorHorz = CENTER
            Anim = "outline"
            Layered = true
            LayerOffset = [ 3.000000, 3.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "Sheep Herder" )
         }

         uiTextWidget Text_3
         {
            Style = "light_blue"
            Position = [ 150.466156, 196.000000, 0.000000 ]
            Height = 32.000000
            AnchorHorz = CENTER
            Anim = "outline"
            Layered = true
            LayerOffset = [ 3.000000, 3.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "Congratulations!" )
         }
      }

      uiButton Button_Ok
      {
         Position = [ 320.000000, 423.000000, 0.000000 ]
         AnchorHorz = CENTER
         Command = "Confirm"

         uiTextWidget Text
         {
            Text = T( "Continue" )
         }

         uiInputItem
         {
            uiInputBinding
            {
               Binding = "Keyboard.Enter"
            }

            uiInputBinding
            {
               Binding = "Controller.A"
            }

            uiInputBinding
            {
               Binding = "Controller.Start"
            }
         }
      }
   }

   objEffectMap Idle
   {
      Effect = ~data/scripts/effects/postprocess/disabledarkpass.ofx
   }
}
