public InternalGump(AttendantLuckyDealer dealer, int dice, int faces) : base(60, 36) { this.m_Dealer = dealer; this.AddHtmlLocalized(14, 12, 273, 20, 1075995, 0x7FFF, false, false); // Lucky Dealer this.AddPage(0); this.AddBackground(0, 0, 273, 324, 0x13BE); this.AddImageTiled(10, 10, 253, 20, 0xA40); this.AddImageTiled(10, 40, 253, 244, 0xA40); this.AddImageTiled(10, 294, 253, 20, 0xA40); this.AddAlphaRegion(10, 10, 253, 304); this.AddButton(10, 294, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0); this.AddHtmlLocalized(45, 294, 80, 20, 1060051, 0x7FFF, false, false); // CANCEL this.AddButton(130, 294, 0xFB7, 0xFB9, 1, GumpButtonType.Reply, 0); this.AddHtmlLocalized(165, 294, 80, 20, 1076002, 0x7FFF, false, false); // Roll this.AddHtmlLocalized(14, 50, 120, 20, 1076000, 0x7FFF, false, false); // Number of dice this.AddGroup(0); this.AddRadio(14, 70, 0xD2, 0xD3, dice == 1, 1001); this.AddLabel(44, 70, 0x481, "1"); this.AddRadio(14, 100, 0xD2, 0xD3, dice == 2, 1002); this.AddLabel(44, 100, 0x481, "2"); this.AddRadio(14, 130, 0xD2, 0xD3, dice == 3, 1003); this.AddLabel(44, 130, 0x481, "3"); this.AddRadio(14, 160, 0xD2, 0xD3, dice == 4, 1004); this.AddLabel(44, 160, 0x481, "4"); this.AddHtmlLocalized(130, 50, 120, 20, 1076001, 0x7FFF, false, false); // Number of faces this.AddGroup(1); this.AddRadio(130, 70, 0xD2, 0xD3, faces == 4, 4); this.AddLabel(160, 70, 0x481, "4"); this.AddRadio(130, 100, 0xD2, 0xD3, faces == 6, 6); this.AddLabel(160, 100, 0x481, "6"); this.AddRadio(130, 130, 0xD2, 0xD3, faces == 8, 8); this.AddLabel(160, 130, 0x481, "8"); this.AddRadio(130, 160, 0xD2, 0xD3, faces == 10, 10); this.AddLabel(160, 160, 0x481, "10"); this.AddRadio(130, 190, 0xD2, 0xD3, faces == 12, 12); this.AddLabel(160, 190, 0x481, "12"); this.AddRadio(130, 220, 0xD2, 0xD3, faces == 20, 20); this.AddLabel(160, 220, 0x481, "20"); this.AddRadio(130, 250, 0xD2, 0xD3, faces == 100, 100); this.AddLabel(160, 250, 0x481, "100"); }
public InternalGump(AttendantLuckyDealer dealer, int dice, int faces) : base(60, 36) { m_Dealer = dealer; AddHtmlLocalized(14, 12, 273, 20, 1075995, 0x7FFF, false, false); // Lucky Dealer AddPage(0); AddBackground(0, 0, 273, 324, 0x13BE); AddImageTiled(10, 10, 253, 20, 0xA40); AddImageTiled(10, 40, 253, 244, 0xA40); AddImageTiled(10, 294, 253, 20, 0xA40); AddAlphaRegion(10, 10, 253, 304); AddButton(10, 294, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0); AddHtmlLocalized(45, 294, 80, 20, 1060051, 0x7FFF, false, false); // CANCEL AddButton(130, 294, 0xFB7, 0xFB9, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(165, 294, 80, 20, 1076002, 0x7FFF, false, false); // Roll AddHtmlLocalized(14, 50, 120, 20, 1076000, 0x7FFF, false, false); // Number of dice AddGroup(0); AddRadio(14, 70, 0xD2, 0xD3, dice == 1, 1001); AddLabel(44, 70, 0x481, "1"); AddRadio(14, 100, 0xD2, 0xD3, dice == 2, 1002); AddLabel(44, 100, 0x481, "2"); AddRadio(14, 130, 0xD2, 0xD3, dice == 3, 1003); AddLabel(44, 130, 0x481, "3"); AddRadio(14, 160, 0xD2, 0xD3, dice == 4, 1004); AddLabel(44, 160, 0x481, "4"); AddHtmlLocalized(130, 50, 120, 20, 1076001, 0x7FFF, false, false); // Number of faces AddGroup(1); AddRadio(130, 70, 0xD2, 0xD3, faces == 4, 4); AddLabel(160, 70, 0x481, "4"); AddRadio(130, 100, 0xD2, 0xD3, faces == 6, 6); AddLabel(160, 100, 0x481, "6"); AddRadio(130, 130, 0xD2, 0xD3, faces == 8, 8); AddLabel(160, 130, 0x481, "8"); AddRadio(130, 160, 0xD2, 0xD3, faces == 10, 10); AddLabel(160, 160, 0x481, "10"); AddRadio(130, 190, 0xD2, 0xD3, faces == 12, 12); AddLabel(160, 190, 0x481, "12"); AddRadio(130, 220, 0xD2, 0xD3, faces == 20, 20); AddLabel(160, 220, 0x481, "20"); AddRadio(130, 250, 0xD2, 0xD3, faces == 100, 100); AddLabel(160, 250, 0x481, "100"); }
public InternalGump(AttendantLuckyDealer dealer) : this(dealer, 1, 4) { }