private string InfoString(FileHandler.Thumbnail _thumb) { return("<b>Name: </b>" + Path.GetFileNameWithoutExtension(_thumb.ImageLoc) + " \n <b>Resolution: </b>" + _thumb.Width + "x" + _thumb.Height + " \n <b>Location: </b>" + _thumb.Country + " \n <b>Date Taken: </b>" + _thumb.DateString); }
public void SetThumb(FileHandler.Thumbnail _thumb) { m_Thumb = _thumb; m_Mesh.material.mainTexture = m_Thumb.Thumb; m_Text.text = InfoString(m_Thumb); m_LargeText.text = InfoString(m_Thumb); }
public void SetThumb( FileHandler.Thumbnail _thumb ) { m_Thumb = _thumb; m_Mesh.material.mainTexture = m_Thumb.Thumb; m_Text.text = InfoString( m_Thumb ); m_LargeText.text = InfoString( m_Thumb ); }