template element Text(_post_text_)
{
  fontName Digital
  charHeight 10
  autoSize true
  color 0
}

template container Panel(_post_bit_)
{
  shader editor\bit
  width 12
  height 15
}

template element ScrollBar(_post_slider_)
{
  width 150
  height 15
  type horizontal
  scrollBit _post_bit_
  shader editor\foreground
  spacing -1
  limits 0 2 0.3
}

template element CheckBox(_post_check_)
{
  width 20
  height 20
  upShader editor\foreground
  downShader editor\check
  highlightDownShader editor\check
  highlightUpShader editor\foreground
}

template element Button(_post_button_)
{
  width 80
  height 20
  upShader editor\foreground
  highlightDownShader editor\background
  highlightUpShader editor\foreground
  fontName Digital
  charHeight 10
  alignment center
}

PostTweak
{
  zorder 500
  onShow _PostTweakShow_

  container Panel(_post_panel_)
  {
    horzAlign right
    width 220
    shader editor\background

    element Text : _post_text_
    {
      left 10
      top 0
      color 5
      caption Light color
    }

    element Text : _post_text_
    {
      left 10
      top 30
      caption Red:
    }

    element ScrollBar(_post_lred_) : _post_slider_
    {
      left 10
      top 40
      textElement _post_lred_txt_
      onMouseDown _PostTweakChange_
    }

    element Text(_post_lred_txt_) : _post_text_
    {
      left 10
      anchor _post_lred_
    }

    element Text : _post_text_
    {
      left 10
      top 70
      caption Green:
    }

    element ScrollBar(_post_lgreen_) : _post_slider_
    {
      left 10
      top 80
      textElement _post_lgreen_txt_
      onMouseDown _PostTweakChange_
    }

    element Text(_post_lgreen_txt_) : _post_text_
    {
      left 10
      anchor _post_lgreen_
    }

    element Text : _post_text_
    {
      left 10
      top 110
      caption Blue:
    }

    element ScrollBar(_post_lblue_) : _post_slider_
    {
      left 10
      top 120
      textElement _post_lblue_txt_
      onMouseDown _PostTweakChange_
    }

    element Text(_post_lblue_txt_) : _post_text_
    {
      left 10
      anchor _post_lblue_
    }

    // ------------------------------------------------------------------------------

    element Text : _post_text_
    {
      left 10
      top 160
      color 5
      caption Dark color
    }

    element Text : _post_text_
    {
      left 10
      top 190
      caption Red:
    }

    element ScrollBar(_post_dred_) : _post_slider_
    {
      left 10
      top 200
      textElement _post_dred_txt_
      onMouseDown _PostTweakChange_
    }

    element Text(_post_dred_txt_) : _post_text_
    {
      left 10
      anchor _post_dred_
    }

    element Text : _post_text_
    {
      left 10
      top 230
      caption Green:
    }

    element ScrollBar(_post_dgreen_) : _post_slider_
    {
      left 10
      top 240
      textElement _post_dgreen_txt_
      onMouseDown _PostTweakChange_
    }

    element Text(_post_dgreen_txt_) : _post_text_
    {
      left 10
      anchor _post_dgreen_
    }

    element Text : _post_text_
    {
      left 10
      top 270
      caption Blue:
    }

    element ScrollBar(_post_dblue_) : _post_slider_
    {
      left 10
      top 280
      textElement _post_dblue_txt_
      onMouseDown _PostTweakChange_
    }

    element Text(_post_dblue_txt_) : _post_text_
    {
      left 10
      anchor _post_dblue_
    }
    
    element Text : _post_text_
    {
      left 10
      top 320
      color 5
      caption Desaturate:
    }

    element ScrollBar(_post_desat_) : _post_slider_
    {
      left 10
      top 330
      textElement _post_desat_txt_
      onMouseDown _PostTweakChange_
    }

    element Text(_post_desat_txt_) : _post_text_
    {
      left 10
      anchor _post_desat_
    }

    element Text : _post_text_
    {
      left 10
      top 350
      color 5
      caption Tone:
    }

    element ScrollBar(_post_tone_) : _post_slider_
    {
      left 10
      top 360
      textElement _post_tone_txt_
      onMouseDown _PostTweakChange_
    }

    element Text(_post_tone_txt_) : _post_text_
    {
      left 10
      anchor _post_tone_
    }

    element Text : _post_text_
    {
      left 10
      top 400
      caption Enable post effect:
    }

    element CheckBox(_post_enabled_) : _post_check_
    {
      left 10
      top 410
      onClick _PostTweakChange_
    }
    
    element Button(_post_default_) : _post_button_
    {
      left 80
      top 410
      caption Default
      onClick _PostTweakChange_
    }
  }

  effect Scroll
  {
    element _post_panel_
    speed 800
    direction left
    dump 100
    start 0
  }
}

