Beispiel #1
0
        //private string m_PieceName = "None";
        //private int m_PiecePage = 1;
        //private BaseIngot m_Ingot;
        public BStartGump(PlayerMobile crafter, BlackSmithingCraftState craftstate, BaseTool tool, BStartContext context)
            : base(0, 0)
        {
            m_CraftState = craftstate;
            m_Crafter = crafter;
            m_Tool = tool;

            if (context == null)
                m_Context = new BStartContext();
            else
                m_Context = context;

            this.Closable = true;
            this.Disposable = false;
            this.Dragable = true;
            this.Resizable = false;
            this.AddPage(0);

            InitialSetUp();

            if (m_Context.Ingot != null)
                AddResourceImage(m_Context.Ingot);

            switch (m_Context.Page)
            {
                case 1: InitialPiecePage(); break;
                case 2: ArmorPiecePage(); break;
                case 3: WeaponPiecePage(); break;
                case 4: AttackPiecePage(); break;
                case 5: HiltsPage(); break;
                //case 6: EmbellishmentsPage(); break;
            }
        }
Beispiel #2
0
 public BStartTarget(BStartGump from, BlackSmithingCraftState craftstate, BStartContext context)
     : base(2, false, TargetFlags.None)
 {
     m_Owner = from;
     m_Craft = craftstate;
     m_Context = context;
 }