uiDialog Options
{
   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 TransInNoMask
   {
      Effect = ~data/scripts/effects/ui/banner_in_nomask.ofx
   }

   objEffectMap TransOutNoMask
   {
      Effect = ~data/scripts/effects/ui/banner_out_nomask.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 ]
         Sprite = ~data/textures/dialogs/dialog_1.jpg*data/textures/dialogs/dialog_1_alpha.tga
      }

      uiTextWidget Header
      {
         Style = "header"
         Text = T( "Options" )
      }

      uiTabView TabView
      {
         Position = [ 104.000000, 72.000000, 0.000000 ]
         Width = 430.000000
         Height = 350.000000

         uiFlowLayout flow
         {
            Type = VERT
         }

         uiFrame tabs
         {
            uiFlowLayout flow

            uiTabViewButton Audio
            {
               AnchorHorz = LEFT
               Frame = "Audio"

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

            uiTabViewButton Video
            {
               AnchorHorz = LEFT
               Frame = "Video"

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

         uiFrame
         {
            Width = 430.000000
            Height = 300.000000

            uiTabViewFrame Audio
            {
               Width = 430.000000
               Height = 300.000000

               uiFrame Sliders
               {
                  Position = [ 215.000000, 44.000000, 0.000000 ]
                  AnchorHorz = CENTER
                  AnchorVert = TOP

                  uiFlowLayout flow
                  {
                     Type = VERT
                  }

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

                     uiTextWidget Text_Effects
                     {
                        Style = "light_yellow"
                        Position = [ 256.000000, 62.000000, 0.000000 ]
                        Height = 20.000000
                        AnchorHorz = CENTER
                        Anim = "outline"
                        Layered = true
                        LayerOffset = [ 3.000000, 3.000000 ]
                        LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
                        Justify = CENTER
                        Text = T( "Effects Volume" )
                     }

                     uiSprite scroll_bar
                     {
                        Position = [ 263.000000, 87.000000, 0.000000 ]
                        Scale = [ 0.900000, 0.900000, 0.900000 ]
                        AnchorHorz = CENTER
                        Sprite = ~data/textures/dialogs/slider_slot.jpg*data/textures/dialogs/slider_slot_alpha.tga
                     }

                     uiScrollBar Effects_Volume
                     {
                        Position = [ 106.999878, 81.000000, 0.000000 ]
                        Width = 295.000000

                        uiScrollButton scroll
                        {
                           Style = "Scroll_button"
                        }
                     }

                     uiSprite Volume_Min
                     {
                        Position = [ 60.000000, 96.000000, 0.000000 ]
                        Color = [ 0.371000, 0.586000, 0.848000, 1.000000 ]
                        AnchorHorz = CENTER
                        AnchorVert = CENTER
                        Sprite = ~data/sprites/dialogs/volume.spr
                        SubAnim = "Min"
                     }

                     uiSprite Volume_Max
                     {
                        Position = [ 448.000000, 96.000000, 0.000000 ]
                        Color = [ 0.371000, 0.586000, 0.848000, 1.000000 ]
                        AnchorHorz = CENTER
                        AnchorVert = CENTER
                        Sprite = ~data/sprites/dialogs/volume.spr
                        SubAnim = "Max"
                     }
                  }

                  uiFrame
                  {
                     Position = [ 206.000000, 53.800003, 0.000000 ]
                     AnchorHorz = CENTER
                     AnchorVert = TOP

                     uiTextWidget Text_Volume
                     {
                        Style = "light_yellow"
                        Position = [ 256.000000, 114.000000, 0.000000 ]
                        Height = 20.000000
                        AnchorHorz = CENTER
                        Anim = "outline"
                        Layered = true
                        LayerOffset = [ 3.000000, 3.000000 ]
                        LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
                        Justify = CENTER
                        Text = T( "Music Volume" )
                     }

                     uiSprite scroll_bar
                     {
                        Position = [ 263.000000, 139.000000, 0.000000 ]
                        Scale = [ 0.900000, 0.900000, 0.900000 ]
                        AnchorHorz = CENTER
                        Sprite = ~data/textures/dialogs/slider_slot.jpg*data/textures/dialogs/slider_slot_alpha.tga
                     }

                     uiScrollBar Music_Volume
                     {
                        Position = [ 106.999878, 132.000000, 0.000000 ]
                        Width = 295.000000

                        uiScrollButton scroll
                        {
                           Style = "Scroll_button"
                        }
                     }

                     uiSprite Volume_Min
                     {
                        Position = [ 60.000000, 148.000000, 0.000000 ]
                        Color = [ 0.371000, 0.586000, 0.848000, 1.000000 ]
                        AnchorHorz = CENTER
                        AnchorVert = CENTER
                        Sprite = ~data/sprites/dialogs/volume.spr
                        SubAnim = "Min"
                     }

                     uiSprite Volume_Max
                     {
                        Position = [ 448.000000, 148.000000, 0.000000 ]
                        Color = [ 0.371000, 0.586000, 0.848000, 1.000000 ]
                        AnchorHorz = CENTER
                        AnchorVert = CENTER
                        Sprite = ~data/sprites/dialogs/volume.spr
                        SubAnim = "Max"
                     }
                  }
               }

               uiContainer
               {
                  Position = [ 215.000000, 190.000000, 0.000000 ]
                  AnchorHorz = CENTER

                  uiToggleButton Checkbox_Mute
                  {
                     Style = "Checkbox"
                     Padding = 0.000000
                     Command = ""
                     Toggled = false
                  }

                  uiTextWidget Text
                  {
                     Style = "light_yellow"
                     Position = [ 34.998932, 5.000000, 0.000000 ]
                     Height = 20.000000
                     Anim = "outline"
                     Layered = true
                     LayerOffset = [ 3.000000, 3.000000 ]
                     LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
                     Text = T( "Mute" )
                  }
               }
            }

            uiTabViewFrame Video
            {
               Position = [ 215.000000, 28.000000, 0.000000 ]
               AnchorHorz = CENTER

               uiFlowLayout flow
               {
                  Type = VERT
                  Spacing = 20.000000
               }

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

                  uiFlowLayout flow
                  {
                     Type = VERT
                     Spacing = 5.000000
                  }

                  uiTextWidget Label
                  {
                     Style = "light_yellow"
                     Position = [ 144.000000, 0.000000, 0.000000 ]
                     Height = 20.000000
                     AnchorHorz = CENTER
                     Anim = "outline"
                     Layered = true
                     LayerOffset = [ 3.000000, 3.000000 ]
                     LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
                     Justify = CENTER
                     Text = T( "Resolution" )
                  }

                  uiPulldownMenu Resolution
                  {
                     AnchorHorz = CENTER
                     AnchorVert = CENTER
                  }
               }

               uiContainer
               {
                  Position = [ 144.000000, 77.000000, 0.000000 ]
                  AnchorHorz = CENTER

                  uiToggleButton Checkbox_Fullscreen
                  {
                     Style = "Checkbox"
                     Padding = 0.000000
                     Command = ""
                     Toggled = false
                  }

                  uiTextWidget Text
                  {
                     Style = "light_yellow"
                     Position = [ 34.998932, 5.000000, 0.000000 ]
                     Height = 20.000000
                     Anim = "outline"
                     Layered = true
                     LayerOffset = [ 3.000000, 3.000000 ]
                     LayerColor = [ 0.000000, 0.000000, 0.000000, 0.500000 ]
                     Text = T( "Full Screen" )
                  }
               }
            }
         }
      }

      uiFrame Buttons
      {
         Position = [ 316.000000, 427.000000, 0.000000 ]
         AnchorHorz = CENTER

         uiFlowLayout flow
         {
            Spacing = 8.000000
         }

         uiButton Button_Cheats
         {
            Position = [ 0.000000, 0.000000, 0.000000 ]
            AnchorHorz = LEFT
            Command = "TheCheat"

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

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

         uiButton Button_Done
         {
            Position = [ 181.599884, 0.000000, 0.000000 ]
            AnchorHorz = LEFT
            Command = "Confirm"

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

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

               uiInputBinding
               {
                  Binding = "Controller.B"
               }

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

      uiTriggerControl Button_EnableCheats
      {
         Command = "EnableCheats"

         uiInputItem Cheats
         {
            uiInputBinding
            {
               Binding = "Keyboard.PageUp+Keyboard.PageDown"
            }
         }
      }
   }
}
