Announcement

Collapse
No announcement yet.

Disappearing Interaction...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Disappearing Interaction...

    I have my own midGameMenu class and an interaction that draws the cursor on the screen. My problem is that I have a continue button on my midgame menu. Whenever I hit the continue button to retun to my level, the cursor dissapears.

    Now I know this si stemming from my interaction, becuase I set up something like this:

    Code:
    function bool KeyEvent(EInputKey Key, EInputAction Action, float Delta)
    {
    .
    .
    .
          else if(Key == 0x1B && showcursor == true)
          {
           showcursor = false;
    
           }
    
           else if(showcursor == false && Key == 0x1B)
            {
                       showcursor = true;
             } 
    
    
        return false;
    }
    So when the esc key is pressed, it hides the cursor. If I don't do this, two cursors appear on the screen. I'm not sure if there's soe kind of variable to pass between these two classes to control whether the cursor is drawn, but if anyonw has any ideas please let me know!

    Here's the midgame function where it hides the menu...
    Code:
    function bool InternalOnClick(GUIComponent Sender)
    {
    .
    .
    .
    	else if(Sender==Controls[1]) // CONTINUE
    	{
    		Controller.CloseMenu(); // Close _all_ menus
    
    	}
    .
    .
    .
    
    	return true;
    
    }
Working...
X