uiDialog ModeSelect
{
   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 TransOutFS
   {
      Effect = ~data/scripts/effects/ui/transition_dialog.ofx
   }

   uiSprite Mask
   {
      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, 1.000000 ]
         Sprite = ~data/textures/dialogs/dialog_1.jpg*data/textures/dialogs/dialog_1_alpha.tga
      }

      uiTextWidget Header
      {
         Style = "header"
         Position = [ 243.000000, 17.000000, 0.000000 ]
         Height = 28.000000
         Text = T( "Help & Options" )
      }

      uiFrame
      {
         Position = [ 240.000000, 70.000000, 0.000000 ]
         AnchorHorz = CENTER

         uiFlowLayout flow
         {
            Type = VERT
            Spacing = 16.000000
         }

         uiButton Button_Instructions
         {
            Position = [ 117.530548, 0.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "Instructions"

            uiTextWidget Text
            {
               Position = [ 0.000000, 15.000000, 0.000000 ]
               AnchorHorz = LEFT
               Justify = CENTER
               Text = T( "How to Play" )
            }
         }

         uiButton Button_Controls
         {
            Position = [ 117.530548, 58.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "Controls"

            uiTextWidget Text
            {
               AnchorHorz = LEFT
               Justify = CENTER
               Text = T( "Controls" )
            }
         }

         uiButton Button_Options
         {
            Position = [ 117.530548, 116.000000, 0.000000 ]
            AnchorHorz = CENTER
            Command = "Options"

            uiTextWidget Text
            {
               AnchorHorz = LEFT
               Justify = CENTER
               Text = T( "Settings" )
            }
         }

         uiButton Button_Credits
         {
            Position = [ 117.530548, 174.000000, 0.000000 ]
            AnchorHorz = CENTER
            AnchorVert = TOP
            Command = "Credits"

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

         uiButton Button_Cancel
         {
            Position = [ 117.530548, 232.000000, 0.000000 ]
            AnchorHorz = CENTER
            AnchorVert = TOP
            Command = "Cancel"

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

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

               uiInputBinding
               {
                  Binding = "Controller.B"
               }

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