FireMan
Member
|
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 |
|
Barthap
Member
|
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 |
|
FireMan
Member
|
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 |
|
menajev
Member
|
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 |
|
Esenthel
Administrator
|
RE: Mouse visible problem in Gui
show and hide is the way to go
|
|
01-03-2010 08:04 PM |
|
FireMan
Member
|
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 |
|
Chris
Member
|
RE: Mouse visible problem in Gui
Remove APP_MS_EXCLUSIVE from InitPre() (from camera modes tutorial)
|
|
01-03-2010 08:29 PM |
|
Barthap
Member
|
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 |
|