sahisahi
Member
For some reason the gump doesnt show the weapon name. heres the code
I also tried AddLabel(348,165,2525,a.Name)); nothing,doesnt work either
C#:
public singleclickweapon(Mobile from, BaseWeapon a) : base( 0, 0 )
{
this.Closable=true;
this.Disposable=true;
this.Dragable=true;
this.Resizable=false;
AddPage(0);
int count = 0;
if (this == null) return;
//BaseWeapon wa = this as BaseWeapon; //throws error
AddBackground(243, 159,240, 305,3500);
AddItem(254, 163, a.ItemID,0); ///WORKS
AddLabel(276,218, LabelHue,string.Format("Damage: {0} - {1}",a.MinDamage,a.MaxDamage)); //WORKS
AddLabel(276,238, LabelHue,string.Format("Attack Speed - {0}",a.Speed)); //WORKS
AddLabel(348,165,2525,string.Format("{0}",a.Name)); //<---- DOESNT WORK, WHY? cant get the gump to show the baseweapon name
I also tried AddLabel(348,165,2525,a.Name)); nothing,doesnt work either
Last edited: