@kitten-science/kitten-scientists 2.0.0-beta.10-20250403-28002ba → 2.0.0-beta.10-20250407-52a10b3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/BonfireManager.d.ts +3 -3
- package/lib/BonfireManager.d.ts.map +1 -1
- package/lib/BonfireManager.js +10 -10
- package/lib/BonfireManager.js.map +1 -1
- package/lib/Engine.d.ts +89 -89
- package/lib/Engine.d.ts.map +1 -1
- package/lib/Engine.js +17 -17
- package/lib/Engine.js.map +1 -1
- package/lib/KittenScientists.d.ts +1 -1
- package/lib/KittenScientists.d.ts.map +1 -1
- package/lib/KittenScientists.js +8 -8
- package/lib/KittenScientists.js.map +1 -1
- package/lib/ReligionManager.d.ts +2 -2
- package/lib/ReligionManager.d.ts.map +1 -1
- package/lib/ReligionManager.js +6 -6
- package/lib/ReligionManager.js.map +1 -1
- package/lib/ScienceManager.d.ts +2 -2
- package/lib/ScienceManager.d.ts.map +1 -1
- package/lib/ScienceManager.js +2 -2
- package/lib/ScienceManager.js.map +1 -1
- package/lib/SpaceManager.d.ts +2 -2
- package/lib/SpaceManager.d.ts.map +1 -1
- package/lib/SpaceManager.js +2 -2
- package/lib/SpaceManager.js.map +1 -1
- package/lib/TimeControlManager.d.ts +2 -2
- package/lib/TimeControlManager.d.ts.map +1 -1
- package/lib/TimeControlManager.js +3 -3
- package/lib/TimeControlManager.js.map +1 -1
- package/lib/TimeManager.d.ts +2 -2
- package/lib/TimeManager.d.ts.map +1 -1
- package/lib/TimeManager.js +3 -3
- package/lib/TimeManager.js.map +1 -1
- package/lib/TradeManager.d.ts +3 -3
- package/lib/TradeManager.d.ts.map +1 -1
- package/lib/TradeManager.js +4 -4
- package/lib/TradeManager.js.map +1 -1
- package/lib/UpgradeManager.js +3 -3
- package/lib/UpgradeManager.js.map +1 -1
- package/lib/VillageManager.d.ts +3 -3
- package/lib/VillageManager.d.ts.map +1 -1
- package/lib/VillageManager.js +2 -2
- package/lib/VillageManager.js.map +1 -1
- package/lib/WorkshopManager.d.ts +3 -3
- package/lib/WorkshopManager.d.ts.map +1 -1
- package/lib/WorkshopManager.js +4 -4
- package/lib/WorkshopManager.js.map +1 -1
- package/lib/helper/BulkPurchaseHelper.d.ts +1 -1
- package/lib/helper/BulkPurchaseHelper.d.ts.map +1 -1
- package/lib/helper/BulkPurchaseHelper.js +5 -5
- package/lib/helper/BulkPurchaseHelper.js.map +1 -1
- package/lib/i18n/en-US.json +20 -20
- package/lib/i18n/translations/da-DK.json +20 -20
- package/lib/i18n/translations/de-DE.json +20 -20
- package/lib/i18n/translations/fr-FR.json +20 -20
- package/lib/i18n/translations/he-IL.json +20 -20
- package/lib/i18n/translations/ko-KR.json +20 -20
- package/lib/i18n/translations/ru-RU.json +20 -20
- package/lib/i18n/translations/zh-CN.json +20 -20
- package/lib/images/Icons.d.ts +8 -8
- package/lib/images/Icons.d.ts.map +1 -1
- package/lib/images/Icons.js +8 -8
- package/lib/images/Icons.js.map +1 -1
- package/lib/settings/BonfireSettings.d.ts.map +1 -1
- package/lib/settings/BonfireSettings.js.map +1 -1
- package/lib/settings/BuildingUpgradeSettings.d.ts.map +1 -1
- package/lib/settings/BuildingUpgradeSettings.js.map +1 -1
- package/lib/settings/ElectLeaderSettings.d.ts.map +1 -1
- package/lib/settings/ElectLeaderSettings.js.map +1 -1
- package/lib/settings/EmbassySettings.d.ts.map +1 -1
- package/lib/settings/EmbassySettings.js.map +1 -1
- package/lib/settings/EngineSettings.d.ts.map +1 -1
- package/lib/settings/EngineSettings.js.map +1 -1
- package/lib/settings/LogFilterSettings.d.ts.map +1 -1
- package/lib/settings/LogFilterSettings.js.map +1 -1
- package/lib/settings/MissionSettings.d.ts.map +1 -1
- package/lib/settings/MissionSettings.js.map +1 -1
- package/lib/settings/PolicySettings.d.ts.map +1 -1
- package/lib/settings/PolicySettings.js.map +1 -1
- package/lib/settings/ReligionSettings.d.ts.map +1 -1
- package/lib/settings/ReligionSettings.js.map +1 -1
- package/lib/settings/ResetBonfireSettings.d.ts.map +1 -1
- package/lib/settings/ResetBonfireSettings.js.map +1 -1
- package/lib/settings/ResetReligionSettings.d.ts.map +1 -1
- package/lib/settings/ResetReligionSettings.js.map +1 -1
- package/lib/settings/ResetResourcesSettings.d.ts.map +1 -1
- package/lib/settings/ResetResourcesSettings.js.map +1 -1
- package/lib/settings/ResetSettings.d.ts.map +1 -1
- package/lib/settings/ResetSettings.js.map +1 -1
- package/lib/settings/ResetSpaceSettings.d.ts.map +1 -1
- package/lib/settings/ResetSpaceSettings.js.map +1 -1
- package/lib/settings/ResetTimeSettings.d.ts.map +1 -1
- package/lib/settings/ResetTimeSettings.js.map +1 -1
- package/lib/settings/ResetUpgradeSettings.d.ts.map +1 -1
- package/lib/settings/ResetUpgradeSettings.js.map +1 -1
- package/lib/settings/ResourcesSettings.d.ts.map +1 -1
- package/lib/settings/ResourcesSettings.js +1 -1
- package/lib/settings/ResourcesSettings.js.map +1 -1
- package/lib/settings/ScienceSettings.d.ts.map +1 -1
- package/lib/settings/ScienceSettings.js.map +1 -1
- package/lib/settings/Settings.d.ts.map +1 -1
- package/lib/settings/Settings.js.map +1 -1
- package/lib/settings/SpaceSettings.d.ts.map +1 -1
- package/lib/settings/SpaceSettings.js.map +1 -1
- package/lib/settings/StateSettings.d.ts.map +1 -1
- package/lib/settings/StateSettings.js.map +1 -1
- package/lib/settings/TechSettings.d.ts.map +1 -1
- package/lib/settings/TechSettings.js.map +1 -1
- package/lib/settings/TimeControlSettings.d.ts.map +1 -1
- package/lib/settings/TimeControlSettings.js.map +1 -1
- package/lib/settings/TimeSettings.d.ts.map +1 -1
- package/lib/settings/TimeSettings.js.map +1 -1
- package/lib/settings/TimeSkipHeatSettings.d.ts.map +1 -1
- package/lib/settings/TimeSkipHeatSettings.js.map +1 -1
- package/lib/settings/TimeSkipSettings.d.ts.map +1 -1
- package/lib/settings/TimeSkipSettings.js.map +1 -1
- package/lib/settings/TradeSettings.d.ts.map +1 -1
- package/lib/settings/TradeSettings.js +2 -2
- package/lib/settings/TradeSettings.js.map +1 -1
- package/lib/settings/UpgradeSettings.d.ts.map +1 -1
- package/lib/settings/UpgradeSettings.js.map +1 -1
- package/lib/settings/VillageSettings.d.ts.map +1 -1
- package/lib/settings/VillageSettings.js.map +1 -1
- package/lib/settings/WorkshopSettings.d.ts.map +1 -1
- package/lib/settings/WorkshopSettings.js.map +1 -1
- package/lib/tools/Log.d.ts +1 -1
- package/lib/tools/Log.d.ts.map +1 -1
- package/lib/tools/Log.js +4 -1
- package/lib/tools/Log.js.map +1 -1
- package/lib/types/game.d.ts +2 -2
- package/lib/types/game.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/village.d.ts.map +1 -1
- package/lib/ui/BonfireSettingsUi.d.ts +4 -5
- package/lib/ui/BonfireSettingsUi.d.ts.map +1 -1
- package/lib/ui/BonfireSettingsUi.js +100 -115
- package/lib/ui/BonfireSettingsUi.js.map +1 -1
- package/lib/ui/BuildSectionTools.d.ts +2 -26
- package/lib/ui/BuildSectionTools.d.ts.map +1 -1
- package/lib/ui/BuildSectionTools.js +50 -59
- package/lib/ui/BuildSectionTools.js.map +1 -1
- package/lib/ui/BuildingUpgradeSettingsUi.d.ts +2 -4
- package/lib/ui/BuildingUpgradeSettingsUi.d.ts.map +1 -1
- package/lib/ui/BuildingUpgradeSettingsUi.js +16 -23
- package/lib/ui/BuildingUpgradeSettingsUi.js.map +1 -1
- package/lib/ui/EmbassySettingsUi.d.ts +4 -5
- package/lib/ui/EmbassySettingsUi.d.ts.map +1 -1
- package/lib/ui/EmbassySettingsUi.js +54 -67
- package/lib/ui/EmbassySettingsUi.js.map +1 -1
- package/lib/ui/EngineSettingsUi.d.ts +3 -3
- package/lib/ui/EngineSettingsUi.d.ts.map +1 -1
- package/lib/ui/EngineSettingsUi.js +11 -9
- package/lib/ui/EngineSettingsUi.js.map +1 -1
- package/lib/ui/InternalsUi.d.ts +2 -2
- package/lib/ui/InternalsUi.d.ts.map +1 -1
- package/lib/ui/InternalsUi.js +44 -54
- package/lib/ui/InternalsUi.js.map +1 -1
- package/lib/ui/LogFilterSettingsUi.d.ts +2 -4
- package/lib/ui/LogFilterSettingsUi.d.ts.map +1 -1
- package/lib/ui/LogFilterSettingsUi.js +24 -32
- package/lib/ui/LogFilterSettingsUi.js.map +1 -1
- package/lib/ui/MissionSettingsUi.d.ts +2 -4
- package/lib/ui/MissionSettingsUi.d.ts.map +1 -1
- package/lib/ui/MissionSettingsUi.js +15 -20
- package/lib/ui/MissionSettingsUi.js.map +1 -1
- package/lib/ui/PolicySettingsUi.d.ts +2 -4
- package/lib/ui/PolicySettingsUi.d.ts.map +1 -1
- package/lib/ui/PolicySettingsUi.js +15 -22
- package/lib/ui/PolicySettingsUi.js.map +1 -1
- package/lib/ui/ReligionSettingsUi.d.ts +4 -6
- package/lib/ui/ReligionSettingsUi.d.ts.map +1 -1
- package/lib/ui/ReligionSettingsUi.js +128 -152
- package/lib/ui/ReligionSettingsUi.js.map +1 -1
- package/lib/ui/ResetBonfireSettingsUi.d.ts +2 -2
- package/lib/ui/ResetBonfireSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetBonfireSettingsUi.js +33 -39
- package/lib/ui/ResetBonfireSettingsUi.js.map +1 -1
- package/lib/ui/ResetReligionSettingsUi.d.ts +2 -2
- package/lib/ui/ResetReligionSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetReligionSettingsUi.js +45 -54
- package/lib/ui/ResetReligionSettingsUi.js.map +1 -1
- package/lib/ui/ResetResourcesSettingsUi.d.ts +2 -2
- package/lib/ui/ResetResourcesSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetResourcesSettingsUi.js +27 -34
- package/lib/ui/ResetResourcesSettingsUi.js.map +1 -1
- package/lib/ui/ResetSettingsUi.d.ts +2 -4
- package/lib/ui/ResetSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetSettingsUi.js +19 -24
- package/lib/ui/ResetSettingsUi.js.map +1 -1
- package/lib/ui/ResetSpaceSettingsUi.d.ts +2 -2
- package/lib/ui/ResetSpaceSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetSpaceSettingsUi.js +33 -42
- package/lib/ui/ResetSpaceSettingsUi.js.map +1 -1
- package/lib/ui/ResetTimeSettingsUi.d.ts +2 -2
- package/lib/ui/ResetTimeSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetTimeSettingsUi.js +35 -44
- package/lib/ui/ResetTimeSettingsUi.js.map +1 -1
- package/lib/ui/ResetUpgradesSettingsUi.d.ts +2 -2
- package/lib/ui/ResetUpgradesSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetUpgradesSettingsUi.js +12 -12
- package/lib/ui/ResetUpgradesSettingsUi.js.map +1 -1
- package/lib/ui/ResourcesSettingsUi.d.ts +2 -4
- package/lib/ui/ResourcesSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResourcesSettingsUi.js +18 -22
- package/lib/ui/ResourcesSettingsUi.js.map +1 -1
- package/lib/ui/ScienceSettingsUi.d.ts +2 -5
- package/lib/ui/ScienceSettingsUi.d.ts.map +1 -1
- package/lib/ui/ScienceSettingsUi.js +26 -45
- package/lib/ui/ScienceSettingsUi.js.map +1 -1
- package/lib/ui/SpaceSettingsUi.d.ts +4 -5
- package/lib/ui/SpaceSettingsUi.d.ts.map +1 -1
- package/lib/ui/SpaceSettingsUi.js +47 -58
- package/lib/ui/SpaceSettingsUi.js.map +1 -1
- package/lib/ui/StateManagementUi.d.ts +2 -3
- package/lib/ui/StateManagementUi.d.ts.map +1 -1
- package/lib/ui/StateManagementUi.js +172 -179
- package/lib/ui/StateManagementUi.js.map +1 -1
- package/lib/ui/TechSettingsUi.d.ts +4 -5
- package/lib/ui/TechSettingsUi.d.ts.map +1 -1
- package/lib/ui/TechSettingsUi.js +56 -74
- package/lib/ui/TechSettingsUi.js.map +1 -1
- package/lib/ui/TimeControlSettingsUi.d.ts +3 -4
- package/lib/ui/TimeControlSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeControlSettingsUi.js +27 -39
- package/lib/ui/TimeControlSettingsUi.js.map +1 -1
- package/lib/ui/TimeSettingsUi.d.ts +4 -5
- package/lib/ui/TimeSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeSettingsUi.js +58 -65
- package/lib/ui/TimeSettingsUi.js.map +1 -1
- package/lib/ui/TimeSkipHeatSettingsUi.d.ts +4 -5
- package/lib/ui/TimeSkipHeatSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeSkipHeatSettingsUi.js +33 -49
- package/lib/ui/TimeSkipHeatSettingsUi.js.map +1 -1
- package/lib/ui/TimeSkipSettingsUi.d.ts +2 -4
- package/lib/ui/TimeSkipSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeSkipSettingsUi.js +78 -106
- package/lib/ui/TimeSkipSettingsUi.js.map +1 -1
- package/lib/ui/TradeSettingsUi.d.ts +4 -5
- package/lib/ui/TradeSettingsUi.d.ts.map +1 -1
- package/lib/ui/TradeSettingsUi.js +113 -128
- package/lib/ui/TradeSettingsUi.js.map +1 -1
- package/lib/ui/UpgradeSettingsUi.d.ts +4 -5
- package/lib/ui/UpgradeSettingsUi.d.ts.map +1 -1
- package/lib/ui/UpgradeSettingsUi.js +55 -71
- package/lib/ui/UpgradeSettingsUi.js.map +1 -1
- package/lib/ui/UserInterface.d.ts +4 -2
- package/lib/ui/UserInterface.d.ts.map +1 -1
- package/lib/ui/UserInterface.js +38 -21
- package/lib/ui/UserInterface.js.map +1 -1
- package/lib/ui/VillageSettingsUi.d.ts +2 -4
- package/lib/ui/VillageSettingsUi.d.ts.map +1 -1
- package/lib/ui/VillageSettingsUi.js +94 -112
- package/lib/ui/VillageSettingsUi.js.map +1 -1
- package/lib/ui/WorkshopSettingsUi.d.ts +4 -5
- package/lib/ui/WorkshopSettingsUi.d.ts.map +1 -1
- package/lib/ui/WorkshopSettingsUi.js +89 -110
- package/lib/ui/WorkshopSettingsUi.js.map +1 -1
- package/lib/ui/components/Button.d.ts +9 -9
- package/lib/ui/components/Button.d.ts.map +1 -1
- package/lib/ui/components/Button.js +31 -26
- package/lib/ui/components/Button.js.map +1 -1
- package/lib/ui/components/ButtonListItem.d.ts +4 -4
- package/lib/ui/components/ButtonListItem.d.ts.map +1 -1
- package/lib/ui/components/ButtonListItem.js +2 -7
- package/lib/ui/components/ButtonListItem.js.map +1 -1
- package/lib/ui/components/CollapsiblePanel.d.ts +15 -12
- package/lib/ui/components/CollapsiblePanel.d.ts.map +1 -1
- package/lib/ui/components/CollapsiblePanel.js +42 -26
- package/lib/ui/components/CollapsiblePanel.js.map +1 -1
- package/lib/ui/components/Container.d.ts +6 -2
- package/lib/ui/components/Container.d.ts.map +1 -1
- package/lib/ui/components/Container.js +5 -3
- package/lib/ui/components/Container.js.map +1 -1
- package/lib/ui/components/CyclesList.d.ts +7 -8
- package/lib/ui/components/CyclesList.d.ts.map +1 -1
- package/lib/ui/components/CyclesList.js +34 -27
- package/lib/ui/components/CyclesList.js.map +1 -1
- package/lib/ui/components/Delimiter.d.ts +2 -2
- package/lib/ui/components/Delimiter.d.ts.map +1 -1
- package/lib/ui/components/Delimiter.js +5 -2
- package/lib/ui/components/Delimiter.js.map +1 -1
- package/lib/ui/components/Dialog.d.ts +13 -6
- package/lib/ui/components/Dialog.d.ts.map +1 -1
- package/lib/ui/components/Dialog.js +65 -40
- package/lib/ui/components/Dialog.js.map +1 -1
- package/lib/ui/components/ExplainerListItem.d.ts +4 -2
- package/lib/ui/components/ExplainerListItem.d.ts.map +1 -1
- package/lib/ui/components/ExplainerListItem.js +6 -4
- package/lib/ui/components/ExplainerListItem.js.map +1 -1
- package/lib/ui/components/Fieldset.d.ts +5 -4
- package/lib/ui/components/Fieldset.d.ts.map +1 -1
- package/lib/ui/components/Fieldset.js +5 -3
- package/lib/ui/components/Fieldset.js.map +1 -1
- package/lib/ui/components/HeaderListItem.d.ts +5 -3
- package/lib/ui/components/HeaderListItem.d.ts.map +1 -1
- package/lib/ui/components/HeaderListItem.js +5 -3
- package/lib/ui/components/HeaderListItem.js.map +1 -1
- package/lib/ui/components/IconButton.d.ts +8 -7
- package/lib/ui/components/IconButton.d.ts.map +1 -1
- package/lib/ui/components/IconButton.js +23 -19
- package/lib/ui/components/IconButton.js.map +1 -1
- package/lib/ui/components/IconSettingsPanel.d.ts +5 -4
- package/lib/ui/components/IconSettingsPanel.d.ts.map +1 -1
- package/lib/ui/components/IconSettingsPanel.js +4 -2
- package/lib/ui/components/IconSettingsPanel.js.map +1 -1
- package/lib/ui/components/Input.d.ts +5 -3
- package/lib/ui/components/Input.d.ts.map +1 -1
- package/lib/ui/components/Input.js +5 -3
- package/lib/ui/components/Input.js.map +1 -1
- package/lib/ui/components/LabelListItem.d.ts +10 -7
- package/lib/ui/components/LabelListItem.d.ts.map +1 -1
- package/lib/ui/components/LabelListItem.js +21 -10
- package/lib/ui/components/LabelListItem.js.map +1 -1
- package/lib/ui/components/ListItem.d.ts +8 -6
- package/lib/ui/components/ListItem.d.ts.map +1 -1
- package/lib/ui/components/ListItem.js +5 -3
- package/lib/ui/components/ListItem.js.map +1 -1
- package/lib/ui/components/OptionsListItem.d.ts +6 -6
- package/lib/ui/components/OptionsListItem.d.ts.map +1 -1
- package/lib/ui/components/OptionsListItem.js +17 -12
- package/lib/ui/components/OptionsListItem.js.map +1 -1
- package/lib/ui/components/Paragraph.d.ts +6 -2
- package/lib/ui/components/Paragraph.d.ts.map +1 -1
- package/lib/ui/components/Paragraph.js +5 -3
- package/lib/ui/components/Paragraph.js.map +1 -1
- package/lib/ui/components/RadioItem.d.ts +9 -8
- package/lib/ui/components/RadioItem.d.ts.map +1 -1
- package/lib/ui/components/RadioItem.js +13 -9
- package/lib/ui/components/RadioItem.js.map +1 -1
- package/lib/ui/components/SeasonsList.d.ts +7 -6
- package/lib/ui/components/SeasonsList.d.ts.map +1 -1
- package/lib/ui/components/SeasonsList.js +20 -13
- package/lib/ui/components/SeasonsList.js.map +1 -1
- package/lib/ui/components/SettingLimitedListItem.d.ts +8 -8
- package/lib/ui/components/SettingLimitedListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingLimitedListItem.js +8 -9
- package/lib/ui/components/SettingLimitedListItem.js.map +1 -1
- package/lib/ui/components/SettingLimitedTriggerListItem.d.ts +8 -7
- package/lib/ui/components/SettingLimitedTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingLimitedTriggerListItem.js +13 -12
- package/lib/ui/components/SettingLimitedTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingListItem.d.ts +11 -12
- package/lib/ui/components/SettingListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingListItem.js +38 -38
- package/lib/ui/components/SettingListItem.js.map +1 -1
- package/lib/ui/components/SettingMaxListItem.d.ts +8 -8
- package/lib/ui/components/SettingMaxListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingMaxListItem.js +13 -11
- package/lib/ui/components/SettingMaxListItem.js.map +1 -1
- package/lib/ui/components/SettingMaxTriggerListItem.d.ts +11 -8
- package/lib/ui/components/SettingMaxTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingMaxTriggerListItem.js +21 -16
- package/lib/ui/components/SettingMaxTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingTriggerListItem.d.ts +9 -8
- package/lib/ui/components/SettingTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingTriggerListItem.js +16 -13
- package/lib/ui/components/SettingTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingsList.d.ts +12 -11
- package/lib/ui/components/SettingsList.d.ts.map +1 -1
- package/lib/ui/components/SettingsList.js +14 -16
- package/lib/ui/components/SettingsList.js.map +1 -1
- package/lib/ui/components/SettingsPanel.d.ts +9 -8
- package/lib/ui/components/SettingsPanel.d.ts.map +1 -1
- package/lib/ui/components/SettingsPanel.js +10 -10
- package/lib/ui/components/SettingsPanel.js.map +1 -1
- package/lib/ui/components/TextButton.d.ts +7 -7
- package/lib/ui/components/TextButton.d.ts.map +1 -1
- package/lib/ui/components/TextButton.js +17 -13
- package/lib/ui/components/TextButton.js.map +1 -1
- package/lib/ui/components/ToolbarListItem.d.ts +6 -5
- package/lib/ui/components/ToolbarListItem.d.ts.map +1 -1
- package/lib/ui/components/ToolbarListItem.js +7 -12
- package/lib/ui/components/ToolbarListItem.js.map +1 -1
- package/lib/ui/components/UiComponent.d.ts +31 -19
- package/lib/ui/components/UiComponent.d.ts.map +1 -1
- package/lib/ui/components/UiComponent.js +84 -19
- package/lib/ui/components/UiComponent.js.map +1 -1
- package/lib/ui/components/WorkshopCraftListItem.d.ts +10 -9
- package/lib/ui/components/WorkshopCraftListItem.d.ts.map +1 -1
- package/lib/ui/components/WorkshopCraftListItem.js +20 -21
- package/lib/ui/components/WorkshopCraftListItem.js.map +1 -1
- package/lib/ui/components/buttons/ConsumeButton.d.ts +5 -3
- package/lib/ui/components/buttons/ConsumeButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/ConsumeButton.js +23 -30
- package/lib/ui/components/buttons/ConsumeButton.js.map +1 -1
- package/lib/ui/components/buttons/ExpandoButton.d.ts +6 -3
- package/lib/ui/components/buttons/ExpandoButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/ExpandoButton.js +20 -17
- package/lib/ui/components/buttons/ExpandoButton.js.map +1 -1
- package/lib/ui/components/buttons/LimitedButton.d.ts +8 -8
- package/lib/ui/components/buttons/LimitedButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/LimitedButton.js +27 -21
- package/lib/ui/components/buttons/LimitedButton.js.map +1 -1
- package/lib/ui/components/buttons/MaxButton.d.ts +5 -5
- package/lib/ui/components/buttons/MaxButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/MaxButton.js +5 -7
- package/lib/ui/components/buttons/MaxButton.js.map +1 -1
- package/lib/ui/components/buttons/PaddingButton.d.ts +4 -2
- package/lib/ui/components/buttons/PaddingButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/PaddingButton.js +5 -3
- package/lib/ui/components/buttons/PaddingButton.js.map +1 -1
- package/lib/ui/components/buttons/StockButton.d.ts +5 -3
- package/lib/ui/components/buttons/StockButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/StockButton.js +32 -40
- package/lib/ui/components/buttons/StockButton.js.map +1 -1
- package/lib/ui/components/buttons/TriggerButton.d.ts +6 -6
- package/lib/ui/components/buttons/TriggerButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/TriggerButton.js +16 -20
- package/lib/ui/components/buttons/TriggerButton.js.map +1 -1
- package/lib/ui/components/buttons-text/BuyButton.d.ts +6 -6
- package/lib/ui/components/buttons-text/BuyButton.d.ts.map +1 -1
- package/lib/ui/components/buttons-text/BuyButton.js +23 -28
- package/lib/ui/components/buttons-text/BuyButton.js.map +1 -1
- package/lib/ui/components/buttons-text/SellButton.d.ts +6 -6
- package/lib/ui/components/buttons-text/SellButton.d.ts.map +1 -1
- package/lib/ui/components/buttons-text/SellButton.js +23 -30
- package/lib/ui/components/buttons-text/SellButton.js.map +1 -1
- package/output/kitten-scientists.inject.js +7562 -7675
- package/package.json +7 -5
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isNil } from "@oliversalzburg/js-utils/data/nil.js";
|
|
2
|
-
import { redirectErrorsToConsole } from "@oliversalzburg/js-utils/errors/console.js";
|
|
3
2
|
import { Icons } from "../images/Icons.js";
|
|
4
3
|
import { UnicornItems } from "../types/index.js";
|
|
5
4
|
import stylesButton from "./components/Button.module.css";
|
|
@@ -9,75 +8,67 @@ import { Dialog } from "./components/Dialog.js";
|
|
|
9
8
|
import { HeaderListItem } from "./components/HeaderListItem.js";
|
|
10
9
|
import { IconSettingsPanel } from "./components/IconSettingsPanel.js";
|
|
11
10
|
import stylesLabelListItem from "./components/LabelListItem.module.css";
|
|
12
|
-
import { SettingTriggerListItem } from "./components/SettingTriggerListItem.js";
|
|
13
11
|
import { SettingsList } from "./components/SettingsList.js";
|
|
12
|
+
import { SettingTriggerListItem } from "./components/SettingTriggerListItem.js";
|
|
14
13
|
export class ResetReligionSettingsUi extends IconSettingsPanel {
|
|
15
|
-
constructor(
|
|
16
|
-
const label = host.engine.i18n("ui.faith");
|
|
17
|
-
super(
|
|
18
|
-
childrenHead: [new Container(host, { classes: [stylesLabelListItem.fillSpace] })],
|
|
14
|
+
constructor(parent, settings, locale) {
|
|
15
|
+
const label = parent.host.engine.i18n("ui.faith");
|
|
16
|
+
super(parent, label, settings, {
|
|
19
17
|
icon: Icons.Religion,
|
|
20
18
|
});
|
|
19
|
+
this.addChildrenHead([new Container(parent, { classes: [stylesLabelListItem.fillSpace] })]);
|
|
21
20
|
const unicornsArray = [...UnicornItems];
|
|
22
|
-
this.addChild(new SettingsList(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
],
|
|
43
|
-
}));
|
|
21
|
+
this.addChild(new SettingsList(this).addChildren([
|
|
22
|
+
new HeaderListItem(this, this.host.engine.i18n("$religion.panel.ziggurat.label")),
|
|
23
|
+
this._getResetOption(this, this.setting.buildings.unicornPasture, locale, settings, this.host.engine.i18n("$buildings.unicornPasture.label")),
|
|
24
|
+
...this.host.game.religion.zigguratUpgrades
|
|
25
|
+
.filter(item => unicornsArray.includes(item.name) && !isNil(this.setting.buildings[item.name]))
|
|
26
|
+
.map(zigguratUpgrade => this._getResetOption(this, this.setting.buildings[zigguratUpgrade.name], locale, settings, zigguratUpgrade.label)),
|
|
27
|
+
new Delimiter(this),
|
|
28
|
+
...this.host.game.religion.zigguratUpgrades
|
|
29
|
+
.filter(item => !unicornsArray.includes(item.name) && !isNil(this.setting.buildings[item.name]))
|
|
30
|
+
.map(upgrade => this._getResetOption(this, this.setting.buildings[upgrade.name], locale, settings, upgrade.label)),
|
|
31
|
+
new Delimiter(this),
|
|
32
|
+
new HeaderListItem(this, this.host.engine.i18n("$religion.panel.orderOfTheSun.label")),
|
|
33
|
+
...this.host.game.religion.religionUpgrades
|
|
34
|
+
.filter(item => !isNil(this.setting.buildings[item.name]))
|
|
35
|
+
.map(upgrade => this._getResetOption(this, this.setting.buildings[upgrade.name], locale, settings, upgrade.label, upgrade.name === this.host.game.religion.religionUpgrades.at(-1)?.name)),
|
|
36
|
+
new HeaderListItem(this, this.host.engine.i18n("$religion.panel.cryptotheology.label")),
|
|
37
|
+
...this.host.game.religion.transcendenceUpgrades
|
|
38
|
+
.filter(item => !isNil(this.setting.buildings[item.name]))
|
|
39
|
+
.map(upgrade => this._getResetOption(this, this.setting.buildings[upgrade.name], locale, settings, upgrade.label)),
|
|
40
|
+
]));
|
|
44
41
|
}
|
|
45
|
-
_getResetOption(
|
|
46
|
-
const element = new SettingTriggerListItem(
|
|
42
|
+
_getResetOption(parent, option, locale, sectionSetting, label, delimiter = false, upgradeIndicator = false) {
|
|
43
|
+
const element = new SettingTriggerListItem(parent, option, locale, label, {
|
|
47
44
|
delimiter,
|
|
48
45
|
onCheck: () => {
|
|
49
|
-
host.engine.imessage("status.reset.check.enable", [label]);
|
|
50
|
-
},
|
|
51
|
-
onUnCheck: () => {
|
|
52
|
-
host.engine.imessage("status.reset.check.disable", [label]);
|
|
46
|
+
parent.host.engine.imessage("status.reset.check.enable", [label]);
|
|
53
47
|
},
|
|
54
48
|
onRefresh: () => {
|
|
55
49
|
element.triggerButton.inactive = !option.enabled || option.trigger === -1;
|
|
56
50
|
element.triggerButton.ineffective =
|
|
57
51
|
sectionSetting.enabled && option.enabled && option.trigger === -1;
|
|
58
52
|
},
|
|
59
|
-
onSetTrigger: () => {
|
|
60
|
-
Dialog.prompt(
|
|
53
|
+
onSetTrigger: async () => {
|
|
54
|
+
const value = await Dialog.prompt(parent, parent.host.engine.i18n("ui.trigger.prompt.absolute"), parent.host.engine.i18n("ui.trigger.build.prompt", [
|
|
61
55
|
label,
|
|
62
56
|
option.trigger !== -1
|
|
63
|
-
? host.renderAbsolute(option.trigger, locale.selected)
|
|
64
|
-
: host.engine.i18n("ui.trigger.inactive"),
|
|
65
|
-
]), option.trigger !== -1 ? host.renderAbsolute(option.trigger) : "", host.engine.i18n("ui.trigger.reset.promptExplainer"))
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
element.refreshUi();
|
|
79
|
-
})
|
|
80
|
-
.catch(redirectErrorsToConsole(console));
|
|
57
|
+
? parent.host.renderAbsolute(option.trigger, locale.selected)
|
|
58
|
+
: parent.host.engine.i18n("ui.trigger.inactive"),
|
|
59
|
+
]), option.trigger !== -1 ? parent.host.renderAbsolute(option.trigger) : "", parent.host.engine.i18n("ui.trigger.reset.promptExplainer"));
|
|
60
|
+
if (value === undefined) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (value === "" || value.startsWith("-")) {
|
|
64
|
+
option.trigger = -1;
|
|
65
|
+
option.enabled = false;
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
option.trigger = Number(value);
|
|
69
|
+
},
|
|
70
|
+
onUnCheck: () => {
|
|
71
|
+
parent.host.engine.imessage("status.reset.check.disable", [label]);
|
|
81
72
|
},
|
|
82
73
|
upgradeIndicator,
|
|
83
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetReligionSettingsUi.js","sourceRoot":"","sources":["../../source/ui/ResetReligionSettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"ResetReligionSettingsUi.js","sourceRoot":"","sources":["../../source/ui/ResetReligionSettingsUi.ts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AAE,EACvE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAC5D,CAAC;gBAEF,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;oBACxB,OAAO;gBACT,CAAC;gBAED,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;oBAC1C,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;oBACpB,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC;oBACvB,OAAO;gBACT,CAAC;gBAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YACjC,CAAC;YACD,SAAS,EAAE,GAAG,EAAE;gBACd,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,4BAA4B,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;YACrE,CAAC;YACD,gBAAgB;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;QACpE,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { SupportedLocale } from "../Engine.js";
|
|
2
|
-
import type { KittenScientists } from "../KittenScientists.js";
|
|
3
2
|
import type { ResetResourcesSettings } from "../settings/ResetResourcesSettings.js";
|
|
4
3
|
import type { SettingOptions } from "../settings/Settings.js";
|
|
5
4
|
import { IconSettingsPanel } from "./components/IconSettingsPanel.js";
|
|
5
|
+
import type { UiComponent } from "./components/UiComponent.js";
|
|
6
6
|
export declare class ResetResourcesSettingsUi extends IconSettingsPanel<ResetResourcesSettings> {
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(parent: UiComponent, settings: ResetResourcesSettings, locale: SettingOptions<SupportedLocale>);
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=ResetResourcesSettingsUi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetResourcesSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ResetResourcesSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResetResourcesSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ResetResourcesSettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAItE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,qBAAa,wBAAyB,SAAQ,iBAAiB,CAAC,sBAAsB,CAAC;gBAEnF,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC;CAwE1C"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { redirectErrorsToConsole } from "@oliversalzburg/js-utils/errors/console.js";
|
|
2
1
|
import { Icons } from "../images/Icons.js";
|
|
3
2
|
import { ucfirst } from "../tools/Format.js";
|
|
4
3
|
import stylesButton from "./components/Button.module.css";
|
|
@@ -6,58 +5,52 @@ import { Container } from "./components/Container.js";
|
|
|
6
5
|
import { Dialog } from "./components/Dialog.js";
|
|
7
6
|
import { IconSettingsPanel } from "./components/IconSettingsPanel.js";
|
|
8
7
|
import stylesLabelListItem from "./components/LabelListItem.module.css";
|
|
9
|
-
import { SettingTriggerListItem } from "./components/SettingTriggerListItem.js";
|
|
10
8
|
import { SettingsList } from "./components/SettingsList.js";
|
|
9
|
+
import { SettingTriggerListItem } from "./components/SettingTriggerListItem.js";
|
|
11
10
|
export class ResetResourcesSettingsUi extends IconSettingsPanel {
|
|
12
|
-
constructor(
|
|
13
|
-
const label = host.engine.i18n("ui.resources");
|
|
14
|
-
super(
|
|
15
|
-
childrenHead: [new Container(host, { classes: [stylesLabelListItem.fillSpace] })],
|
|
11
|
+
constructor(parent, settings, locale) {
|
|
12
|
+
const label = parent.host.engine.i18n("ui.resources");
|
|
13
|
+
super(parent, label, settings, {
|
|
16
14
|
icon: Icons.Resources,
|
|
17
15
|
});
|
|
18
|
-
|
|
16
|
+
this.addChildrenHead([new Container(parent, { classes: [stylesLabelListItem.fillSpace] })]);
|
|
17
|
+
const resources = this.host.game.resPool.resources;
|
|
19
18
|
const items = [];
|
|
20
19
|
let lastLabel = resources[0].title;
|
|
21
20
|
for (const resource of [...resources].sort((a, b) => a.title.localeCompare(b.title, locale.selected))) {
|
|
22
21
|
const option = this.setting.resources[resource.name];
|
|
23
|
-
const element = new SettingTriggerListItem(
|
|
22
|
+
const element = new SettingTriggerListItem(this, option, locale, ucfirst(resource.title), {
|
|
24
23
|
onCheck: () => {
|
|
25
|
-
host.engine.imessage("status.sub.enable", [resource.title]);
|
|
26
|
-
},
|
|
27
|
-
onUnCheck: () => {
|
|
28
|
-
host.engine.imessage("status.sub.disable", [resource.title]);
|
|
24
|
+
this.host.engine.imessage("status.sub.enable", [resource.title]);
|
|
29
25
|
},
|
|
30
26
|
onRefresh: () => {
|
|
31
27
|
element.triggerButton.inactive = !option.enabled || option.trigger === -1;
|
|
32
28
|
element.triggerButton.ineffective =
|
|
33
29
|
settings.enabled && option.enabled && option.trigger === -1;
|
|
34
30
|
},
|
|
35
|
-
onSetTrigger: () => {
|
|
36
|
-
Dialog.prompt(
|
|
31
|
+
onSetTrigger: async () => {
|
|
32
|
+
const value = await Dialog.prompt(this, this.host.engine.i18n("ui.trigger.prompt.float"), this.host.engine.i18n("ui.trigger.build.prompt", [
|
|
37
33
|
resource.title,
|
|
38
34
|
option.trigger !== -1
|
|
39
|
-
? host.renderAbsolute(option.trigger, locale.selected)
|
|
40
|
-
: host.engine.i18n("ui.trigger.inactive"),
|
|
41
|
-
]), option.trigger !== -1 ? host.renderAbsolute(option.trigger) : "", host.engine.i18n("ui.trigger.reset.promptExplainer"))
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
element.refreshUi();
|
|
55
|
-
})
|
|
56
|
-
.catch(redirectErrorsToConsole(console));
|
|
35
|
+
? this.host.renderAbsolute(option.trigger, locale.selected)
|
|
36
|
+
: this.host.engine.i18n("ui.trigger.inactive"),
|
|
37
|
+
]), option.trigger !== -1 ? this.host.renderAbsolute(option.trigger) : "", this.host.engine.i18n("ui.trigger.reset.promptExplainer"));
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (value === "" || value.startsWith("-")) {
|
|
42
|
+
option.trigger = -1;
|
|
43
|
+
option.enabled = false;
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
option.trigger = Number(value);
|
|
47
|
+
},
|
|
48
|
+
onUnCheck: () => {
|
|
49
|
+
this.host.engine.imessage("status.sub.disable", [resource.title]);
|
|
57
50
|
},
|
|
58
51
|
});
|
|
59
52
|
element.triggerButton.element.addClass(stylesButton.lastHeadAction);
|
|
60
|
-
if (host.engine.localeSupportsFirstLetterSplits(locale.selected)) {
|
|
53
|
+
if (this.host.engine.localeSupportsFirstLetterSplits(locale.selected)) {
|
|
61
54
|
if (lastLabel[0] !== resource.title[0]) {
|
|
62
55
|
element.element.addClass(stylesLabelListItem.splitter);
|
|
63
56
|
}
|
|
@@ -65,7 +58,7 @@ export class ResetResourcesSettingsUi extends IconSettingsPanel {
|
|
|
65
58
|
items.push(element);
|
|
66
59
|
lastLabel = resource.title;
|
|
67
60
|
}
|
|
68
|
-
this.addChild(new SettingsList(
|
|
61
|
+
this.addChild(new SettingsList(this).addChildren(items));
|
|
69
62
|
}
|
|
70
63
|
}
|
|
71
64
|
//# sourceMappingURL=ResetResourcesSettingsUi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetResourcesSettingsUi.js","sourceRoot":"","sources":["../../source/ui/ResetResourcesSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResetResourcesSettingsUi.js","sourceRoot":"","sources":["../../source/ui/ResetResourcesSettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG3C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,mBAAmB,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAGhF,MAAM,OAAO,wBAAyB,SAAQ,iBAAyC;IACrF,YACE,MAAmB,EACnB,QAAgC,EAChC,MAAuC;QAEvC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACtD,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE;YAC7B,IAAI,EAAE,KAAK,CAAC,SAAS;SACtB,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,SAAS,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAE5F,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,I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BACtE,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;oBACvC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;gBACzD,CAAC;YACH,CAAC;YAED,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEpB,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC7B,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { SupportedLocale } from "../Engine.js";
|
|
2
|
-
import type { KittenScientists } from "../KittenScientists.js";
|
|
3
2
|
import type { ResetSettings } from "../settings/ResetSettings.js";
|
|
4
3
|
import type { SettingOptions } from "../settings/Settings.js";
|
|
5
|
-
import type { PanelOptions } from "./components/CollapsiblePanel.js";
|
|
6
|
-
import { type SettingListItemOptions } from "./components/SettingListItem.js";
|
|
7
4
|
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
5
|
+
import type { UiComponent } from "./components/UiComponent.js";
|
|
8
6
|
export declare class ResetSettingsUi extends SettingsPanel<ResetSettings> {
|
|
9
7
|
private readonly _bonfireUi;
|
|
10
8
|
private readonly _religionUi;
|
|
@@ -12,6 +10,6 @@ export declare class ResetSettingsUi extends SettingsPanel<ResetSettings> {
|
|
|
12
10
|
private readonly _spaceUi;
|
|
13
11
|
private readonly _timeUi;
|
|
14
12
|
private readonly _upgradesUi;
|
|
15
|
-
constructor(
|
|
13
|
+
constructor(parent: UiComponent, settings: ResetSettings, locale: SettingOptions<SupportedLocale>);
|
|
16
14
|
}
|
|
17
15
|
//# sourceMappingURL=ResetSettingsUi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ResetSettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ResetSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ResetSettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAQ/D,qBAAa,eAAgB,SAAQ,aAAa,CAAC,aAAa,CAAC;IAC/D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAyB;IACpD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA0B;IACtD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA2B;IACxD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IAChD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsB;IAC9C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA0B;gBAGpD,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC;CAqC1C"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { Container } from "./components/Container.js";
|
|
2
|
+
import stylesLabelListItem from "./components/LabelListItem.module.css";
|
|
3
|
+
import { SettingListItem } from "./components/SettingListItem.js";
|
|
4
|
+
import { SettingsList } from "./components/SettingsList.js";
|
|
5
|
+
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
1
6
|
import { ResetBonfireSettingsUi } from "./ResetBonfireSettingsUi.js";
|
|
2
7
|
import { ResetReligionSettingsUi } from "./ResetReligionSettingsUi.js";
|
|
3
8
|
import { ResetResourcesSettingsUi } from "./ResetResourcesSettingsUi.js";
|
|
4
9
|
import { ResetSpaceSettingsUi } from "./ResetSpaceSettingsUi.js";
|
|
5
10
|
import { ResetTimeSettingsUi } from "./ResetTimeSettingsUi.js";
|
|
6
11
|
import { ResetUpgradesSettingsUi } from "./ResetUpgradesSettingsUi.js";
|
|
7
|
-
import { Container } from "./components/Container.js";
|
|
8
|
-
import stylesLabelListItem from "./components/LabelListItem.module.css";
|
|
9
|
-
import { SettingListItem } from "./components/SettingListItem.js";
|
|
10
|
-
import { SettingsList } from "./components/SettingsList.js";
|
|
11
|
-
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
12
12
|
export class ResetSettingsUi extends SettingsPanel {
|
|
13
13
|
_bonfireUi;
|
|
14
14
|
_religionUi;
|
|
@@ -16,31 +16,26 @@ export class ResetSettingsUi extends SettingsPanel {
|
|
|
16
16
|
_spaceUi;
|
|
17
17
|
_timeUi;
|
|
18
18
|
_upgradesUi;
|
|
19
|
-
constructor(
|
|
20
|
-
const label = host.engine.i18n("option.time.reset");
|
|
21
|
-
super(
|
|
22
|
-
childrenHead: [new Container(host, { classes: [stylesLabelListItem.fillSpace] })],
|
|
19
|
+
constructor(parent, settings, locale) {
|
|
20
|
+
const label = parent.host.engine.i18n("option.time.reset");
|
|
21
|
+
super(parent, settings, new SettingListItem(parent, settings, label, {
|
|
23
22
|
onCheck: (isBatchProcess) => {
|
|
24
|
-
host.engine.imessage("status.auto.enable", [label]);
|
|
25
|
-
this.refreshUi();
|
|
26
|
-
options?.onCheck?.(isBatchProcess);
|
|
23
|
+
parent.host.engine.imessage("status.auto.enable", [label]);
|
|
27
24
|
},
|
|
28
25
|
onUnCheck: (isBatchProcess) => {
|
|
29
|
-
host.engine.imessage("status.auto.disable", [label]);
|
|
30
|
-
this.refreshUi();
|
|
31
|
-
options?.onUnCheck?.(isBatchProcess);
|
|
26
|
+
parent.host.engine.imessage("status.auto.disable", [label]);
|
|
32
27
|
},
|
|
33
|
-
}),
|
|
34
|
-
const list = new SettingsList(
|
|
28
|
+
}).addChildrenHead([new Container(parent, { classes: [stylesLabelListItem.fillSpace] })]));
|
|
29
|
+
const list = new SettingsList(this, {
|
|
35
30
|
hasDisableAll: false,
|
|
36
31
|
hasEnableAll: false,
|
|
37
32
|
});
|
|
38
|
-
this._bonfireUi = new ResetBonfireSettingsUi(
|
|
39
|
-
this._religionUi = new ResetReligionSettingsUi(
|
|
40
|
-
this._resourcesUi = new ResetResourcesSettingsUi(
|
|
41
|
-
this._spaceUi = new ResetSpaceSettingsUi(
|
|
42
|
-
this._timeUi = new ResetTimeSettingsUi(
|
|
43
|
-
this._upgradesUi = new ResetUpgradesSettingsUi(
|
|
33
|
+
this._bonfireUi = new ResetBonfireSettingsUi(this, this.setting.bonfire, locale);
|
|
34
|
+
this._religionUi = new ResetReligionSettingsUi(this, this.setting.religion, locale);
|
|
35
|
+
this._resourcesUi = new ResetResourcesSettingsUi(this, this.setting.resources, locale);
|
|
36
|
+
this._spaceUi = new ResetSpaceSettingsUi(this, this.setting.space, locale);
|
|
37
|
+
this._timeUi = new ResetTimeSettingsUi(this, this.setting.time, locale);
|
|
38
|
+
this._upgradesUi = new ResetUpgradesSettingsUi(this, this.setting.upgrades, locale);
|
|
44
39
|
list.addChildren([
|
|
45
40
|
this._bonfireUi,
|
|
46
41
|
this._religionUi,
|
|
@@ -49,7 +44,7 @@ export class ResetSettingsUi extends SettingsPanel {
|
|
|
49
44
|
this._timeUi,
|
|
50
45
|
this._upgradesUi,
|
|
51
46
|
]);
|
|
52
|
-
this.
|
|
47
|
+
this.addChildContent(list);
|
|
53
48
|
}
|
|
54
49
|
}
|
|
55
50
|
//# sourceMappingURL=ResetSettingsUi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetSettingsUi.js","sourceRoot":"","sources":["../../source/ui/ResetSettingsUi.ts"],"names":[],"mapp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CAAC,QAAQ;YACb,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,WAAW;SACjB,CAAC,CAAC;QACH,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SupportedLocale } from "../Engine.js";
|
|
2
|
-
import type { KittenScientists } from "../KittenScientists.js";
|
|
3
2
|
import type { ResetSpaceSettings } from "../settings/ResetSpaceSettings.js";
|
|
4
3
|
import type { SettingOptions } from "../settings/Settings.js";
|
|
5
4
|
import { IconSettingsPanel } from "./components/IconSettingsPanel.js";
|
|
5
|
+
import type { UiComponent } from "./components/UiComponent.js";
|
|
6
6
|
export declare class ResetSpaceSettingsUi extends IconSettingsPanel<ResetSpaceSettings> {
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(parent: UiComponent, settings: ResetSpaceSettings, locale: SettingOptions<SupportedLocale>);
|
|
8
8
|
private _getResetOption;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=ResetSpaceSettingsUi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetSpaceSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ResetSpaceSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResetSpaceSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ResetSpaceSettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,yBAAyB,CAAC;AAK9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAItE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,qBAAa,oBAAqB,SAAQ,iBAAiB,CAAC,kBAAkB,CAAC;gBAE3E,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,kBAAkB,EAC5B,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC;IAgCzC,OAAO,CAAC,eAAe;CAqDxB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isNil } from "@oliversalzburg/js-utils/data/nil.js";
|
|
2
|
-
import { redirectErrorsToConsole } from "@oliversalzburg/js-utils/errors/console.js";
|
|
3
2
|
import { Icons } from "../images/Icons.js";
|
|
4
3
|
import stylesButton from "./components/Button.module.css";
|
|
5
4
|
import { Container } from "./components/Container.js";
|
|
@@ -7,62 +6,54 @@ import { Dialog } from "./components/Dialog.js";
|
|
|
7
6
|
import { HeaderListItem } from "./components/HeaderListItem.js";
|
|
8
7
|
import { IconSettingsPanel } from "./components/IconSettingsPanel.js";
|
|
9
8
|
import stylesLabelListItem from "./components/LabelListItem.module.css";
|
|
10
|
-
import { SettingTriggerListItem } from "./components/SettingTriggerListItem.js";
|
|
11
9
|
import { SettingsList } from "./components/SettingsList.js";
|
|
10
|
+
import { SettingTriggerListItem } from "./components/SettingTriggerListItem.js";
|
|
12
11
|
export class ResetSpaceSettingsUi extends IconSettingsPanel {
|
|
13
|
-
constructor(
|
|
14
|
-
const label = host.engine.i18n("ui.space");
|
|
15
|
-
super(
|
|
16
|
-
childrenHead: [new Container(host, { classes: [stylesLabelListItem.fillSpace] })],
|
|
12
|
+
constructor(parent, settings, locale) {
|
|
13
|
+
const label = parent.host.engine.i18n("ui.space");
|
|
14
|
+
super(parent, label, settings, {
|
|
17
15
|
icon: Icons.Space,
|
|
18
16
|
});
|
|
19
|
-
this.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}));
|
|
17
|
+
this.addChildrenHead([new Container(parent, { classes: [stylesLabelListItem.fillSpace] })]);
|
|
18
|
+
this.addChild(new SettingsList(this).addChildren(this.host.game.space.planets
|
|
19
|
+
.filter(plant => 0 < plant.buildings.length)
|
|
20
|
+
.flatMap((planet, indexPlanet, arrayPlant) => [
|
|
21
|
+
new HeaderListItem(this, this.host.engine.labelForPlanet(planet.name)),
|
|
22
|
+
...planet.buildings
|
|
23
|
+
.filter(item => !isNil(this.setting.buildings[item.name]))
|
|
24
|
+
.map((building, indexBuilding, arrayBuilding) => this._getResetOption(this, this.setting.buildings[building.name], locale, settings, building.label, indexPlanet < arrayPlant.length - 1 && indexBuilding === arrayBuilding.length - 1)),
|
|
25
|
+
])));
|
|
29
26
|
}
|
|
30
|
-
_getResetOption(
|
|
31
|
-
const element = new SettingTriggerListItem(
|
|
27
|
+
_getResetOption(parent, option, locale, sectionSetting, label, delimiter = false, upgradeIndicator = false) {
|
|
28
|
+
const element = new SettingTriggerListItem(parent, option, locale, label, {
|
|
32
29
|
delimiter,
|
|
33
30
|
onCheck: () => {
|
|
34
|
-
host.engine.imessage("status.reset.check.enable", [label]);
|
|
35
|
-
},
|
|
36
|
-
onUnCheck: () => {
|
|
37
|
-
host.engine.imessage("status.reset.check.disable", [label]);
|
|
31
|
+
parent.host.engine.imessage("status.reset.check.enable", [label]);
|
|
38
32
|
},
|
|
39
33
|
onRefresh: () => {
|
|
40
34
|
element.triggerButton.inactive = !option.enabled || option.trigger === -1;
|
|
41
35
|
element.triggerButton.ineffective =
|
|
42
36
|
sectionSetting.enabled && option.enabled && option.trigger === -1;
|
|
43
37
|
},
|
|
44
|
-
onSetTrigger: () => {
|
|
45
|
-
Dialog.prompt(
|
|
38
|
+
onSetTrigger: async () => {
|
|
39
|
+
const value = await Dialog.prompt(parent, parent.host.engine.i18n("ui.trigger.prompt.absolute"), parent.host.engine.i18n("ui.trigger.build.prompt", [
|
|
46
40
|
label,
|
|
47
41
|
option.trigger !== -1
|
|
48
|
-
? host.renderAbsolute(option.trigger, locale.selected)
|
|
49
|
-
: host.engine.i18n("ui.trigger.inactive"),
|
|
50
|
-
]), option.trigger !== -1 ? host.renderAbsolute(option.trigger) : "", host.engine.i18n("ui.trigger.reset.promptExplainer"))
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
element.refreshUi();
|
|
64
|
-
})
|
|
65
|
-
.catch(redirectErrorsToConsole(console));
|
|
42
|
+
? parent.host.renderAbsolute(option.trigger, locale.selected)
|
|
43
|
+
: parent.host.engine.i18n("ui.trigger.inactive"),
|
|
44
|
+
]), option.trigger !== -1 ? parent.host.renderAbsolute(option.trigger) : "", parent.host.engine.i18n("ui.trigger.reset.promptExplainer"));
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (value === "" || value.startsWith("-")) {
|
|
49
|
+
option.trigger = -1;
|
|
50
|
+
option.enabled = false;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
option.trigger = Number(value);
|
|
54
|
+
},
|
|
55
|
+
onUnCheck: () => {
|
|
56
|
+
parent.host.engine.imessage("status.reset.check.disable", [label]);
|
|
66
57
|
},
|
|
67
58
|
upgradeIndicator,
|
|
68
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetSpaceSettingsUi.js","sourceRoot":"","sources":["../../source/ui/ResetSpaceSettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"ResetSpaceSettingsUi.js","sourceRoot":"","sources":["../../source/ui/ResetSpaceSettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAE7D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG3C,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,SAA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E,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SupportedLocale } from "../Engine.js";
|
|
2
|
-
import type { KittenScientists } from "../KittenScientists.js";
|
|
3
2
|
import type { ResetTimeSettings } from "../settings/ResetTimeSettings.js";
|
|
4
3
|
import type { SettingOptions } from "../settings/Settings.js";
|
|
5
4
|
import { IconSettingsPanel } from "./components/IconSettingsPanel.js";
|
|
5
|
+
import type { UiComponent } from "./components/UiComponent.js";
|
|
6
6
|
export declare class ResetTimeSettingsUi extends IconSettingsPanel<ResetTimeSettings> {
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(parent: UiComponent, settings: ResetTimeSettings, locale: SettingOptions<SupportedLocale>);
|
|
8
8
|
private _getResetOption;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=ResetTimeSettingsUi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetTimeSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ResetTimeSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResetTimeSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ResetTimeSettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,yBAAyB,CAAC;AAM9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAItE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,qBAAa,mBAAoB,SAAQ,iBAAiB,CAAC,iBAAiB,CAAC;gBAEzE,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,iBAAiB,EAC3B,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC;IAyCzC,OAAO,CAAC,eAAe;CAqDxB"}
|