#Cursor unlocking

1 messages · Page 1 of 1 (latest)

untold forum
#

I have this "Note1" Ui and I want to make it so the mouse cursor will be unlocked(you can move it around freely) only while the "Note1" Ui is enabled and I want it to go back to it being locked in the middle of the screen while the "Note1" Ui is closed but I don't know how. I have a custom mouse cursor icon

spring ruin
#

What I would do is make a value called like mouse lock and in starter player every time that changes if it’s true unlock the players mouse

rich stratus
untold forum
rich stratus
untold forum
#

But where can I find that property?

#

In the Gui itself?

rich stratus
#

I recall it being a property inherited by all gui elements, yet I may be mistaken

untold forum
rich stratus
#

It's a property of buttons (text/image)

untold forum
#

I figured that out and I got it working now, but the cursor wont show over the actual UI, if I move it over the UI, it will just hide beneath it, you know how I could fix that?

rich stratus
#

The button doesn't have to be have any size for it to work, so you could just set the size to 0,0,0,0 and remove the text

rich stratus
untold forum
#

My Note1 Gui has a frame and inside of that frame I have this close button(which is a text button) and I just went into the text button properties and turned on modal

rich stratus
untold forum
#

Indeed, it just hides beneath the UI if I hover it over the ui

rich stratus
#

Odd, mind sharing the properties of the frame?

untold forum
#

Visible is on and Index is set to 1(the photos dont capture these properties)

rich stratus
#

That's odd, I don't see anything strange about them to be frank

untold forum
#

I have a custom cursor that I am using, which is using an image label to display the cursor

wintry ridgeBOT
#

studio** You are now Level 3! **studio

rich stratus
#

@vast latch without kidding this time, do you see any reason why the mouse wouldn't appear in this UI?

rich stratus
#

Is this frame and the frame for the mouse on the same "level" (so both parented to the same parent)?

untold forum
#

No, this frame is part of GUI X and the mouse frame is part of GUI Y

vast latch
#

@untold forum what is your issue

rich stratus
untold forum
#

When I move the cursor to hover over the UI the cursor will just hide beneath the UI instead of showing on top of it

rich stratus
#

(or if they're screenguis, then DisplayOrder)

untold forum
#

For Gui Y its 5
For Gui X its 1

#

You need to watch the mouse cursor

rich stratus
vast latch
#

Zindex value probably

untold forum
#

Should I set Gui X zindex higher than Gui Y(cursor frame) index?

vast latch
#

is your cursors zindex higher than the GUI itself

untold forum
#

Yep

#

Cursor Frame zindex is higher than the "Note1" frame index

vast latch
#

this is weird

#

I've never had this happen to me personally speaking

#

Let me see if I can find anything on the forums about your issue

rich stratus
#

Unless, it has to do with some hover over thingy

#

(When hovering over buttons you get a different mouse icon. So if that icon doesn't exist then it may be transparent. Just not sure why the UI would be transparent

vast latch
#

yeah this is super weird

vast latch
rich stratus
#

(weird UI is due to me trying to replicate the image without having to spend 5 minutes scripting a basic mouse 😆

untold forum
vast latch
#

unless it has to do with anything script related

rich stratus
vast latch
#

wait

untold forum
#

Guys

vast latch
#

@untold forum

untold forum
#

I just discovered something

vast latch
#

Show me your ScreenGui Properties

untold forum
#

If I use the default cursor, it will work just fine

#

When I use the custom one it wont work no more

untold forum
vast latch
#

the one that holds the cursor image

untold forum
vast latch
#

try using global on zindexbehavior

untold forum
#

not working

vast latch
untold forum
#

The custom dot cursor frame has an image label inside of it for the actual cursor, maybe the image label of the cursor doesnt behave properly when it overlaps with the "Note1" Ui?

vast latch
#

can you show how the cursor looks like

rich stratus
#

Zindex but for screenguis

vast latch
#

in the explorer

untold forum
vast latch
#

this is so confusing, I've never had this issue before with custom cursors

vast latch
#

you could've used the image only as it's own child

untold forum
#

Oh, I tought a frame was necesary

vast latch
#

not always

#

that's your issue

#

the frame's zindex is below the overall frame

#

just use an imagelabel

untold forum
#

ok

#

ima do that

untold forum