Wintermute Engine => Technical forum => Topic started by: anarchist on May 28, 2015, 08:38:53 PM
Title: Hide main cursor when an inventory item is selected
Post by: anarchist on May 28, 2015, 08:38:53 PM
I have several inventory items for which I have created cursor sprites. When I select an inventory item I want to hide the main cursor and only show the item cursor. Some item cursors are smaller than the main cursor which results in both cursors being visible.
I have tried adding the following code in game.script:
This removes the main cursor when the mouse is not over a scene entity or actor. But when the cursor hovers over a scene entity or actor, the entity specific cursor appears together with the item's cursor.
A solution would be to make all item cursor sprites larger than the scene entity cursor sprites. But I wonder if there is an easy way through script.
Title: Re: Hide main cursor when an inventory item is selected
Post by: Dan Peach on May 30, 2015, 02:17:42 PM
Can't you just set the item cursor in the item definition file?
Title: Re: Hide main cursor when an inventory item is selected
Post by: eborr on June 01, 2015, 09:28:18 AM
there is an attribute CursorCombined try setting it to False
Title: Re: Hide main cursor when an inventory item is selected
Post by: anarchist on June 01, 2015, 06:24:04 PM