Foobar2000 Customization

Thảo luận trong 'Desktop Enhancement' bắt đầu bởi -=N.M=-, 14/5/07.

  1. lightdevil

    lightdevil Space Marine Doomguy

    Tham gia ngày:
    11/3/05
    Bài viết:
    5,748
    Nơi ở:
    Under the sun
    2 năm rồi mới update foobar bản mới :">, mà trước cũng chả xài thêm plug-in gì, bạn nào recommend mình mấy cái cần thiết xem :x
     
  2. hamilred

    hamilred Mario & Luigi Lão Làng GVN

    Tham gia ngày:
    29/5/05
    Bài viết:
    720
    thế cái chức năng search in playlist có sẵn của foobar để làm cảnh àh :|, muốn tìm bài nào thì nhấn "Ctrl + F" là xong :|

    dùng bản portable nên ko có cái chức năng ấy đâu :-" - Source

    cơ mà vẫn có cách để add thêm mấy dòng lệnh vào right click menu ;))

    - nhấn Windows + E, chon Tools~> Folder Options..., chuyển qua tab "File Types", bây giờ muốn add thêm lệnh vào file gì thì chọn file ấy, vd: MP3~> nhấn "Advanced"

    -trong cái box edit file type, nhấn New... ~> ở mục Action điền vào: Enqueue in foobar, mục Application used... paste dòng lệnh này vào:
    ~> ok, ok, close~> done!

    cái trò này hơi thủ công, nếu có thời gian thì ngồi làm hẳn 1 cái file .reg gồm đủ media file type rồi add vào registry cũng được , mà chắc mọi người toàn chơi .mp3 thôi nên cũng chỉ cần đến thế :-"
     
  3. Vdean

    Vdean Một vợ một chồng, sừng cao ba thước Lão Làng GVN

    Tham gia ngày:
    16/4/09
    Bài viết:
    1,034
    Nơi ở:
    1 Nơi ven sông Sài Gòn
    ^trùi như thế còn nói gì nữa,tìm trên plane playlist mới khoái chứ...mình ko fix được lổi đó sao mấy bro:(
    .
    ___________Auto Merge________________

    .
    mình muốn nó không đếm số lần bài hát (số nhỏ phía trên bài),thì làm sao bro..:|
     
  4. 333536

    333536 C O N T R A

    Tham gia ngày:
    28/12/05
    Bài viết:
    1,808
    Nơi ở:
    Ho Chi Minh City
    vậy xem lại xem cái artist với title điền đúng k, máy mình test đâu có bị :| < có config gì lung tung k :|
    à mấy file lossless dts thì có cái eneuque in foobar còn file mp3 thì k (giờ mới bik =.=')
    muốn k có cái số nhỏ nhỏ thì bấm vô cái bánh răng, kéo xuống dưới cùng uncheck cái display counter info
     
  5. Vdean

    Vdean Một vợ một chồng, sừng cao ba thước Lão Làng GVN

    Tham gia ngày:
    16/4/09
    Bài viết:
    1,034
    Nơi ở:
    1 Nơi ven sông Sài Gòn
    trùi em bó tay luôn òi,thui dùng cách của bác hamilred cũng Ok,Crl+F:-*
     
  6. 333536

    333536 C O N T R A

    Tham gia ngày:
    28/12/05
    Bài viết:
    1,808
    Nơi ở:
    Ho Chi Minh City
    à à hum wa làm tự nhiên quên save khúc đó, srr =))

    ver 1.0 fix hết lỗi http://www.mediafire.com/?mjtgzw4w3td

    win7 thì cái file type chỗ nào nhẩy, thấy trong control panel có cái file type mà k có advance =.='
    update ver 1.0 http://www.mediafire.com/?mjtgzw4w3td
     
  7. Vdean

    Vdean Một vợ một chồng, sừng cao ba thước Lão Làng GVN

    Tham gia ngày:
    16/4/09
    Bài viết:
    1,034
    Nơi ở:
    1 Nơi ven sông Sài Gòn
    ^ đã test bản mới của bác Forted có các lổi sao
    [​IMG]
    không search được trong trang 3 ở phần artist và album:)
    có 2 panel Artist,mà không có Title:-o
    [​IMG]
    nhấp vào "bánh răng không hiện lên gì cả,ko chỉnh themes được.:P
    ngoài ra bản này rất ok,load nhanh,equalize đẹp...bác fix lại chút
     
  8. 333536

    333536 C O N T R A

    Tham gia ngày:
    28/12/05
    Bài viết:
    1,808
    Nơi ở:
    Ho Chi Minh City
  9. dobjet

    dobjet Youtube Master Race

    Tham gia ngày:
    24/9/07
    Bài viết:
    44
    các bro cho hỏi phần mềm làm lyric and cách sử dụng
     
  10. 333536

    333536 C O N T R A

    Tham gia ngày:
    28/12/05
    Bài viết:
    1,808
    Nơi ở:
    Ho Chi Minh City
    làm bằng notepad đặt đuôi file là lrc, tham khảo mấy file lrc mà fb down về đó
     
  11. Vdean

    Vdean Một vợ một chồng, sừng cao ba thước Lão Làng GVN

    Tham gia ngày:
    16/4/09
    Bài viết:
    1,034
    Nơi ở:
    1 Nơi ven sông Sài Gòn
    [​IMG]
    em khôgn muốn có mấy số nhỏ phía trên bài hát(đếm số lần hát) nữa thì làm sao:(
     
  12. Vdean

    Vdean Một vợ một chồng, sừng cao ba thước Lão Làng GVN

    Tham gia ngày:
    16/4/09
    Bài viết:
    1,034
    Nơi ở:
    1 Nơi ven sông Sài Gòn
    ^ bác forted ơi,nhìn lại đi vẩn là "artist-track" kìa chưa có đổi...
     
  13. 333536

    333536 C O N T R A

    Tham gia ngày:
    28/12/05
    Bài viết:
    1,808
    Nơi ở:
    Ho Chi Minh City
    cái đếm số bài hát đã nói 1 lần rồi mà, kéo lên trên mà xem hoặc về trang trước mà xem
    còn cái vụ artis - title tối mình sửa lại
    edit: ver 1.2 http://www.mediafire.com/?uymmjzzrdii
     
  14. CatAngel

    CatAngel Fire in the hole!

    Tham gia ngày:
    20/6/09
    Bài viết:
    2,671
    Nơi ở:
    Đà Nẵng
    Trong vòng 20 trang hình như chưa có ai nhắc đến vấn đê đếm số lần bài hát :-?
     
  15. david_ngoclan

    david_ngoclan Youtube Master Race

    Tham gia ngày:
    28/12/06
    Bài viết:
    68
    Nơi ở:
    ha noi
    mình down bản này về dùng thấy bị lệch font chữ cái dòng editor ấy . bản cũ mình dùng font của win là tahoma cỡ chữ là 8 . bản này dùng thế vẫn bị lệch . Các cái font của bạn cũng cop hết vô máy rồi chỉnh theo font ấy cũng bị lệch luôn :( thay các cỡ chữ rồi mà hok ăn thua . Ức quá nên post lên đây hỏi cho nhanh :D
     
  16. CatAngel

    CatAngel Fire in the hole!

    Tham gia ngày:
    20/6/09
    Bài viết:
    2,671
    Nơi ở:
    Đà Nẵng
    ^ nhắc đến lệch mới nhớ :|
    Font win7 là Segeo UI cơ mà sao mình chỉnh hoài trong Foobar mà vẫn bị lệch chữ Library trở đi nhỉ @-)
     
  17. 333536

    333536 C O N T R A

    Tham gia ngày:
    28/12/05
    Bài viết:
    1,808
    Nơi ở:
    Ho Chi Minh City
    cỡ chữ là 9, chắc do lúc trc' ông chỉnh theo ông kia trong cái dòng menu ở cái scrip ấy
    paste lại cái này xem
    PHP:
    [QUOTE]$puts(cf_name,'xchange')
    $puts(foo_path,%ps_foobar2000_path%)
    $puts(z1,$get(foo_path)'/skins/'$get(cf_name)'/')
    $puts(z2,$get(z1)'/bt/')

    $puts(x0,$get(z2)'nbt_swap0.png')
    $puts(x1,$get(z2)'nbt_swap2.png')
    $puts(x2,$get(z2)'nbt_swap2.png')
    $puts(x3,$get(z2)'nbt_swap3.png')

    $puts(xx0,$get(z2)'x0.png')
    $puts(xx1,$get(z2)'x2.png')
    $puts(xx2,$get(z2)'x2.png')
    $puts(xx3,$get(z2)'x3.png')

    // panels title
    $puts(E01.caption,'dÖb')
    $puts(E02.caption,Expl.)
    $puts(E03.caption,o|-<)
    $puts(E04.caption,lyrics)
    $puts(E05.caption,.:.:.)
    $puts(E06.caption,'<|>')
    $puts(E07.caption,Img.)
    $puts(E08.caption,{ })
    $puts(E09.caption,'][][')
    $puts(E10.caption,|\||)
    $puts(E11.caption,Y Y Y)
    $puts(E12.caption,'1.2..')
    $puts(E13.caption,GBR)
    $puts(E14.caption,GBR)

    // fake button to fix PSS bug
    $imagebutton(0,0,1,1,,,REFRESH,)

    // Globals variables used only here

    $init_ps_global(x-P01,0,0)
    $init_ps_global(x-P02,0,0)
    $init_ps_global(x-P03,0,0)
    $init_ps_global(x-P04,0,0)
    $init_ps_global(x-P05,0,0)
    $init_ps_global(x-P06,0,0)
    $init_ps_global(x-P07,0,0)
    $init_ps_global(x-P08,0,0)
    $init_ps_global(x-P09,0,0)
    $init_ps_global(x-P10,0,0)
    $init_ps_global(x-P11,0,0)
    $init_ps_global(x-P12,0,0)

    $set_ps_global(nbv,$add(%x-sbox1%,%x-sbox2%,%x-sbox3%))
    $set_ps_global(x,4)

    $set_ps_global(cl0,080-110-220-110)
    $set_ps_global(cl1,080-250-080-110)
    $set_ps_global(cl2,250-080-080-110)
    $set_ps_global(stop.c,255-100-100-000)

    // Variables

    $set_ps_global(bool.play,$ifequal(%bool.play%,1,0,1))
    $puts(cmd01,PANELSHOW:E01:0;PANELSHOW:E02:0;PANELSHOW:E03:0;PANELSHOW:E04:0;PANELSHOW:E05:0;PANELSHOW:E06:0;PANELSHOW:E07:0;PANELSHOW:E08:0;PANELSHOW:E09:0;PANELSHOW:E10:0;PANELSHOW:E11:0;PANELSHOW:E12:0;PANELSHOW:E13:0;PANELSHOW:E14:0;REFRESH)
    $puts(cmd02,PANELSHOW:Menu:0)

    $puts(gb.pw,$mul($get_ps_global(gb$get_ps_global(gb).w),%gb.nbc%))

    // padding

    $puts(smg.s,5)
    $puts(smg.2s,10)
    $puts(sv.y,1)
    $puts(dk.w,46)
    $puts(dk.h,21)

    $puts(max.w,$add(5,$mul($add($get(dk.w),2),$sub($ifgreater(%gb%,0,12,13),%nbv%))))
    $ifgreater($get(max.w),$sub(%_width%,003),
        
    $set_ps_global(dock.rows,2)
    ,
        
    $set_ps_global(dock.rows,1)
    )
    $puts(available.w,$sub(%_width%,$add(003,$ifgreater(%gb%,0,0,$add($get(dk.w),2)))))

    $puts(tmg.s,29)
    $select(%dock.rows%,
        
    $puts(bmg.s,25)
        
    $puts(dk.y,$sub(%_height%,24))
    ,
        
    $puts(bmg.s,47)
        
    $puts(dk.y,$sub(%_height%,47))
    )

    // ...1 = padding of the inner rect && ...2 = padding of the inner panel
    $puts(hl1,4)
    $puts(hr1,4)
    $puts(vt1,19)
    $puts(vb1,5)

    $puts(hl2,6)
    $puts(hr2,5)
    $puts(vt2,20)
    $puts(vb2,5)

    $puts(gb.vt1,$add($get(vt1),1))
    $puts(gb.vb1,$add($get(vb1),1))
    $puts(gb.vt2,$add($get(vt2),1))
    $puts(gb.vb2,$add($get(vb2),1))
    $puts(gb.hl1,$add($get(hl1),2))
    $puts(gb.hr1,$add($get(hr1),3))
    $puts(gb.hl2,$add($get(hl2),1))
    $puts(gb.hr2,$add($get(hr2),1))

    $puts(xchg,0)
    $puts(xchg,$strchr(%x-P01%%x-P02%%x-P03%%x-P04%%x-P05%%x-P06%%x-P07%%x-P08%%x-P09%%x-P10%%x-P11%%x-P12%,1))
    $ifgreater(10,$get(xchg),$puts(xchg,0$get(xchg)),)

    // if panel selected, resize of all the visible panels in order to have a clean refresh on exchange!
    $ifequal($get(xchg),0,,$puts(vb2,$sub($get(vb2),1))$puts(hr2,$sub($get(hr2),1))$puts(vb1,$sub($get(vb1),1))$puts(hr1,$sub($get(hr1),1)))
    $ifequal(%editor%,0,,$puts(vb2,$sub($get(vb2),1))$puts(vb1,$sub($get(vb1),1)))
    $ifequal(%settings%,0,,$puts(vb2,$sub($get(vb2),1))$puts(vb1,$sub($get(vb1),1)))

    // =====
    // Menu
    // =====
    $ifequal(%Zoom%,0,
        
    $puts(dd,15)
        
    $puts(m.w0,18)
        
    $puts(m.w1,$add($gettextwidth('File'),$get(dd)))
        
    $puts(m.w2,$add($gettextwidth('Edit'),$get(dd)))
        
    $puts(m.w3,$add($gettextwidth('View'),$get(dd)))
        
    $puts(m.w4,$add($gettextwidth('Playback'),$get(dd)))
        
    $puts(m.w5,$add($gettextwidth('Library'),$get(dd)))
        
    $puts(m.w6,$add($gettextwidth('Help'),$get(dd)))
        
    $puts(m.w7,46)
        
    $puts(m.x0,06)
        
    $puts(m.x1,25)
        
    $puts(m.x2,$add($get(m.x1),$get(m.w1),1))
        
    $puts(m.x3,$add($get(m.x2),$get(m.w2),1))
        
    $puts(m.x4,$add($get(m.x3),$get(m.w3),1))
        
    $puts(m.x5,$add($get(m.x4),$get(m.w4),1))
        
    $puts(m.x6,$add($get(m.x5),$get(m.w5),1))
        
    $puts(m.x7,$add($get(m.x6),$get(m.w6),1))

        
    $select(%menu%,
        
    $puts(m.x7,25)
        
    $drawblurrect($add($get(m.x0),2),7,$get(m.w0),18,0-0-0-080,1)
        
    $drawblurrect($add($get(m.x7),2),7,$get(m.w7),18,0-0-0-080,1)
        
    $drawroundrect($get(m.x0),5,$get(m.w0),18,3,3,255-255-255-120,0-0-0-100,)
        
    $drawroundrect($get(m.x7),5,$get(m.w7),18,3,3,$ifequal(%editor%,1,255-100-050-245,255-255-255-120),$ifequal(%editor%,1,30-50-150-100,0-0-0-100),)
        
    $drawroundrect($add($get(m.x0),1),14,$sub($get(m.w0),2),9,2,2,255-255-255-120,,)
        
    $drawroundrect($add($get(m.x7),1),14,$sub($get(m.w7),2),9,4,2,255-255-255-120,,)
        
    $textbutton(6,5,19,19,'M','M',SETGLOBAL:menu:2;PANELSHOW:Menu:1;REFRESH)
        
    $textbutton(25,5,47,19,'Editor','Editor',SETGLOBAL:editor:$ifequal(%editor%,0,1,0);REFRESH)
        ,
        
    $drawblurrect($add($get(m.x0),2),7,$get(m.w0),18,0-0-0-080,1)
        
    $drawblurrect($add($get(m.x1),2),7,$get(m.w1),18,0-0-0-080,1)
        
    $drawblurrect($add($get(m.x2),2),7,$get(m.w2),18,0-0-0-080,1)
        
    $drawblurrect($add($get(m.x3),2),7,$get(m.w3),18,0-0-0-080,1)
        
    $drawblurrect($add($get(m.x4),2),7,$get(m.w4),18,0-0-0-080,1)
        
    $drawblurrect($add($get(m.x5),2),7,$get(m.w5),18,0-0-0-080,1)
        
    $drawblurrect($add($get(m.x6),2),7,$get(m.w6),18,0-0-0-080,1)
        
    $drawblurrect($add($get(m.x7),2),7,$get(m.w7),18,0-0-0-080,1)
        
    $drawroundrect($get(m.x0),5,$get(m.w0),18,3,3,255-255-255-120,0-0-0-100,)
        
    $drawroundrect($get(m.x1),5,$get(m.w1),18,3,3,255-255-255-120,0-0-0-100,)
        
    $drawroundrect($get(m.x2),5,$get(m.w2),18,3,3,255-255-255-120,0-0-0-100,)
        
    $drawroundrect($get(m.x3),5,$get(m.w3),18,3,3,255-255-255-120,0-0-0-100,)
        
    $drawroundrect($get(m.x4),5,$get(m.w4),18,3,3,255-255-255-120,0-0-0-100,)
        
    $drawroundrect($get(m.x5),5,$get(m.w5),18,3,3,255-255-255-120,0-0-0-100,)
        
    $drawroundrect($get(m.x6),5,$get(m.w6),18,3,3,255-255-255-120,0-0-0-100,)
        
    $drawroundrect($get(m.x7),5,$get(m.w7),18,3,3,$ifequal(%editor%,1,255-100-050-245,255-255-255-120),$ifequal(%editor%,1,30-50-150-100,0-0-0-100),)
        
    $drawroundrect($add($get(m.x0),1),14,$sub($get(m.w0),2),9,2,2,255-255-255-120,,)
        
    $drawroundrect($add($get(m.x1),1),14,$sub($get(m.w1),2),9,4,2,255-255-255-120,,)
        
    $drawroundrect($add($get(m.x2),1),14,$sub($get(m.w2),2),9,4,2,255-255-255-120,,)
        
    $drawroundrect($add($get(m.x3),1),14,$sub($get(m.w3),2),9,4,2,255-255-255-120,,)
        
    $drawroundrect($add($get(m.x4),1),14,$sub($get(m.w4),2),9,4,2,255-255-255-120,,)
        
    $drawroundrect($add($get(m.x5),1),14,$sub($get(m.w5),2),9,4,2,255-255-255-120,,)
        
    $drawroundrect($add($get(m.x6),1),14,$sub($get(m.w6),2),9,4,2,255-255-255-120,,)
        
    $drawroundrect($add($get(m.x7),1),14,$sub($get(m.w7),2),9,4,2,255-255-255-120,,)
        
    $movepanel_c(Menu,25,4,$add(-24,$get(m.x6),$get(m.w6),%bool.play%),20)
        
    $textbutton($get(m.x0),5,19,19,'X','X',SETGLOBAL:menu:1;PANELSHOW:Menu:0;REFRESH)
        
    $textbutton($add($get(m.x6),$get(m.w6),1),5,47,19,'Editor','Editor',SETGLOBAL:editor:$ifequal(%editor%,0,1,0);REFRESH)
        )
    ,)

    // ===========
    //  layouts 
    // ===========

    $ifequal(%Zoom%,0,

    $puts(w.x,$get(smg.s))
    $puts(w.y,$get(tmg.s))

    $puts(w.w,$sub(%_width%,$get(smg.s),$mul($ifgreater(%gb%,0,1,0),$add($get(gb.pw),20))))
    $puts(w.h,$sub(%_height%,$get(tmg.s),$get(bmg.s)))

    $set_ps_global(x-mbox,$add($ifequal(%x-sbox1%,0,0,1),$ifequal(%x-sbox2%,0,0,1),$ifequal(%x-sbox3%,0,0,1)))
    $ifequal(%x-sbox1%,0,
        
    $ifequal(%x-sbox2%,0,$set_ps_global(x-sbox1,%x-sbox3%)$set_ps_global(x-sbox3,0),$set_ps_global(x-sbox1,%x-sbox2%)$set_ps_global(x-sbox2,%x-sbox3%)$set_ps_global(x-sbox3,0))
    ,
        
    $ifequal(%x-sbox2%,0,
            
    $set_ps_global(x-sbox2,%x-sbox3%)$set_ps_global(x-sbox3,0)
        ,)
    )

    // ~~~~~~~~~
    // visible panels dims
    // ~~~~~~~~~

    $select(%x-format%,
        
    $puts(mbox.w1,$div($get(w.w),%x-sbox1%))
        
    $puts(mbox.w2,$div($get(w.w),%x-sbox2%))
        
    $puts(mbox.w3,$div($get(w.w),%x-sbox3%))
        
    $puts(mbox.h,$div($get(w.h),%x-mbox%))
    ,
        
    $puts(mbox.w1,$div($get(w.h),%x-sbox1%))
        
    $puts(mbox.w2,$div($get(w.h),%x-sbox2%))
        
    $puts(mbox.w3,$div($get(w.h),%x-sbox3%))
        
    $puts(mbox.h,$div($get(w.w),%x-mbox%))
    )

    // init of variables used to test if panels already too small (to forbid +/- buttons in the mb)
    $set_ps_global(mb1.stop,0)
    $set_ps_global(mb2.stop,0)
    $set_ps_global(mb3.stop,0)
    $set_ps_global(mb.stop,0)

    // -----------------------------------------------
    // Let's now calculate pos & dims of the 12 panels
    // -----------------------------------------------

    $puts(p,01)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $set_ps_global(pmbsb,mb$get_ps_global(P$get(p).mb).sb$add($get_ps_global(P$get(p).sb),1).w)
    $set_ps_global(pmbsb1,mb$get_ps_global(P$get(p).mb).sb1.w)
    $set_ps_global(pmbsb2,mb$get_ps_global(P$get(p).mb).sb2.w)
    $set_ps_global(pmbsb3,mb$get_ps_global(P$get(p).mb).sb3.w)
    $set_ps_global(pmb,mb$get_ps_global(P$get(p).mb).h)
    $set_ps_global(pmb1,mb1.h)
    $set_ps_global(pmb2,mb2.h)
    $set_ps_global(pmb3,mb3.h)
    // apply % deltas
    $set_ps_global(x$get_ps_global(pmbsb),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb%)),100))
    $set_ps_global(x$get_ps_global(pmbsb1),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb1%)),100))
    $set_ps_global(x$get_ps_global(pmbsb2),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb2%)),100))
    $set_ps_global(x$get_ps_global(pmbsb3),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb3%)),100))
    $set_ps_global(x$get_ps_global(pmb),$div($mul($get(mbox.h),$get_ps_global(%pmb%)),100))
    $set_ps_global(x$get_ps_global(pmb1),$div($mul($get(mbox.h),$get_ps_global(%pmb1%)),100))
    $set_ps_global(x$get_ps_global(pmb2),$div($mul($get(mbox.h),$get_ps_global(%pmb2%)),100))
    $set_ps_global(x$get_ps_global(pmb3),$div($mul($get(mbox.h),$get_ps_global(%pmb3%)),100))

    $select(%x-format%,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).w,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,) 
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).h,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )
    // if panel too small, flag=1 to reset of the % deltas to 0 the next click on the + button
    $ifequal($get_ps_global(mb$get_ps_global(P$get(p).mb).stop),0,
        
    $select(%x-format%,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        ,
            
    $ifgreater($div($mul($get(w.h),10),100),$get(p$get(p).h),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        )
    ,)
    $ifequal($get_ps_global(mb.stop),0,
        
    $select(%x-format%,
            
    $ifgreater($div($mul($get(w.h),20),100),$get(p$get(p).h),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        ,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        )
    ,)

    $puts(p,02)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $set_ps_global(pmbsb,mb$get_ps_global(P$get(p).mb).sb$add($get_ps_global(P$get(p).sb),1).w)
    $set_ps_global(pmbsb1,mb$get_ps_global(P$get(p).mb).sb1.w)
    $set_ps_global(pmbsb2,mb$get_ps_global(P$get(p).mb).sb2.w)
    $set_ps_global(pmbsb3,mb$get_ps_global(P$get(p).mb).sb3.w)
    $set_ps_global(pmb,mb$get_ps_global(P$get(p).mb).h)
    $set_ps_global(pmb1,mb1.h)
    $set_ps_global(pmb2,mb2.h)
    $set_ps_global(pmb3,mb3.h)
    // apply % deltas
    $set_ps_global(x$get_ps_global(pmbsb),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb%)),100))
    $set_ps_global(x$get_ps_global(pmbsb1),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb1%)),100))
    $set_ps_global(x$get_ps_global(pmbsb2),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb2%)),100))
    $set_ps_global(x$get_ps_global(pmbsb3),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb3%)),100))
    $set_ps_global(x$get_ps_global(pmb),$div($mul($get(mbox.h),$get_ps_global(%pmb%)),100))
    $set_ps_global(x$get_ps_global(pmb1),$div($mul($get(mbox.h),$get_ps_global(%pmb1%)),100))
    $set_ps_global(x$get_ps_global(pmb2),$div($mul($get(mbox.h),$get_ps_global(%pmb2%)),100))
    $set_ps_global(x$get_ps_global(pmb3),$div($mul($get(mbox.h),$get_ps_global(%pmb3%)),100))

    $select(%x-format%,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).w,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).h,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )
    // if panel too small, flag=1 to reset of the % deltas to 0 the next click on the + button
    $ifequal($get_ps_global(mb$get_ps_global(P$get(p).mb).stop),0,
        
    $select(%x-format%,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        ,
            
    $ifgreater($div($mul($get(w.h),10),100),$get(p$get(p).h),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        )
    ,)
    $ifequal($get_ps_global(mb.stop),0,
        
    $select(%x-format%,
            
    $ifgreater($div($mul($get(w.h),20),100),$get(p$get(p).h),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        ,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        )
    ,)

    $puts(p,03)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $set_ps_global(pmbsb,mb$get_ps_global(P$get(p).mb).sb$add($get_ps_global(P$get(p).sb),1).w)
    $set_ps_global(pmbsb1,mb$get_ps_global(P$get(p).mb).sb1.w)
    $set_ps_global(pmbsb2,mb$get_ps_global(P$get(p).mb).sb2.w)
    $set_ps_global(pmbsb3,mb$get_ps_global(P$get(p).mb).sb3.w)
    $set_ps_global(pmb,mb$get_ps_global(P$get(p).mb).h)
    $set_ps_global(pmb1,mb1.h)
    $set_ps_global(pmb2,mb2.h)
    $set_ps_global(pmb3,mb3.h)
    // apply % deltas
    $set_ps_global(x$get_ps_global(pmbsb),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb%)),100))
    $set_ps_global(x$get_ps_global(pmbsb1),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb1%)),100))
    $set_ps_global(x$get_ps_global(pmbsb2),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb2%)),100))
    $set_ps_global(x$get_ps_global(pmbsb3),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb3%)),100))
    $set_ps_global(x$get_ps_global(pmb),$div($mul($get(mbox.h),$get_ps_global(%pmb%)),100))
    $set_ps_global(x$get_ps_global(pmb1),$div($mul($get(mbox.h),$get_ps_global(%pmb1%)),100))
    $set_ps_global(x$get_ps_global(pmb2),$div($mul($get(mbox.h),$get_ps_global(%pmb2%)),100))
    $set_ps_global(x$get_ps_global(pmb3),$div($mul($get(mbox.h),$get_ps_global(%pmb3%)),100))

    $select(%x-format%,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).w,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).h,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )
    // if panel too small, flag=1 to reset of the % deltas to 0 the next click on the + button
    $ifequal($get_ps_global(mb$get_ps_global(P$get(p).mb).stop),0,
        
    $select(%x-format%,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        ,
            
    $ifgreater($div($mul($get(w.h),10),100),$get(p$get(p).h),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        )
    ,)
    $ifequal($get_ps_global(mb.stop),0,
        
    $select(%x-format%,
            
    $ifgreater($div($mul($get(w.h),20),100),$get(p$get(p).h),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        ,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        )
    ,)

    $puts(p,04)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $set_ps_global(pmbsb,mb$get_ps_global(P$get(p).mb).sb$add($get_ps_global(P$get(p).sb),1).w)
    $set_ps_global(pmbsb1,mb$get_ps_global(P$get(p).mb).sb1.w)
    $set_ps_global(pmbsb2,mb$get_ps_global(P$get(p).mb).sb2.w)
    $set_ps_global(pmbsb3,mb$get_ps_global(P$get(p).mb).sb3.w)
    $set_ps_global(pmb,mb$get_ps_global(P$get(p).mb).h)
    $set_ps_global(pmb1,mb1.h)
    $set_ps_global(pmb2,mb2.h)
    $set_ps_global(pmb3,mb3.h)
    // apply % deltas
    $set_ps_global(x$get_ps_global(pmbsb),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb%)),100))
    $set_ps_global(x$get_ps_global(pmbsb1),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb1%)),100))
    $set_ps_global(x$get_ps_global(pmbsb2),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb2%)),100))
    $set_ps_global(x$get_ps_global(pmbsb3),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb3%)),100))
    $set_ps_global(x$get_ps_global(pmb),$div($mul($get(mbox.h),$get_ps_global(%pmb%)),100))
    $set_ps_global(x$get_ps_global(pmb1),$div($mul($get(mbox.h),$get_ps_global(%pmb1%)),100))
    $set_ps_global(x$get_ps_global(pmb2),$div($mul($get(mbox.h),$get_ps_global(%pmb2%)),100))
    $set_ps_global(x$get_ps_global(pmb3),$div($mul($get(mbox.h),$get_ps_global(%pmb3%)),100))

    $select(%x-format%,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).w,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).h,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )
    // if panel too small, flag=1 to reset of the % deltas to 0 the next click on the + button
    $ifequal($get_ps_global(mb$get_ps_global(P$get(p).mb).stop),0,
        
    $select(%x-format%,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        ,
            
    $ifgreater($div($mul($get(w.h),10),100),$get(p$get(p).h),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        )
    ,)
    $ifequal($get_ps_global(mb.stop),0,
        
    $select(%x-format%,
            
    $ifgreater($div($mul($get(w.h),20),100),$get(p$get(p).h),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        ,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        )
    ,)

    $puts(p,05)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $set_ps_global(pmbsb,mb$get_ps_global(P$get(p).mb).sb$add($get_ps_global(P$get(p).sb),1).w)
    $set_ps_global(pmbsb1,mb$get_ps_global(P$get(p).mb).sb1.w)
    $set_ps_global(pmbsb2,mb$get_ps_global(P$get(p).mb).sb2.w)
    $set_ps_global(pmbsb3,mb$get_ps_global(P$get(p).mb).sb3.w)
    $set_ps_global(pmb,mb$get_ps_global(P$get(p).mb).h)
    $set_ps_global(pmb1,mb1.h)
    $set_ps_global(pmb2,mb2.h)
    $set_ps_global(pmb3,mb3.h)
    // apply % deltas
    $set_ps_global(x$get_ps_global(pmbsb),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb%)),100))
    $set_ps_global(x$get_ps_global(pmbsb1),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb1%)),100))
    $set_ps_global(x$get_ps_global(pmbsb2),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb2%)),100))
    $set_ps_global(x$get_ps_global(pmbsb3),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb3%)),100))
    $set_ps_global(x$get_ps_global(pmb),$div($mul($get(mbox.h),$get_ps_global(%pmb%)),100))
    $set_ps_global(x$get_ps_global(pmb1),$div($mul($get(mbox.h),$get_ps_global(%pmb1%)),100))
    $set_ps_global(x$get_ps_global(pmb2),$div($mul($get(mbox.h),$get_ps_global(%pmb2%)),100))
    $set_ps_global(x$get_ps_global(pmb3),$div($mul($get(mbox.h),$get_ps_global(%pmb3%)),100))

    $select(%x-format%,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).w,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).h,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )
    // if panel too small, flag=1 to reset of the % deltas to 0 the next click on the + button
    $ifequal($get_ps_global(mb$get_ps_global(P$get(p).mb).stop),0,
        
    $select(%x-format%,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        ,
            
    $ifgreater($div($mul($get(w.h),10),100),$get(p$get(p).h),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        )
    ,)
    $ifequal($get_ps_global(mb.stop),0,
        
    $select(%x-format%,
            
    $ifgreater($div($mul($get(w.h),20),100),$get(p$get(p).h),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        ,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        )
    ,)

    $puts(p,06)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $set_ps_global(pmbsb,mb$get_ps_global(P$get(p).mb).sb$add($get_ps_global(P$get(p).sb),1).w)
    $set_ps_global(pmbsb1,mb$get_ps_global(P$get(p).mb).sb1.w)
    $set_ps_global(pmbsb2,mb$get_ps_global(P$get(p).mb).sb2.w)
    $set_ps_global(pmbsb3,mb$get_ps_global(P$get(p).mb).sb3.w)
    $set_ps_global(pmb,mb$get_ps_global(P$get(p).mb).h)
    $set_ps_global(pmb1,mb1.h)
    $set_ps_global(pmb2,mb2.h)
    $set_ps_global(pmb3,mb3.h)
    // apply % deltas
    $set_ps_global(x$get_ps_global(pmbsb),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb%)),100))
    $set_ps_global(x$get_ps_global(pmbsb1),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb1%)),100))
    $set_ps_global(x$get_ps_global(pmbsb2),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb2%)),100))
    $set_ps_global(x$get_ps_global(pmbsb3),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb3%)),100))
    $set_ps_global(x$get_ps_global(pmb),$div($mul($get(mbox.h),$get_ps_global(%pmb%)),100))
    $set_ps_global(x$get_ps_global(pmb1),$div($mul($get(mbox.h),$get_ps_global(%pmb1%)),100))
    $set_ps_global(x$get_ps_global(pmb2),$div($mul($get(mbox.h),$get_ps_global(%pmb2%)),100))
    $set_ps_global(x$get_ps_global(pmb3),$div($mul($get(mbox.h),$get_ps_global(%pmb3%)),100))

    $select(%x-format%,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).w,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).h,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )
    // if panel too small, flag=1 to reset of the % deltas to 0 the next click on the + button
    $ifequal($get_ps_global(mb$get_ps_global(P$get(p).mb).stop),0,
        
    $select(%x-format%,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        ,
            
    $ifgreater($div($mul($get(w.h),10),100),$get(p$get(p).h),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        )
    ,)
    $ifequal($get_ps_global(mb.stop),0,
        
    $select(%x-format%,
            
    $ifgreater($div($mul($get(w.h),20),100),$get(p$get(p).h),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        ,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        )
    ,)

    $puts(p,07)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $set_ps_global(pmbsb,mb$get_ps_global(P$get(p).mb).sb$add($get_ps_global(P$get(p).sb),1).w)
    $set_ps_global(pmbsb1,mb$get_ps_global(P$get(p).mb).sb1.w)
    $set_ps_global(pmbsb2,mb$get_ps_global(P$get(p).mb).sb2.w)
    $set_ps_global(pmbsb3,mb$get_ps_global(P$get(p).mb).sb3.w)
    $set_ps_global(pmb,mb$get_ps_global(P$get(p).mb).h)
    $set_ps_global(pmb1,mb1.h)
    $set_ps_global(pmb2,mb2.h)
    $set_ps_global(pmb3,mb3.h)
    // apply % deltas
    $set_ps_global(x$get_ps_global(pmbsb),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb%)),100))
    $set_ps_global(x$get_ps_global(pmbsb1),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb1%)),100))
    $set_ps_global(x$get_ps_global(pmbsb2),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb2%)),100))
    $set_ps_global(x$get_ps_global(pmbsb3),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb3%)),100))
    $set_ps_global(x$get_ps_global(pmb),$div($mul($get(mbox.h),$get_ps_global(%pmb%)),100))
    $set_ps_global(x$get_ps_global(pmb1),$div($mul($get(mbox.h),$get_ps_global(%pmb1%)),100))
    $set_ps_global(x$get_ps_global(pmb2),$div($mul($get(mbox.h),$get_ps_global(%pmb2%)),100))
    $set_ps_global(x$get_ps_global(pmb3),$div($mul($get(mbox.h),$get_ps_global(%pmb3%)),100))

    $select(%x-format%,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).w,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).h,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )
    // if panel too small, flag=1 to reset of the % deltas to 0 the next click on the + button
    $ifequal($get_ps_global(mb$get_ps_global(P$get(p).mb).stop),0,
        
    $select(%x-format%,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        ,
            
    $ifgreater($div($mul($get(w.h),10),100),$get(p$get(p).h),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        )
    ,)
    $ifequal($get_ps_global(mb.stop),0,
        
    $select(%x-format%,
            
    $ifgreater($div($mul($get(w.h),20),100),$get(p$get(p).h),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        ,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        )
    ,)

    $puts(p,08)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $set_ps_global(pmbsb,mb$get_ps_global(P$get(p).mb).sb$add($get_ps_global(P$get(p).sb),1).w)
    $set_ps_global(pmbsb1,mb$get_ps_global(P$get(p).mb).sb1.w)
    $set_ps_global(pmbsb2,mb$get_ps_global(P$get(p).mb).sb2.w)
    $set_ps_global(pmbsb3,mb$get_ps_global(P$get(p).mb).sb3.w)
    $set_ps_global(pmb,mb$get_ps_global(P$get(p).mb).h)
    $set_ps_global(pmb1,mb1.h)
    $set_ps_global(pmb2,mb2.h)
    $set_ps_global(pmb3,mb3.h)
    // apply % deltas
    $set_ps_global(x$get_ps_global(pmbsb),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb%)),100))
    $set_ps_global(x$get_ps_global(pmbsb1),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb1%)),100))
    $set_ps_global(x$get_ps_global(pmbsb2),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb2%)),100))
    $set_ps_global(x$get_ps_global(pmbsb3),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb3%)),100))
    $set_ps_global(x$get_ps_global(pmb),$div($mul($get(mbox.h),$get_ps_global(%pmb%)),100))
    $set_ps_global(x$get_ps_global(pmb1),$div($mul($get(mbox.h),$get_ps_global(%pmb1%)),100))
    $set_ps_global(x$get_ps_global(pmb2),$div($mul($get(mbox.h),$get_ps_global(%pmb2%)),100))
    $set_ps_global(x$get_ps_global(pmb3),$div($mul($get(mbox.h),$get_ps_global(%pmb3%)),100))

    $select(%x-format%,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).w,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).h,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )
    // if panel too small, flag=1 to reset of the % deltas to 0 the next click on the + button
    $ifequal($get_ps_global(mb$get_ps_global(P$get(p).mb).stop),0,
        
    $select(%x-format%,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        ,
            
    $ifgreater($div($mul($get(w.h),10),100),$get(p$get(p).h),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        )
    ,)
    $ifequal($get_ps_global(mb.stop),0,
        
    $select(%x-format%,
            
    $ifgreater($div($mul($get(w.h),20),100),$get(p$get(p).h),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        ,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        )
    ,)

    $puts(p,09)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $set_ps_global(pmbsb,mb$get_ps_global(P$get(p).mb).sb$add($get_ps_global(P$get(p).sb),1).w)
    $set_ps_global(pmbsb1,mb$get_ps_global(P$get(p).mb).sb1.w)
    $set_ps_global(pmbsb2,mb$get_ps_global(P$get(p).mb).sb2.w)
    $set_ps_global(pmbsb3,mb$get_ps_global(P$get(p).mb).sb3.w)
    $set_ps_global(pmb,mb$get_ps_global(P$get(p).mb).h)
    $set_ps_global(pmb1,mb1.h)
    $set_ps_global(pmb2,mb2.h)
    $set_ps_global(pmb3,mb3.h)
    // apply % deltas
    $set_ps_global(x$get_ps_global(pmbsb),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb%)),100))
    $set_ps_global(x$get_ps_global(pmbsb1),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb1%)),100))
    $set_ps_global(x$get_ps_global(pmbsb2),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb2%)),100))
    $set_ps_global(x$get_ps_global(pmbsb3),$div($mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(%pmbsb3%)),100))
    $set_ps_global(x$get_ps_global(pmb),$div($mul($get(mbox.h),$get_ps_global(%pmb%)),100))
    $set_ps_global(x$get_ps_global(pmb1),$div($mul($get(mbox.h),$get_ps_global(%pmb1%)),100))
    $set_ps_global(x$get_ps_global(pmb2),$div($mul($get(mbox.h),$get_ps_global(%pmb2%)),100))
    $set_ps_global(x$get_ps_global(pmb3),$div($mul($get(mbox.h),$get_ps_global(%pmb3%)),100))

    $select(%x-format%,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).w,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $select($add($get_ps_global(P$get(p).sb),1),
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%)))
        ,
            
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb)),$get_ps_global(x%pmbsb1%),$get_ps_global(x%pmbsb2%)))
        )
        
    $select($get_ps_global(P$get(p).mb),
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%)))
        ,
            
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h)),$get_ps_global(x%pmb1%),$get_ps_global(x%pmb2%)))
        )
        
    $puts(p$get(p).h,$sub($add($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(x%pmbsb%)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($add($get(mbox.h),$get_ps_global(x%pmb%)),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )
    // if panel too small, flag=1 to reset of the % deltas to 0 the next click on the + button
    $ifequal($get_ps_global(mb$get_ps_global(P$get(p).mb).stop),0,
        
    $select(%x-format%,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        ,
            
    $ifgreater($div($mul($get(w.h),10),100),$get(p$get(p).h),
                
    $set_ps_global(mb$get_ps_global(P$get(p).mb).stop,$get(p))
            ,)
        )
    ,)
    $ifequal($get_ps_global(mb.stop),0,
        
    $select(%x-format%,
            
    $ifgreater($div($mul($get(w.h),20),100),$get(p$get(p).h),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        ,
            
    $ifgreater(205,$get(p$get(p).w),
                
    $set_ps_global(mb.stop,$get(p))
            ,)
        )
    ,)

    $puts(p,10)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $select(%x-format%,
        
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        
    $puts(p$get(p).w,$sub($get(mbox.w$get_ps_global(P$get(p).mb)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($get(mbox.h),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        
    $puts(p$get(p).h,$sub($get(mbox.w$get_ps_global(P$get(p).mb)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($get(mbox.h),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )

    $puts(p,11)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $select(%x-format%,
        
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        
    $puts(p$get(p).w,$sub($get(mbox.w$get_ps_global(P$get(p).mb)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($get(mbox.h),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        
    $puts(p$get(p).h,$sub($get(mbox.w$get_ps_global(P$get(p).mb)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($get(mbox.h),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )

    $puts(p,12)
    $ifgreater($get(p),%x-sbox1%,
        
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%),
            
    $ifgreater($get(p),$add(%x-sbox1%,%x-sbox2%,%x-sbox3%),
                
    $set_ps_global(P$get(p).mb,0)
            ,
                
    $set_ps_global(P$get(p).mb,3)
            )
        ,
            
    $set_ps_global(P$get(p).mb,2)    
        )
    ,
        
    $set_ps_global(P$get(p).mb,1)
    )
    // ---
    $set_ps_global(P$get(p).sb,$sub($select($get_ps_global(P$get(p).mb),$get(p),$sub($get(p),%x-sbox1%),$sub($get(p),%x-sbox1%,%x-sbox2%)),1))
    $select(%x-format%,
        
    $puts(p$get(p).x,$add($get(w.x),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        
    $puts(p$get(p).y,$add($get(w.y),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        
    $puts(p$get(p).w,$sub($get(mbox.w$get_ps_global(P$get(p).mb)),$get(smg.s)))
        
    $puts(p$get(p).h,$sub($get(mbox.h),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
    ,
        
    $puts(p$get(p).y,$add($get(w.y),$mul($get(mbox.w$get_ps_global(P$get(p).mb)),$get_ps_global(P$get(p).sb))))
        
    $puts(p$get(p).x,$add($get(w.x),$mul($sub($get_ps_global(P$get(p).mb),1),$get(mbox.h))))
        
    $puts(p$get(p).h,$sub($get(mbox.w$get_ps_global(P$get(p).mb)),$get(smg.s)))
        
    $puts(p$get(p).w,$sub($get(mbox.h),$get(smg.s)))
        
    $ifequal($add($get_ps_global(P$get(p).sb),1),$get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),
            
    $puts(h.of7,$sub($get(w.h),$add($get(p$get(p).y),$get(p$get(p).h))))
            
    $puts(p$get(p).h,$add($get(p$get(p).h),$get(h.of7),$sub($get(tmg.s),$get(smg.s))))
        ,)
        
    $ifequal($get_ps_global(P$get(p).mb),%x-mbox%,
            
    $puts(w.of7,$sub($get(w.w),$add($get(p$get(p).x),$get(p$get(p).w))))
            
    $puts(p$get(p).w,$add($get(p$get(p).w),$get(w.of7)))
        ,)
    )

    $puts(p,13)
    $puts(p$get(p).x,$add($get(smg.s),$get(w.w)))
    $puts(p$get(p).y,$get(P01.y))
    $puts(p$get(p).h,$sub($get(w.h),$get(smg.s)))
    $puts(p$get(p).w,$sub($add($get(gb.pw),20),$get(smg.s)))

    // ~~~~~~~~~
    // docked panels dims
    // ~~~~~~~~~
    $puts(nbd.line2,0)
    // docked panels coords ...
    $ifgreater(2,%nbv%,
        
    $puts(p02.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(2,1,%nbv%))))
        
    $ifgreater($add($get(p02.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p02.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p02.x,$get(p02.x0))
        )
        
    $puts(p02.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p02.w,$get(dk.w))
        
    $puts(p02.h,$get(dk.h))
    ,)
    $ifgreater(3,%nbv%,
        
    $puts(p03.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(3,1,%nbv%))))
        
    $ifgreater($add($get(p03.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p03.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p03.x,$get(p03.x0))
        )
        
    $puts(p03.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p03.w,$get(dk.w))
        
    $puts(p03.h,$get(dk.h))
    ,)
    $ifgreater(4,%nbv%,
        
    $puts(p04.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(4,1,%nbv%))))
        
    $ifgreater($add($get(p04.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p04.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p04.x,$get(p04.x0))
        )
        
    $puts(p04.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p04.w,$get(dk.w))
        
    $puts(p04.h,$get(dk.h))
    ,)
    $ifgreater(5,%nbv%,
        
    $puts(p05.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(5,1,%nbv%))))
        
    $ifgreater($add($get(p05.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p05.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p05.x,$get(p05.x0))
        )
        
    $puts(p05.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p05.w,$get(dk.w))
        
    $puts(p05.h,$get(dk.h))
    ,)
    $ifgreater(6,%nbv%,
        
    $puts(p06.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(6,1,%nbv%))))
        
    $ifgreater($add($get(p06.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p06.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p06.x,$get(p06.x0))
        )
        
    $puts(p06.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p06.w,$get(dk.w))
        
    $puts(p06.h,$get(dk.h))
    ,)
    $ifgreater(7,%nbv%,
        
    $puts(p07.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(7,1,%nbv%))))
        
    $ifgreater($add($get(p07.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p07.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p07.x,$get(p07.x0))
        )
        
    $puts(p07.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p07.w,$get(dk.w))
        
    $puts(p07.h,$get(dk.h))
    ,)
    $ifgreater(8,%nbv%,
        
    $puts(p08.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(8,1,%nbv%))))
        
    $ifgreater($add($get(p08.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p08.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p08.x,$get(p08.x0))
        )
        
    $puts(p08.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p08.w,$get(dk.w))
        
    $puts(p08.h,$get(dk.h))
    ,)
    $ifgreater(9,%nbv%,
        
    $puts(p09.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(9,1,%nbv%))))
        
    $ifgreater($add($get(p09.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p09.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p09.x,$get(p09.x0))
        )
        
    $puts(p09.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p09.w,$get(dk.w))
        
    $puts(p09.h,$get(dk.h))
    ,)
    $ifgreater(10,%nbv%,
        
    $puts(p10.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(10,1,%nbv%))))
        
    $ifgreater($add($get(p10.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p10.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p10.x,$get(p10.x0))
        )
        
    $puts(p10.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p10.w,$get(dk.w))
        
    $puts(p10.h,$get(dk.h))
    ,)
    $ifgreater(11,%nbv%,
        
    $puts(p11.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(11,1,%nbv%))))
        
    $ifgreater($add($get(p11.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p11.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p11.x,$get(p11.x0))
        )
        
    $puts(p11.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p11.w,$get(dk.w))
        
    $puts(p11.h,$get(dk.h))
    ,)
    $ifgreater(12,%nbv%,
        
    $puts(p12.x0,$add($get(w.x),$mul($add($get(dk.w),2),$sub(12,1,%nbv%))))
        
    $ifgreater($add($get(p12.x0),$get(dk.w),2),$get(available.w),
            
    $puts(dline,2)
            
    $puts(p12.x,$add($get(w.x),$mul($add($get(dk.w),2),$get(nbd.line2))))
            
    $puts(nbd.line2,$add($get(nbd.line2),1))
        ,
            
    $puts(dline,1)
            
    $puts(p12.x,$get(p12.x0))
        )
        
    $puts(p12.y,$select($get(dline),$get(dk.y),$add($get(dk.y),$add($get(dk.h),3))))
        
    $puts(p12.w,$get(dk.w))
        
    $puts(p12.h,$get(dk.h))
    ,)
    $ifequal(%gb%,0,
        
    $puts(p13.x,$sub(%_width%,$get(smg.s),$get(dk.w)))
        
    $puts(p13.y,$get(dk.y))
        
    $puts(p13.w,$get(dk.w))
        
    $puts(p13.h,$get(dk.h))
    ,)

    // NOW, LET'S DRAW ALL THE PANELS...

    $select(%x-format%,
        
    $puts(add_mb,$get(z2)'h')
        
    $puts(add_sb,$get(z2)'v')
    ,
        
    $puts(add_mb,$get(z2)'v')
        
    $puts(add_sb,$get(z2)'h')
    )

    $font(tahoma,8,)

    // tweak to enforce a good refresh after a swap (PSS bug???)
    $ifgreater($get(xchg),0,
        
    $imagebutton(0,0,1,1,,,REFRESH,)
    ,)

    $puts(p.min,$div(%_width%,%_height%))

    // Panel 01
    $puts(p,01$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
    ,
        
    $ifequal(%editor%,1,
            
    $drawroundrect($add($get(p.x),27),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,40,73),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,74,106)),16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),28),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,38,71),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,72,104)),15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),30),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,37,70),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,71,103)),16,100-140-220-065,2)
            
    $ifequal(%x-mbox%,1,$puts(rh.x,$add($get(p.x),65)),$puts(rh.x,$add($get(p.x),99)))
            
    $puts(rv.x,$add($get(p.x),48))
            
    $ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,,
                
    $set_ps_global(mb.sb1,mb$get_ps_global(P$get(p).mb).sb1.w)
                
    $set_ps_global(mb.sb2,mb$get_ps_global(P$get(p).mb).sb2.w)
                
    $set_ps_global(mb.sb3,mb$get_ps_global(P$get(p).mb).sb3.w)
                
    $puts(sb,$add($get_ps_global(P$get(p).sb),1))
                
    $set_ps_global(stop,$get_ps_global(mb$get_ps_global(P$get(p).mb).stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rh.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.sb1%:$add($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$add($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$add($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rh.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01),SETGLOBAL:%mb.sb1%:$sub($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$sub($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$sub($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifequal(%x-mbox%,1,,
                
    $set_ps_global(mb.mb1,mb1.h)
                
    $set_ps_global(mb.mb2,mb2.h)
                
    $set_ps_global(mb.mb3,mb3.h)
                
    $puts(mb,$get_ps_global(P$get(p).mb))
                
    $set_ps_global(stop,$get_ps_global(mb.stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rv.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.mb1%:$add($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$add($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$add($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rv.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01),SETGLOBAL:%mb.mb1%:$sub($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$sub($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$sub($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifgreater(%x-mbox%,2,
                
    $drawimage($add($get(p.x),31),$add($get(p.y),3),14,14,$get(add_mb)'3add0.png',,,80)
            ,
                
    $imagebutton($add($get(p.x),31),$add($get(p.y),3),14,14,$get(add_mb)%x-mbox%'add0.png',$get(add_mb)%x-mbox%'add1.png',SETGLOBAL:x-mbox:$add($get_ps_global(x-mbox),1);SETGLOBAL:x-sbox$ifequal(%x-mbox%,1,2,3):1;SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
            
    $ifgreater($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),2,
                
    $drawimage($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)'3add0.png',,,80)
            ,
                
    $imagebutton($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add0.png',$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add1.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$add($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
        ,)
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),52),$add($get(p.y),0),21,17,$get(z2)'nbt_max0.png',$get(z2)'nbt_max2.png',SETGLOBAL:Zoom:$get(p);PANELSHOW:$get_ps_global(P$get(p)):0;$get(cmd02);$get(cmd01))
        
    $ifequal(%nbv%,1,
            
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-mbox:3;SETGLOBAL:x-sbox1:3;SETGLOBAL:x-sbox2:3;SETGLOBAL:x-sbox3:3;REFRESH,)
        ,
            
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$sub($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:P01:%P02%;SETGLOBAL:P02:%P03%;SETGLOBAL:P03:%P04%;SETGLOBAL:P04:%P05%;SETGLOBAL:P05:%P06%;SETGLOBAL:P06:%P07%;SETGLOBAL:P07:%P08%;SETGLOBAL:P08:%P09%;SETGLOBAL:P09:%P10%;SETGLOBAL:P10:%P11%;SETGLOBAL:P11:%P12%;SETGLOBAL:P12:%P01%;SETGLOBAL:nbv:$sub(%nbv%,1);$get(cmd01))
        )
        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
    )

    // Panel 02
    $puts(p,02$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
        
    $ifequal(%editor%,1,
            
    $drawroundrect($add($get(p.x),7),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,40,73),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,74,106)),16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),8),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,38,71),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,72,104)),15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),10),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,37,70),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,71,103)),16,100-140-220-065,2)
            
    $ifequal(%x-mbox%,1,$puts(rh.x,$add($get(p.x),45)),$puts(rh.x,$add($get(p.x),79)))
            
    $puts(rv.x,$add($get(p.x),28))
            
    $ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,,
                
    $set_ps_global(mb.sb1,mb$get_ps_global(P$get(p).mb).sb1.w)
                
    $set_ps_global(mb.sb2,mb$get_ps_global(P$get(p).mb).sb2.w)
                
    $set_ps_global(mb.sb3,mb$get_ps_global(P$get(p).mb).sb3.w)
                
    $puts(sb,$add($get_ps_global(P$get(p).sb),1))
                
    $set_ps_global(stop,$get_ps_global(mb$get_ps_global(P$get(p).mb).stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rh.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.sb1%:$add($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$add($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$add($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rh.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01),SETGLOBAL:%mb.sb1%:$sub($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$sub($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$sub($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifequal(%x-mbox%,1,,
                
    $set_ps_global(mb.mb1,mb1.h)
                
    $set_ps_global(mb.mb2,mb2.h)
                
    $set_ps_global(mb.mb3,mb3.h)
                
    $puts(mb,$get_ps_global(P$get(p).mb))
                
    $set_ps_global(stop,$get_ps_global(mb.stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rv.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.mb1%:$add($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$add($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$add($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rv.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01),SETGLOBAL:%mb.mb1%:$sub($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$sub($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$sub($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifgreater(%x-mbox%,2,
                
    $drawimage($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)'3add0.png',,,80)
            ,
                
    $imagebutton($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)%x-mbox%'add0.png',$get(add_mb)%x-mbox%'add1.png',SETGLOBAL:x-mbox:$add($get_ps_global(x-mbox),1);SETGLOBAL:x-sbox$ifequal(%x-mbox%,1,2,3):1;SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
            
    $ifgreater($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),2,
                
    $drawimage($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)'3add0.png',,,80)
            ,
                
    $imagebutton($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add0.png',$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add1.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$add($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
        ,)
         
    $imagebutton($sub($add($get(p.x),$get(p.w)),52),$add($get(p.y),0),21,17,$get(z2)'nbt_max0.png',$get(z2)'nbt_max2.png',SETGLOBAL:Zoom:$get(p);PANELSHOW:$get_ps_global(P$get(p)):0;$get(cmd02);$get(cmd01))
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$sub($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:P02:%P03%;SETGLOBAL:P03:%P04%;SETGLOBAL:P04:%P05%;SETGLOBAL:P05:%P06%;SETGLOBAL:P06:%P07%;SETGLOBAL:P07:%P08%;SETGLOBAL:P08:%P09%;SETGLOBAL:P09:%P10%;SETGLOBAL:P10:%P11%;SETGLOBAL:P11:%P12%;SETGLOBAL:P12:%P02%;SETGLOBAL:nbv:$sub(%nbv%,1);$get(cmd01))
        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
    )

    // Panel 03
    $puts(p,03$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
        
    $ifequal(%editor%,1,
            
    $drawroundrect($add($get(p.x),7),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,40,73),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,74,106)),16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),8),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,38,71),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,72,104)),15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),10),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,37,70),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,71,103)),16,100-140-220-065,2)
            
    $ifequal(%x-mbox%,1,$puts(rh.x,$add($get(p.x),45)),$puts(rh.x,$add($get(p.x),79)))
            
    $puts(rv.x,$add($get(p.x),28))
            
    $ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,,
                
    $set_ps_global(mb.sb1,mb$get_ps_global(P$get(p).mb).sb1.w)
                
    $set_ps_global(mb.sb2,mb$get_ps_global(P$get(p).mb).sb2.w)
                
    $set_ps_global(mb.sb3,mb$get_ps_global(P$get(p).mb).sb3.w)
                
    $puts(sb,$add($get_ps_global(P$get(p).sb),1))
                
    $set_ps_global(stop,$get_ps_global(mb$get_ps_global(P$get(p).mb).stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rh.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.sb1%:$add($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$add($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$add($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rh.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01),SETGLOBAL:%mb.sb1%:$sub($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$sub($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$sub($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifequal(%x-mbox%,1,,
                
    $set_ps_global(mb.mb1,mb1.h)
                
    $set_ps_global(mb.mb2,mb2.h)
                
    $set_ps_global(mb.mb3,mb3.h)
                
    $puts(mb,$get_ps_global(P$get(p).mb))
                
    $set_ps_global(stop,$get_ps_global(mb.stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rv.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.mb1%:$add($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$add($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$add($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rv.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01),SETGLOBAL:%mb.mb1%:$sub($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$sub($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$sub($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifgreater(%x-mbox%,2,
                
    $drawimage($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)'3add0.png',,,80)
            ,
                
    $imagebutton($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)%x-mbox%'add0.png',$get(add_mb)%x-mbox%'add1.png',SETGLOBAL:x-mbox:$add($get_ps_global(x-mbox),1);SETGLOBAL:x-sbox$ifequal(%x-mbox%,1,2,3):1;SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
            
    $ifgreater($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),2,
                
    $drawimage($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)'3add0.png',,,80)
            ,
                
    $imagebutton($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add0.png',$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add1.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$add($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
        ,)
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),52),$add($get(p.y),0),21,17,$get(z2)'nbt_max0.png',$get(z2)'nbt_max2.png',SETGLOBAL:Zoom:$get(p);PANELSHOW:$get_ps_global(P$get(p)):0;$get(cmd02);$get(cmd01))
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$sub($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:P03:%P04%;SETGLOBAL:P04:%P05%;SETGLOBAL:P05:%P06%;SETGLOBAL:P06:%P07%;SETGLOBAL:P07:%P08%;SETGLOBAL:P08:%P09%;SETGLOBAL:P09:%P10%;SETGLOBAL:P10:%P11%;SETGLOBAL:P11:%P12%;SETGLOBAL:P12:%P03%;SETGLOBAL:nbv:$sub(%nbv%,1);$get(cmd01))
        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
    )

    // Panel 04
    $puts(p,04$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
        
    $ifequal(%editor%,1,
            
    $drawroundrect($add($get(p.x),7),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,40,73),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,74,106)),16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),8),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,38,71),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,72,104)),15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),10),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,37,70),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,71,103)),16,100-140-220-065,2)
            
    $ifequal(%x-mbox%,1,$puts(rh.x,$add($get(p.x),45)),$puts(rh.x,$add($get(p.x),79)))
            
    $puts(rv.x,$add($get(p.x),28))
            
    $ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,,
                
    $set_ps_global(mb.sb1,mb$get_ps_global(P$get(p).mb).sb1.w)
                
    $set_ps_global(mb.sb2,mb$get_ps_global(P$get(p).mb).sb2.w)
                
    $set_ps_global(mb.sb3,mb$get_ps_global(P$get(p).mb).sb3.w)
                
    $puts(sb,$add($get_ps_global(P$get(p).sb),1))
                
    $set_ps_global(stop,$get_ps_global(mb$get_ps_global(P$get(p).mb).stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rh.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.sb1%:$add($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$add($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$add($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rh.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01),SETGLOBAL:%mb.sb1%:$sub($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$sub($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$sub($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifequal(%x-mbox%,1,,
                
    $set_ps_global(mb.mb1,mb1.h)
                
    $set_ps_global(mb.mb2,mb2.h)
                
    $set_ps_global(mb.mb3,mb3.h)
                
    $puts(mb,$get_ps_global(P$get(p).mb))
                
    $set_ps_global(stop,$get_ps_global(mb.stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rv.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.mb1%:$add($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$add($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$add($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rv.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01),SETGLOBAL:%mb.mb1%:$sub($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$sub($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$sub($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifgreater(%x-mbox%,2,
                
    $drawimage($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)'3add0.png',,,80)
            ,
                
    $imagebutton($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)%x-mbox%'add0.png',$get(add_mb)%x-mbox%'add1.png',SETGLOBAL:x-mbox:$add($get_ps_global(x-mbox),1);SETGLOBAL:x-sbox$ifequal(%x-mbox%,1,2,3):1;SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
            
    $ifgreater($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),2,
                
    $drawimage($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)'3add0.png',,,80)
            ,
                
    $imagebutton($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add0.png',$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add1.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$add($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
        ,)
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),52),$add($get(p.y),0),21,17,$get(z2)'nbt_max0.png',$get(z2)'nbt_max2.png',SETGLOBAL:Zoom:$get(p);PANELSHOW:$get_ps_global(P$get(p)):0;$get(cmd02);$get(cmd01))
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$sub($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:P04:%P05%;SETGLOBAL:P05:%P06%;SETGLOBAL:P06:%P07%;SETGLOBAL:P07:%P08%;SETGLOBAL:P08:%P09%;SETGLOBAL:P09:%P10%;SETGLOBAL:P10:%P11%;SETGLOBAL:P11:%P12%;SETGLOBAL:P12:%P04%;SETGLOBAL:nbv:$sub(%nbv%,1);$get(cmd01))
        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
    )

    // Panel 05
    $puts(p,05$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
        
    $ifequal(%editor%,1,
            
    $drawroundrect($add($get(p.x),7),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,40,73),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,74,106)),16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),8),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,38,71),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,72,104)),15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),10),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,37,70),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,71,103)),16,100-140-220-065,2)
            
    $ifequal(%x-mbox%,1,$puts(rh.x,$add($get(p.x),45)),$puts(rh.x,$add($get(p.x),79)))
            
    $puts(rv.x,$add($get(p.x),28))
            
    $ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,,
                
    $set_ps_global(mb.sb1,mb$get_ps_global(P$get(p).mb).sb1.w)
                
    $set_ps_global(mb.sb2,mb$get_ps_global(P$get(p).mb).sb2.w)
                
    $set_ps_global(mb.sb3,mb$get_ps_global(P$get(p).mb).sb3.w)
                
    $puts(sb,$add($get_ps_global(P$get(p).sb),1))
                
    $set_ps_global(stop,$get_ps_global(mb$get_ps_global(P$get(p).mb).stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rh.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.sb1%:$add($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$add($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$add($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rh.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01),SETGLOBAL:%mb.sb1%:$sub($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$sub($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$sub($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifequal(%x-mbox%,1,,
                
    $set_ps_global(mb.mb1,mb1.h)
                
    $set_ps_global(mb.mb2,mb2.h)
                
    $set_ps_global(mb.mb3,mb3.h)
                
    $puts(mb,$get_ps_global(P$get(p).mb))
                
    $set_ps_global(stop,$get_ps_global(mb.stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rv.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.mb1%:$add($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$add($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$add($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rv.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01),SETGLOBAL:%mb.mb1%:$sub($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$sub($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$sub($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifgreater(%x-mbox%,2,
                
    $drawimage($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)'3add0.png',,,80)
            ,
                
    $imagebutton($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)%x-mbox%'add0.png',$get(add_mb)%x-mbox%'add1.png',SETGLOBAL:x-mbox:$add($get_ps_global(x-mbox),1);SETGLOBAL:x-sbox$ifequal(%x-mbox%,1,2,3):1;SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
            
    $ifgreater($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),2,
                
    $drawimage($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)'3add0.png',,,80)
            ,
                
    $imagebutton($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add0.png',$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add1.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$add($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
        ,)
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),52),$add($get(p.y),0),21,17,$get(z2)'nbt_max0.png',$get(z2)'nbt_max2.png',SETGLOBAL:Zoom:$get(p);PANELSHOW:$get_ps_global(P$get(p)):0;$get(cmd02);$get(cmd01))
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$sub($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:P05:%P06%;SETGLOBAL:P06:%P07%;SETGLOBAL:P07:%P08%;SETGLOBAL:P08:%P09%;SETGLOBAL:P09:%P10%;SETGLOBAL:P10:%P11%;SETGLOBAL:P11:%P12%;SETGLOBAL:P12:%P05%;SETGLOBAL:nbv:$sub(%nbv%,1);$get(cmd01))
        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
    )

    // Panel 06
    $puts(p,06$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
        
    $ifequal(%editor%,1,
            
    $drawroundrect($add($get(p.x),7),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,40,73),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,74,106)),16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),8),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,38,71),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,72,104)),15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),10),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,37,70),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,71,103)),16,100-140-220-065,2)
            
    $ifequal(%x-mbox%,1,$puts(rh.x,$add($get(p.x),45)),$puts(rh.x,$add($get(p.x),79)))
            
    $puts(rv.x,$add($get(p.x),28))
            
    $ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,,
                
    $set_ps_global(mb.sb1,mb$get_ps_global(P$get(p).mb).sb1.w)
                
    $set_ps_global(mb.sb2,mb$get_ps_global(P$get(p).mb).sb2.w)
                
    $set_ps_global(mb.sb3,mb$get_ps_global(P$get(p).mb).sb3.w)
                
    $puts(sb,$add($get_ps_global(P$get(p).sb),1))
                
    $set_ps_global(stop,$get_ps_global(mb$get_ps_global(P$get(p).mb).stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rh.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.sb1%:$add($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$add($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$add($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rh.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01),SETGLOBAL:%mb.sb1%:$sub($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$sub($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$sub($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifequal(%x-mbox%,1,,
                
    $set_ps_global(mb.mb1,mb1.h)
                
    $set_ps_global(mb.mb2,mb2.h)
                
    $set_ps_global(mb.mb3,mb3.h)
                
    $puts(mb,$get_ps_global(P$get(p).mb))
                
    $set_ps_global(stop,$get_ps_global(mb.stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rv.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.mb1%:$add($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$add($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$add($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rv.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01),SETGLOBAL:%mb.mb1%:$sub($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$sub($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$sub($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifgreater(%x-mbox%,2,
                
    $drawimage($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)'3add0.png',,,80)
            ,
                
    $imagebutton($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)%x-mbox%'add0.png',$get(add_mb)%x-mbox%'add1.png',SETGLOBAL:x-mbox:$add($get_ps_global(x-mbox),1);SETGLOBAL:x-sbox$ifequal(%x-mbox%,1,2,3):1;SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
            
    $ifgreater($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),2,
                
    $drawimage($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)'3add0.png',,,80)
            ,
                
    $imagebutton($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add0.png',$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add1.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$add($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
        ,)
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),52),$add($get(p.y),0),21,17,$get(z2)'nbt_max0.png',$get(z2)'nbt_max2.png',SETGLOBAL:Zoom:$get(p);PANELSHOW:$get_ps_global(P$get(p)):0;$get(cmd02);$get(cmd01))
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$sub($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:P06:%P07%;SETGLOBAL:P07:%P08%;SETGLOBAL:P08:%P09%;SETGLOBAL:P09:%P10%;SETGLOBAL:P10:%P11%;SETGLOBAL:P11:%P12%;SETGLOBAL:P12:%P06%;SETGLOBAL:nbv:$sub(%nbv%,1);$get(cmd01))
        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
    )

    // Panel 07
    $puts(p,07$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
        
    $ifequal(%editor%,1,
            
    $drawroundrect($add($get(p.x),7),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,40,73),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,74,106)),16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),8),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,38,71),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,72,104)),15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),10),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,37,70),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,71,103)),16,100-140-220-065,2)
            
    $ifequal(%x-mbox%,1,$puts(rh.x,$add($get(p.x),45)),$puts(rh.x,$add($get(p.x),79)))
            
    $puts(rv.x,$add($get(p.x),28))
            
    $ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,,
                
    $set_ps_global(mb.sb1,mb$get_ps_global(P$get(p).mb).sb1.w)
                
    $set_ps_global(mb.sb2,mb$get_ps_global(P$get(p).mb).sb2.w)
                
    $set_ps_global(mb.sb3,mb$get_ps_global(P$get(p).mb).sb3.w)
                
    $puts(sb,$add($get_ps_global(P$get(p).sb),1))
                
    $set_ps_global(stop,$get_ps_global(mb$get_ps_global(P$get(p).mb).stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rh.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.sb1%:$add($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$add($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$add($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rh.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01),SETGLOBAL:%mb.sb1%:$sub($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$sub($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$sub($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifequal(%x-mbox%,1,,
                
    $set_ps_global(mb.mb1,mb1.h)
                
    $set_ps_global(mb.mb2,mb2.h)
                
    $set_ps_global(mb.mb3,mb3.h)
                
    $puts(mb,$get_ps_global(P$get(p).mb))
                
    $set_ps_global(stop,$get_ps_global(mb.stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rv.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.mb1%:$add($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$add($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$add($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rv.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01),SETGLOBAL:%mb.mb1%:$sub($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$sub($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$sub($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifgreater(%x-mbox%,2,
                
    $drawimage($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)'3add0.png',,,80)
            ,
                
    $imagebutton($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)%x-mbox%'add0.png',$get(add_mb)%x-mbox%'add1.png',SETGLOBAL:x-mbox:$add($get_ps_global(x-mbox),1);SETGLOBAL:x-sbox$ifequal(%x-mbox%,1,2,3):1;SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
            
    $ifgreater($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),2,
                
    $drawimage($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)'3add0.png',,,80)
            ,
                
    $imagebutton($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add0.png',$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add1.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$add($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
        ,)
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),52),$add($get(p.y),0),21,17,$get(z2)'nbt_max0.png',$get(z2)'nbt_max2.png',SETGLOBAL:Zoom:$get(p);PANELSHOW:$get_ps_global(P$get(p)):0;$get(cmd02);$get(cmd01))
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$sub($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:P07:%P08%;SETGLOBAL:P08:%P09%;SETGLOBAL:P09:%P10%;SETGLOBAL:P10:%P11%;SETGLOBAL:P11:%P12%;SETGLOBAL:P12:%P07%;SETGLOBAL:nbv:$sub(%nbv%,1);$get(cmd01))
        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
    )

    // Panel 08
    $puts(p,08) $puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
        
    $ifequal(%editor%,1,
            
    $drawroundrect($add($get(p.x),7),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,40,73),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,74,106)),16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),8),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,38,71),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,72,104)),15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),10),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,37,70),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,71,103)),16,100-140-220-065,2)
            
    $ifequal(%x-mbox%,1,$puts(rh.x,$add($get(p.x),45)),$puts(rh.x,$add($get(p.x),79)))
            
    $puts(rv.x,$add($get(p.x),28))
            
    $ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,,
                
    $set_ps_global(mb.sb1,mb$get_ps_global(P$get(p).mb).sb1.w)
                
    $set_ps_global(mb.sb2,mb$get_ps_global(P$get(p).mb).sb2.w)
                
    $set_ps_global(mb.sb3,mb$get_ps_global(P$get(p).mb).sb3.w)
                
    $puts(sb,$add($get_ps_global(P$get(p).sb),1))
                
    $set_ps_global(stop,$get_ps_global(mb$get_ps_global(P$get(p).mb).stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rh.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.sb1%:$add($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$add($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$add($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rh.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01),SETGLOBAL:%mb.sb1%:$sub($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$sub($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$sub($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifequal(%x-mbox%,1,,
                
    $set_ps_global(mb.mb1,mb1.h)
                
    $set_ps_global(mb.mb2,mb2.h)
                
    $set_ps_global(mb.mb3,mb3.h)
                
    $puts(mb,$get_ps_global(P$get(p).mb))
                
    $set_ps_global(stop,$get_ps_global(mb.stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rv.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.mb1%:$add($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$add($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$add($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rv.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01),SETGLOBAL:%mb.mb1%:$sub($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$sub($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$sub($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifgreater(%x-mbox%,2,
                
    $drawimage($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)'3add0.png',,,80)
            ,
                
    $imagebutton($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)%x-mbox%'add0.png',$get(add_mb)%x-mbox%'add1.png',SETGLOBAL:x-mbox:$add($get_ps_global(x-mbox),1);SETGLOBAL:x-sbox$ifequal(%x-mbox%,1,2,3):1;SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
            
    $ifgreater($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),2,
                
    $drawimage($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)'3add0.png',,,80)
            ,
                
    $imagebutton($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add0.png',$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add1.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$add($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
        ,)
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),52),$add($get(p.y),0),21,17,$get(z2)'nbt_max0.png',$get(z2)'nbt_max2.png',SETGLOBAL:Zoom:$get(p);PANELSHOW:$get_ps_global(P$get(p)):0;$get(cmd02);$get(cmd01))
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$sub($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:P08:%P09%;SETGLOBAL:P09:%P10%;SETGLOBAL:P10:%P11%;SETGLOBAL:P11:%P12%;SETGLOBAL:P12:%P08%;SETGLOBAL:nbv:$sub(%nbv%,1);$get(cmd01))
        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
    )

    // Panel 09
    $puts(p,09) $puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
        
    $ifequal(%editor%,1,
            
    $drawroundrect($add($get(p.x),7),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,40,73),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,74,106)),16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),8),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,38,71),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,72,104)),15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),10),$add($get(p.y),1),$ifequal(%x-mbox%,1,$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,37,70),$ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,71,103)),16,100-140-220-065,2)
            
    $ifequal(%x-mbox%,1,$puts(rh.x,$add($get(p.x),45)),$puts(rh.x,$add($get(p.x),79)))
            
    $puts(rv.x,$add($get(p.x),28))
            
    $ifequal($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1,,
                
    $set_ps_global(mb.sb1,mb$get_ps_global(P$get(p).mb).sb1.w)
                
    $set_ps_global(mb.sb2,mb$get_ps_global(P$get(p).mb).sb2.w)
                
    $set_ps_global(mb.sb3,mb$get_ps_global(P$get(p).mb).sb3.w)
                
    $puts(sb,$add($get_ps_global(P$get(p).sb),1))
                
    $set_ps_global(stop,$get_ps_global(mb$get_ps_global(P$get(p).mb).stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rh.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.sb1%:$add($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$add($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$add($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rh.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.sb1%:0;SETGLOBAL:%mb.sb2%:0;SETGLOBAL:%mb.sb3%:0;$get(cmd01),SETGLOBAL:%mb.sb1%:$sub($get_ps_global(%mb.sb1%),$select($get(sb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.sb2%:$sub($get_ps_global(%mb.sb2%),$select($get(sb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.sb3%:$sub($get_ps_global(%mb.sb3%),$select($get(sb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifequal(%x-mbox%,1,,
                
    $set_ps_global(mb.mb1,mb1.h)
                
    $set_ps_global(mb.mb2,mb2.h)
                
    $set_ps_global(mb.mb3,mb3.h)
                
    $puts(mb,$get_ps_global(P$get(p).mb))
                
    $set_ps_global(stop,$get_ps_global(mb.stop))
                
    $puts(stop,%stop%)
                
    $ifequal(%stop%,0,$set_ps_global(stop,$get(p)),)
                
    $ifgreater($get(stop),0,
                    
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),$ifequal(%theme%,1,6,3),$ifequal(%theme%,1,6,3),0-0-0-0,%stop.c%)
                ,)
                
    $imagebutton($get(rv.x),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifequal(%stop%,$get(p),SETGLOBAL:%mb.mb1%:$add($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$add($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$add($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01)))
                
    $imagebutton($add($get(rv.x),17),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifequal($get(stop),$get(p),SETGLOBAL:%mb.mb1%:0;SETGLOBAL:%mb.mb2%:0;SETGLOBAL:%mb.mb3%:0;$get(cmd01),SETGLOBAL:%mb.mb1%:$sub($get_ps_global(%mb.mb1%),$select($get(mb),%x%,$div(%x%,-2),$div(%x%,-2)));SETGLOBAL:%mb.mb2%:$sub($get_ps_global(%mb.mb2%),$select($get(mb),$div(%x%,-2),%x%,$div(%x%,-2)));SETGLOBAL:%mb.mb3%:$sub($get_ps_global(%mb.mb3%),$select($get(mb),$div(%x%,-2),$div(%x%,-2),%x%));$get(cmd01)))
            )
            
    $ifgreater(%x-mbox%,2,
                
    $drawimage($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)'3add0.png',,,80)
            ,
                
    $imagebutton($add($get(p.x),11),$add($get(p.y),3),14,14,$get(add_mb)%x-mbox%'add0.png',$get(add_mb)%x-mbox%'add1.png',SETGLOBAL:x-mbox:$add($get_ps_global(x-mbox),1);SETGLOBAL:x-sbox$ifequal(%x-mbox%,1,2,3):1;SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
            
    $ifgreater($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),2,
                
    $drawimage($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)'3add0.png',,,80)
            ,
                
    $imagebutton($sub($get(rh.x),17),$add($get(p.y),3),14,14,$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add0.png',$get(add_sb)$get_ps_global(x-sbox$get_ps_global(P$get(p).mb))'add1.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$add($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:nbv:$add(%nbv%,1);$get(cmd01))
            )
        ,)
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),52),$add($get(p.y),0),21,17,$get(z2)'nbt_max0.png',$get(z2)'nbt_max2.png',SETGLOBAL:Zoom:$get(p);PANELSHOW:$get_ps_global(P$get(p)):0;$get(cmd02);$get(cmd01))
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),74),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:x-sbox$get_ps_global(P$get(p).mb):$sub($get_ps_global(x-sbox$get_ps_global(P$get(p).mb)),1);SETGLOBAL:P09:%P10%;SETGLOBAL:P10:%P11%;SETGLOBAL:P11:%P12%;SETGLOBAL:P12:%P09%;SETGLOBAL:nbv:$sub(%nbv%,1);$get(cmd01))
        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
    )

    // Panel 10
    $puts(p,10$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
    )

    // Panel 11
    $puts(p,11$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
    )

    // Panel 12
    $puts(p,12$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)
    $ifequal($get(p.w),$get(dk.w),
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $imagebutton($add($get(p.x),18),$add($get(p.y),2),25,18,$get(z2)$get_ps_global(P$get(p))_0.png,$get(z2)$get_ps_global(P$get(p))_1.png,$ifequal($get(xchg),0,SETGLOBAL:Zoom:$get(p);$get(cmd01),REFRESH),)
    ,
    )

    // Panel 13
    $puts(p,13$puts(p.x,$get(p$get(p).x)) $puts(p.y,$get(p$get(p).y)) $puts(p.w,$get(p$get(p).w)) $puts(p.h,$get(p$get(p).h))
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$add($get(p.h),2),%bg1_rgba%,3)
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)

    $ifequal(%theme%,1,
        
    $drawroundrect($add($get(p.x),$get(gb.hl2),-1),$add($get(p.y),$get(gb.vt2)),$sub($get(p.w),$get(gb.hl2),$get(gb.hr2)),$sub($get(p.h),$get(gb.vt2),$get(gb.vb2)),4,4,0-0-0-255,0-0-0-255,)
    ,
        
    $drawroundrect($add($get(p.x),$get(gb.hl1)),$add($get(p.y),$get(gb.vt1)),$sub($get(p.w),$get(gb.hl1),$get(gb.hr1)),$sub($get(p.h),$get(gb.vt1),$get(gb.vb1)),2,2,%frm.bg2%,%frm.pen2%,)
        
    $drawroundrect($add($get(p.x),$get(gb.hl1),1),$add($get(p.y),$get(gb.vt1),1),$sub($get(p.w),$get(gb.hl1),$get(gb.hr1),2),$sub($get(p.h),$get(gb.vt1),$get(gb.vb1),2),1,1,0-0-0,%pnl.pen%,)
    )
    $ifequal(%gb%,0,
        
    $movepanel_c($get_ps_global(P$get(p)),0,0,0,0)
        
    $puts(gb.bt0,$select(%gb.saved%,gbart0.png,gbalb0.png))
        
    $puts(gb.bt1,$select(%gb.saved%,gbart1.png,gbalb1.png))
        
    $imagebutton($add($get(p.x),4),$add($get(p.y),2),40,19,$get(z2)$get(gb.bt0),$get(z2)$get(gb.bt1),SETGLOBAL:gb:%gb.saved%;$get(cmd01))
    ,
        
    $ifequal(%editor%,0,
            
    $puts(gb.icon0,$select(%gb%,gb_album0.png,gb_artist0.png))
            
    $puts(gb.icon1,$select(%gb%,gb_album1.png,gb_artist1.png))
            
    $imagebutton($add($get(p.x),4),$add($get(p.y),3),14,14,$get(z1)'icons/'$get(gb.icon0),$get(z1)'icons/'$get(gb.icon1),$select(%gb%,SETGLOBAL:gb:2,SETGLOBAL:gb:1);$get(cmd01))
        ,
            
    $drawroundrect($add($get(p.x),7),$add($get(p.y),1),37,16,3,3,0-0-0-145,250-250-250-065)
            
    $drawroundrect($add($get(p.x),8),$add($get(p.y),1),35,15,3,3,0-0-0-0,0-0-0-050)
            
    $drawblurrect($add($get(p.x),10),$add($get(p.y),1),34,16,100-140-220-065,2)
            
    $imagebutton($add($get(p.x),10),$add($get(p.y),3),14,14,$get(z2)'plus0.png',$get(z2)'plus1.png',$ifgreater(4,%gb.nbc%,SETGLOBAL:gb.nbc:$add(%gb.nbc%,1);$replace($get(cmd01),';PANELSHOW:E13:0;PANELSHOW:E14:0',),))
            
    $imagebutton($add($get(p.x),26),$add($get(p.y),3),14,14,$get(z2)'minus0.png',$get(z2)'minus1.png',$ifgreater(%gb.nbc%,1,SETGLOBAL:gb.nbc:$sub(%gb.nbc%,1);$replace($get(cmd01),';PANELSHOW:E13:0;PANELSHOW:E14:0',),))
        )
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),28),$add($get(p.y),0),22,17,$get(z2)'nbt_max0gb.png',$get(z2)'nbt_max1gb.png',SETGLOBAL:Zoom:$select(%gb%,13,14);$get(cmd02);$get(cmd01))
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),50),$add($get(p.y),0),22,17,$get(z2)'nbt_close0.png',$get(z2)'nbt_close2.png',SETGLOBAL:gb.saved:%gb%;SETGLOBAL:gb:0;$get(cmd01))
        
    $movepanel_c($select(%gb%,E13,E14),$add($get(p.x),$get(gb.hl2)),$add($get(p.y),1,$get(gb.vt2)),$get(gb.pw),$sub($get(p.h),2,$get(gb.vt2),$get(gb.vb2)))
    )

    $showpanel_c(E01,1)
    $showpanel_c(E02,1)
    $showpanel_c(E03,1)
    $showpanel_c(E04,1)
    $showpanel_c(E05,1)
    $showpanel_c(E06,1)
    $showpanel_c(E07,1)
    $showpanel_c(E08,1)
    $showpanel_c(E09,1)
    $showpanel_c(E10,1)
    $showpanel_c(E11,1)
    $showpanel_c(E12,1)
    $showpanel_c($select(%gb%,E13,E14),1)

    // x-control buttons

    $imagebutton(0,0,1,1,,,REFRESH,)

    $ifequal($get(xchg),0,
        
    $ifequal($get(p01.w),$get(dk.w),
            
    $imagebutton($add($get(p01.x),2),$add($get(p01.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P01:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p01.x),$get(p01.w)),31),$add($get(p01.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P01:1;REFRESH)
        )
        
    $ifequal($get(p02.w),$get(dk.w),
            
    $imagebutton($add($get(p02.x),2),$add($get(p02.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P02:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p02.x),$get(p02.w)),31),$add($get(p02.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P02:1;REFRESH)
        )
        
    $ifequal($get(p03.w),$get(dk.w),
            
    $imagebutton($add($get(p03.x),2),$add($get(p03.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P03:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p03.x),$get(p03.w)),31),$add($get(p03.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P03:1;REFRESH)
        )
        
    $ifequal($get(p04.w),$get(dk.w),
            
    $imagebutton($add($get(p04.x),2),$add($get(p04.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P04:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p04.x),$get(p04.w)),31),$add($get(p04.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P04:1;REFRESH)
        )
        
    $ifequal($get(p05.w),$get(dk.w),
            
    $imagebutton($add($get(p05.x),2),$add($get(p05.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P05:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p05.x),$get(p05.w)),31),$add($get(p05.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P05:1;REFRESH)
        )
        
    $ifequal($get(p06.w),$get(dk.w),
            
    $imagebutton($add($get(p06.x),2),$add($get(p06.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P06:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p06.x),$get(p06.w)),31),$add($get(p06.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P06:1;REFRESH)
        )
        
    $ifequal($get(p07.w),$get(dk.w),
            
    $imagebutton($add($get(p07.x),2),$add($get(p07.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P07:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p07.x),$get(p07.w)),31),$add($get(p07.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P07:1;REFRESH)
        )
        
    $ifequal($get(p08.w),$get(dk.w),
            
    $imagebutton($add($get(p08.x),2),$add($get(p08.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P08:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p08.x),$get(p08.w)),31),$add($get(p08.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P08:1;REFRESH)
        )
        
    $ifequal($get(p09.w),$get(dk.w),
            
    $imagebutton($add($get(p09.x),2),$add($get(p09.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P09:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p09.x),$get(p09.w)),31),$add($get(p09.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P09:1;REFRESH)
        )
        
    $ifequal($get(p10.w),$get(dk.w),
            
    $imagebutton($add($get(p10.x),2),$add($get(p10.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P10:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p10.x),$get(p10.w)),31),$add($get(p10.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P10:1;REFRESH)
        )
        
    $ifequal($get(p11.w),$get(dk.w),
            
    $imagebutton($add($get(p11.x),2),$add($get(p11.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P11:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p11.x),$get(p11.w)),31),$add($get(p11.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P11:1;REFRESH)
        )
        
    $ifequal($get(p12.w),$get(dk.w),
            
    $imagebutton($add($get(p12.x),2),$add($get(p12.y),1),19,19,$get(xx0),$get(xx1),SETGLOBAL:x-P12:1;REFRESH)
        ,
            
    $imagebutton($sub($add($get(p12.x),$get(p12.w)),31),$add($get(p12.y),0),25,17,$get(x0),$get(x2),SETGLOBAL:x-P12:1;REFRESH)
        )
    ,
        
    $ifequal($get(p01.w),$get(dk.w),
            
    $imagebutton($add($get(p01.x),2),$add($get(p01.y),1),19,19,$ifequal($get(xchg),01,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),01,SETGLOBAL:x-P01:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P01%;SETGLOBAL:P01:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p01.x),$get(p01.w)),31),$add($get(p01.y),0),25,17,$ifequal($get(xchg),01,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),01,SETGLOBAL:x-P01:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P01%;SETGLOBAL:P01:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p02.w),$get(dk.w),
            
    $imagebutton($add($get(p02.x),2),$add($get(p02.y),1),19,19,$ifequal($get(xchg),02,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),02,SETGLOBAL:x-P02:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P02%;SETGLOBAL:P02:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p02.x),$get(p02.w)),31),$add($get(p02.y),0),25,17,$ifequal($get(xchg),02,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),02,SETGLOBAL:x-P02:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P02%;SETGLOBAL:P02:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p03.w),$get(dk.w),
            
    $imagebutton($add($get(p03.x),2),$add($get(p03.y),1),19,19,$ifequal($get(xchg),03,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),03,SETGLOBAL:x-P03:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P03%;SETGLOBAL:P03:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p03.x),$get(p03.w)),31),$add($get(p03.y),0),25,17,$ifequal($get(xchg),03,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),03,SETGLOBAL:x-P03:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P03%;SETGLOBAL:P03:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p04.w),$get(dk.w),
            
    $imagebutton($add($get(p04.x),2),$add($get(p04.y),1),19,19,$ifequal($get(xchg),04,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),04,SETGLOBAL:x-P04:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P04%;SETGLOBAL:P04:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p04.x),$get(p04.w)),31),$add($get(p04.y),0),25,17,$ifequal($get(xchg),04,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),04,SETGLOBAL:x-P04:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P04%;SETGLOBAL:P04:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p05.w),$get(dk.w),
            
    $imagebutton($add($get(p05.x),2),$add($get(p05.y),1),19,19,$ifequal($get(xchg),05,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),05,SETGLOBAL:x-P05:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P05%;SETGLOBAL:P05:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p05.x),$get(p05.w)),31),$add($get(p05.y),0),25,17,$ifequal($get(xchg),05,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),05,SETGLOBAL:x-P05:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P05%;SETGLOBAL:P05:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p06.w),$get(dk.w),
            
    $imagebutton($add($get(p06.x),2),$add($get(p06.y),1),19,19,$ifequal($get(xchg),06,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),06,SETGLOBAL:x-P06:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P06%;SETGLOBAL:P06:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p06.x),$get(p06.w)),31),$add($get(p06.y),0),25,17,$ifequal($get(xchg),06,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),06,SETGLOBAL:x-P06:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P06%;SETGLOBAL:P06:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p07.w),$get(dk.w),
            
    $imagebutton($add($get(p07.x),2),$add($get(p07.y),1),19,19,$ifequal($get(xchg),07,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),07,SETGLOBAL:x-P07:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P07%;SETGLOBAL:P07:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p07.x),$get(p07.w)),31),$add($get(p07.y),0),25,17,$ifequal($get(xchg),07,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),07,SETGLOBAL:x-P07:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P07%;SETGLOBAL:P07:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p08.w),$get(dk.w),
            
    $imagebutton($add($get(p08.x),2),$add($get(p08.y),1),19,19,$ifequal($get(xchg),08,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),08,SETGLOBAL:x-P08:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P08%;SETGLOBAL:P08:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p08.x),$get(p08.w)),31),$add($get(p08.y),0),25,17,$ifequal($get(xchg),08,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),08,SETGLOBAL:x-P08:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P08%;SETGLOBAL:P08:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p09.w),$get(dk.w),
            
    $imagebutton($add($get(p09.x),2),$add($get(p09.y),1),19,19,$ifequal($get(xchg),09,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),09,SETGLOBAL:x-P09:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P09%;SETGLOBAL:P09:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p09.x),$get(p09.w)),31),$add($get(p09.y),0),25,17,$ifequal($get(xchg),09,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),09,SETGLOBAL:x-P09:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P09%;SETGLOBAL:P09:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p10.w),$get(dk.w),
            
    $imagebutton($add($get(p10.x),2),$add($get(p10.y),1),19,19,$ifequal($get(xchg),10,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),10,SETGLOBAL:x-P10:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P10%;SETGLOBAL:P10:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p10.x),$get(p10.w)),31),$add($get(p10.y),0),25,17,$ifequal($get(xchg),10,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),10,SETGLOBAL:x-P10:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P10%;SETGLOBAL:P10:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p11.w),$get(dk.w),
            
    $imagebutton($add($get(p11.x),2),$add($get(p11.y),1),19,19,$ifequal($get(xchg),11,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),11,SETGLOBAL:x-P11:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P11%;SETGLOBAL:P11:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p11.x),$get(p11.w)),31),$add($get(p11.y),0),25,17,$ifequal($get(xchg),11,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),11,SETGLOBAL:x-P11:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P11%;SETGLOBAL:P11:$get_ps_global(P$get(xchg)));REFRESH)
        )
        
    $ifequal($get(p12.w),$get(dk.w),
            
    $imagebutton($add($get(p12.x),2),$add($get(p12.y),1),19,19,$ifequal($get(xchg),12,$get(xx2),$get(xx3)),$get(xx2),$ifequal($get(xchg),12,SETGLOBAL:x-P12:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P12%;SETGLOBAL:P12:$get_ps_global(P$get(xchg)));REFRESH)
        ,
            
    $imagebutton($sub($add($get(p12.x),$get(p12.w)),31),$add($get(p12.y),0),25,17,$ifequal($get(xchg),12,$get(x2),$get(x3)),$get(x2),$ifequal($get(xchg),12,SETGLOBAL:x-P12:0,SETGLOBAL:x-P$get(xchg):0;SETGLOBAL:P$get(xchg):%P12%;SETGLOBAL:P12:$get_ps_global(P$get(xchg)));REFRESH)
        )
    )

    // PRESETS (save config : layout + panels pos.)
    $ifgreater(%last.preset.loaded%,0,
        
    $drawimage($sub(%_width%,$sub($mul($sub(6,%last.preset.loaded%),20),7)),$add($get(sv.y),22),3,3,$get(z2)'preset_point.png',,,200)
    ,)
    $select($add(%editor%,1),
    // load a preset config
        
    $select(%pset1%,
            
    $imagebutton($sub(%_width%,$add(02,$mul(5,20))),$add($get(sv.y),2),20,20,$get(z2)'file2.png',$get(z2)'file2.png',REFRESH)
        ,
            
    $imagebutton($sub(%_width%,$add(02,$mul(5,20))),$add($get(sv.y),2),20,20,$get(z2)'file3.png',$get(z2)'file0h.png',SETGLOBAL:last.preset.loaded:1;SETGLOBAL:x-format:%ly1.fmt%;SETGLOBAL:x-mbox:%ly1.mb%;SETGLOBAL:x-sbox1:%ly1.sb1%;SETGLOBAL:x-sbox2:%ly1.sb2%;SETGLOBAL:x-sbox3:%ly1.sb3%;
    SETGLOBAL:gb:%ly1.gb%;SETGLOBAL:P01:%ly1.P01%;SETGLOBAL:P02:%ly1.P02%;SETGLOBAL:P03:%ly1.P03%;SETGLOBAL:P04:%ly1.P04%;SETGLOBAL:P05:%ly1.P05%;SETGLOBAL:P06:%ly1.P06%;SETGLOBAL:P07:%ly1.P07%;SETGLOBAL:P08:%ly1.P08%;SETGLOBAL:P09:%ly1.P09%;SETGLOBAL:P10:%ly1.P10%;SETGLOBAL:P11:%ly1.P11%;SETGLOBAL:P12:%ly1.P12%;$select(%save_wsize%,WINDOWSIZE:%ly1.ww%:%ly1.wh%;,)
    SETGLOBAL:gb.nbc:%ly1.gb.nbc%;SETGLOBAL:mb1.h:%ly1.mb1.h%;SETGLOBAL:mb2.h:%ly1.mb2.h%;SETGLOBAL:mb3.h:%ly1.mb3.h%;
    SETGLOBAL:mb1.sb1.w:%ly1.mb1.sb1.w%;SETGLOBAL:mb1.sb2.w:%ly1.mb1.sb2.w%;SETGLOBAL:mb1.sb3.w:%ly1.mb1.sb3.w%;SETGLOBAL:mb2.sb1.w:%ly1.mb2.sb1.w%;SETGLOBAL:mb2.sb2.w:%ly1.mb2.sb2.w%;SETGLOBAL:mb2.sb3.w:%ly1.mb2.sb3.w%;SETGLOBAL:mb3.sb1.w:%ly1.mb3.sb1.w%;SETGLOBAL:mb3.sb2.w:%ly1.mb3.sb2.w%;SETGLOBAL:mb3.sb3.w:%ly1.mb3.sb3.w%;$get(cmd01))
        )
        
    $select(%pset2%,
            
    $imagebutton($sub(%_width%,$add(02,$mul(4,20))),$add($get(sv.y),2),20,20,$get(z2)'file2.png',$get(z2)'file2.png',REFRESH)
        ,
            
    $imagebutton($sub(%_width%,$add(02,$mul(4,20))),$add($get(sv.y),2),20,20,$get(z2)'file3.png',$get(z2)'file0h.png',SETGLOBAL:last.preset.loaded:2;SETGLOBAL:x-format:%ly2.fmt%;SETGLOBAL:x-mbox:%ly2.mb%;SETGLOBAL:x-sbox1:%ly2.sb1%;SETGLOBAL:x-sbox2:%ly2.sb2%;SETGLOBAL:x-sbox3:%ly2.sb3%;
    SETGLOBAL:gb:%ly2.gb%;SETGLOBAL:P01:%ly2.P01%;SETGLOBAL:P02:%ly2.P02%;SETGLOBAL:P03:%ly2.P03%;SETGLOBAL:P04:%ly2.P04%;SETGLOBAL:P05:%ly2.P05%;SETGLOBAL:P06:%ly2.P06%;SETGLOBAL:P07:%ly2.P07%;SETGLOBAL:P08:%ly2.P08%;SETGLOBAL:P09:%ly2.P09%;SETGLOBAL:P10:%ly2.P10%;SETGLOBAL:P11:%ly2.P11%;SETGLOBAL:P12:%ly2.P12%;$select(%save_wsize%,WINDOWSIZE:%ly2.ww%:%ly2.wh%;,)
    SETGLOBAL:gb.nbc:%ly2.gb.nbc%;SETGLOBAL:mb1.h:%ly2.mb1.h%;SETGLOBAL:mb2.h:%ly2.mb2.h%;SETGLOBAL:mb3.h:%ly2.mb3.h%;
    SETGLOBAL:mb1.sb1.w:%ly2.mb1.sb1.w%;SETGLOBAL:mb1.sb2.w:%ly2.mb1.sb2.w%;SETGLOBAL:mb1.sb3.w:%ly2.mb1.sb3.w%;SETGLOBAL:mb2.sb1.w:%ly2.mb2.sb1.w%;SETGLOBAL:mb2.sb2.w:%ly2.mb2.sb2.w%;SETGLOBAL:mb2.sb3.w:%ly2.mb2.sb3.w%;SETGLOBAL:mb3.sb1.w:%ly2.mb3.sb1.w%;SETGLOBAL:mb3.sb2.w:%ly2.mb3.sb2.w%;SETGLOBAL:mb3.sb3.w:%ly2.mb3.sb3.w%;$get(cmd01))
        )
        
    $select(%pset3%,
            
    $imagebutton($sub(%_width%,$add(02,$mul(3,20))),$add($get(sv.y),2),20,20,$get(z2)'file2.png',$get(z2)'file2.png',REFRESH)
        ,
            
    $imagebutton($sub(%_width%,$add(02,$mul(3,20))),$add($get(sv.y),2),20,20,$get(z2)'file3.png',$get(z2)'file0h.png',SETGLOBAL:last.preset.loaded:3;SETGLOBAL:x-format:%ly3.fmt%;SETGLOBAL:x-mbox:%ly3.mb%;SETGLOBAL:x-sbox1:%ly3.sb1%;SETGLOBAL:x-sbox2:%ly3.sb2%;SETGLOBAL:x-sbox3:%ly3.sb3%;
    SETGLOBAL:gb:%ly3.gb%;SETGLOBAL:P01:%ly3.P01%;SETGLOBAL:P02:%ly3.P02%;SETGLOBAL:P03:%ly3.P03%;SETGLOBAL:P04:%ly3.P04%;SETGLOBAL:P05:%ly3.P05%;SETGLOBAL:P06:%ly3.P06%;SETGLOBAL:P07:%ly3.P07%;SETGLOBAL:P08:%ly3.P08%;SETGLOBAL:P09:%ly3.P09%;SETGLOBAL:P10:%ly3.P10%;SETGLOBAL:P11:%ly3.P11%;SETGLOBAL:P12:%ly3.P12%;$select(%save_wsize%,WINDOWSIZE:%ly3.ww%:%ly3.wh%;,)
    SETGLOBAL:gb.nbc:%ly3.gb.nbc%;SETGLOBAL:mb1.h:%ly3.mb1.h%;SETGLOBAL:mb2.h:%ly3.mb2.h%;SETGLOBAL:mb3.h:%ly3.mb3.h%;
    SETGLOBAL:mb1.sb1.w:%ly3.mb1.sb1.w%;SETGLOBAL:mb1.sb2.w:%ly3.mb1.sb2.w%;SETGLOBAL:mb1.sb3.w:%ly3.mb1.sb3.w%;SETGLOBAL:mb2.sb1.w:%ly3.mb2.sb1.w%;SETGLOBAL:mb2.sb2.w:%ly3.mb2.sb2.w%;SETGLOBAL:mb2.sb3.w:%ly3.mb2.sb3.w%;SETGLOBAL:mb3.sb1.w:%ly3.mb3.sb1.w%;SETGLOBAL:mb3.sb2.w:%ly3.mb3.sb2.w%;SETGLOBAL:mb3.sb3.w:%ly3.mb3.sb3.w%;$get(cmd01))
        )
        
    $select(%pset4%,
            
    $imagebutton($sub(%_width%,$add(02,$mul(2,20))),$add($get(sv.y),2),20,20,$get(z2)'file2.png',$get(z2)'file2.png',REFRESH)
        ,
            
    $imagebutton($sub(%_width%,$add(02,$mul(2,20))),$add($get(sv.y),2),20,20,$get(z2)'file3.png',$get(z2)'file0h.png',SETGLOBAL:last.preset.loaded:4;SETGLOBAL:x-format:%ly4.fmt%;SETGLOBAL:x-mbox:%ly4.mb%;SETGLOBAL:x-sbox1:%ly4.sb1%;SETGLOBAL:x-sbox2:%ly4.sb2%;SETGLOBAL:x-sbox3:%ly4.sb3%;
    SETGLOBAL:gb:%ly4.gb%;SETGLOBAL:P01:%ly4.P01%;SETGLOBAL:P02:%ly4.P02%;SETGLOBAL:P03:%ly4.P03%;SETGLOBAL:P04:%ly4.P04%;SETGLOBAL:P05:%ly4.P05%;SETGLOBAL:P06:%ly4.P06%;SETGLOBAL:P07:%ly4.P07%;SETGLOBAL:P08:%ly4.P08%;SETGLOBAL:P09:%ly4.P09%;SETGLOBAL:P10:%ly4.P10%;SETGLOBAL:P11:%ly4.P11%;SETGLOBAL:P12:%ly4.P12%;$select(%save_wsize%,WINDOWSIZE:%ly4.ww%:%ly4.wh%;,)
    SETGLOBAL:gb.nbc:%ly4.gb.nbc%;SETGLOBAL:mb1.h:%ly4.mb1.h%;SETGLOBAL:mb2.h:%ly4.mb2.h%;SETGLOBAL:mb3.h:%ly4.mb3.h%;
    SETGLOBAL:mb1.sb1.w:%ly4.mb1.sb1.w%;SETGLOBAL:mb1.sb2.w:%ly4.mb1.sb2.w%;SETGLOBAL:mb1.sb3.w:%ly4.mb1.sb3.w%;SETGLOBAL:mb2.sb1.w:%ly4.mb2.sb1.w%;SETGLOBAL:mb2.sb2.w:%ly4.mb2.sb2.w%;SETGLOBAL:mb2.sb3.w:%ly4.mb2.sb3.w%;SETGLOBAL:mb3.sb1.w:%ly4.mb3.sb1.w%;SETGLOBAL:mb3.sb2.w:%ly4.mb3.sb2.w%;SETGLOBAL:mb3.sb3.w:%ly4.mb3.sb3.w%;$get(cmd01))
        )
        
    $select(%pset5%,
            
    $imagebutton($sub(%_width%,$add(02,$mul(1,20))),$add($get(sv.y),2),20,20,$get(z2)'file2.png',$get(z2)'file2.png',REFRESH)
        ,
            
    $imagebutton($sub(%_width%,$add(02,$mul(1,20))),$add($get(sv.y),2),20,20,$get(z2)'file3.png',$get(z2)'file0h.png',SETGLOBAL:last.preset.loaded:5;SETGLOBAL:x-format:%ly5.fmt%;SETGLOBAL:x-mbox:%ly5.mb%;SETGLOBAL:x-sbox1:%ly5.sb1%;SETGLOBAL:x-sbox2:%ly5.sb2%;SETGLOBAL:x-sbox3:%ly5.sb3%;
    SETGLOBAL:gb:%ly5.gb%;SETGLOBAL:P01:%ly5.P01%;SETGLOBAL:P02:%ly5.P02%;SETGLOBAL:P03:%ly5.P03%;SETGLOBAL:P04:%ly5.P04%;SETGLOBAL:P05:%ly5.P05%;SETGLOBAL:P06:%ly5.P06%;SETGLOBAL:P07:%ly5.P07%;SETGLOBAL:P08:%ly5.P08%;SETGLOBAL:P09:%ly5.P09%;SETGLOBAL:P10:%ly5.P10%;SETGLOBAL:P11:%ly5.P11%;SETGLOBAL:P12:%ly5.P12%;$select(%save_wsize%,WINDOWSIZE:%ly5.ww%:%ly5.wh%;,)
    SETGLOBAL:gb.nbc:%ly5.gb.nbc%;SETGLOBAL:mb1.h:%ly5.mb1.h%;SETGLOBAL:mb2.h:%ly5.mb2.h%;SETGLOBAL:mb3.h:%ly5.mb3.h%;
    SETGLOBAL:mb1.sb1.w:%ly5.mb1.sb1.w%;SETGLOBAL:mb1.sb2.w:%ly5.mb1.sb2.w%;SETGLOBAL:mb1.sb3.w:%ly5.mb1.sb3.w%;SETGLOBAL:mb2.sb1.w:%ly5.mb2.sb1.w%;SETGLOBAL:mb2.sb2.w:%ly5.mb2.sb2.w%;SETGLOBAL:mb2.sb3.w:%ly5.mb2.sb3.w%;SETGLOBAL:mb3.sb1.w:%ly5.mb3.sb1.w%;SETGLOBAL:mb3.sb2.w:%ly5.mb3.sb2.w%;SETGLOBAL:mb3.sb3.w:%ly5.mb3.sb3.w%;$get(cmd01))
        )
    ,

    // save a preset config
        
    $select(%pset1%,
            
    $set_ps_global(pic0,$get(z2)'file4.png')
            
    $set_ps_global(pic1,$get(z2)'file1b.png')
        ,
            
    $set_ps_global(pic0,$get(z2)'file0.png')
            
    $set_ps_global(pic1,$get(z2)'file1.png')
        )
            
    $imagebutton($sub(%_width%,$add(02,$mul(5,20))),$add($get(sv.y),2),20,20,%pic0%,%pic1%,SETGLOBAL:last.preset.loaded:1;SETGLOBAL:preset.action:1;SETGLOBAL:pset1:2;SETGLOBAL:ly1.fmt:%x-format%;SETGLOBAL:ly1.mb:%x-mbox%;SETGLOBAL:ly1.sb1:%x-sbox1%;SETGLOBAL:ly1.sb2:%x-sbox2%;SETGLOBAL:ly1.sb3:%x-sbox3%;SETGLOBAL:ly1.gb:%gb%;SETGLOBAL:ly1.P01:%P01%;SETGLOBAL:ly1.P02:%P02%;SETGLOBAL:ly1.P03:%P03%;SETGLOBAL:ly1.P04:%P04%;SETGLOBAL:ly1.P05:%P05%;SETGLOBAL:ly1.P06:%P06%;SETGLOBAL:ly1.P07:%P07%;SETGLOBAL:ly1.P08:%P08%;SETGLOBAL:ly1.P09:%P09%;SETGLOBAL:ly1.P10:%P10%;SETGLOBAL:ly1.P11:%P11%;SETGLOBAL:ly1.P12:%P12%;
    SETGLOBAL:ly1.ww:$add(%foo.ww%,15);SETGLOBAL:ly1.wh:$add(%foo.wh%,37);SETGLOBAL:ly1.gb.nbc:%gb.nbc%;
    SETGLOBAL:ly1.mb1.h:%mb1.h%;SETGLOBAL:ly1.mb2.h:%mb2.h%;SETGLOBAL:ly1.mb3.h:%mb3.h%;
    SETGLOBAL:ly1.mb1.sb1.w:%mb1.sb1.w%;SETGLOBAL:ly1.mb1.sb2.w:%mb1.sb2.w%;SETGLOBAL:ly1.mb1.sb3.w:%mb1.sb3.w%;SETGLOBAL:ly1.mb2.sb1.w:%mb2.sb1.w%;SETGLOBAL:ly1.mb2.sb2.w:%mb2.sb2.w%;SETGLOBAL:ly1.mb2.sb3.w:%mb2.sb3.w%;SETGLOBAL:ly1.mb3.sb1.w:%mb3.sb1.w%;SETGLOBAL:ly1.mb3.sb2.w:%mb3.sb2.w%;SETGLOBAL:ly1.mb3.sb3.w:%mb3.sb3.w%;REFRESH)
        
    $select(%pset2%,
            
    $set_ps_global(pic0,$get(z2)'file4.png')
            
    $set_ps_global(pic1,$get(z2)'file1b.png')
        ,
            
    $set_ps_global(pic0,$get(z2)'file0.png')
            
    $set_ps_global(pic1,$get(z2)'file1.png')
        )
        
    $imagebutton($sub(%_width%,$add(02,$mul(4,20))),$add($get(sv.y),2),20,20,%pic0%,%pic1%,SETGLOBAL:last.preset.loaded:2;SETGLOBAL:preset.action:1;SETGLOBAL:pset2:2;SETGLOBAL:ly2.fmt:%x-format%;SETGLOBAL:ly2.mb:%x-mbox%;SETGLOBAL:ly2.sb1:%x-sbox1%;SETGLOBAL:ly2.sb2:%x-sbox2%;SETGLOBAL:ly2.sb3:%x-sbox3%;SETGLOBAL:ly2.gb:%gb%;SETGLOBAL:ly2.P01:%P01%;SETGLOBAL:ly2.P02:%P02%;SETGLOBAL:ly2.P03:%P03%;SETGLOBAL:ly2.P04:%P04%;SETGLOBAL:ly2.P05:%P05%;SETGLOBAL:ly2.P06:%P06%;SETGLOBAL:ly2.P07:%P07%;SETGLOBAL:ly2.P08:%P08%;SETGLOBAL:ly2.P09:%P09%;SETGLOBAL:ly2.P10:%P10%;SETGLOBAL:ly2.P11:%P11%;SETGLOBAL:ly2.P12:%P12%;
    SETGLOBAL:ly2.ww:$add(%foo.ww%,15);SETGLOBAL:ly2.wh:$add(%foo.wh%,37);SETGLOBAL:ly2.gb.nbc:%gb.nbc%;
    SETGLOBAL:ly2.mb1.h:%mb1.h%;SETGLOBAL:ly2.mb2.h:%mb2.h%;SETGLOBAL:ly2.mb3.h:%mb3.h%;
    SETGLOBAL:ly2.mb1.sb1.w:%mb1.sb1.w%;SETGLOBAL:ly2.mb1.sb2.w:%mb1.sb2.w%;SETGLOBAL:ly2.mb1.sb3.w:%mb1.sb3.w%;SETGLOBAL:ly2.mb2.sb1.w:%mb2.sb1.w%;SETGLOBAL:ly2.mb2.sb2.w:%mb2.sb2.w%;SETGLOBAL:ly2.mb2.sb3.w:%mb2.sb3.w%;SETGLOBAL:ly2.mb3.sb1.w:%mb3.sb1.w%;SETGLOBAL:ly2.mb3.sb2.w:%mb3.sb2.w%;SETGLOBAL:ly2.mb3.sb3.w:%mb3.sb3.w%;REFRESH)
        
    $select(%pset3%,
            
    $set_ps_global(pic0,$get(z2)'file4.png')
            
    $set_ps_global(pic1,$get(z2)'file1b.png')
        ,
            
    $set_ps_global(pic0,$get(z2)'file0.png')
            
    $set_ps_global(pic1,$get(z2)'file1.png')
        )
        
    $imagebutton($sub(%_width%,$add(02,$mul(3,20))),$add($get(sv.y),2),20,20,%pic0%,%pic1%,SETGLOBAL:last.preset.loaded:3;SETGLOBAL:preset.action:1;SETGLOBAL:pset3:2;SETGLOBAL:ly3.fmt:%x-format%;SETGLOBAL:ly3.mb:%x-mbox%;SETGLOBAL:ly3.sb1:%x-sbox1%;SETGLOBAL:ly3.sb2:%x-sbox2%;SETGLOBAL:ly3.sb3:%x-sbox3%;SETGLOBAL:ly3.gb:%gb%;SETGLOBAL:ly3.P01:%P01%;SETGLOBAL:ly3.P02:%P02%;SETGLOBAL:ly3.P03:%P03%;SETGLOBAL:ly3.P04:%P04%;SETGLOBAL:ly3.P05:%P05%;SETGLOBAL:ly3.P06:%P06%;SETGLOBAL:ly3.P07:%P07%;SETGLOBAL:ly3.P08:%P08%;SETGLOBAL:ly3.P09:%P09%;SETGLOBAL:ly3.P10:%P10%;SETGLOBAL:ly3.P11:%P11%;SETGLOBAL:ly3.P12:%P12%;
    SETGLOBAL:ly3.ww:$add(%foo.ww%,15);SETGLOBAL:ly3.wh:$add(%foo.wh%,37);SETGLOBAL:ly3.gb.nbc:%gb.nbc%;
    SETGLOBAL:ly3.mb1.h:%mb1.h%;SETGLOBAL:ly3.mb2.h:%mb2.h%;SETGLOBAL:ly3.mb3.h:%mb3.h%;
    SETGLOBAL:ly3.mb1.sb1.w:%mb1.sb1.w%;SETGLOBAL:ly3.mb1.sb2.w:%mb1.sb2.w%;SETGLOBAL:ly3.mb1.sb3.w:%mb1.sb3.w%;SETGLOBAL:ly3.mb2.sb1.w:%mb2.sb1.w%;SETGLOBAL:ly3.mb2.sb2.w:%mb2.sb2.w%;SETGLOBAL:ly3.mb2.sb3.w:%mb2.sb3.w%;SETGLOBAL:ly3.mb3.sb1.w:%mb3.sb1.w%;SETGLOBAL:ly3.mb3.sb2.w:%mb3.sb2.w%;SETGLOBAL:ly3.mb3.sb3.w:%mb3.sb3.w%;REFRESH)
        
    $select(%pset4%,
            
    $set_ps_global(pic0,$get(z2)'file4.png')
            
    $set_ps_global(pic1,$get(z2)'file1b.png')
        ,
            
    $set_ps_global(pic0,$get(z2)'file0.png')
            
    $set_ps_global(pic1,$get(z2)'file1.png')
        )
        
    $imagebutton($sub(%_width%,$add(02,$mul(2,20))),$add($get(sv.y),2),20,20,%pic0%,%pic1%,SETGLOBAL:last.preset.loaded:4;SETGLOBAL:preset.action:1;SETGLOBAL:pset4:2;SETGLOBAL:ly4.fmt:%x-format%;SETGLOBAL:ly4.mb:%x-mbox%;SETGLOBAL:ly4.sb1:%x-sbox1%;SETGLOBAL:ly4.sb2:%x-sbox2%;SETGLOBAL:ly4.sb3:%x-sbox3%;SETGLOBAL:ly4.gb:%gb%;SETGLOBAL:ly4.P01:%P01%;SETGLOBAL:ly4.P02:%P02%;SETGLOBAL:ly4.P03:%P03%;SETGLOBAL:ly4.P04:%P04%;SETGLOBAL:ly4.P05:%P05%;SETGLOBAL:ly4.P06:%P06%;SETGLOBAL:ly4.P07:%P07%;SETGLOBAL:ly4.P08:%P08%;SETGLOBAL:ly4.P09:%P09%;SETGLOBAL:ly4.P10:%P10%;SETGLOBAL:ly4.P11:%P11%;SETGLOBAL:ly4.P12:%P12%;
    SETGLOBAL:ly4.ww:$add(%foo.ww%,15);SETGLOBAL:ly4.wh:$add(%foo.wh%,37);SETGLOBAL:ly4.gb.nbc:%gb.nbc%;
    SETGLOBAL:ly4.mb1.h:%mb1.h%;SETGLOBAL:ly4.mb2.h:%mb2.h%;SETGLOBAL:ly4.mb3.h:%mb3.h%;
    SETGLOBAL:ly4.mb1.sb1.w:%mb1.sb1.w%;SETGLOBAL:ly4.mb1.sb2.w:%mb1.sb2.w%;SETGLOBAL:ly4.mb1.sb3.w:%mb1.sb3.w%;SETGLOBAL:ly4.mb2.sb1.w:%mb2.sb1.w%;SETGLOBAL:ly4.mb2.sb2.w:%mb2.sb2.w%;SETGLOBAL:ly4.mb2.sb3.w:%mb2.sb3.w%;SETGLOBAL:ly4.mb3.sb1.w:%mb3.sb1.w%;SETGLOBAL:ly4.mb3.sb2.w:%mb3.sb2.w%;SETGLOBAL:ly4.mb3.sb3.w:%mb3.sb3.w%;REFRESH)

        
    $select(%pset5%,
            
    $set_ps_global(pic0,$get(z2)'file4.png')
            
    $set_ps_global(pic1,$get(z2)'file1b.png')
        ,
            
    $set_ps_global(pic0,$get(z2)'file0.png')
            
    $set_ps_global(pic1,$get(z2)'file1.png')
        )
        
    $imagebutton($sub(%_width%,$add(02,$mul(1,20))),$add($get(sv.y),2),20,20,%pic0%,%pic1%,SETGLOBAL:last.preset.loaded:5;SETGLOBAL:preset.action:1;SETGLOBAL:pset5:2;SETGLOBAL:ly5.fmt:%x-format%;SETGLOBAL:ly5.mb:%x-mbox%;SETGLOBAL:ly5.sb1:%x-sbox1%;SETGLOBAL:ly5.sb2:%x-sbox2%;SETGLOBAL:ly5.sb3:%x-sbox3%;SETGLOBAL:ly5.gb:%gb%;SETGLOBAL:ly5.P01:%P01%;SETGLOBAL:ly5.P02:%P02%;SETGLOBAL:ly5.P03:%P03%;SETGLOBAL:ly5.P04:%P04%;SETGLOBAL:ly5.P05:%P05%;SETGLOBAL:ly5.P06:%P06%;SETGLOBAL:ly5.P07:%P07%;SETGLOBAL:ly5.P08:%P08%;SETGLOBAL:ly5.P09:%P09%;SETGLOBAL:ly5.P10:%P10%;SETGLOBAL:ly5.P11:%P11%;SETGLOBAL:ly5.P12:%P12%;
    SETGLOBAL:ly5.ww:$add(%foo.ww%,15);SETGLOBAL:ly5.wh:$add(%foo.wh%,37);SETGLOBAL:ly5.gb.nbc:%gb.nbc%;
    SETGLOBAL:ly5.mb1.h:%mb1.h%;SETGLOBAL:ly5.mb2.h:%mb2.h%;SETGLOBAL:ly5.mb3.h:%mb3.h%;
    SETGLOBAL:ly5.mb1.sb1.w:%mb1.sb1.w%;SETGLOBAL:ly5.mb1.sb2.w:%mb1.sb2.w%;SETGLOBAL:ly5.mb1.sb3.w:%mb1.sb3.w%;SETGLOBAL:ly5.mb2.sb1.w:%mb2.sb1.w%;SETGLOBAL:ly5.mb2.sb2.w:%mb2.sb2.w%;SETGLOBAL:ly5.mb2.sb3.w:%mb2.sb3.w%;SETGLOBAL:ly5.mb3.sb1.w:%mb3.sb1.w%;SETGLOBAL:ly5.mb3.sb2.w:%mb3.sb2.w%;SETGLOBAL:ly5.mb3.sb3.w:%mb3.sb3.w%;REFRESH)
    )

    // Changing Layout Orientation (matrix rotation) if EDITOR mode is ON
    $ifequal(%editor%,1,
        
    $select($get_ps_global(x-format),
            
    $imagebutton($add($get(smg.s),6),$add($get(tmg.s),1),18,18,$get(z2)'orient_h0.png',$get(z2)'orient_h1.png',SETGLOBAL:x-format:2;$get(cmd01))
        ,
            
    $imagebutton($add($get(smg.s),6),$add($get(tmg.s),1),18,18,$get(z2)'orient_v0.png',$get(z2)'orient_v1.png',SETGLOBAL:x-format:1;$get(cmd01))
        )
    ,)

    ,

    // if ZOOM activated --------->

        
    $movepanel_c(Menu,0,0,0,0)

        
    $puts(w.w,%_width%)

        
    $puts(p.x,$get(smg.s))
        
    $puts(p.y,$sub($get(smg.s),1))
        
    $puts(p.w,$sub($get(w.w),$get(smg.2s)))
        
    $puts(p.h,$sub(%_height%,$get(smg.s),1))

        
    $puts(p.n,$get_ps_global(P$get_ps_global(Zoom)))
        
    $puts(p,%Zoom%)

        
    $ifgreater(%Zoom%,12,
            
    $puts(hl1,$add($get(hl1),4))
            
    $puts(hl2,$add($get(hl2),4))
            
    $puts(hr1,$add($get(hr1),4))
            
    $puts(hr2,$add($get(hr2),4))
            
    $puts(vt1l,$add($get(vt1),4))
            
    $puts(vt2,$add($get(vt2),4))
            
    $puts(vb1,$add($get(vb1),4))
            
    $puts(vb2,$add($get(vb2),4))

            
    $puts(zpn.w,$sub($get(p.w),$get(hl2),$get(hr2)))
            
    $puts(p.w0,$mul($div($get(zpn.w),$select(%gb%,114,92)),$select(%gb%,114,92)))
            
    $puts(p.x0,$sub($get(zpn.w),$get(p.w0)))
            
    $puts(p.m0,$add($mod($get(p.x0),2),1))
            
    $puts(hl1,$add($get(hl1),$div($get(p.x0),2),0))
            
    $puts(hl2,$add($get(hl2),$div($get(p.x0),2),0))
            
    $puts(hr1,$add($get(hr1),$div($get(p.x0),2),0))
            
    $puts(hr2,$add($get(hr2),$div($get(p.x0),2),0))

            
    $puts(zpn.h,$sub($get(p.h),$get(vt2),$get(vb2)))
            
    $puts(p.h0,$mul($div($get(zpn.h),91),91))
            
    $puts(p.y0,$sub($get(zpn.h),$get(p.h0)))
            
    $puts(p.m0,$add($mod($get(p.x0),2),0))
            
    $puts(vt1,$add($get(vt1),$div($get(p.y0),2),-1))
            
    $puts(vt2,$add($get(vt2),$div($get(p.y0),2),-1))
            
    $puts(vb1,$add($get(vb1),$div($get(p.y0),2),-1))
            
    $puts(vb2,$add($get(vb2),$div($get(p.y0),2),-1))
        ,)
        
        
    $drawblurrect($sub($get(p.x),1),$get(p.y),$add($get(p.w),3),$get(p.h),%bg1_rgba%,3)
        
    $drawroundrect($get(p.x),$get(p.y),$get(p.w),$get(p.h),4,4,%bg2_rgba%,%lo_rgba%,)
        
    $drawroundrect($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$sub($get(p.h),2),3,3,$ifequal($get(xchg),0,$ifequal(%editor%,1,%cl0%,),$ifequal($get(xchg),$get(p),%cl1%,%cl2%)),%li_rgba%,)
        
    $drawimage($add($get(p.x),1),$add($get(p.y),1),$sub($get(p.w),2),$ifgreater($get(p.h),80,140,$ifequal($get(p.w),$get(dk.w),25,$add($get(p.h),30))),$get(z1)'bg/coverlay.png',nokeepaspect,,%re_a%)

        
    $ifgreater(%Zoom%,12,
            
    $drawblurrect($add($get(p.x),$get(hl2),-2),$add($get(p.y),-1,$get(vt2)),$sub($get(p.w),-5,$get(hl2),$get(hr2)),$sub($get(p.h),-2,$get(vt2),$get(vb2)),10-10-10,3)
            
    $drawroundrect($add($get(p.x),$get(hl2),-2),$add($get(p.y),-1,$get(vt2)),$sub($get(p.w),-4,$get(hl2),$get(hr2)),$sub($get(p.h),-1,$get(vt2),$get(vb2)),4,4,0-0-0-255,0-0-0-130)
            
    $drawimage($add($get(p.x),$get(hl2),-2),$add($get(p.y),$get(vt1),5),1,$sub($get(p.h),$get(vt1),$get(vb1),2),$get(z1)'bg/white.png',nokeepaspect,,200)
            
    $drawimage($add($get(p.x),$get(p.w),-$get(hl2),3),$add($get(p.y),$get(vt1),5),1,$sub($get(p.h),$get(vt1),$get(vb1),2),$get(z1)'bg/white.png',nokeepaspect,,200)
            
    $puts(gb.icon0,$select(%gb%,gb_album0.png,gb_artist0.png))
            
    $puts(gb.icon1,$select(%gb%,gb_album1.png,gb_artist1.png))
            
    $imagebutton($add($get(p.x),4),$add($get(p.y),3),14,14,$get(z1)'icons/'$get(gb.icon0),$get(z1)'icons/'$get(gb.icon1),$select(%gb%,SETGLOBAL:gb:2;SETGLOBAL:Zoom:14,SETGLOBAL:gb:1;SETGLOBAL:Zoom:13);SETGLOBAL:zoom.status:0;$get(cmd01))
        ,)

        
    $movepanel_c($get_ps_global(P$get(p)),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
        
    $if($stricmp($get_ps_global(P$get(p)),E06),
            
    $showpanel_c(E06,1)
        ,)

        
    $ifequal(%zoom.status%,0,
        
            
    $movepanel_c(E01,0,0,0,0)
            
    $movepanel_c(E02,0,0,0,0)
            
    $movepanel_c(E03,0,0,0,0)
            
    $movepanel_c(E04,0,0,0,0)
            
    $movepanel_c(E05,0,0,0,0)
            
    $movepanel_c(E06,0,0,0,0)
            
    $movepanel_c(E07,0,0,0,0)
            
    $movepanel_c(E08,0,0,0,0)
            
    $movepanel_c(E09,0,0,0,0)
            
    $movepanel_c(E10,0,0,0,0)
            
    $movepanel_c(E11,0,0,0,0)
            
    $movepanel_c(E12,0,0,0,0)
            
    $movepanel_c(E13,0,0,0,0)
            
    $movepanel_c(E14,0,0,0,0)
            
            
    $movepanel_c($get(p.n),$add($get(p.x),$get(hl2)),$add($get(p.y),1,$get(vt2)),$sub($get(p.w),$get(hl2),$get(hr2)),$sub($get(p.h),2,$get(vt2),$get(vb2)))
            
    $showpanel_c($get(p.n),1)
            
    $set_ps_global(zoom.status,1)
        ,)
        
    $imagebutton($sub($add($get(p.x),$get(p.w)),32),$add($get(p.y),0),25,17,$get(z2)'nbt_min0.png',$get(z2)'nbt_min1.png',SETGLOBAL:zoom.status:0;SETGLOBAL:Zoom:0;PANELSHOW:Menu:1;PANELSHOW:$get(p.n):0;REFRESH)
    )[/
    QUOTE]
    bấm chuột phải vô chữ library > tab script > thay cái đoạn code trong pertrack thành cái đoạn trên
     
  18. Vdean

    Vdean Một vợ một chồng, sừng cao ba thước Lão Làng GVN

    Tham gia ngày:
    16/4/09
    Bài viết:
    1,034
    Nơi ở:
    1 Nơi ven sông Sài Gòn
    ko co bị lổi đâu ,tớ đang dùng ok mà...:D thank bác 3333
     
  19. 333536

    333536 C O N T R A

    Tham gia ngày:
    28/12/05
    Bài viết:
    1,808
    Nơi ở:
    Ho Chi Minh City
    win xp có thể bị để mình up lại bộ font
    edit: bản font đầy đủ đây
     
  20. CatAngel

    CatAngel Fire in the hole!

    Tham gia ngày:
    20/6/09
    Bài viết:
    2,671
    Nơi ở:
    Đà Nẵng
    À thì ra cỡ chữ là 9 ;))
     

Chia sẻ trang này