mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Add generic text attribute to credit json parser
This commit is contained in:
parent
f90804c78f
commit
a28dfac1c4
1 changed files with 3 additions and 1 deletions
|
|
@ -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" });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue