


I'll have to look at your respective codes and try to understand this SVG stuff, but I think I will have no more excuses not to finish this project !
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseStillDown
--grab me
set loc of me to the mouseLoc
focusControl "btn1", intersect(me, btn "btn1", 3)
end mouseStillDown
on mouseUp
focusControl "btn1", false
end mouseUp
on focusControl controlName, bool
if (bool) then
set the colorOverlay["color"] of btn controlName to yellow
set the colorOverlay["opacity"] of btn controlName to 60
else
--set the colorOverlay["color"] of btn controlName to white
set the colorOverlay["opacity"] of btn controlName to 0
end if
end focusControl
Code: Select all
on mouseDown
grab me
end mouseDown
on mouseMove
if intersect(img "QUEEN", grc "cPLACE", 3) then
set the coloroverlay["color"] of me to white
set the coloroverlay["opacity"] of me to "100"
end if
end mouseMove
on mouseUp
if intersect(img "QUEEN", grc "cPLACE", 3) then
set the loc of img "QUEEN" to the loc of grc "cPLACE" ----------- FINAL POSITION HERE
else
set the coloroverlay["opacity"] of img "QUEEN" to "0"
move img "QUEEN" to 113, 151
end if
end mouseUp
Isn't there an important exception to scaling being a "non-event" for desktop delivery? Namely, accommodating Retina/high-rez screens for desktops/laptops.Personally I would favour SVG vector files ... if I wanted to scale things. As I generally develop for desktop delivery where scaling is a non-event, I have "had a thing" about PNG images after I got fed up with the GIF format.
Jeff, I’m pretty sure I said nothing of the sort… are you sure you weren’t responding to Richmond?jmk_phd wrote: ↑Mon Aug 08, 2022 3:43 amstam --
You wrote:Isn't there an important exception to scaling being a "non-event" for desktop delivery? Namely, accommodating Retina/high-rez screens for desktops/laptops.Personally I would favour SVG vector files ... if I wanted to scale things. As I generally develop for desktop delivery where scaling is a non-event, I have "had a thing" about PNG images after I got fed up with the GIF format.
About a decade ago I had to convert my vector graphics to 300ppi PNGs because at the time LC didn't do SVG. Not ideal, but "good enough" -- that is, until I ran my app on a Retina Mac. Ugly! So with SVG now available in LC, I redrew all 237 images as SVGs. Tedious and time-consuming, but these look noticeably better on my standard-rez screens and terrific on the Retina screens. (As a bonus, it's reduced the size of my app quite a bit.)
I've seen SVGs characterized as "future-proof," inasmuch as we know that -- sooner or later -- there will be super-high-rez screens. So I look at it as an investment in the future.
jeff k
That all seems very mysterious.the order problem will stay each time a card is manually moved: only the cards at the bottom of each column can be moved, they must be in the foreground (above all others). When a card is moved, it will risk "sliding" below another when it should remain in the foreground (until it is possibly covered by a future move).
Have you looked at the layer of an object? You can relayer the objects. It is a bit more difficult if the objects are within groups.