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

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

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

   uiSprite Mask
   {
      SceneLayer = "GameMask"
      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 ]
         Scale = [ 0.750000, 0.750000, 0.750000 ]
         Sprite = ~data/textures/dialogs/dialog_1.jpg*data/textures/dialogs/dialog_1_alpha.tga
      }

      uiTextWidget Header
      {
         Style = "header"
         Position = [ 243.000000, 15.000000, 0.000000 ]
         Height = 32.000000
         Justify = CENTER
         Text = T( "New High Score" )
      }

      uiTextWidget Text_Congratz1
      {
         Style = "Light_Green"
         Position = [ 243.000000, 80.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( "Excellent!" )
      }

      uiTextWidget Text_Congratz2
      {
         Style = "Light_yellow"
         Position = [ 243.000000, 128.000000, 0.000000 ]
         Width = 340.000000
         AnchorHorz = CENTER
         AnchorVert = CENTER
         Anim = "outline"
         WordWrap = true
         Layered = true
         LayerOffset = [ 3.000000, 3.000000 ]
         LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
         Justify = CENTER
         Text = T( "You\'ve earned a high score!" )
      }

      uiFrame Final_Score
      {
         Position = [ 243.000000, -10.000000, 0.000000 ]
         AnchorHorz = CENTER

         uiTextWidget Text_HighScore
         {
            Style = ""
            Position = [ 256.000000, 193.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( "999,999,999" )
         }

         objEffectMap Psys
         {
            Effect = ~data/scripts/effects/ui/high_score_idle.ofx
         }
      }

      uiTextWidget Text_Congratz3
      {
         Style = "Light_yellow"
         Position = [ 243.000000, 249.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( "Congratulations!" )
      }

      uiButton Button_Ok
      {
         Position = [ 243.000000, 309.000000, 0.000000 ]
         AnchorHorz = CENTER
         Command = "OK"

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

         objEffectMap Idle
         {
            Effect = ~data/scripts/effects/ui/button_idle_pulse.ofx
         }

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

            uiInputBinding
            {
               Binding = "Controller.A"
            }

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

   objEffectMap Idle
   {
      Effect = ~data/scripts/effects/ui/dialog/highscore/fireworks.ofx
   }
}
