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

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

   uiStageMap StageMap
   {
      Position = [ 0.000000, 46.000000, 0.000000 ]
      Width = 800.000000
      Height = 512.000000

      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/textures/stagemap/background2.jpg
         }

         uiRadioGroup StageSelect
         {
            Position = [ -1.000000, -1.000000, 0.000000 ]
            Color = [ 1.000000, 1.000000, 1.000000, 0.000000 ]
            DefaultValue = -1

            uiRadioButton Stage_1
            {
               Position = [ 447.746643, 77.396881, 0.000000 ]
               Value = 1

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Stage_2
            {
               Position = [ 585.501587, 315.413940, 0.000000 ]
               Value = 2

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Stage_3
            {
               Position = [ 90.797623, 395.516602, 0.000000 ]
               Value = 3

               uiSprite bg
               {
                  Position = [ 107.998962, -12.000000, 0.000000 ]
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Stage_4
            {
               Position = [ 275.968658, 136.465332, 0.000000 ]
               Value = 4

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Stage_5
            {
               Position = [ 441.001190, 334.224884, 0.000000 ]
               Value = 5

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }
         }

         uiRadioGroup LevelSelect_1
         {
            Position = [ 116.998291, 40.000000, 0.000000 ]

            uiRadioButton Level_1
            {
               Style = "LevelButton2"
               Position = [ 356.000275, 55.999985, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 1

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_2
            {
               Style = "LevelButton2"
               Position = [ 418.000366, 88.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 2

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_3
            {
               Style = "LevelButton2"
               Position = [ 459.999237, 146.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 3

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_4
            {
               Style = "LevelButton2"
               Position = [ 483.999573, 210.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 4

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_5
            {
               Style = "LevelButton2"
               Position = [ 487.999634, 280.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 5

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }
         }

         uiRadioGroup LevelSelect_2
         {
            Position = [ 52.999344, 292.000000, 0.000000 ]

            uiRadioButton Level_1
            {
               Style = "LevelButton2"
               Position = [ 528.000000, 86.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 1

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_2
            {
               Style = "LevelButton2"
               Position = [ 473.998932, 130.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 2

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_3
            {
               Style = "LevelButton2"
               Position = [ 398.000824, 153.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 3

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_4
            {
               Style = "LevelButton2"
               Position = [ 312.000000, 160.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 4

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_5
            {
               Style = "LevelButton2"
               Position = [ 215.999527, 146.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 5

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }
         }

         uiRadioGroup LevelSelect_3
         {
            Position = [ 259.000000, 208.000000, 0.000000 ]

            uiRadioButton Level_1
            {
               Style = "LevelButton2"
               Position = [ -51.999069, 182.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 1

               uiSprite bg
               {
                  Position = [ -239.999634, 48.000000, 0.000000 ]
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_2
            {
               Style = "LevelButton2"
               Position = [ -73.999985, 111.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 2

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_3
            {
               Style = "LevelButton2"
               Position = [ -59.001007, 40.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 3

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_4
            {
               Style = "LevelButton2"
               Position = [ -29.999969, -18.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 4

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_5
            {
               Style = "LevelButton2"
               Position = [ 20.999237, -54.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 5

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }
         }

         uiRadioGroup LevelSelect_4
         {
            Position = [ 412.999115, 24.000000, 0.000000 ]

            uiRadioButton Level_1
            {
               Style = "LevelButton2"
               Position = [ -67.000687, 120.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 1

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_2
            {
               Style = "LevelButton2"
               Position = [ 1.998825, 128.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 2

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_3
            {
               Style = "LevelButton2"
               Position = [ 62.999802, 147.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 3

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_4
            {
               Style = "LevelButton2"
               Position = [ 95.999481, 210.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 4

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_5
            {
               Style = "LevelButton2"
               Position = [ 99.999481, 281.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 5

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }
         }

         uiRadioGroup LevelSelect_5
         {
            Position = [ 560.998779, 274.000000, 0.000000 ]

            uiRadioButton Level_1
            {
               Style = "LevelButton2"
               Position = [ -110.000748, 82.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 1

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_2
            {
               Style = "LevelButton2"
               Position = [ -194.000793, 79.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 2

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_3
            {
               Style = "LevelButton2"
               Position = [ -258.000977, 37.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 3

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_4
            {
               Style = "LevelButton2"
               Position = [ -234.000427, -32.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 4

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }

            uiRadioButton Level_5
            {
               Style = "LevelButton2"
               Position = [ -150.000381, -25.000000, 0.000000 ]
               AnchorHorz = CENTER
               AnchorVert = CENTER
               Value = 5

               uiSprite bg
               {
                  Sprite = ~data/sprites/stagemap/button_stage.spr
               }
            }
         }
      }

      uiTextWidget Text_StageName
      {
         Position = [ 400.000000, 5.820496, 0.000000 ]
         Height = 20.000000
         Color = [ 1.000000, 1.000000, 1.000000, 0.000000 ]
         AnchorHorz = CENTER
         Font = ~data/fonts/white.font
         Anim = "Outline"
         Justify = CENTER
         Text = T( " " )
      }

      uiTextWidget Text_StageNumber
      {
         Position = [ 400.000000, 7.411377, 0.000000 ]
         Height = 20.000000
         Color = [ 1.000000, 1.000000, 1.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( "" )
      }

      uiTextWidget Text_MapName
      {
         Position = [ 400.000000, 9.000000, 0.000000 ]
         Height = 32.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 ]
         Text = T( "Map Name" )
      }

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

      uiSprite Graphic_Stage_Complete
      {
         Position = [ 400.000000, 250.000000, 0.000000 ]
         Color = [ 1.000000, 1.000000, 1.000000, 0.000000 ]
         AnchorHorz = CENTER
         AnchorVert = CENTER
         Sprite = ~data/textures/stagemap/stage_complete.jpg*data/textures/stagemap/stage_complete_alpha.tga
      }

      uiTextWidget Text_Stage_Complete
      {
         Position = [ 400.000000, 250.000000, 0.000000 ]
         Height = 48.000000
         Color = [ 1.000000, 1.000000, 1.000000, 0.000000 ]
         AnchorHorz = CENTER
         AnchorVert = CENTER
         Font = ~data/fonts/white.font
         Anim = "Outline"
         Justify = CENTER
         Text = T( "Stage\nComplete!" )
      }

      objEffectMap StageComplete
      {
         Effect = ~data/scripts/effects/ui/stage_complete.ofx
      }

      uiButton Button_Quit
      {
         Style = "dialog_button"
         Position = [ 137.999603, 489.000000, 0.000000 ]
         AnchorHorz = CENTER
         AnchorVert = CENTER
         Command = "Cancel"

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

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

            uiInputBinding
            {
               Binding = "Controller.B"
            }

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

      uiButton Button_Start
      {
         Style = "dialog_button"
         Position = [ 684.000000, 489.000000, 0.000000 ]
         AnchorHorz = CENTER
         AnchorVert = CENTER
         Command = "Start"

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

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

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

            uiInputBinding
            {
               Binding = "Controller.A"
            }

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

      uiButton Button_Cancel
      {
         Style = "dialog_button"
         Position = [ 137.999451, 489.000000, 0.000000 ]
         AnchorHorz = CENTER
         AnchorVert = CENTER
         Command = "Cancel"

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

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

            uiInputBinding
            {
               Binding = "Controller.B"
            }

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

      # data/scripts/interface/stagemap_stagenames_challenge.uis
   }

   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
   }
}
