mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 10:29:00 +00:00
Add generic text attribute to credit json parser
This commit is contained in:
1 parent
2cc0cf457a
commit
a6b1318164
1 file changed
+3
-1
@@ -8,6 +8,7 @@ var g_OrderTabNames = [
|
||||
"audio",
|
||||
"maps",
|
||||
"history",
|
||||
"encylopedia",
|
||||
"balancing",
|
||||
"community",
|
||||
"translators",
|
||||
@@ -94,7 +95,8 @@ function parseHelper(list)
|
||||
credit = element.nick;
|
||||
else if (element.name)
|
||||
credit = element.name;
|
||||
|
||||
else if (element.text)
|
||||
credit = element.text;
|
||||
if (credit)
|
||||
result += setStringTags(credit + "\n", { "font": "sans-14" });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user