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

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

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

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

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

   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( "Pause Menu" )
      }

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

         uiFlowLayout flow
         {
            Type = VERT
            Spacing = 12.000000
         }

         uiButton Button_ResumeGame
         {
            Position = [ 132.530396, 0.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "Continue"

            uiTextWidget Text
            {
               Text = T( "Resume Game" )
            }
         }

         uiButton Button_Options
         {
            Position = [ 132.530396, 54.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "Options"

            uiTextWidget Text
            {
               Text = T( "Help & Options" )
            }
         }

         uiButton Button_Leaderboards
         {
            Position = [ 132.530396, 108.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "Leaderboards"

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

         uiButton Button_Achievements
         {
            Position = [ 132.530396, 162.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "Achievements"

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

         uiButton Button_Quit_Main
         {
            Position = [ 132.530396, 216.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "QuitMain"

            uiTextWidget Text
            {
               Text = T( "Exit Game" )
            }
         }

/*
         uiButton Button_Exit_Level
         {
            Position = [ 132.530396, 270.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "QuitLevel"

            uiTextWidget Text
            {
               Text = T( "Quit Level" )
            }
         }
         */

         uiButton Button_Back
         {
            Position = [ 132.530396, 324.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "Continue"

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

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

               uiInputBinding
               {
                  Binding = "Controller.B"
               }

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

         uiButton Button_Continue_Hidden
         {
            Position = [ 132.530396, 378.000000, 0.000000 ]
            Color = [ 1.000000, 1.000000, 1.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "Continue"

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

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