EQ2UIPage and .NET

slowPoke

Active Member
I'm trying to figure out how this EQ2UIPage stuff works. Think I pretty much have it, except for the little problem I'm coding in .NET... And I have no idea how to get an EQ2UIPage.

I have all the includes as far as I know.

using EQ2.ISXEQ2;
using LavishVMAPI;
using InnerSpaceAPI;
using LavishScriptAPI;

though if I try to instantiate a EQ2UIPage class, it want's a LavishScriptObject as a parameter. And no idea where i get something like that. Can't even make them myself, as a LavishScriptObject requires a ... LavishScriptObject to be instantiated...

So anyone have any experience in using EQ2UIPage in .NET... or reference to any code I can see?

I can figure out the rest, on how to make this work. As long as I actually have an EQ2UIpage object to work with.

Code:
using EQ2.ISXEQ2;
using LavishVMAPI;
using InnerSpaceAPI;
using LavishScriptAPI;

...

static void Main() {
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    Application.Run(new eq2merchant());

    EQ2UIPage page = new EQ2UIPage ();
    page.Child ( "text", "SomethingSomething" );
}

...
//slowPoke
 

Valerian

ISX Specialist
depends on what you're trying to get. If you're trying to read the text from a ui element, try something like this (based on the reply buttons when talking to an NPC)

Code:
    EQ2UIPage page = new EQ2UIPage("ProxyActor","Conversation");
    // page.Child( "button", "1" ).Label is a string containing the text of the first button.
 

slowPoke

Active Member
I have unfortunatly allready tried that. Tried every variation I could think of with the Script language...

unfortunatly the EQ2UIPage object does not have a constructor with 2 string parameters. It exist only with 1 LavishScriptObject parameter

new EQ2UIPage(LavishScriptObject obj);

would be what is written in the interface description.

//Edit

I say I tried variations with the script language... this is not true, I looked at how it worked in scripting (and made it work with scripts).... and then attempted to make something similar in C#, with no success.
 

slowPoke

Active Member
Ahh, good to know it's not me being a complete moron.

Any timeframe for how fast something like that gets fixed? or any workaround to instantiate an object?

Possibly a way for me to instantiate a LavishScriptObject that I could use as a parameter? if it is possible to do that at all?

Or should I just consider EQ2UIpage a no go object in .NET, and settle for whats left?

//slowPoke
 

Valerian

ISX Specialist
until something official is out to fix it, you can probably get away with something like
Code:
EQ2UIPage page = new EQ2UIPage(LavishScript.Objects.GetObject("EQ2UIPage","ProxyActor","Conversation"))
 
Top Bottom