jflowers45 Posted March 27, 2014 Share Posted March 27, 2014 What is the 'suggested' way to make the cursor turn into a hand when you mouse over a button? Modify the onInputOver? Link to comment Share on other sites More sharing options...
Rocco Posted March 27, 2014 Share Posted March 27, 2014 this is the way for sprites, so it should be similar for buttons?sprite.inputEnabled = true;sprite.input.useHandCursor = true; Tilde 1 Link to comment Share on other sites More sharing options...
jflowers45 Posted March 27, 2014 Author Share Posted March 27, 2014 worked like a charm. thanks! Link to comment Share on other sites More sharing options...
shabeerahmedshah Posted June 23, 2016 Share Posted June 23, 2016 What about cursors on text? Link to comment Share on other sites More sharing options...
deedeekaka Posted August 2, 2016 Share Posted August 2, 2016 On 6/23/2016 at 0:29 PM, shabeerahmedshah said: What about cursors on text? I would also like to know if this is possible @rich Link to comment Share on other sites More sharing options...
kstamatov85 Posted April 4, 2017 Share Posted April 4, 2017 @deedeekaka My workaround to set cursor on text is to attach a transparent tileSprite on it. You can take the dimension of the text object and create tileSprite with the same size. Then You add the tilesprite to the text as its Child. Now you can inputEnable the tileSprite and apply cursor on it. var backText = _t.make.text(-(popup_width / 2), (popup_height) - 90, SP.lang.backLabel, SP.font.blueSmallFont); backText.anchor.setTo(0.5, 0); var backTextclickArea = _t.make.tileSprite(0, 18, 190, 45, 'transparentPixel'); // The size cords could be generated dynamically !!! backTextclickArea.anchor.setTo(0.5, 0); backTextclickArea.inputEnabled = true; backTextclickArea.input.useHandCursor = true; backTextclickArea.events.onInputDown.add(_t.goBack, _t); backTextclickArea.input.priorityID = 10; backText.addChild(backTextclickArea); Fenopiù 1 Link to comment Share on other sites More sharing options...
Recommended Posts