public ResourceBoxGump(Mobile from, ResourceBox box, Pages page) : base(25, 25) { m_From = from; m_Box = box; m_Page = page; AddPage(0); AddBackground(50, 10, 455, 280, 83); AddImageTiled(58, 20, 438, 262, 2624); AddAlphaRegion(58, 20, 438, 262); AddButton(75, 25, 4026, 4027, 1, GumpButtonType.Reply, 0); AddLabel(110, 25, 0x8AB, "Add Resource"); AddPage(1); if (m_Page == Pages.Start) { AddLabel(225, 25, 0x480, "Choose Resource"); AddLabel(110, 75, 1152, "Logs"); AddButton(75, 75, 4005, 4007, 10, GumpButtonType.Reply, 0); AddLabel(110, 100, 1152, "Boards"); AddButton(75, 100, 4005, 4007, 11, GumpButtonType.Reply, 0); AddLabel(110, 125, 1152, "Ingots"); AddButton(75, 125, 4005, 4007, 12, GumpButtonType.Reply, 0); AddLabel(110, 150, 1152, "Granites"); AddButton(75, 150, 4005, 4007, 13, GumpButtonType.Reply, 0); AddLabel(110, 175, 1152, "Scales"); AddButton(75, 175, 4005, 4007, 14, GumpButtonType.Reply, 0); AddLabel(110, 200, 1152, "Leathers"); AddButton(75, 200, 4005, 4007, 15, GumpButtonType.Reply, 0); AddLabel(110, 225, 1152, "Misc"); AddButton(75, 225, 4005, 4007, 16, GumpButtonType.Reply, 0); AddLabel(110, 250, 1152, "Reagents"); AddButton(75, 250, 4005, 4007, 17, GumpButtonType.Reply, 0); if (StorageTypes.Logs.Length > 16) { AddLabel(310, 75, 1152, "More Woods"); AddButton(275, 75, 4005, 4007, 18, GumpButtonType.Reply, 0); } if (StorageTypes.Boards.Length > 16) { AddLabel(310, 100, 1152, "More Boards"); AddButton(275, 100, 4005, 4007, 19, GumpButtonType.Reply, 0); } if (StorageTypes.Ingots.Length > 16) { AddLabel(310, 125, 1152, "More Ingots"); AddButton(275, 125, 4005, 4007, 20, GumpButtonType.Reply, 0); } if (StorageTypes.Granites.Length > 16) { AddLabel(310, 150, 1152, "More Granites"); AddButton(275, 150, 4005, 4007, 21, GumpButtonType.Reply, 0); } if (StorageTypes.Scales.Length > 16) { AddLabel(310, 175, 1152, "More Scales"); AddButton(275, 175, 4005, 4007, 22, GumpButtonType.Reply, 0); } if (StorageTypes.Leathers.Length > 16) { AddLabel(310, 200, 1152, "More Leathers"); AddButton(275, 200, 4005, 4007, 23, GumpButtonType.Reply, 0); } if (StorageTypes.Misc.Length > 16) { AddLabel(310, 225, 1152, "More Misc"); AddButton(275, 225, 4005, 4007, 24, GumpButtonType.Reply, 0); } if (StorageTypes.Reagents.Length > 16) { AddLabel(310, 250, 1152, "More Reagents"); AddButton(275, 250, 4005, 4007, 25, GumpButtonType.Reply, 0); } } else { AddLabel(225, 25, 0x480, AddLabelsButtonsAmounts()); AddButton(425, 25, 4014, 4015, 2, GumpButtonType.Reply, 0); AddLabel(460, 25, 0x8AB, "Back"); } }
public ResourceBoxTarget(ResourceBox box, Pages page) : base(18, false, TargetFlags.None) { m_Box = box; m_Page = page; }
public ExtractPrompt(Type type, ResourceBox box, Pages page) { m_type = type; m_Box = box; m_Page = page; }
public ResourceBoxGump( Mobile from, ResourceBox box, Pages page ) : base( 25, 25 ) { m_From = from; m_Box = box; m_Page = page; AddPage( 0 ); AddBackground( 50, 10, 455, 305, 83 ); AddImageTiled( 58, 20, 438, 287, 2624 ); AddAlphaRegion( 58, 20, 438, 287 ); AddButton( 75, 25, 4026, 4027, 1, GumpButtonType.Reply, 0 ); AddLabel( 110, 25, 0x8AB, "Add Resource" ); AddPage( 1 ); if( m_Page == Pages.Start ) { AddLabel( 225, 25, 0x480, "Choose Resource" ); AddLabel( 110, 75, 1152, "Boards" ); AddButton( 75, 75, 4005, 4007, 10, GumpButtonType.Reply, 0 ); AddLabel( 110, 100, 1152, "Gems" ); AddButton( 75, 100, 4005, 4007, 11, GumpButtonType.Reply, 0 ); AddLabel( 110, 125, 1152, "Granites" ); AddButton( 75, 125, 4005, 4007, 12, GumpButtonType.Reply, 0 ); AddLabel( 110, 150, 1152, "Ingots" ); AddButton( 75, 150, 4005, 4007, 13, GumpButtonType.Reply, 0 ); AddLabel( 110, 175, 1152, "Leathers" ); AddButton( 75, 175, 4005, 4007, 14, GumpButtonType.Reply, 0 ); AddLabel( 110, 200, 1152, "Logs" ); AddButton( 75, 200, 4005, 4007, 15, GumpButtonType.Reply, 0 ); AddLabel( 110, 225, 1152, "Misc" ); AddButton( 75, 225, 4005, 4007, 16, GumpButtonType.Reply, 0 ); AddLabel( 110, 250, 1152, "Reagents" ); AddButton( 75, 250, 4005, 4007, 17, GumpButtonType.Reply, 0 ); AddLabel( 110, 275, 1152, "Scales" ); AddButton( 75, 275, 4005, 4007, 18, GumpButtonType.Reply, 0 ); if( StorageTypes.Boards.Length > 16 ) { AddLabel( 310, 75, 1152, "More Boards" ); AddButton( 275, 75, 4005, 4007, 19, GumpButtonType.Reply, 0 ); } if( StorageTypes.Gems.Length > 16 ) { AddLabel( 310, 100, 1152, "More Gems" ); AddButton( 275, 100, 4005, 4007, 20, GumpButtonType.Reply, 0 ); } if( StorageTypes.Granites.Length > 16 ) { AddLabel( 310, 125, 1152, "More Granites" ); AddButton( 275, 125, 4005, 4007, 21, GumpButtonType.Reply, 0 ); } if( StorageTypes.Ingots.Length > 16 ) { AddLabel( 310, 150, 1152, "More Ingots" ); AddButton( 275, 150, 4005, 4007, 22, GumpButtonType.Reply, 0 ); } if( StorageTypes.Leathers.Length > 16 ) { AddLabel( 310, 175, 1152, "More Leathers" ); AddButton( 275, 175, 4005, 4007, 23, GumpButtonType.Reply, 0 ); } if( StorageTypes.Logs.Length > 16 ) { AddLabel( 310, 200, 1152, "More Logs" ); AddButton( 275, 200, 4005, 4007, 24, GumpButtonType.Reply, 0 ); } if( StorageTypes.Misc.Length > 16 ) { AddLabel( 310, 225, 1152, "More Misc" ); AddButton( 275, 225, 4005, 4007, 25, GumpButtonType.Reply, 0 ); } if( StorageTypes.Reagents.Length > 16 ) { AddLabel( 310, 250, 1152, "More Reagents" ); AddButton( 275, 250, 4005, 4007, 26, GumpButtonType.Reply, 0 ); } if( StorageTypes.Scales.Length > 16 ) { AddLabel( 310, 275, 1152, "More Scales" ); AddButton( 275, 275, 4005, 4007, 27, GumpButtonType.Reply, 0 ); } } else { AddLabel( 225, 25, 0x480, AddLabelsButtonsAmounts() ); AddButton( 425, 25, 4014, 4015, 2, GumpButtonType.Reply, 0 ); AddLabel( 460, 25, 0x8AB, "Back" ); } }
public ResourceBoxTarget( ResourceBox box, Pages page ) : base( 19, false, TargetFlags.None )//was 18 changed to 19 { m_Box = box; m_Page = page; }
public ExtractPrompt( Type type, ResourceBox box, Pages page ) { m_type = type; m_Box = box; m_Page = page; }
public ResourceBoxTarget( ResourceBox box, Pages page ) : base( 18, false, TargetFlags.None ) { m_Box = box; m_Page = page; }
public ResourceBoxTarget(ResourceBox box, Pages page) : base(19, false, TargetFlags.None) //was 18 changed to 19 { m_Box = box; m_Page = page; }