Bradley
Sorceror
tobagin said:if you add any item and go search for something that does not exist the GumpStudio give me an error!
Bug found and corrected. Thanks for the help. I'll post the new version when I get home from work today.
tobagin said:if you add any item and go search for something that does not exist the GumpStudio give me an error!
Dupre said:this is awesome, though i cant figure out how you use the Enum to execute code relevant to each button, so ive semi reverted to using Cases.
if you can shed some light on how you'd actually enter code in that tiny little box, id be greatful
namespace Server.Gumps
{
public class MyGump : Server.Gumps.Gump
{
public MyGump() : base(75, 75)
{
this.Closable=true;
this.Disposable=false;
this.Dragable=true;
this.Resizable=false;
this.AddPage(0);
this.AddBackground(10, 10, 250, 300, 9200);
this.AddBackground(20, 20, 225, 50, 3000);
this.AddImage(20, 30, 3820);
this.AddLabel(65, 35, 115, @"Token Reward Stone");
this.AddImage(190, 30, 3823);
this.AddButton(210, 275, 4017, 4018, (int)Buttons.Close, GumpButtonType.Page, 0);
this.AddImage(15, 105, 5360);
this.AddButton(60, 115, 1209, 1210, (int)Buttons.Deeds, GumpButtonType.Page, 0);
this.AddButton(60, 175, 1209, 1210, (int)Buttons.Clothing, GumpButtonType.Page, 0);
this.AddImage(20, 160, 9712);
this.AddButton(60, 235, 1209, 1210, (int)Buttons.Checks, GumpButtonType.Page, 0);
this.AddImage(17, 230, 3823);
this.AddBackground(80, 105, 160, 35, 3000);
this.AddLabel(115, 112, 32, @"Deed Rewards");
this.AddBackground(80, 165, 160, 35, 3000);
this.AddLabel(103, 172, 32, @"Wearable Rewards");
this.AddBackground(80, 225, 160, 35, 3000);
this.AddLabel(120, 232, 32, @"Token Checks");
}
public enum Buttons
{
Close,
Deeds,
Clothing,
Checks,
}
}
}
Daegon said:Dupre, attached is a revised version of the exporter.dll plugin. Drop in and you should be good to go (also fixed a button problem with it swtiching Reply and Page types).
Bradley said:I've got screenshots of my new totally rewritten gump editor.
http://tkpups.com/screen1.JPG
http://tkpups.com/screen2.JPG
http://tkpups.com/screen3.JPG
Ok, I tried with the new version of Exporter.dll...still get an @ in front of the html text portion in the code that's crashing the script...deleting this fixes it.Daegon said:Dupre, attached is a revised version of the exporter.dll plugin. Drop in and you should be good to go (also fixed a button problem with it swtiching Reply and Page types).
Dupre said:RunUO uses AddItem for gumps it seems, not AddImage
XxSP1DERxX said:Arya, in regards to your signature. Pure oxygen can be considered a drug, or a poison (depending on how you view its use).
Sorry if that was a little off-topic.