About Store Forum Documentation Contact



Post Reply 
Mouse visible problem in Gui
Author Message
FireMan Offline
Member

Post: #1
Mouse visible problem in Gui
Hi. I use tut. Camera Modes and Loading Gui objects, I make gui if i click escape. How make to visible mouse in gui (if i click escape)? I need help.

P.S
If i click escape, variable menu is true and menu is visible if menu is false menu is not visible.

Forum reklamowe: http://ad-forum.pl
01-03-2010 06:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Barthap Offline
Member

Post: #2
RE: Mouse visible problem in Gui
Update():
Code:
if(your_gui_object.visible())Ms.show(); else Ms.hide();

In Bloody Massacre you can see when you click Tab Inventory Gui will be visible. (Player::update() and MouseVisibility() - there are code to visible and hide Mouse and Gui)
01-03-2010 07:04 PM
Find all posts by this user Quote this message in a reply
FireMan Offline
Member

Post: #3
RE: Mouse visible problem in Gui
That doesn't work. I tryed it.

Forum reklamowe: http://ad-forum.pl
01-03-2010 07:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
menajev Offline
Member

Post: #4
RE: Mouse visible problem in Gui
Ms.exclusiveEnable();
Ms.exclusiveDisable();?
(This post was last modified: 01-03-2010 07:38 PM by menajev.)
01-03-2010 07:37 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Mouse visible problem in Gui
show and hide is the way to go
01-03-2010 08:04 PM
Find all posts by this user Quote this message in a reply
FireMan Offline
Member

Post: #6
RE: Mouse visible problem in Gui
(01-03-2010 07:37 PM)menajev Wrote:  Ms.exclusiveEnable();
Ms.exclusiveDisable();?

that doesn't work.

Forum reklamowe: http://ad-forum.pl
01-03-2010 08:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Chris Offline
Member

Post: #7
RE: Mouse visible problem in Gui
Remove APP_MS_EXCLUSIVE from InitPre() (from camera modes tutorial)
01-03-2010 08:29 PM
Find all posts by this user Quote this message in a reply
Barthap Offline
Member

Post: #8
RE: Mouse visible problem in Gui
(01-03-2010 08:29 PM)Chris Wrote:  Remove APP_MS_EXCLUSIVE from InitPre() (from camera modes tutorial)
Yes, it can help, I forgot it
01-04-2010 01:25 PM
Find all posts by this user Quote this message in a reply
Post Reply