def setDescription(self,asset):
desc = "<big>" + asset["title"] + "</big><br />\n <br />\n"
desc = desc + "<b><tt>Author.........: </tt></b>" + asset["username"] + "<br />\n"
if "license" in asset.keys():
desc = desc + "<b><tt>License........: </tt></b>" + asset["license"] + "<br />\n"
if "compatibility" in asset.keys():
desc = desc + "<b><tt>Compatibility..: </tt></b>" + asset["compatibility"] + "<br />\n"
key = None
if asset["type"] == "clothes":
key = "mhclo"
if asset["type"] == "hair":
key = "mhclo"
if asset["type"] == "teeth":
key = "mhmat"
if asset["type"] == "eyebrows":
key = "mhmat"
if asset["type"] == "eyelashes":
key = "mhmat"
if asset["type"] == "skin":
key = "mhmat"
if asset["type"] == "target":
key = "file"
if asset["type"] == "proxy":
key = "file"
if asset["type"] == "target":
key = "file"
if asset["type"] == "material":
key = "mhmat"
if asset["type"] == "rig":
key = "file"
if asset["type"] == "model":
key = "file"
if key:
url = asset["files"][key]
fn = url.rsplit('/', 1)[-1]
fn = fn.replace("." + key,"")
fn = fn.replace("_"," ")
desc = desc + "<b><tt>Name in MH.....: </tt></b>" + fn + "<br />\n"
self.assetInfoText.setText(desc)
self.assetDescription.setText(asset["description"])
#debug.log(desc + asset["description"])
assetdownload.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录