FancyMenu

FancyMenu

103M Downloads

Loading Requirement: is GUI focused (cursor is visible, buttons are clickable)

caelaThinx opened this issue ยท 6 comments

commented

The idea

Currently I let users of my modpack drag the custom HUD widgets I've created around the screen in spiffy_overlay but there are no indicators that they are not in the game (besides their cursor being visible) but I would like to add a box saying "In this screen you can drag and drop HUD widgets wherever you like!" and have an dark background - this is currently impossible to do because the box and background show up in the game too if I add it to the spiffy_overlay screen, which I don't want.

More use cases

I have made a custom dragging indicator for my quick options window in the pause screen using the "is element hovered" and "is mouse clicked" loading requirements on a dragger and want to do the same in Spiffy but of course the mouse is technically moving and clicking so the overlay would show up in game.

The dragging indicator is shown in Discord > Kekscord > #creation-sharing

commented

Do you mean if a screen is open or if the window is focused (like if Minecraft is currently in the background because you work in another program)?

commented

Then I just implemented that feature already lmao
#1275

commented

Duplicate of #1275

commented

I mean if the mouse is visible and buttons are clickable, this is more for the Spiffy overlay screen since I can't see a whole lot of use cases where the mouse isn't visible unless the user is in game. The spiffy_overlay screen has like 2 states, one where it's open and one where it's just an overlay meaning that if I want the user to see stuff when editing their GUI/overlay then I'm not in luck. I do have an idea to test though that could fix this...

Sorry if this is realy hard to explain xD

commented

Then I just implemented that feature already lmao
#1275

Is #1275 in the dev build I have? I'm not 100% sure that would work as a fix to my problem. If it means I can have elements only show when the spiffy overlay is opened as a GUI and not in game despite being on the same screen then that would be perfect.

commented

Is #1275 in the dev build I have?

It isn't.

It checks if a screen is open. When you can move your character in a world, no screen is open, so it will return false.
When the Spiffy overlay is open, which is a screen, then it will return true. It's exactly what you want :D