Walter Sommerfeld wrote:I know i`m sometimes a pain in the a.. but i have 2 ask here 4 a favour from u - again :
Delete while dragging just like selecting...!
No worries Walter....I'm happy to try any mod...just another excuse to learn more...
Do you want to do it all with just the left mouse, is that right?
Sounds like you want a draw behaviour like Myco did with my Matrix trigger back in SM..
If the first square you click is off, click or drag will turn all selection(s) on...
If the first square you click is on, click or drag will turn all selection(s) off...
I'm not familiar with Win 8 touch stuff....do you need right mouse stuff removed..?
Walter Sommerfeld wrote:I need(ed) this 4 emulating a light bulb as a source behind the pads/buttons..
Great. Glad that worked out.
I'm seeing a problem with the Texture setting in the b/g squares...mouse drawing slows right down..
Walter Sommerfeld wrote: Known issues: dragging on borders turning on both sides...
I hope u can manage this 2...
Yeh, this is annoying, and really needs to fixed, but might take me a while...
I've used a Logical "and" for the first time and its confusing me a bit...
Plan B is to up a small drawing example to general section, and get trained on how do
this inner/outer technique thing...work it out eventually...
Walter Sommerfeld wrote:P.S.: I miss a reset/init after changing the rows and column size like 4x4... even after turn ruby on/off i have to set/reset all pads 2 get a proper output...
hint: implement the @grid.size into the Rand Array...
Yes.. your right...was easy fix...in meantime, you can drop this straight in..
In def event, there a code block that starts with "if i == 7 or i == 13 then "
Replace the whole block with this'
Code: Select all
if i == 7 or i == 13 then
@sizex = 2 if @sizex < 2
@sizey = 2 if @sizey < 2
nilerrors
@draw=[]
@posarray=[]
@posarrayaltvalue=[]
@boolarray=Array.new(@sizex*@sizey){|x|x = false}
@valuearray=[]
output 0,nil
output 1,[]
output 3, @posarray
output 4,@boolarray
output 5, @posarrayaltvalue
redraw
end
EDIT:
Also the mouse drag delete is wrong with the accurate mouse drag code...
Its not deleting each selection in order when you drag, it's just wiping the whole array..
EDIT2:
The grid size parameter is there inside the rand array...
Code: Select all
def event i,v
@a = Array.new(16) { |x| x = (rand(0..127)) }
output 0,@a
watch @a
end
127 is used as the grid size here...