public BardsStandTarget( BardsStand stand ) : base( 18, false, TargetFlags.None ) { bsStand = stand; }
public BardsStandTarget(BardsStand stand) : base(18, false, TargetFlags.None) { bsStand = stand; }
public BardsStandGump( Mobile from, BardsStand stand ) : base( 25, 25 ) { mFrom = from; bsStand = stand; from.CloseGump( typeof( BardsStandGump ) ); AddPage( 0 ); AddBackground( 0, 0, 505, 410, 5170 ); AddPage(0); AddLabel( 170, 25, 25, "Bards Stand" ); for (int line = 0; line < 15; line++) { if ( stand.Slayer[BardsStand.Names[line]] != null && (int)stand.Slayer[BardsStand.Names[line]] > 0) { AddButton( 30, 50+line*20, 4015, 4016, 100+line, GumpButtonType.Reply, 0 ); AddLabel( 65, 50+line*20, 2118, stand.Slayer[BardsStand.Names[line]].ToString() ); } else { AddButton( 30, 50+line*20, 4006, 4007, 999, GumpButtonType.Reply, 0 ); AddLabel( 65, 50+line*20, 32, "0" ); } AddLabel( 115, 50+line*20, 0x486, BardsStand.Names[line] ); if (line < 14) { if ( stand.Slayer[BardsStand.Names[line+15]] != null && (int)stand.Slayer[BardsStand.Names[line+15]] > 0) { AddButton( 260, 50+line*20, 4015, 4016, 100+line+15, GumpButtonType.Reply, 0 ); AddLabel( 295, 50+line*20, 2118, stand.Slayer[BardsStand.Names[line+15]].ToString() ); } else { AddButton( 260, 50+line*20, 4006, 4007, 999, GumpButtonType.Reply, 0 ); AddLabel( 295, 50+line*20, 32, "0" ); } AddLabel( 345, 50+line*20, 0x486, BardsStand.Names[line+15] ); } else { AddButton( 300, 50+line*20, 4006, 4007, 999, GumpButtonType.Reply, 0 ); AddLabel( 345, 50+line*20, 32, "Add" ); AddButton( 380, 50+line*20, 4015, 4016, 999, GumpButtonType.Reply, 0 ); } AddRadio(25, 355, 9727, 9730, (stand.LastChecked == 10), 10 ); AddLabel(55, 360, 69, "Lap Harp" ); AddRadio(115, 355, 9727, 9730, (stand.LastChecked == 11), 11 ); AddLabel(145, 360, 69, "Harp" ); AddRadio(180, 355, 9727, 9730, (stand.LastChecked == 12), 12 ); AddLabel(210, 360, 69, "Drum" ); AddRadio(245, 355, 9727, 9730, (stand.LastChecked == 13), 13 ); AddLabel(275, 360, 69, "Lute" ); AddRadio(310, 355, 9727, 9730, (stand.LastChecked == 14), 14 ); AddLabel(340, 360, 69, "Tambourine" ); if ( Core.SE ) { AddRadio(410, 355, 9727, 9730, (stand.LastChecked == 15), 15 ); AddLabel(445, 360, 69, "Flute" ); } } }
public BardsStandGump(Mobile from, BardsStand stand) : base(25, 25) { mFrom = from; bsStand = stand; from.CloseGump(typeof(BardsStandGump)); AddPage(0); AddBackground(0, 0, 505, 410, 5170); AddPage(0); AddLabel(170, 25, 25, "Bards Stand"); for (int line = 0; line < 15; line++) { if (stand.Slayer[BardsStand.Names[line]] != null && (int)stand.Slayer[BardsStand.Names[line]] > 0) { AddButton(30, 50 + line * 20, 4015, 4016, 100 + line, GumpButtonType.Reply, 0); AddLabel(65, 50 + line * 20, 2118, stand.Slayer[BardsStand.Names[line]].ToString()); } else { AddButton(30, 50 + line * 20, 4006, 4007, 999, GumpButtonType.Reply, 0); AddLabel(65, 50 + line * 20, 32, "0"); } AddLabel(115, 50 + line * 20, 0x486, BardsStand.Names[line]); if (line < 14) { if (stand.Slayer[BardsStand.Names[line + 15]] != null && (int)stand.Slayer[BardsStand.Names[line + 15]] > 0) { AddButton(260, 50 + line * 20, 4015, 4016, 100 + line + 15, GumpButtonType.Reply, 0); AddLabel(295, 50 + line * 20, 2118, stand.Slayer[BardsStand.Names[line + 15]].ToString()); } else { AddButton(260, 50 + line * 20, 4006, 4007, 999, GumpButtonType.Reply, 0); AddLabel(295, 50 + line * 20, 32, "0"); } AddLabel(345, 50 + line * 20, 0x486, BardsStand.Names[line + 15]); } else { AddButton(300, 50 + line * 20, 4006, 4007, 999, GumpButtonType.Reply, 0); AddLabel(345, 50 + line * 20, 32, "Add"); AddButton(380, 50 + line * 20, 4015, 4016, 999, GumpButtonType.Reply, 0); } AddRadio(25, 355, 9727, 9730, (stand.LastChecked == 10), 10); AddLabel(55, 360, 69, "Lap Harp"); AddRadio(115, 355, 9727, 9730, (stand.LastChecked == 11), 11); AddLabel(145, 360, 69, "Harp"); AddRadio(180, 355, 9727, 9730, (stand.LastChecked == 12), 12); AddLabel(210, 360, 69, "Drum"); AddRadio(245, 355, 9727, 9730, (stand.LastChecked == 13), 13); AddLabel(275, 360, 69, "Lute"); AddRadio(310, 355, 9727, 9730, (stand.LastChecked == 14), 14); AddLabel(340, 360, 69, "Tambourine"); if (Core.SE) { AddRadio(410, 355, 9727, 9730, (stand.LastChecked == 15), 15); AddLabel(445, 360, 69, "Flute"); } } }