SCED/xml/Global/OptionPanel.xml

467 lines
17 KiB
XML
Raw Normal View History

2022-12-07 07:02:09 -05:00
<!-- Default formatting -->
<Defaults>
2022-12-21 20:04:15 -05:00
<Text color="#FFFFFF"
2024-04-29 06:23:49 -04:00
alignment="MiddleLeft"/>
2022-12-21 20:04:15 -05:00
2024-04-29 06:23:49 -04:00
<Dropdown rectAlignment="MiddleCenter"/>
2023-06-26 10:41:13 -04:00
2022-12-21 20:04:15 -05:00
<Cell dontUseTableCellBackground="true"
outlineSize="0 1"
2024-04-29 06:23:49 -04:00
outline="grey"/>
2022-12-07 07:02:09 -05:00
<!-- main window -->
2022-12-21 20:04:15 -05:00
<TableLayout class="window"
width="500"
height="800"
2022-12-21 20:04:15 -05:00
active="false"
color="#000000"
outlineSize="2 2"
outline="grey"
showAnimation="SlideIn_Right"
hideAnimation="SlideOut_Right"
2024-04-29 06:23:49 -04:00
animationDuration="0.2"/>
2022-12-07 07:02:09 -05:00
<!-- group headers -->
2022-12-21 20:04:15 -05:00
<Row class="group-header"
2024-04-29 06:23:49 -04:00
preferredHeight="44"/>
2022-12-21 20:04:15 -05:00
<Cell class="group-header"
2023-12-18 05:52:00 -05:00
padding="10 10 0 0"
2023-06-26 10:41:13 -04:00
columnSpan="3"
2024-04-29 06:23:49 -04:00
color="#222222"/>
2022-12-21 20:04:15 -05:00
<Panel class="group-header"
2024-04-29 06:23:49 -04:00
padding="5 0 0 0"/>
2022-12-21 20:04:15 -05:00
<Text class="group-header"
fontSize="28"
2024-04-29 06:23:49 -04:00
font="font_teutonic-arkham"/>
2022-12-07 07:02:09 -05:00
<!-- options -->
2022-12-21 20:04:15 -05:00
<Row class="option-text"
2023-10-22 04:59:53 -04:00
preferredHeight="50"
tooltipPosition="Left"
tooltipBackgroundColor="rgba(0,0,0,1)"/>
2022-12-21 20:04:15 -05:00
<Cell class="option-text"
2023-12-18 05:52:00 -05:00
padding="10 10 5 5"
2023-06-26 10:41:13 -04:00
color="#333333"
columnSpan="2"/>
2022-12-21 20:04:15 -05:00
<Cell class="option-button"
2023-12-18 05:52:00 -05:00
padding="10 10 5 5"
2022-12-21 20:04:15 -05:00
color="#333333"/>
<Cell class="option-singleColumn"
2023-12-18 05:52:00 -05:00
padding="10 10 5 5"
2023-06-26 10:41:13 -04:00
color="#333333"
columnSpan="1"/>
<Cell class="option-doubleColumn"
2023-12-18 05:52:00 -05:00
padding="10 10 5 5"
2023-06-26 10:41:13 -04:00
color="#333333"
columnSpan="2"/>
<Panel class="singleColumn-wrapper"
2023-10-22 04:59:53 -04:00
padding="10 0 0 0"/>
2022-12-21 20:04:15 -05:00
<Text class="option-header"
2023-10-22 04:59:53 -04:00
fontSize="22"
2022-12-21 20:04:15 -05:00
font="font_teutonic-arkham"/>
<Panel class="doubleColumn-wrapper"
2023-10-22 04:59:53 -04:00
padding="0 17 3 3"/>
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
image="option-off"
rectAlignment="MiddleRight"
offsetXY="-30 0"
colors="#FFFFFF|#dfdfdf"
height="36"
width="65"
ignoreLayout="True"/>
2022-12-08 06:01:10 -05:00
<!-- buttons at the bottom -->
2022-12-21 20:04:15 -05:00
<Button class="bottomButtons"
hoverClass="hover"
pressClass="press"
selectClass="select"
color="#888888"
minHeight="35"
fontSize="24"
font="font_teutonic-arkham"/>
<Button class="hover"
color="grey"/>
<Button class="press"
color="white"/>
<Button class="select"
color="white"/>
2022-12-07 07:02:09 -05:00
</Defaults>
<!-- Option Panel -->
2022-12-21 20:04:15 -05:00
<TableLayout id="optionPanel"
class="window"
rectAlignment="LowerRight"
2023-10-14 17:37:50 -04:00
offsetXY="-50 80"
raycastTarget="true">
<!-- Header: Options -->
<Row preferredHeight="60">
<Cell>
<Panel padding="10 0 0 0">
2022-12-21 20:04:15 -05:00
<Text font="font_teutonic-arkham"
fontSize="35">Options</Text>
2022-12-07 10:40:55 -05:00
</Panel>
</Cell>
</Row>
2022-12-07 10:40:55 -05:00
<!-- Scrollable part with options -->
<Row>
<Cell>
2023-10-14 05:02:55 -04:00
<VerticalScrollView horizontalScrollbarVisibility="AutohideAndExpandViewport"
2023-10-15 05:16:15 -04:00
scrollSensitivity="30"
raycastTarget="true">
2023-06-26 10:41:13 -04:00
<TableLayout columnWidths="0 100 75"
2022-12-21 20:04:15 -05:00
autoCalculateHeight="1"
2023-12-18 05:52:00 -05:00
useGlobalCellPadding="false">
<!-- Group: general settings -->
<Row class="group-header">
<Cell class="group-header">
<Panel class="group-header"
image="header_acolyte">
<Text class="group-header">GENERAL SETTINGS</Text>
</Panel>
</Cell>
</Row>
2023-06-26 10:41:13 -04:00
<!-- Option: card language -->
2023-10-23 16:49:47 -04:00
<!-- 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-singleColumn">
<Panel class="singleColumn-wrapper">
2023-06-26 10:41:13 -04:00
<Text class="option-header">Card language</Text>
2023-10-22 04:59:53 -04:00
</Panel>
2023-06-26 10:41:13 -04:00
</Cell>
<Cell class="option-doubleColumn">
<Panel class="doubleColumn-wrapper">
2023-10-23 16:49:47 -04:00
<Dropdown id="cardLanguage" onValueChanged="languageSelected(selectedIndex)">
2023-06-26 10:41:13 -04:00
<Option>简体中文</Option>
<Option>繁體中文</Option>
<Option>Deutsch</Option>
<Option>English</Option>
<Option>Español</Option>
<Option>Français</Option>
<Option>Italiano</Option>
</Dropdown>
</Panel>
</Cell>
2023-10-23 16:49:47 -04:00
</Row> -->
2023-06-26 10:41:13 -04:00
2023-12-18 05:52:00 -05:00
<!-- Option: splash scenario name on setup -->
<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">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Show scenario title on setup</Text>
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="showTitleSplash"
onClick="onClick_toggleOption"/>
2023-12-18 05:52:00 -05:00
</Cell>
</Row>
2024-06-25 09:51:09 -04:00
<!-- Option: Enable all card helpers -->
<Row class="option-text"
tooltip="Enable all card helpers (usually enabled via context menu entries).&#xA;Examples: False Covenant and Book of Living Myths">
<Cell class="option-text">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Enable all card helpers</Text>
</Panel>
</Cell>
<Cell class="option-button">
<Button class="optionToggle"
id="enableCardHelpers"
onClick="onClick_toggleOption"/>
</Cell>
</Row>
2023-12-18 05:52:00 -05:00
<!-- Group: play area settings -->
<Row class="group-header">
<Cell class="group-header">
<Panel class="group-header"
image="header_compass">
<Text class="group-header">PLAY AREA SETTINGS</Text>
</Panel>
</Cell>
</Row>
<!-- Option: play area snap tags -->
2023-10-22 04:59:53 -04:00
<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">
<Panel class="singleColumn-wrapper">
2023-12-18 05:52:00 -05:00
<Text class="option-header">Enable snap tags</Text>
2023-10-22 04:59:53 -04:00
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="playAreaSnapTags"
onClick="onClick_toggleOption"/>
</Cell>
</Row>
2023-12-18 05:52:00 -05:00
<!-- Option: location connections -->
<Row class="option-text"
tooltip="Automatically draw location connections based on card metadata.">
<Cell class="option-text">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Draw location connections</Text>
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="playAreaConnections"
onClick="onClick_toggleOption"/>
2023-12-18 05:52:00 -05:00
</Cell>
</Row>
<!-- Option: play area connection color -->
<Row class="option-text"
tooltip="This color will be used to draw lines&#xA;for location connections.">
<Cell class="option-singleColumn">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Choose color for location connections</Text>
</Panel>
</Cell>
<Cell class="option-doubleColumn">
<Panel class="doubleColumn-wrapper">
<Button id="playAreaConnectionColor"
onClick="onClick_playAreaConnectionColor">
</Button>
</Panel>
</Cell>
</Row>
2023-11-29 07:11:25 -05:00
<!-- Option: change custom playarea image on setup -->
<Row class="option-text"
2023-12-17 19:02:29 -05:00
tooltip="Attempts to set the play area to a fitting image&#xA;from the play area image gallery.">
2023-11-29 07:11:25 -05:00
<Cell class="option-text">
<Panel class="singleColumn-wrapper">
2023-12-18 05:52:00 -05:00
<Text class="option-header">Change background on setup</Text>
2023-11-29 07:11:25 -05:00
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="changePlayAreaImage"
onClick="onClick_toggleOption"/>
2023-11-29 07:11:25 -05:00
</Cell>
</Row>
<!-- Group: playermat settings -->
<Row class="group-header">
<Cell class="group-header">
2022-12-21 20:04:15 -05:00
<Panel class="group-header"
image="header_cover">
<Text class="group-header">PLAYERMAT SETTINGS</Text>
</Panel>
</Cell>
</Row>
2022-12-07 10:40:55 -05:00
<!-- Option: enable snap tags -->
2023-10-22 04:59:53 -04:00
<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">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Enable snap tags</Text>
2023-10-22 04:59:53 -04:00
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="useSnapTags"
onClick="onClick_toggleOption"/>
</Cell>
</Row>
2022-12-07 10:40:55 -05:00
<!-- Option: show draw 1 button -->
2023-10-22 04:59:53 -04:00
<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">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Show "Draw 1" button</Text>
2023-10-22 04:59:53 -04:00
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="showDrawButton"
onClick="onClick_toggleOption"/>
</Cell>
</Row>
2022-12-07 10:40:55 -05:00
<!-- Option: use clickable clue-counters -->
2023-10-22 04:59:53 -04:00
<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">
<Panel class="singleColumn-wrapper">
2023-06-26 10:41:13 -04:00
<Text class="option-header">Use clickable clue counters</Text>
2023-10-22 04:59:53 -04:00
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="useClueClickers"
onClick="onClick_toggleOption"/>
</Cell>
</Row>
2022-12-07 10:40:55 -05:00
2023-01-01 20:23:34 -05:00
<!-- Option: use clickable resource counters -->
2023-10-22 04:59:53 -04:00
<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-singleColumn">
<Panel class="singleColumn-wrapper">
2023-06-26 10:41:13 -04:00
<Text class="option-header">Use clickable resource tokens</Text>
2023-10-22 04:59:53 -04:00
</Panel>
2023-01-01 20:23:34 -05:00
</Cell>
<Cell class="option-doubleColumn">
<Panel class="doubleColumn-wrapper">
2023-09-21 06:42:21 -04:00
<Dropdown id="useResourceCounters"
onValueChanged="resourceCounterSelected(selectedIndex)">
<Option>Enabled</Option>
<Option>Chef's Selection</Option>
<Option>Disabled</Option>
</Dropdown>
</Panel>
2023-01-01 20:23:34 -05:00
</Cell>
</Row>
2024-01-15 07:00:25 -05:00
<!-- Option: remove a player mat -->
<Row class="option-text"
tooltip="Remove an unused playermat for more table space.&#xA;Displayed are the default colors.">
<Cell class="option-singleColumn">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Remove a playermat</Text>
</Panel>
</Cell>
<Cell class="option-doubleColumn">
<Panel class="doubleColumn-wrapper">
<Dropdown id="removePlayermat"
onValueChanged="playermatRemovalSelected(selectedIndex)">
<Option>Click to select</Option>
2024-01-15 07:00:25 -05:00
<Option>1: White</Option>
<Option>2: Orange</Option>
<Option>3: Green</Option>
<Option>4: Red</Option>
</Dropdown>
</Panel>
</Cell>
</Row>
<!-- Group: fan-made accessories -->
<Row class="group-header">
<Cell class="group-header">
2022-12-21 20:04:15 -05:00
<Panel class="group-header"
image="header_olive">
<Text class="group-header">FAN-MADE ACCESSORIES</Text>
</Panel>
</Cell>
</Row>
2022-12-07 10:40:55 -05:00
<!-- Option: show attachment helper -->
2023-10-22 04:59:53 -04:00
<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">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Attachment Helper</Text>
2023-10-22 04:59:53 -04:00
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="showAttachmentHelper"
onClick="onClick_toggleOption"/>
</Cell>
</Row>
<!-- Option: show clean up helper -->
2023-10-22 04:59:53 -04:00
<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">
<Panel class="singleColumn-wrapper">
2022-12-21 19:42:32 -05:00
<Text class="option-header">Clean Up Helper</Text>
2023-10-22 04:59:53 -04:00
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="showCleanUpHelper"
onClick="onClick_toggleOption"/>
</Cell>
</Row>
<!-- Option: show CYOA campaign guides -->
2023-10-22 04:59:53 -04:00
<Row class="option-text"
tooltip="Displays in a 'Choose Your Own Adventure'&#xA;style redesigned campaign guides.">
2023-01-05 20:02:24 -05:00
<Cell class="option-text">
<Panel class="singleColumn-wrapper">
<Text class="option-header">CYOA Campaign Guides</Text>
2023-10-22 04:59:53 -04:00
</Panel>
2023-01-05 20:02:24 -05:00
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="showCYOA"
onClick="onClick_toggleOption"/>
2023-01-05 20:02:24 -05:00
</Cell>
</Row>
<!-- Option: show displacement tool -->
2023-10-22 04:59:53 -04:00
<Row class="option-text"
2024-01-15 07:00:25 -05:00
tooltip="This allows moving all objects on the main play area&#xA;in a chosen direction.">
<Cell class="option-text">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Displacement Tool</Text>
2023-10-22 04:59:53 -04:00
</Panel>
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="showDisplacementTool"
onClick="onClick_toggleOption"/>
</Cell>
</Row>
<!-- Option: show hand helper -->
2023-10-22 04:59:53 -04:00
<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.">
2022-12-30 16:37:05 -05:00
<Cell class="option-text">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Hand Helper</Text>
2023-10-22 04:59:53 -04:00
</Panel>
2022-12-30 16:37:05 -05:00
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="showHandHelper"
onClick="onClick_toggleOption"/>
2022-12-30 16:37:05 -05:00
</Cell>
</Row>
<!-- Option: show search assistant -->
2023-10-22 04:59:53 -04:00
<Row class="option-text"
tooltip="Quickly search 3, 6, 9 or the top X&#xA;cards of your deck!">
2022-12-30 16:37:05 -05:00
<Cell class="option-text">
<Panel class="singleColumn-wrapper">
<Text class="option-header">Search Assistant</Text>
2023-10-22 04:59:53 -04:00
</Panel>
2022-12-30 16:37:05 -05:00
</Cell>
<Cell class="option-button">
2024-04-29 06:23:49 -04:00
<Button class="optionToggle"
id="showSearchAssistant"
onClick="onClick_toggleOption"/>
2022-12-30 16:37:05 -05:00
</Cell>
</Row>
</TableLayout>
</VerticalScrollView>
</Cell>
</Row>
2022-12-07 10:40:55 -05:00
<!-- Buttons: Defaults and Close -->
<Row preferredHeight="50">
<Cell>
2022-12-21 20:04:15 -05:00
<HorizontalLayout minHeight="55"
flexibleHeight="0"
padding="10 10 5 10"
spacing="225">
<Button class="bottomButtons"
onClick="onClick_defaultSettings">Load defaults</Button>
<Button class="bottomButtons"
2023-10-16 18:29:07 -04:00
onClick="onClick_toggleUi(optionPanel)">Close</Button>
2022-12-08 06:01:10 -05:00
</HorizontalLayout>
</Cell>
</Row>
2022-12-21 19:42:32 -05:00
</TableLayout>