resolving comments

This commit is contained in:
Chr1Z93 2023-07-20 23:03:28 +02:00
parent 2bf95356dc
commit 6ef13f644a
3 changed files with 7 additions and 8 deletions

View File

@ -1 +1 @@
{"acknowledgedUpgradeVersions":[],"optionPanel":{"cardLanguage":"English","playAreaSnapTags":true,"showAttachmentHelper":false,"showChaosBagManager":false,"showCleanUpHelper":false,"showCustomPlaymatImages":false,"showCYOA":false,"showDisplacementTool":false,"showDrawButton":false,"showHandHelper":[],"showSearchAssistant":[],"showTitleSplash":true,"showTokenArranger":false,"useClueClickers":false,"useSnapTags":true}}
{"acknowledgedUpgradeVersions":[],"optionPanel":{"cardLanguage":"en","playAreaSnapTags":true,"showAttachmentHelper":false,"showChaosBagManager":false,"showCleanUpHelper":false,"showCustomPlaymatImages":false,"showCYOA":false,"showDisplacementTool":false,"showDrawButton":false,"showHandHelper":[],"showSearchAssistant":[],"showTitleSplash":true,"showTokenArranger":false,"useClueClickers":false,"useSnapTags":true}}

View File

@ -850,15 +850,14 @@ end
-- called by the language selection dropdown
function languageSelected(_, selectedIndex, id)
optionPanel[id] = LANGUAGES[tonumber(selectedIndex) + 1].name
optionPanel[id] = LANGUAGES[tonumber(selectedIndex) + 1].code
end
function returnLanguageId(name)
-- returns the ID (position in the table) for a provided language code
function returnLanguageId(code)
for index, tbl in ipairs(LANGUAGES) do
for key, value in pairs(tbl) do
if key == "name" and value == name then
return index
end
if tbl.code == code then
return index
end
end
end

View File

@ -115,7 +115,7 @@
<Cell class="option-dropdowntext">
<VerticalLayout class="text-column">
<Text class="option-header">Card language</Text>
<Text class="description">Downloading a supported campaign or importing a deck will use this language for the cards.</Text>
<Text class="description">Downloading a campaign or importing a deck will use this language (if available).</Text>
</VerticalLayout>
</Cell>
<Cell class="option-dropdown">