Example #1
0
 private static void GetStaticImage(ushort g, ref ArtInfo info)
 {
     UOFileManager.Art.TryGetEntryInfo(g, out long address, out long size, out long compressedsize);
     info.Address        = address;
     info.Size           = size;
     info.CompressedSize = compressedsize;
 }
Example #2
0
 private static void GetStaticImage(ushort g, ref ArtInfo info)
 {
     ArtLoader.Instance.TryGetEntryInfo(g, out long address, out long size, out long compressedsize);
     info.Address        = address;
     info.Size           = size;
     info.CompressedSize = compressedsize;
 }
Example #3
0
    void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == "Finish")
        {
            Destroy(gameObject, 0.5f);
        }

        if (other.gameObject.tag == "Art")
        {
            ArtInfo artInfo = other.gameObject.GetComponent <ArtInfo> ();
            if (!m_colourGet)
            {
                if (artInfo.colour == colour)
                {
                    AddHeart();
                    m_colourGet = true;
                }
            }
            if (!m_shapeGet)
            {
                if (artInfo.shape == headType)
                {
                    AddHeart();
                    m_shapeGet = true;
                }
            }
        }
    }
Example #4
0
        public ActionResult DeleteConfirmed(int id)
        {
            ArtInfo artInfo = db.ArtInfoes.Find(id);

            db.ArtInfoes.Remove(artInfo);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #5
0
 public ActionResult Edit([Bind(Include = "ID,Artist,Year,Genre,Medium,ImageFile")] ArtInfo artInfo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(artInfo).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(artInfo));
 }
Example #6
0
    public void SetArtInfo(ArtInfo info)
    {
        Renderer rend     = image.GetComponent <Renderer>();
        Material material = rend.material;

        material.mainTexture = info.image;
        Debug.Log("Pre method Image Height " + info.orig_height);
        Debug.Log("Pre method Image Width " + info.orig_width);
        frame.localScale = TextureToScale(info.orig_height, info.orig_width, frame.localScale.z);
    }
Example #7
0
        public ActionResult Create([Bind(Include = "ID,Artist,Year,Genre,Medium,ImageFile")] ArtInfo artInfo)
        {
            if (ModelState.IsValid)
            {
                db.ArtInfoes.Add(artInfo);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(artInfo));
        }
Example #8
0
    public void SetArtInfo(ArtInfo info)
    {
        Renderer rend     = image.GetComponent <Renderer>();
        Material material = rend.material;

        material.mainTexture = info.image;
        frame.localScale     = TextureToScale(info.image, frame.localScale.z);

        title.text       = info.title;
        artist.text      = info.artist;
        description.text = info.description;
    }
Example #9
0
        // GET: ArtInfoes/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ArtInfo artInfo = db.ArtInfoes.Find(id);

            if (artInfo == null)
            {
                return(HttpNotFound());
            }
            return(View(artInfo));
        }