;
; Modify line 114 to write codec information to playbar!
;
; Készítette: LUIGI
; A legújabb változat innen mindig letölthető: / The new version is there: 
;   www.x-web.hu/mplayer
; e-mail: lui77@freemail.hu
;

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,-1
  ;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 = close,      472,   7, 20, 14, evExit
  button = iconify,    434,   7, 20, 14, evIconify
  button = fullscreen,    453,   7, 20, 14, evFullScreen

  button = prev,        19,  80, 46, 15, evPrev
  button = file,       264,  80, 46, 15, evLoad
  button = stop,       166,  80, 46, 15, evStop
  button = pause,      117,  80, 46, 15, evPause
  button = play,        68,  80, 46, 15, evPlay
  button = next,       215,  80, 46, 15, evNext

  button = volstop,    136, 109, 14, 13, evMute
  button = balll,      157, 118, 21, 10, evNone;evDecBalance
  button = ballr,      182, 118, 21, 10, evNone;evIncBalance

  button = bdvd,       402,  43, 44, 20, evPlayDVD
  button = bvcd,       402,  64, 44, 20, evPlayVCD
  button = burl,       402,  85, 44, 20, evLoadURL
  button = bsub1,      402,  106, 44, 20, evLoadSubtitle
  button = babout,     448,  43, 44, 20, evAbout
  button = beq,        448,  64, 44, 20, evEqualizer
  button = blist,      448,  85, 44, 20, evPlaylist
  button = bsub2,      448,  106, 44, 20, evDropSubtitle

  button = prefs,      406, 136, 27, 16, evPreferences
  button = s,          433, 136, 27, 16, evSkinBrowser
  ;button = url,        348,  93, 19, 12, evLoadURL
  button = aspect,     460, 136, 27, 16, evSetAspect

  button = 10minback,  211, 107, 14, 14, evBackward10min
  button = 1minback,   229, 107, 14, 14, evBackward1min
  button = 10secback,  247, 107, 14, 14, evBackward10sec
  button = 10secforw,  265, 107, 14, 14, evForward10sec
  button = 1minforw,   283, 107, 14, 14, evForward1min
  button = 10minforw,  301, 107, 14, 14, evForward10min

  ; hpotmeter=buttonbitmaps,sx,sy,phasebitmaps,phases,default value,x,y,sx,sy,msg
  hpotmeter = moviepoz,  21,  8, NULL, 500,   0,  12,  98, 304,  8, evSetMoviePosition
  hpotmeter = ballbutton, 8,  8, NULL,  50,  50, 156, 107,  48,  9, evSetBalance
  hpotmeter = volbutton, 16, 16, NULL, 100, 100,  13, 109, 118, 18, evSetVolume

  ; potmeter=phasebitmaps,phases,default value,x,y,sx,sy,msg
  ; potmeter = volbutton, 51, 0, 311, 17, 40, 40, evSetVolume

  ; font=fontname
  font = symbols
  font = font3
  font = font1

  ; dynamic label
  ; dlabel=x,y,sx,align,fontname,string ...
  ;  align: 0: right 1: center 2: left
  ;  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.
  ;       $p  = draw play symbol, if mplayer is playing movie and font
  ;              contain playing symbol. ( char p )
  ;       $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 = 25, 26, 50, 0,font1, "$t: "
  dlabel = 60, 26, 280, 0, font1, "$o"
  ;  dlabel = 15, 26, 290, 0, font1, "k[ZYWV]*Szánto#Lajos"
  dlabel = 283, 41,  62, 0, symbols, "$1"
  dlabel = 270, 41,   9, 0, symbols, "$p"
  dlabel = 270, 41,   9, 0, symbols, "$s"
  dlabel = 270, 41,   9, 0, symbols, "$e"
  dlabel = 293, 60,  62, 0,   font3, "$6"
  dlabel = 150, 44,  60, 0,   font3, "$xx$y"
  ;  dlabel = 72,  44,  8, 0, font3,   "x"
  ;  dlabel = 80, 44,  25, 0, font3,   "$y"
;  dlabel = 85, 44, 60, 0, font3,   "$C"     ; - modify this line to write CODEC (delete ";" character)-
  ;  dlabel = 70, 42,  92, 1,   font, "volume $v"
  ;  dlabel = 70, 42,  99, 1,   font, "balance $b"
  dlabel = 210, 56,  45, 1, symbols, "$a"
  dlabel =  25, 42,  61, 1, symbols, "$T"
  dlabel =  25, 60, 100, 0,   font3, "volume: $v"
  dlabel = 120, 60, 100, 0,   font3, "balance:$B"


; dlabel= 230,42,80,10,font3," [ :"

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

 end

 window = video

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

 end

 window = menu

  ; base=bitmap
  base = menu

  ; selected=bitmap
  selected = menus

  ; 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

 window = playbar
  base = playbar, -1, -2

  button = playbar_prev,       259, 16, 46, 20, evPrev
  button = playbar_file,       306, 16, 46, 20, evLoad
  button = playbar_stop,       353, 16, 46, 20, evStop
  button = playbar_pause,      400, 16, 46, 20, evPause
  button = playbar_play,       447, 16, 46, 20, evPlay
  button = playbar_next,       494, 16, 46, 20, evNext


  button = playbar_10minback,  18, 14, 23, 20, evBackward10min
  button = playbar_1minback,   34, 14, 23, 20, evBackward1min
  button = playbar_10secback,  51, 14, 23, 20, evBackward10sec
  button = playbar_10secforw,  72, 14, 23, 20, evForward10sec
  button = playbar_1minforw,   90, 14, 23, 20, evForward1min
  button = playbar_10minforw, 108, 14, 23, 20, evForward10min


  button = close,             709, 17, 20, 14, evExit
  button = iconify,           675, 17, 20, 14, evIconify
  button = fullscreen,        692, 17, 20, 14, evFullScreen
  button = volstop,           240, 17, 14, 13, evMute
  

  hpotmeter = volbutton, 16, 16, NULL, 100, 100, 146, 16, 90, 16, evSetVolume
  hpotmeter = moviepoz, 21, 8, NULL, 100, 0, 3, 4, 724, 9, evSetMoviePosition
  dlabel = 584, 16,  9, 0, symbols, "$p"
  dlabel = 584, 16,  9, 0, symbols, "$s"
  dlabel = 584, 16,  9, 0, symbols, "$e"
  dlabel = 597, 19, 62, 0,   font3, "$1"

 end

end
