Yeah, it's actually [FirstItem7:Y] and not [ContextOption7First:Y]. Anyway, the problem remains: if using a hardcoded value before the ? almost everything, bar the taller submenu before being hovered on, works. As soon as I try to use the same difference before the ? as after the : stuff breaks...death.crafter wrote: ↑July 22nd, 2021, 8:09 pm Actually you are setting the Y of ContextOption7Background so you can't use [ContextOption7Background:Y]. For that purpose I made a First item for every child container.
[ContextOption7First:Y] would do the trick if you want to get the height.
But I am not feeling like working on this now. So I will try the above way tomorrow and let you know.
Code: Select all
local containerX = '(#MouseX# < #SCREENAREAWIDTH#-(#ContextWidth#+#SubContextWidth#+#SubContextBoxXOffset#) ? (#ContextWidth#+#SubContextBoxXOffset#) : 0)' local containerY = '((#MouseY#<(#SCREENAREAHEIGHT#-(384)))?([ContextOption'..i..':Y]):([ContextOption'..i..':Y]-([ContextOption'..i..'Last:Y]-[FirstItem'..i..':Y])))'
If using instead of that 384 or whetever hardcoded value, things will stop working as expected.
I think I'll make a break too from this one. Will wait for you to check it out when you're in the mood for it - I'm not in a hurry, by the way. Till then, will try doing some other stuff I postponed, LOL.