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; }
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; }
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; } } } }
public ActionResult DeleteConfirmed(int id) { ArtInfo artInfo = db.ArtInfoes.Find(id); db.ArtInfoes.Remove(artInfo); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
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); }
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)); }
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; }
// 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)); }