Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: diduk on January 13, 2011, 12:24:51 AM

Title: The cursor(problem) and item simultaneously on the screen
Post by: diduk on January 13, 2011, 12:24:51 AM
I have made the cursor and item simultaneously on the screen.
The cursor is drawn always under item.
Whether it is possible to make that the cursor was drawn over item?

ITEM
{
   CAPTION = ""
   NAME = "ruchka"
   SPRITE = "items\ruchka\ruchka.tga"
   CURSOR = "items\ruchka\ruchka.sprite"
   CURSOR_HOVER = "items\ruchka\ruchka_a.sprite"
   CURSOR_COMBINED = TRUE
   SCRIPT = "items\ruchka\ruchka.script"
}
Title: Re: The cursor(problem) and item simultaneously on the screen
Post by: Mnemonic on January 13, 2011, 11:48:58 AM
I'm afraid the order is hardcoded and cannot be changed. You'd need to set CURSOR_COMBINED to FALSE and paint an image with both the mouse pointer and item image.
Title: Re: The cursor(problem) and item simultaneously on the screen
Post by: diduk on January 13, 2011, 12:12:28 PM
If I set CURSOR_COMBINED to FALSE, will only draw an item, the cursor will not be drawn.
But I need the cursor over item.
Title: Re: The cursor(problem) and item simultaneously on the screen
Post by: Mnemonic on January 13, 2011, 02:05:07 PM
Yes, that's why I said you'd need to create a combined image.
Title: Re: The cursor(problem) and item simultaneously on the screen
Post by: diduk on January 13, 2011, 03:38:04 PM
Thanks all Ok!