Merge pull request #442 from argonui/option-panel

Option Panel: moved descriptions to tooltips
This commit is contained in:
Chr1Z 2023-10-26 23:31:01 +02:00 committed by GitHub
commit b49fe82d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,9 @@
<!-- options --> <!-- options -->
<Row class="option-text" <Row class="option-text"
preferredHeight="70"/> preferredHeight="50"
tooltipPosition="Left"
tooltipBackgroundColor="rgba(0,0,0,1)"/>
<Cell class="option-text" <Cell class="option-text"
color="#333333" color="#333333"
columnSpan="2"/> columnSpan="2"/>
@ -50,14 +52,13 @@
<Cell class="option-dropdown" <Cell class="option-dropdown"
color="#333333" color="#333333"
columnSpan="2"/> columnSpan="2"/>
<VerticalLayout class="text-column" <Panel class="option-wrapper"
padding="10 0 0 0" padding="10 0 0 0"/>
spacing="5"/>
<Text class="option-header" <Text class="option-header"
fontSize="20" fontSize="22"
font="font_teutonic-arkham"/> font="font_teutonic-arkham"/>
<Text class="description" <Panel class="dropdown-wrapper"
fontSize="12"/> padding="0 17 3 3"/>
<!-- buttons at the bottom --> <!-- buttons at the bottom -->
<Button class="bottomButtons" <Button class="bottomButtons"
@ -101,7 +102,7 @@
raycastTarget="true"> raycastTarget="true">
<TableLayout columnWidths="0 100 75" <TableLayout columnWidths="0 100 75"
autoCalculateHeight="1" autoCalculateHeight="1"
cellPadding="10 5 5 5"> cellPadding="10 10 5 5">
<!-- Group: general settings --> <!-- Group: general settings -->
<Row class="group-header"> <Row class="group-header">
@ -114,17 +115,16 @@
</Row> </Row>
<!-- Option: card language --> <!-- Option: card language -->
<Row class="option-text"> <!-- disabled until we have the backend in place
<Row class="option-text" tooltip="Downloading a campaign or importing a deck will use&#xA;this language for cards (NOT FUNCTIONAL YET!).">
<Cell class="option-dropdowntext"> <Cell class="option-dropdowntext">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Card language</Text> <Text class="option-header">Card language</Text>
<Text class="description">Downloading a campaign or importing a deck will use this language for cards (NOT FUNCTIONAL YET!).</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-dropdown"> <Cell class="option-dropdown">
<Panel padding="0 17 13 13"> <Panel class="dropdown-wrapper">
<Dropdown id="cardLanguage" <Dropdown id="cardLanguage" onValueChanged="languageSelected(selectedIndex)">
onValueChanged="languageSelected(selectedIndex)">
<Option>简体中文</Option> <Option>简体中文</Option>
<Option>繁體中文</Option> <Option>繁體中文</Option>
<Option>Deutsch</Option> <Option>Deutsch</Option>
@ -135,15 +135,15 @@
</Dropdown> </Dropdown>
</Panel> </Panel>
</Cell> </Cell>
</Row> </Row> -->
<!-- Option: play area snap tags --> <!-- Option: play area snap tags -->
<Row class="option-text"> <Row class="option-text"
tooltip="Only cards with the tag 'Location' will snap (official cards are supported by default).&#xA;Disable this if you are having issues with custom content.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Enable snap tags for play area</Text> <Text class="option-header">Enable snap tags for play area</Text>
<Text class="description">Only cards with the tag "Location" will snap (official cards are supported by default). Disable this if you are having issues with custom content.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="playAreaSnapTags" <Toggle id="playAreaSnapTags"
@ -152,12 +152,12 @@
</Row> </Row>
<!-- Option: splash scenario name on setup --> <!-- Option: splash scenario name on setup -->
<Row class="option-text"> <Row class="option-text"
tooltip="Fade in the name of the scenario for 2 seconds&#xA;when placing down a scenario.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Show scenario title on setup</Text> <Text class="option-header">Show scenario title on setup</Text>
<Text class="description">Fade in the name of the scenario for 2 seconds when placing down a scenario.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="showTitleSplash" <Toggle id="showTitleSplash"
@ -176,12 +176,12 @@
</Row> </Row>
<!-- Option: enable snap tags --> <!-- Option: enable snap tags -->
<Row class="option-text"> <Row class="option-text"
tooltip="Only cards with the tag 'Asset' will snap (official cards are supported by default).&#xA;Disable this if you are having issues with custom content.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Enable snap tags</Text> <Text class="option-header">Enable snap tags</Text>
<Text class="description">Only cards with the tag "Asset" will snap (official cards are supported by default). Disable this if you are having issues with custom content.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="useSnapTags" <Toggle id="useSnapTags"
@ -190,12 +190,12 @@
</Row> </Row>
<!-- Option: show draw 1 button --> <!-- Option: show draw 1 button -->
<Row class="option-text"> <Row class="option-text"
tooltip="Displays a button below the 'Upkeep' button that draws a card from your deck.&#xA;Useful for multi-handed solo play.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Show "Draw 1" button</Text> <Text class="option-header">Show "Draw 1" button</Text>
<Text class="description">Displays a button below the "Upkeep" button that draws a card from your deck. Useful for multi-handed solo play.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="showDrawButton" <Toggle id="showDrawButton"
@ -204,12 +204,12 @@
</Row> </Row>
<!-- Option: use clickable clue-counters --> <!-- Option: use clickable clue-counters -->
<Row class="option-text"> <Row class="option-text"
tooltip="Instead of automatically counting clues in the respective area on your playermat,&#xA;this displays a clickable counter for clues.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Use clickable clue counters</Text> <Text class="option-header">Use clickable clue counters</Text>
<Text class="description">Instead of automatically counting clues in the respective area on your playermat, this displays a clickable counter for clues.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="useClueClickers" <Toggle id="useClueClickers"
@ -218,15 +218,15 @@
</Row> </Row>
<!-- Option: use clickable resource counters --> <!-- Option: use clickable resource counters -->
<Row class="option-text"> <Row class="option-text"
tooltip="This enables spawning of clickable resource tokens for player cards.&#xA;(Chef's Selection = assets with 0 uses)">
<Cell class="option-dropdowntext"> <Cell class="option-dropdowntext">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Use clickable resource tokens</Text> <Text class="option-header">Use clickable resource tokens</Text>
<Text class="description">This enables spawning of clickable resource tokens for player cards. (Chef's Selection = assets with 0 uses)</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-dropdown"> <Cell class="option-dropdown">
<Panel padding="0 17 13 13"> <Panel class="dropdown-wrapper">
<Dropdown id="useResourceCounters" <Dropdown id="useResourceCounters"
onValueChanged="resourceCounterSelected(selectedIndex)"> onValueChanged="resourceCounterSelected(selectedIndex)">
<Option>Enabled</Option> <Option>Enabled</Option>
@ -248,12 +248,12 @@
</Row> </Row>
<!-- Option: show attachment helper --> <!-- Option: show attachment helper -->
<Row class="option-text"> <Row class="option-text"
tooltip="Provides a card-sized bag for cards that are attached to other cards&#xA;(e.g. Backpack).">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Attachment Helper</Text> <Text class="option-header">Attachment Helper</Text>
<Text class="description">Provides a card-sized bag for cards that are attached to other cards (e.g. Backpack).</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="showAttachmentHelper" <Toggle id="showAttachmentHelper"
@ -262,12 +262,12 @@
</Row> </Row>
<!-- Option: show clean up helper --> <!-- Option: show clean up helper -->
<Row class="option-text"> <Row class="option-text"
tooltip="Useful for campaign-play:&#xA;It resets play areas to allow continuous gameplay in the same savegame.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Clean Up Helper</Text> <Text class="option-header">Clean Up Helper</Text>
<Text class="description">Useful for campaign-play: It resets play areas to allow continuous gameplay in the same savegame.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="showCleanUpHelper" <Toggle id="showCleanUpHelper"
@ -276,12 +276,12 @@
</Row> </Row>
<!-- Option: show custom playmat images --> <!-- Option: show custom playmat images -->
<Row class="option-text"> <Row class="option-text"
tooltip="Places a tool that displays custom playmat images&#xA;for all cycles in a gallery-like fashion.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Custom Playmat Images</Text> <Text class="option-header">Custom Playmat Images</Text>
<Text class="description">Places a tool that displays custom playmat images for all cycles in a gallery-like fashion.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="showCustomPlaymatImages" <Toggle id="showCustomPlaymatImages"
@ -290,12 +290,12 @@
</Row> </Row>
<!-- Option: show CYOA campaign guides --> <!-- Option: show CYOA campaign guides -->
<Row class="option-text"> <Row class="option-text"
tooltip="Displays in a 'Choose Your Own Adventure'&#xA;style redesigned campaign guides.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">CYOA Campaign Guides</Text> <Text class="option-header">CYOA Campaign Guides</Text>
<Text class="description">Displays in a "Choose Your Own Adventure" style redesigned campaign guides.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="showCYOA" <Toggle id="showCYOA"
@ -304,12 +304,12 @@
</Row> </Row>
<!-- Option: show displacement tool --> <!-- Option: show displacement tool -->
<Row class="option-text"> <Row class="option-text"
tooltip="This allows moving all objects on the main playmat&#xA;in a chosen direction.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Displacement Tool</Text> <Text class="option-header">Displacement Tool</Text>
<Text class="description">This allows moving all objects on the main playmat in a chosen direction.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="showDisplacementTool" <Toggle id="showDisplacementTool"
@ -318,12 +318,12 @@
</Row> </Row>
<!-- Option: show hand helper --> <!-- Option: show hand helper -->
<Row class="option-text"> <Row class="option-text"
tooltip="Never count your hand cards again! This tool does that for you&#xA;and additionally enables easy discarding of random cards.">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Hand Helper</Text> <Text class="option-header">Hand Helper</Text>
<Text class="description">Never count your hand cards again! This tool does that for you and additionally enables easy discarding of random cards.</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="showHandHelper" <Toggle id="showHandHelper"
@ -332,12 +332,12 @@
</Row> </Row>
<!-- Option: show search assistant --> <!-- Option: show search assistant -->
<Row class="option-text"> <Row class="option-text"
tooltip="Quickly search 3, 6, 9 or the top X&#xA;cards of your deck!">
<Cell class="option-text"> <Cell class="option-text">
<VerticalLayout class="text-column"> <Panel class="option-wrapper">
<Text class="option-header">Search Assistant</Text> <Text class="option-header">Search Assistant</Text>
<Text class="description">Quickly search 3, 6, 9 or the top X cards of your deck!</Text> </Panel>
</VerticalLayout>
</Cell> </Cell>
<Cell class="option-button"> <Cell class="option-button">
<Toggle id="showSearchAssistant" <Toggle id="showSearchAssistant"