hi,
Is there a simple section of code I can add to blender scripts
to make the script window ‘middle mouse’ scrollable.
I have seen this done in a layer manage script, possibly from AHD.
Edit: code is from uselessdreamer, apologys.
Depending on my workflow, often I run scripts in a quarter window.
Scripts such as discombobulator as an example, require half screen.
it looks from the code that WHEELUPMOUSE and WHEELDOWNMOUSE are taken in like keys, like the escape key just before it… what is offset defined as? somehow it must be connected to drawing the GUI, probably it is a value wihtin the “def gui()”
for example I would expect a line like this:
glRasterPos2i(10, offset+20) # 20 being the default position for this item
so any increase of decrease would just be added and it would redraw. …
can you link to the full code that you lifted those lines from?
You are right offset is just a value to shift the position of each element on the script
Im sorry its impossible to me right now to help you with that great idea of somehow make a standard script layout, but feel free to use anything you need from my code
Next week if i have time i may release the code to make these:
The mouse wheel scroller
Paragraph text
Multiline tooltips
and the help system as implemented in blender library