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

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

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

   objEffectMap TransMain
   {
      Effect = ~data/scripts/effects/ui/dialog/trans_out_main.ofx
   }

   objEffectMap TransQuit
   {
      Effect = ~data/scripts/effects/ui/dialog/trans_out_quit_main.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( "Quit To Main Menu" )
      }

      uiTextWidget description1
      {
         Style = "light_yellow"
         Position = [ 320.000000, 222.000000, 0.000000 ]
         Width = 370.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( "Are You Sure You Wish To Quit To The Main Menu?\n\nYour Game Will Be Saved For Next Time." )
      }

      uiButton Button_Quit_Main
      {
         Position = [ 320.000000, 368.000000, 0.000000 ]
         AnchorHorz = CENTER
         Command = "QuitMain"

         uiTextWidget Text
         {
            Text = T( "Quit to Main Menu" )
         }

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

            uiInputBinding
            {
               Binding = "Controller.A"
            }

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

      uiButton Button_Continue
      {
         Position = [ 320.000000, 419.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"
            }
         }
      }
   }

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