Ok, have a few things here... Got a bit carried away and started that plugin to show the last lines... Well, I have the miniwindow resizing--sort of. It resizes when the little window is changed in size, however the little window doesn't count as resizing when maximized... Despite the large window resizing... so it doesn't work properly there. Also, the OnScreenDraw doesn't seem to ever get set off.
def OnPluginInstall():
win = world.GetPluginID
temp = world.GetWorldWindowPosition.split(',')
winHeight = int((int(temp[3]) - int(temp[1])) * 0.25)
winWidth= int(temp[2]) - int(temp[0]) - 28
world.WindowCreate (win, 0, 0, winWidth, winHeight, 4, 0, 0x000000)
world.WindowRectOp (win, 1, 1, 1, -1, -1, 0x0000FF, 0xFFFFFF)
world.WindowRectOp (win, 1, 2, 2, -2, -2, 0x0000FF, 0xFFFFFF)
world.WindowShow (win, 1)
def OnPluginWorldOutputResized():
win = world.GetPluginID
temp = world.GetWorldWindowPosition.split(',')
winHeight = int((int(temp[3]) - int(temp[1])) * 0.25)
winWidth= int(temp[2]) - int(temp[0]) - 28
world.WindowCreate (win, 0, 0, winWidth, winHeight, 4, 0, 0x000000)
world.WindowRectOp (win, 1, 1, 1, -1, -1, 0x0000FF, 0xFFFFFF)
world.WindowRectOp (win, 1, 2, 2, -2, -2, 0x0000FF, 0xFFFFFF)
world.WindowShow (win, 1)
def OnPluginScreendraw(type, log, line):
world.note (type)
world.note (log)
world.note (line)
win = world.GetPluginID
temp = world.GetWorldWindowPosition.split(',')
winHeight = int((int(temp[3]) - int(temp[1])) * 0.25)
winWidth= int(temp[2]) - int(temp[0]) - 28
world.WindowCreate (win, 0, 0, winWidth, winHeight, 4, 0, 0x000000)
world.WindowRectOp (win, 1, 1, 1, -1, -1, 0x0000FF, 0xFFFFFF)
world.WindowRectOp (win, 1, 2, 2, -2, -2, 0x0000FF, 0xFFFFFF)
winRMargin = 5
winLMargin = 5
world.WindowCreate (win, 0, 0, winWidth, winHeight, 4, 0, 0x000000)
world.WindowFont (win, 'body', 'Dina', 9, 0, 0, 0, 0, 1, 0)
world.WindowText (win, 'body', line, winLMargin, winRMargin, 0, 0, 0xCCCCCC, 1)
world.WindowShow (win, 1)
And just so you know where I'm going with this...
I would like this to be hidden unless the user is scrolling back, if everything is up to date, then the miniwindow won't be shown at all.
Any ideas? |