Mirage Source
Changed the Item IMG Ranger - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Changed the Item IMG Ranger (/showthread.php?tid=1032)



Changed the Item IMG Ranger - Tayuke - 18-06-2007

Where, and how, would you change the Item Range. I see that the Item system in MSE1 only goes obtains image's down 1 column. My item set has 6 column's, and I do want to use as many item image's as possible.....

Help as soon as possible would be great Smile

Thanks


Re: Changed the Item IMG Ranger - William - 18-06-2007

What do you mean? do want to be able to choose items to the right and not only down?


Re: Changed the Item IMG Ranger - Tayuke - 18-06-2007

William Wrote:What do you mean? do want to be able to choose items to the right and not only down?

Yea, yea Smile How can that be done?


Re: Changed the Item IMG Ranger - William - 18-06-2007

Well currently the item uses a
Code:
Item(index).Pic
to declare what image it is. You will have to change it to:
Code:
Item(index).PicX
Item(index).PicY
And when blitting the image, its not just the Y that has the Pix variable, but also the X. Its not that difficult.

You basicly save them as .Pic is done and find the places they are drawn and change the x and y.


Re: Changed the Item IMG Ranger - Tayuke - 18-06-2007

O.k...but, I can't seem to find:

Code:
Item(index).Pic

Where is it in MSE1? I've searched both Client and Server :?


Re: Changed the Item IMG Ranger - Rezeyu - 18-06-2007

Because index isn't the variable it uses when it blits the item's picture.


Also, all GFX are done Client side, don't worry about the server too much.


Re: Changed the Item IMG Ranger - William - 19-06-2007

index was just an example. It probably uses EditorIndex on some places and other vars on other places. search for .Pic and change the itemrecs only.


Re: Changed the Item IMG Ranger - Rezeyu - 19-06-2007

It uses the MapItem rec for blitting to the map, I had to edit it once.


Re: Changed the Item IMG Ranger - William - 19-06-2007

Just make sure to backup your source.