Jump to content

Search the Community

Showing results for tags 'button mousein mouseout'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello, I'm creating a Phaser button:createButton: function( size, label, style, callback , context ) { var button = new Phaser.Button( this.game, 0, 0 , this.theme.textureKey, callback, context, this.theme.button[size].hover, this.theme.button[size].up,this.theme.button[size].hover ); button.input.useHandCursor = true; var buttonStyle = _.clone(style); buttonStyle.wordWrap = true; buttonStyle.wordWrapWidth = button.width - (button.width / 10); buttonStyle.align = "center"; var buttonText = new Phaser.Text(this.game, button.width/2, button.height/2, label , buttonStyle); buttonText.bringToTop(); buttonText.lineSpacing = -5; buttonText.anchor.setTo(0.5, 0.5); button.addChild(buttonText); button.childText = buttonText; return button; }, That I then add to a game using add.existing The problem I'm having is that if the user clicks the button and I temporarily hide it (and then use it again), when it is shown again it is still in the mouse-over position and the cursor is still the hand. The only way to update it is to mouse over the button then mouse out again. This is really a problem, as the only work around I've found is to destroy the button after every use?!?! Any help? George
×
×
  • Create New...