public MannequinTarget( Mobile from, Mannequin man ) : base(-1, true, TargetFlags.None) { m_From = from; m_Man = man; CheckLOS = false; }
public override void OnDoubleClick( Mobile from ) { if ( IsChildOf( from.Backpack ) ) { Mannequin m = new Mannequin( from, false ); m.Map = from.Map; m.Location = from.Location; m.Direction = from.Direction; this.Delete(); } else { from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it. } }
public SwitchClothesEntry(Mobile from, Mannequin m) : base(1151606, 2) { _From = from; _Mannequin = m; }
public AddDescriptionEntry(Mobile from, Mannequin m) : base(1159411, 3) // Add Description { _From = from; _Mannequin = m; }
public InternalTarget(Mannequin m) : base(-1, false, TargetFlags.None) { _Mannequin = m; }
public ViewSuitsSelectItemEntry(Mobile from, Mannequin m) : base(1159297, 3) // View Suit Stats With Selected Item { _From = from; _Mannequin = m; }
public CompareWithItemInSlotEntry(Mobile from, Mannequin m) : base(1159295, 3) // View Suit Stats With Selected Item { _From = from; _Mannequin = m; }
public ViewSuitsEntry(Mobile from, Mannequin m) : base(1159296, 3) // View Suit Stats { _From = from; _Mannequin = m; }
public MannequinControl( Mannequin controlled, Mobile controller, int curpage ) : base(0, 0) { controller.SendMessage( "CurrentPage = {0}", curpage ); m_Controlled = controlled; m_Controller = controller; m_CurrentPage = curpage; Closable=true; Disposable=true; Dragable=true; Resizable=false; AddPage(0); AddBackground(0, 0, 180, 300, 9270); AddLabel(60, 20, 68, m_Controlled.Name); AddButton(20, 75, 2117, 2118, 1, GumpButtonType.Reply, 0); AddButton(20, 125, 2117, 2118, 2, GumpButtonType.Reply, 0); AddButton(20, 175, 2117, 2118, 3, GumpButtonType.Reply, 0); AddButton(20, 225, 2117, 2118, 4, GumpButtonType.Reply, 0); AddLabel(45, 75, 49, "Move Me"); AddLabel(45, 125, 49, "Face Me"); AddLabel(45, 175, 49, "Change Hue"); AddLabel(45, 225, 49, "Change Gender"); AddPage(1); switch( m_CurrentPage ) { case( 1 ): { AddBackground(180, 0, 180, 250, 9270); AddButton(262, 25, 2117, 2118, 5, GumpButtonType.Reply, 0); AddButton(262, 140, 2117, 2118, 6, GumpButtonType.Reply, 0); AddHtml( 194, 45, 150, 75, "<basefont color=#33aa33>Click here and I will move to your location.</basefont>", false, false); AddHtml( 194, 160, 150, 75, "<basefont color=#aa3333>Click here and I will move to where you target.</basefont>", false, false); break; } case( 2 ): { AddBackground(180, 0, 250, 250, 9270); AddImage(205, 25, 5010); AddImage( 270, 70, 9000 ); if( m_Controlled.Direction == Direction.Mask ) AddImage(298, 60, 1209); else if( m_Controlled.Direction == Direction.North ) AddImage(338, 78, 1209); else if( m_Controlled.Direction == Direction.Right ) AddImage(356, 118, 1209); else if( m_Controlled.Direction == Direction.East ) AddImage(339, 157, 1209); else if( m_Controlled.Direction == Direction.Down ) AddImage(298, 175, 1209); else if( m_Controlled.Direction == Direction.South ) AddImage(258, 158, 1209); else if( m_Controlled.Direction == Direction.Left ) AddImage(240, 118, 1209); else if( m_Controlled.Direction == Direction.West ) AddImage(258, 77, 1209); AddButton(281, 8, 4500, 4500, 7, GumpButtonType.Reply, 0); AddButton(345, 37, 4501, 4501, 8, GumpButtonType.Reply, 0); AddButton(372, 100, 4502, 4502, 9, GumpButtonType.Reply, 0); AddButton(342, 164, 4503, 4503, 10, GumpButtonType.Reply, 0); AddButton(281, 191, 4504, 4504, 11, GumpButtonType.Reply, 0); AddButton(216, 165, 4505, 4505, 12, GumpButtonType.Reply, 0); AddButton(188, 100, 4506, 4506, 13, GumpButtonType.Reply, 0); AddButton(216, 35, 4507, 4507, 14, GumpButtonType.Reply, 0); break; } case( 3 ): { AddBackground(180, 0, 180, 250, 9270); AddButton(262, 74, 2117, 2118, 15, GumpButtonType.Reply, 0); AddButton(262, 118, 2117, 2118, 16, GumpButtonType.Reply, 0); AddButton(262, 162, 2117, 2118, 17, GumpButtonType.Reply, 0); AddHtml( 194, 89, 150, 75, "<basefont color=#33aa33>Change my hue to white.</basefont>", false, false); AddHtml( 194, 133, 150, 75, "<basefont color=#33aa33>Change my hue to black.</basefont>", false, false); AddHtml( 194, 175, 150, 75, "<basefont color=#33aa33>Change my hue to grey.</basefont>", false, false); break; } } }
public MannequinGump(Mobile from, Mannequin mannequin, string message, bool success) : base(0, 0) { m_From = from; m_Mannequin = mannequin; from.CloseGump(typeof (MannequinGump)); AddBackground(); AddButtons(); if (message.Length > 0) { message = CHARGE_FOR_CUSTOMIZATIONS ? message.Replace("ZZHAIR", string.Format("{0}", FEE_TO_CHANGE_HAIR_COLOR)) : ""; message = CHARGE_FOR_CUSTOMIZATIONS ? message.Replace("ZZSKIN", string.Format("{0}", FEE_TO_CHANGE_SKIN_COLOR)) : ""; AddLabel(60, 49, success ? 0x40 : 0x20, message); } }
public MannequinGump(Mobile from, Mannequin mannequin) : this(from, mannequin, "", false) { }
public RedeedEntry(Mobile mob, Mannequin mann) : base(1151601, 4) { from = mob; dummy = mann; }
public RotateEntry(Mobile mob, Mannequin mann) : base(1151586, 4) { from = mob; dummy = mann; }
public SwitchClothesEntry(Mobile mob, Mannequin mann) : base(1151606, 4) { from = mob; dummy = mann; }
public CustomizeBodyEntry(Mobile mob, Mannequin mann) : base(1151585, 4) { from = mob; dummy = mann; }