Ejemplo n.º 1
0
        public CaptureResponse CaptureImage(Type type, out ImageType image)
        {
            for (int i = 0; i < m_Images.Length; i++)
            {
                ImageTypeInfo info = ImageTypeInfo.Get(m_Images[i]);

                if (info.Type == type)
                {
                    image = m_Images[i];

                    if (m_Done[i])
                    {
                        return(CaptureResponse.AlreadyDone);
                    }
                    else
                    {
                        m_Done[i] = true;

                        CheckCompletionStatus();

                        return(CaptureResponse.Valid);
                    }
                }
            }

            image = (ImageType)0;
            return(CaptureResponse.Invalid);
        }
Ejemplo n.º 2
0
 public CaptureImagesObjective(bool init)
 {
     if (init)
     {
         m_Images = ImageTypeInfo.RandomList(4);
         m_Done   = new bool[4];
     }
 }
Ejemplo n.º 3
0
            public InternalGump(ImageType image) : base(75, 25)
            {
                ImageTypeInfo info = ImageTypeInfo.Get(image);

                AddBackground(45, 20, 100, 100, 0xA3C);
                AddBackground(52, 29, 86, 82, 0xBB8);

                AddItem(info.X, info.Y, info.Figurine);
            }
Ejemplo n.º 4
0
        public override void RenderProgress(BaseQuestGump gump)
        {
            if (!Completed)
            {
                for (int i = 0; i < m_Images.Length; i++)
                {
                    ImageTypeInfo info = ImageTypeInfo.Get(m_Images[i]);

                    gump.AddHtmlObject(70, 260 + 20 * i, 200, 100, info.Name, BaseQuestGump.Blue, false, false);
                    gump.AddLabel(200, 260 + 20 * i, 0x64, " : ");
                    gump.AddHtmlObject(220, 260 + 20 * i, 100, 100, m_Done[i] ? 1055121 : 1055122, BaseQuestGump.Blue, false, false);
                }
            }
            else
            {
                base.RenderProgress(gump);
            }
        }
Ejemplo n.º 5
0
        public override bool IgnoreYoungProtection(Mobile from)
        {
            if (Completed)
            {
                return(false);
            }

            Type fromType = from.GetType();

            for (int i = 0; i < m_Images.Length; i++)
            {
                ImageTypeInfo info = ImageTypeInfo.Get(m_Images[i]);

                if (info.Type == fromType)
                {
                    return(true);
                }
            }

            return(false);
        }
Ejemplo n.º 6
0
        public override void OnSingleClick(Mobile from)
        {
            ImageTypeInfo info = ImageTypeInfo.Get(m_Image);

            LabelTo(from, 1060847, "#1055126\t#" + info.Name);               // a painted image of:
        }
Ejemplo n.º 7
0
        public override void AddNameProperty(ObjectPropertyList list)
        {
            ImageTypeInfo info = ImageTypeInfo.Get(m_Image);

            list.Add(1060847, "#1055126\t#" + info.Name);               // a painted image of:
        }
Ejemplo n.º 8
0
        public override LocalizedText GetNameProperty()
        {
            ImageTypeInfo info = ImageTypeInfo.Get(m_Image);

            return(new LocalizedText(1060847, "#1055126\t#" + info.Name));              // a painted image of:
        }