section = movieplayer

window = main

  ;base=bitmap,x,y
  ; x:            | y:
  ;  -  0: left   |  -  0: top
  ;  - -1: center |  - -1: center
  ;  - -2: right  |  - -2: bottom
base = main, -2, -2
  ;button=bitmap,x,y,sx,sy,msg
  ; 1. bitmap: pressed  | x,y: position in window
  ; 2. bitmap: released | msg: name of system message
  ; 3. bitmap: disabled | sx,sy: size of button

button = iconify,     583,   2,  20,  19, evIconify
button = exit,        603,   2,  21,  19, evExit
button = mute,        258,  37,  11,  11, evIncVolume
button = mute,        258,  48,  11,  11, evMute
button = mute,        258,  59,  11,  11, evDecVolume
button = zoom,        471,  44,  22,  19, evFullScreen

button = playlist,    426,  47,  28,  20, evPlaylist
button = pref,        426,  67,  28,  20, evPreferences
button = equalizer,   398,  47,  28,  20, evEqualizer
button = sub,         398,  67,  28,  20, evLoadSubtitle
button = skins,       370,  47,  28,  20, evSkinBrowser

button = load,        603,  39,  19,  19, evLoadPlay
button = help,        603,  58,  19,  19, evAbout

button = trprev,      462,  15,  18,  18, evPrev
button = trnext,      480,  15,  18,  18, evNext

button = none,        370,  67,  28,  20, evNone
button = none,        342,  47,  28,  20, evNone
button = none,        342,  67,  28,  20, evNone
button = none,        314,  47,  28,  20, evNone
button = none,        314,  67,  28,  20, evNone
button = none,        286,  47,  28,  20, evNone
button = none,        286,  67,  28,  20, evNone

button = play,        531,  37,  25,  25, evPlay
button = pause,       531,  16,  25,  21, evPause
button = stop,        531,  62,  25,  21, evStop

button = minl,        509,  34,  22,  17, evBackward1min
button = minr,        556,  34,  22,  17, evForward1min
button = secl,        509,  51,  22,  16, evBackward10sec
button = secr,        556,  51,  22,  16, evForward10sec

button = 11,          541,   9,   8,   7, evNormalSize
button = 12,          523,  14,   8,   7, evDoubleSize

button = about,       380,   0,  70, 114, evAbout

;; potmeter=phasebitmaps,phases,default value,x,y,sx,sy,msg
potmeter = volume,     11,  11, 223,  15,  35,  39, evSetVolume
;potmeter =   NULL,     10,  10,  52,  40,  50,  10, evSetVolume
potmeter =   NULL,     10,   5,  52,  50,  50,  10, evSetBalance

;; hpotmeter=buttonbitmaps,sx,sy,phasebitmaps,phases,default value,x,y,sx,sy,msg
hpotmeter = NULL,      10,  10, position, 130,   0,  10,  75, 264,  10, evSetMoviePosition


;; font=fontname,fontid
font = symbols, symbols
font = font,    font
font = font2,   font2

  ; dynamic label
  ; dlabel=x,y,sx,align,fontid,string ...
  ;  str: $1  = hh:mm:ss
  ;       $2  = mmmm:ss
  ;       $3  = hh
  ;       $4  = mm
  ;       $5  = ss
  ;       $6  = movie length, hh:mm:ss
  ;       $7  = movie length, mmmm:ss
  ;       $v  = volume, xxx.xx%
  ;       $V  = volume, xxx.x
  ;       $b  = balance, xxx.xx%
  ;       $B  = balance, xxx.x
  ;       $$  = draw $
  ;       $a  = audio type ( nosound: char n, mono: char m, stereo: char t, etc )
  ;       $t  = track number
  ;       $o  = filename
  ;       $f  = filename with lower case
  ;       $F  = filename with upper case
  ;
  ;       $T  = stream type ( file: f, video cd: v, dvd: d, url: u ), if
  ;              font contain needed symbol.
  ;       $l  = draw play symbol, if mplayer is playing movie and font
  ;              contain playing symbol. ( char l )
  ;       $s  = draw stop symbol, if mplayer not playing movie and font
  ;              contain stop symbol. ( char s )
  ;       $e  = draw pause symbol, if playing is paused and font contain
  ;              pause symbol ( char e )

;; dlabel=x,y,sx,align,fontid,string ...
;; align: 0: right 1: center 2: left

dlabel = 147,  46,  72, 0, symbols, "$1"
dlabel =  25,  40,  18, 1, symbols, "$a"
dlabel = 120,  46,  72, 0, symbols, "$t"
dlabel = 108,  28, 111, 0,    font, "$o"
dlabel =  20,  21,  29, 0, symbols, "$T"
dlabel =  52,  40,  50, 1,   font2, "VOL: $v"
dlabel =  52,  50,  50, 1,   font2, "BAL: $b"

; static label
  ; slabel=x,y,fontid,string ...
  ; slabel =  10,  10, symbols, "12345 - 67890"
  ; slabel = 120,  10,    font, "Eyes on Me"

 end

 window = sub

  ;base=bitmap,x,y,sx,sy
  ; x:            | y:
  ;  -  0: left   |  -  0: top
  ;  - -1: center |  - -1: center
  ;  - -2: right  |  - -2: bottom
  base = logo,-1,-1
  ; background=r,g,b
  ; window back0ground color, default is black
  ; only subwindow, and decimal numbers
  background = 0,0,0

 end

 window = menu

  ; base=bitmap
  base = menu

  ; selected=bitmap
  selected = menu

  ; menu = x,y,width,height,msg
  menu =   3,   6, 122,  14, evAbout
  menu =   3,  28, 122,  14, evLoad
  menu =   3,  43, 122,  14, evNone         ; Add playlist
  menu =   3,  60, 122,  14, evPlay
  menu =   3,  84, 122,  14, evPlaylist
  menu =   3, 100, 122,  14, evEqualizer
  menu =   3, 116, 122,  14, evSkinBrowser
  menu =   3, 140, 122,  14, evPreferences
  menu =   3, 156, 122,  14, evNone
  menu =   3, 180, 122,  14, evNormalSize
  menu =   3, 196, 122,  14, evDoubleSize
  menu =   3, 212, 122,  14, evFullScreen
  menu =   3, 228, 122,  14, evIconify
  menu =   3, 244, 122,  14, evExit
 end

end
