1. remove does not keep original positions in table
2. mytable.insert, the return of mytable[x], and the return of function (even if the return object is locally defined) is reference based
PROB from last time
Ask: prob: sub-menu partly shows up before tapping -> prob for Show(), opt in Menu:Create -done (temporarily)
prob: sometimes after removing some objects, when i tap the blank space, no object but a broken menu shows up for tap down -done
TODAY
1. testing
a) stickee ~= oneself -done
b) sticker ~= stickee -done (child cannot even be selected)
c) an object can only be stickee of ONE other object -done
prob: one sticker can have multiple stickees, keep a list for that -done
d) disable stick when no other objects available -done
e) sticker unstick, stickee unstick -done
f) A sticks B, unsticks B, and sticks B again -done
g) A sticks B, A unsticks B, B sticks A -done
2. fix overlap
a) bring the object and menu to the front when it is tapped -done
b) a region may be lifted into a high layer while you move it around -done (through touchdown)
Ask: OnDragStart doesn't work (doesn't matter tho)
Tip: You can use layers and raise, lower, movetotop to organize the order for overlaps. -Georg
DID3. if menu open but next tap is not for menu, close the menu -done
TODO:0. bug: restore default parameters for recycled regions -done0. bug: if sub-menu is opened but not selected, close sub menu1. number of regions can be 4*4=16, or even more2. auto stick
1. add a sub menu to "Stick", allowing for choices of relative sticking positions
2. stick
3. unstick: any object, whether sticker or stickee, that is related to the selected object is released
Tip: r:SetAnchor("BOTTOMLEFT", UIParent, r:Bottom(), r:Left()) releases an anchor -Georg
No comments:
Post a Comment