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

uiMapSelect SelectMap
{
   Position = [ 0.000000, 46.000000, 0.000000 ]
   Width = 800.000000
   Height = 512.000000
   StyleMap = ~data/scripts/interface/stylemaps/dialog.osm

   uiFrame MapFrame
   {
      Position = [ 0.000000, -3.000000, 0.000000 ]
      Width = 800.000000
      Height = 512.000000

      uiSprite Piece1
      {
         Position = [ 0.000000, 0.000000, 0.000000 ]
         Rotation = [ 0.000000, 0.000000, 0.000000 ]
         Scale = [ 1.000000, 1.000000, 1.000000 ]
         Sprite = ~data/sprites/stagemap/background_practice.spr
      }
   }

   uiClipFrame Level_Preview
   {
      Position = [ 586.000000, -1.000000, 0.000000 ]
      AnchorHorz = CENTER

      # data/scripts/interface/game_components.uis

      uiFrame Thumbnail
      {
         Position = [ 0.000000, 122.000000, 0.000000 ]
         Scale = [ 0.400000, 0.400000, 1.000000 ]
         AnchorHorz = CENTER
         AnchorVert = CENTER
      }

      uiContainer Locked
      {
         Position = [ 0.000000, 120.000000, 0.000000 ]
         Color = [ 1.000000, 1.000000, 1.000000, 0.000000 ]
         AnchorHorz = CENTER
         AnchorVert = CENTER

         uiTextWidget Text1
         {
            Height = 32.000000
            AnchorHorz = CENTER
            AnchorVert = CENTER
            Font = ~data/fonts/white.font
            Anim = "Outline"
            Justify = CENTER
            Text = T( "Locked!" )
         }

         uiTextWidget Text2
         {
            Style = "light_yellow"
            Position = [ 0.000000, 30.000000, 0.000000 ]
            Height = 20.000000
            AnchorHorz = CENTER
            AnchorVert = CENTER
            Font = ~data/fonts/white.font
            Anim = "Outline"
            Justify = CENTER
            Text = T( "Unlock in Adventure Mode!" )
         }
      }

      objEffectMap Fade_In
      {
         Effect = ~data/scripts/effects/ui/thumbnail_preview/fade_in.ofx
      }

      objEffectMap Fade_Out
      {
         Effect = ~data/scripts/effects/ui/thumbnail_preview/fade_out.ofx
      }

      objEffectMap Fade_In_Locked
      {
         Effect = ~data/scripts/effects/ui/thumbnail_preview/fade_in_locked.ofx
      }

      objEffectMap Fade_Out_Locked
      {
         Effect = ~data/scripts/effects/ui/thumbnail_preview/fade_out_locked.ofx
      }
   }

   uiTextWidget Text_MapName
   {
      Position = [ 586.000000, 212.000000, 0.000000 ]
      AnchorHorz = CENTER
      Font = ~data/fonts/white.font
      Anim = "Outline"
      Layered = true
      LayerOffset = [ 2.000000, 2.000000 ]
      LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
      Justify = CENTER
      Text = T( "<Map Name>" )
   }

   uiFrame
   {
      Position = [ 501, 291, 0.000000 ]

      uiFrame Global_Stats
      {
         Position = [ 0.000000, 0.0, 0.000000 ]
         Height = 88.000000
         AnchorHorz = CENTER
         AnchorVert = CENTER

         uiTextWidget Text_Header
         {
            Style = "dark_green"
            AnchorHorz = CENTER
            Font = ~data/fonts/white.font
            Anim = "default"
            LayerOffset = [ 2.000000, 2.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "Overall Best" )
         }

         uiTextWidget Name
         {
            Style = "dark_blue"
            Position = [ 0.000000, 22.000000, 0.000000 ]
            Width = 300.000000
            Height = 24.000000
            AnchorHorz = CENTER
            Font = ~data/fonts/white.font
            Anim = "default"
            WordWrap = true
            LayerOffset = [ 2.000000, 2.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "WWWWWWWWWWWWWWWWWW" )
         }

         uiFrame
         {
            Position = [ 0.000000, 44.000000, 0.000000 ]
            AnchorHorz = CENTER

            uiFlowLayout flow

            uiTextWidget Label
            {
               Style = "dark_blue"
               AnchorHorz = LEFT
               Font = ~data/fonts/white.font
               Anim = "default"
               LayerOffset = [ 2.000000, 2.000000 ]
               LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
               Justify = CENTER
               Text = T( "Level " )
            }

            uiTextWidget Level
            {
               Style = "dark_blue"
               AnchorHorz = LEFT
               Font = ~data/fonts/white.font
               Anim = "default"
               LayerOffset = [ 2.000000, 2.000000 ]
               LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
               Justify = CENTER
               Text = T( "<12>" )
            }
         }

         uiTextWidget Score
         {
            Style = "dark_blue"
            Position = [ 0.000000, 66.000000, 0.000000 ]
            AnchorHorz = CENTER
            Font = ~data/fonts/white.font
            Anim = "default"
            LayerOffset = [ 2.000000, 2.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "<999,999,999>" )
         }
      }

      uiFrame Personal_Stats
      {
         Position = [ 170.000000, 0.000000, 0.000000 ]
         Height = 88.000000
         AnchorHorz = CENTER
         AnchorVert = CENTER

         uiTextWidget Text_Header
         {
            Style = "dark_green"
            AnchorHorz = CENTER
            Font = ~data/fonts/white.font
            Anim = "default"
            LayerOffset = [ 2.000000, 2.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "Personal Best" )
         }

         uiTextWidget Name
         {
            Style = "dark_blue"
            Position = [ 0.000000, 22.000000, 0.000000 ]
            Width = 300.000000
            Height = 24.000000
            AnchorHorz = CENTER
            Font = ~data/fonts/white.font
            Anim = "default"
            WordWrap = true
            LayerOffset = [ 2.000000, 2.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "WWWWWWWWWWWWWWWWWW" )
         }

         uiFrame
         {
            Position = [ 0.000000, 44.000000, 0.000000 ]
            AnchorHorz = CENTER

            uiFlowLayout flow

            uiTextWidget Label
            {
               Style = "dark_blue"
               AnchorHorz = LEFT
               Font = ~data/fonts/white.font
               Anim = "default"
               LayerOffset = [ 2.000000, 2.000000 ]
               LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
               Justify = CENTER
               Text = T( "Level " )
            }

            uiTextWidget Level
            {
               Style = "dark_blue"
               AnchorHorz = LEFT
               Font = ~data/fonts/white.font
               Anim = "default"
               LayerOffset = [ 2.000000, 2.000000 ]
               LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
               Justify = CENTER
               Text = T( "<12>" )
            }
         }

         uiTextWidget Score
         {
            Style = "dark_blue"
            Position = [ 0.000000, 66.000000, 0.000000 ]
            AnchorHorz = CENTER
            Font = ~data/fonts/white.font
            Anim = "default"
            LayerOffset = [ 2.000000, 2.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "<999,999,999>" )
         }
      }
   }

   uiSprite Flame
   {
      //Position = [ 522.999756, 455.999939, 0.000000 ]
      //Scale = [ 0.330000, 0.330000, 1.000000 ]
      //Sprite = ~data/sprites/particles/flame.spr
      //BlendMode = ADD
   }

   uiFrame
   {
      Position = [ 585.000000, 390.000000, 0.000000 ]
      AnchorHorz = CENTER
      AnchorVert = CENTER

      uiFlowLayout flow
      {
         Spacing = -4.000000
      }

      uiButton Button_Back
      {
         Style = "dialog_button"
         Position = [ 35.055000, 0.000000, 0.000000 ]

         uiTextWidget Text
         {
            Height = 26.000000
            Justify = CENTER
            Text = T( "Previous" )
         }
      }

      uiButton Button_Next
      {
         Style = "dialog_button"
         Position = [ 205.924622, 0.000000, 0.000000 ]

         uiTextWidget Text
         {
            Height = 26.000000
            Justify = CENTER
            Text = T( "Next" )
         }
      }
   }

   uiButton Button_Start
   {
      Style = "dialog_button"
      Position = [ 657.000000, 415.000000, 0.000000 ]
      AnchorHorz = CENTER
      Command = "Start"

      uiTextWidget Text
      {
         Justify = CENTER
         Text = T( "Start" )
      }

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

      uiInputItem
      {
         uiInputBinding
         {
            Binding = "Controller.A"
         }

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

   uiButton Button_Cancel
   {
      Style = "dialog_button"
      Position = [ 514.000000, 415.000000, 0.000000 ]
      AnchorHorz = CENTER
      Command = "Cancel"

      uiTextWidget Text
      {
         Justify = CENTER
         Text = T( "Back" )
      }

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

         uiInputBinding
         {
            Binding = "Controller.B"
         }

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

   uiFrame DPad_Back_Next
   {
      Position = [ 77.000000, 421.000000, 0.000000 ]

      uiFrame Back
      {
         Position = [ 3.000000, 0.000000, 0.000000 ]

         uiFlowLayout flow
         {
            Spacing = 4.000000
         }

         uiSprite DPad_Left
         {
            Sprite = ~data/sprites/dialogs/input.spr
            SubAnim = "dpad_left"
         }

         uiTextWidget Text
         {
            Height = 24.000000
            AnchorVert = CENTER
            Font = ~data/fonts/white.font
            Layered = true
            LayerOffset = [ 3.000000, 3.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "Back" )
         }
      }

      uiFrame Next
      {
         Position = [ 284.000000, 0.000000, 0.000000 ]
         AnchorHorz = CENTER

         uiFlowLayout flow
         {
            Spacing = 4.000000
         }

         uiTextWidget Text
         {
            Height = 24.000000
            AnchorVert = CENTER
            Font = ~data/fonts/white.font
            Layered = true
            LayerOffset = [ 3.000000, 3.000000 ]
            LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
            Justify = CENTER
            Text = T( "Next" )
         }

         uiSprite DPad_Left
         {
            AnchorHorz = RIGHT
            Sprite = ~data/sprites/dialogs/input.spr
            SubAnim = "dpad_right"
         }
      }
   }

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

uiSprite Top
{
   Sprite = ~data/textures/stagemap/top.jpg*data/textures/stagemap/top_alpha.tga
}

uiSprite Bottom
{
   Position = [ 0.000000, 536.000000, 0.000000 ]
   Sprite = ~data/textures/stagemap/bottom.jpg*data/textures/stagemap/bottom_alpha.tga
}
