(06-15-2014 09:14 PM)horadryn Wrote: Can someone translate this?
Code:
using System;
using System.Collections;
...
That's a layer comparer as the class name says.
RunUO does use it to place in order every gump piece of your paperdoll.
There is no easy translation to that, depends on what context you will be using, and may even be better to create a new way to compare depending on what you will use it.
I've played with RunUO for a long time and I can say its code is made to fit their specific needs, it can tell you what is needed to do something, but will not tell you how to do it
So, if you're playing with Sphere scripts, this class will take a totally different form than C#, the same for PHP, C++, etc...
(06-10-2014 06:39 PM)admin phoenix Wrote: I think it will be very easy to do this one if we have ingame a command which will show us the link from art to gump.
At the moment you have to find it out with a lot of work arounds and def names.
donĀ“t know if it is hardcoded in the client?
I never saw anything inside the client files that link an item art with gump art.
UO client always had (at least for me) a fame to be badly coded with lots of workarounds. UO community have a incredible vast amount of knowledge around UO classic client that if there were something like that the community would already have found it, unless EA made it well hidden
Even UltimaXNA and other custom clients does use a very same method to draw the gump in order