コード例 #1
0
        public MLHairDyeGump(MLHairDye dye) : base(50, 50)
        {
            bool OSIStyle = true;

            m_MLHairDye = dye;

            Closable   = true;
            Disposable = true;
            Dragable   = true;
            Resizable  = false;

            AddPage(0);

            AddBackground(0, 0, 294, 175, 3600);
            AddBackground(0, 0, 70, 66, 3600);
            AddBackground(70, 103, 204, 51, 9270);

            AddButton(241, 121, 1209, 1209, 1, GumpButtonType.Reply, 0);
            AddLabel(78, 21, 193, @"This special hair dye is made of");
            AddLabel(78, 37, 193, @"a unique mixture of leaves,");
            AddLabel(78, 53, 193, @"permanently changing one's hair");
            AddLabel(78, 69, 193, @"color until another dye is used.");
            AddLabel(89, 117, 84, @"Use permanent Hair Dye");
            if (OSIStyle)
            {
                AddItem(12, 22, 3594, 1153);                       // Luna White used in gump
            }
            else
            {
                AddItem(12, 22, 3594, m_MLHairDye.Hue);                     // Hairdye hue is used in gump
            }
        }
コード例 #2
0
		public MLHairDyeGump( MLHairDye dye ) : base( 50, 50 )
		{
			bool OSIStyle = true; 			
			
			m_MLHairDye = dye;
			
			Closable=true;
			Disposable=true;
			Dragable=true;
			Resizable=false;
			
			AddPage(0);
		
			AddBackground(0, 0, 294, 175, 3600);
			AddBackground(0, 0, 70, 66, 3600);
			AddBackground(70, 103, 204, 51, 9270);
			
			AddButton(241, 121, 1209, 1209, 1, GumpButtonType.Reply, 0);
		    AddLabel(78, 21, 193, @"This special hair dye is made of");
			AddLabel(78, 37, 193, @"a unique mixture of leaves,");
			AddLabel(78, 53, 193, @"permanently changing one's hair");
			AddLabel(78, 69, 193, @"color until another dye is used.");
			AddLabel(89, 117, 84, @"Use permanent Hair Dye");
			if ( OSIStyle )
			{
				AddItem(12, 22, 3594, 1153);       // Luna White used in gump
			}
			else
			{
				AddItem(12, 22, 3594, m_MLHairDye.Hue);     // Hairdye hue is used in gump
			}
		}