View Single Post
Old 02-23-2018, 11:52 AM   #17
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

@bFooz
Very good FRs/suggestions! (Several of these things are on "TODO" list, but not implemented yet )

@hopi

Try to change this...
Code:
local dock = 257
to this:
Code:
local dock = 513
(the line can be found here - line 565):
Code:
function init()
  --track_list = get_track_info()
  local left, top, right, bottom = reaper.my_getViewport(0, 0, 0, 0, 0, 0, 0, 0, 0)
  local center_w = 0.5*(right-left)
  local center_h = 0.5*(bottom-top)
  local w = 0.2*(right-left)
  local h = 0.2*(bottom-top)
  local dock = 257
  gfx.clear = 3355443  -- matches with "FUSION: Pro&Clean Theme :: BETA 01" http://forum.cockos.com/showthread.php?t=155329
                       -- (Double click in ReaScript IDE to open the link)   
  gfx.init(title, w, h, dock, center_w-0.5*w, center_h-0.5*h)
  gfx.setfont(1, btn_font, btn_font_size)
  last_proj_change_count = reaper.GetProjectStateChangeCount(0)
  gui_w, gui_h = gfx.w, gfx.h
  last_gui_w, last_gui_h = gui_w, gui_h
end
spk77 is offline   Reply With Quote