Code cleanup.
This commit is contained in:
@@ -58,13 +58,12 @@ namespace Cryville.Crtr.Browsing.UI {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_title.text = "<color=#ff0000>Invalid resource</color>";
|
m_title.text = "<color=#ff0000>Invalid resource</color>";
|
||||||
m_desc.text = string.Empty;
|
m_desc.text = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void DisplayCover(bool succeeded, Texture2D tex) {
|
void DisplayCover(bool succeeded, Texture2D tex) {
|
||||||
if (succeeded) {
|
if (!succeeded) return;
|
||||||
m_cover.sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), Vector2.zero, 160, 0, SpriteMeshType.FullRect);
|
m_cover.sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), Vector2.zero, 160, 0, SpriteMeshType.FullRect);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public void Clear() {
|
public void Clear() {
|
||||||
m_placeholder.SetActive(true);
|
m_placeholder.SetActive(true);
|
||||||
|
Reference in New Issue
Block a user