while i was browsing the 4.1 beta manual , i read about combining shapes. the intersect combine type only shows the common part (overlapping part) of the shapes. however i am in search of an action option that can detect if two shapes are overlapping or not and then execute something if it returns true
something like this:
[MeterShapes]
Meter=Shape
Shape=Rectangle 4,4,110,110,55
Shape2=Rectangle 54,54,80,80,10
ifShape2OverlapsShape=!SetOption SomeStringMeter Text "New Text"
if the intersect combine type can already detect common parts then i dont think that detecting overlapss will be a big task
alternatively a Boolean might also work
function Initalize()
end
function Update()
MyMeter=SKIN:GetMeter('MeterShapes')
ShapeOption = {}
for i = 2, 20 do
ShapeOption[i] = {}
end
for i = 2, 20 do
ShapeOption[i] = MyMeter:GetOption('Shape'..i, '')
if ShapeOption[i] == string.match(ShapeOption[i], '(Combine.*)') then
SKIN:Bang('!SetOption', 'MyStringMeter', 'Text', 'There is an overlapping')
SKIN:Bang('[!UpdateMeter "MyStringMeter"]')
SKIN:Bang('[!Redraw]')
end
end
end