@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
|
@@ -6,44 +6,36 @@ import { SettingListItem } from "./components/SettingListItem.js";
|
|
|
6
6
|
import { SettingsList } from "./components/SettingsList.js";
|
|
7
7
|
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
8
8
|
export class LogFiltersSettingsUi extends SettingsPanel {
|
|
9
|
-
constructor(
|
|
10
|
-
const label = host.engine.i18n("ui.filter");
|
|
11
|
-
super(
|
|
12
|
-
childrenHead: [new Container(host, { classes: [stylesLabelListItem.fillSpace] })],
|
|
9
|
+
constructor(parent, settings) {
|
|
10
|
+
const label = parent.host.engine.i18n("ui.filter");
|
|
11
|
+
super(parent, settings, new SettingListItem(parent, settings, label, {
|
|
13
12
|
onCheck: (isBatchProcess) => {
|
|
14
|
-
host.engine.imessage("status.auto.enable", [label]);
|
|
15
|
-
this.refreshUi();
|
|
16
|
-
options?.onCheck?.(isBatchProcess);
|
|
13
|
+
parent.host.engine.imessage("status.auto.enable", [label]);
|
|
17
14
|
},
|
|
18
15
|
onUnCheck: (isBatchProcess) => {
|
|
19
|
-
host.engine.imessage("status.auto.disable", [label]);
|
|
20
|
-
this.refreshUi();
|
|
21
|
-
options?.onUnCheck?.(isBatchProcess);
|
|
16
|
+
parent.host.engine.imessage("status.auto.disable", [label]);
|
|
22
17
|
},
|
|
23
|
-
}));
|
|
24
|
-
this.
|
|
25
|
-
children: [
|
|
26
|
-
new SettingListItem(host, settings.disableKGLog, host.engine.i18n("filter.allKG")),
|
|
27
|
-
],
|
|
18
|
+
}).addChildrenHead([new Container(parent, { classes: [stylesLabelListItem.fillSpace] })]));
|
|
19
|
+
this.addChildContent(new SettingsList(this, {
|
|
28
20
|
hasDisableAll: false,
|
|
29
21
|
hasEnableAll: false,
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
22
|
+
}).addChildren([
|
|
23
|
+
new SettingListItem(this, settings.disableKGLog, this.host.engine.i18n("filter.allKG")),
|
|
24
|
+
]));
|
|
25
|
+
const listFilters = new SettingsList(this).addChildren(FilterItems.map(item => {
|
|
26
|
+
return { label: this.host.engine.i18n(`filter.${item}`), name: item };
|
|
27
|
+
})
|
|
28
|
+
.sort((a, b) => a.label.localeCompare(b.label))
|
|
29
|
+
.map(item => new SettingListItem(this, this.setting.filters[item.name], item.label, {
|
|
30
|
+
onCheck: () => {
|
|
31
|
+
this.host.engine.imessage("filter.enable", [item.label]);
|
|
32
|
+
},
|
|
33
|
+
onUnCheck: () => {
|
|
34
|
+
this.host.engine.imessage("filter.disable", [item.label]);
|
|
35
|
+
},
|
|
36
|
+
})));
|
|
37
|
+
this.addChildContent(listFilters);
|
|
38
|
+
this.addChildContent(new ExplainerListItem(this, "filter.explainer"));
|
|
47
39
|
}
|
|
48
40
|
}
|
|
49
41
|
//# sourceMappingURL=LogFilterSettingsUi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogFilterSettingsUi.js","sourceRoot":"","sources":["../../source/ui/LogFilterSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogFilterSettingsUi.js","sourceRoot":"","sources":["../../source/ui/LogFilterSettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA0B,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,mBAAmB,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,MAAM,OAAO,oBAAqB,SAAQ,aAAgC;IACxE,YAAY,MAAmB,EAAE,QAA2B;QAC1D,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACnD,KAAK,CACH,MAAM,EACN,QAAQ,EACR,IAAI,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC3C,OAAO,EAAE,CAAC,cAAwB,EAAE,EAAE;gBACpC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;YAC7D,CAAC;YACD,SAAS,EAAE,CAAC,cAAwB,EAAE,EAAE;gBACtC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,EAAE,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AI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAC5D,CAAC;SACF,CAAC,CACL,CACJ,CAAC;QACF,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QAElC,IAAI,CAAC,eAAe,CAAC,IAAI,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { SupportedLocale } from "../Engine.js";
|
|
2
|
-
import type { KittenScientists } from "../KittenScientists.js";
|
|
3
2
|
import type { MissionSettings } from "../settings/MissionSettings.js";
|
|
4
3
|
import type { SettingOptions } from "../settings/Settings.js";
|
|
5
4
|
import type { SpaceSettings } from "../settings/SpaceSettings.js";
|
|
6
|
-
import type { PanelOptions } from "./components/CollapsiblePanel.js";
|
|
7
|
-
import { type SettingListItemOptions } from "./components/SettingListItem.js";
|
|
8
5
|
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
6
|
+
import type { UiComponent } from "./components/UiComponent.js";
|
|
9
7
|
export declare class MissionSettingsUi extends SettingsPanel<MissionSettings> {
|
|
10
8
|
private readonly _missions;
|
|
11
|
-
constructor(
|
|
9
|
+
constructor(parent: UiComponent, settings: MissionSettings, locale: SettingOptions<SupportedLocale>, sectionSetting: SpaceSettings);
|
|
12
10
|
}
|
|
13
11
|
//# sourceMappingURL=MissionSettingsUi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MissionSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/MissionSettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"MissionSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/MissionSettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAKlE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,qBAAa,iBAAkB,SAAQ,aAAa,CAAC,eAAe,CAAC;IACnE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;gBAGjD,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,eAAe,EACzB,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC,EACvC,cAAc,EAAE,aAAa;CAwChC"}
|
|
@@ -6,40 +6,35 @@ import { SettingsList } from "./components/SettingsList.js";
|
|
|
6
6
|
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
7
7
|
export class MissionSettingsUi extends SettingsPanel {
|
|
8
8
|
_missions;
|
|
9
|
-
constructor(
|
|
10
|
-
const label = host.engine.i18n("ui.upgrade.missions");
|
|
11
|
-
super(
|
|
12
|
-
childrenHead: [new Container(host, { classes: [stylesLabelListItem.fillSpace] })],
|
|
9
|
+
constructor(parent, settings, locale, sectionSetting) {
|
|
10
|
+
const label = parent.host.engine.i18n("ui.upgrade.missions");
|
|
11
|
+
super(parent, settings, new SettingListItem(parent, settings, label, {
|
|
13
12
|
onCheck: (isBatchProcess) => {
|
|
14
|
-
host.engine.imessage("status.auto.enable", [label]);
|
|
15
|
-
this.refreshUi();
|
|
16
|
-
options?.onCheck?.(isBatchProcess);
|
|
13
|
+
parent.host.engine.imessage("status.auto.enable", [label]);
|
|
17
14
|
},
|
|
18
|
-
|
|
19
|
-
host.engine.imessage("status.auto.disable", [label]);
|
|
20
|
-
this.refreshUi();
|
|
21
|
-
options?.onUnCheck?.(isBatchProcess);
|
|
22
|
-
},
|
|
23
|
-
onRefresh: _item => {
|
|
15
|
+
onRefresh: () => {
|
|
24
16
|
this.expando.ineffective =
|
|
25
17
|
sectionSetting.enabled &&
|
|
26
18
|
settings.enabled &&
|
|
27
19
|
!Object.values(settings.missions).some(mission => mission.enabled);
|
|
28
20
|
},
|
|
29
|
-
|
|
21
|
+
onUnCheck: (isBatchProcess) => {
|
|
22
|
+
parent.host.engine.imessage("status.auto.disable", [label]);
|
|
23
|
+
},
|
|
24
|
+
}).addChildrenHead([new Container(parent, { classes: [stylesLabelListItem.fillSpace] })]));
|
|
30
25
|
// Missions should be sorted by KG. For example, when going to the sun just choose the top five Checkbox instead of looking through the list
|
|
31
|
-
this._missions = host.game.space.programs
|
|
26
|
+
this._missions = this.host.game.space.programs
|
|
32
27
|
.filter(item => !isNil(this.setting.missions[item.name]))
|
|
33
|
-
.map(mission => new SettingListItem(
|
|
28
|
+
.map(mission => new SettingListItem(this, this.setting.missions[mission.name], mission.label, {
|
|
34
29
|
onCheck: () => {
|
|
35
|
-
host.engine.imessage("status.sub.enable", [mission.label]);
|
|
30
|
+
this.host.engine.imessage("status.sub.enable", [mission.label]);
|
|
36
31
|
},
|
|
37
32
|
onUnCheck: () => {
|
|
38
|
-
host.engine.imessage("status.sub.disable", [mission.label]);
|
|
33
|
+
this.host.engine.imessage("status.sub.disable", [mission.label]);
|
|
39
34
|
},
|
|
40
35
|
}));
|
|
41
|
-
const itemsList = new SettingsList(
|
|
42
|
-
this.
|
|
36
|
+
const itemsList = new SettingsList(this).addChildren(this._missions);
|
|
37
|
+
this.addChildContent(itemsList);
|
|
43
38
|
}
|
|
44
39
|
}
|
|
45
40
|
//# sourceMappingURL=MissionSettingsUi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MissionSettingsUi.js","sourceRoot":"","sources":["../../source/ui/MissionSettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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js";
|
|
3
2
|
import type { PolicySettings } from "../settings/PolicySettings.js";
|
|
4
3
|
import type { ScienceSettings } from "../settings/ScienceSettings.js";
|
|
5
4
|
import type { SettingOptions } from "../settings/Settings.js";
|
|
6
|
-
import type { PanelOptions } from "./components/CollapsiblePanel.js";
|
|
7
|
-
import { type SettingListItemOptions } from "./components/SettingListItem.js";
|
|
8
5
|
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
6
|
+
import type { UiComponent } from "./components/UiComponent.js";
|
|
9
7
|
export declare class PolicySettingsUi extends SettingsPanel<PolicySettings> {
|
|
10
|
-
constructor(
|
|
8
|
+
constructor(parent: UiComponent, settings: PolicySettings, locale: SettingOptions<SupportedLocale>, sectionSetting: ScienceSettings);
|
|
11
9
|
}
|
|
12
10
|
//# sourceMappingURL=PolicySettingsUi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolicySettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/PolicySettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"PolicySettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/PolicySettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,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;AAE/D,qBAAa,gBAAiB,SAAQ,aAAa,CAAC,cAAc,CAAC;gBAE/D,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC,EACvC,cAAc,EAAE,eAAe;CAqDlC"}
|
|
@@ -5,43 +5,36 @@ import { SettingListItem } from "./components/SettingListItem.js";
|
|
|
5
5
|
import { SettingsList } from "./components/SettingsList.js";
|
|
6
6
|
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
7
7
|
export class PolicySettingsUi extends SettingsPanel {
|
|
8
|
-
constructor(
|
|
9
|
-
const label = host.engine.i18n("ui.upgrade.policies");
|
|
10
|
-
super(
|
|
11
|
-
childrenHead: [new Container(host, { classes: [stylesLabelListItem.fillSpace] })],
|
|
8
|
+
constructor(parent, settings, locale, sectionSetting) {
|
|
9
|
+
const label = parent.host.engine.i18n("ui.upgrade.policies");
|
|
10
|
+
super(parent, settings, new SettingListItem(parent, settings, label, {
|
|
12
11
|
onCheck: (isBatchProcess) => {
|
|
13
|
-
host.engine.imessage("status.auto.enable", [label]);
|
|
14
|
-
this.refreshUi();
|
|
15
|
-
options?.onCheck?.(isBatchProcess);
|
|
12
|
+
parent.host.engine.imessage("status.auto.enable", [label]);
|
|
16
13
|
},
|
|
17
|
-
|
|
18
|
-
host.engine.imessage("status.auto.disable", [label]);
|
|
19
|
-
this.refreshUi();
|
|
20
|
-
options?.onUnCheck?.(isBatchProcess);
|
|
21
|
-
},
|
|
22
|
-
onRefresh: _item => {
|
|
14
|
+
onRefresh: () => {
|
|
23
15
|
this.expando.ineffective =
|
|
24
16
|
sectionSetting.enabled &&
|
|
25
17
|
settings.enabled &&
|
|
26
18
|
!Object.values(settings.policies).some(policy => policy.enabled);
|
|
27
19
|
},
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
onUnCheck: (isBatchProcess) => {
|
|
21
|
+
parent.host.engine.imessage("status.auto.disable", [label]);
|
|
22
|
+
},
|
|
23
|
+
}).addChildrenHead([new Container(parent, { classes: [stylesLabelListItem.fillSpace] })]));
|
|
24
|
+
const policies = this.host.game.science.policies.filter(policy => !isNil(this.setting.policies[policy.name]));
|
|
30
25
|
const items = [];
|
|
31
26
|
let lastLabel = policies[0].label;
|
|
32
27
|
for (const policy of policies.sort((a, b) => a.label.localeCompare(b.label, locale.selected))) {
|
|
33
28
|
const option = this.setting.policies[policy.name];
|
|
34
|
-
const element = new SettingListItem(
|
|
29
|
+
const element = new SettingListItem(this, option, policy.label, {
|
|
35
30
|
onCheck: () => {
|
|
36
|
-
host.engine.imessage("status.sub.enable", [policy.label]);
|
|
37
|
-
this.refreshUi();
|
|
31
|
+
this.host.engine.imessage("status.sub.enable", [policy.label]);
|
|
38
32
|
},
|
|
39
33
|
onUnCheck: () => {
|
|
40
|
-
host.engine.imessage("status.sub.disable", [policy.label]);
|
|
41
|
-
this.refreshUi();
|
|
34
|
+
this.host.engine.imessage("status.sub.disable", [policy.label]);
|
|
42
35
|
},
|
|
43
36
|
});
|
|
44
|
-
if (host.engine.localeSupportsFirstLetterSplits(locale.selected)) {
|
|
37
|
+
if (this.host.engine.localeSupportsFirstLetterSplits(locale.selected)) {
|
|
45
38
|
if (lastLabel[0] !== policy.label[0]) {
|
|
46
39
|
element.element.addClass(stylesLabelListItem.splitter);
|
|
47
40
|
}
|
|
@@ -49,7 +42,7 @@ export class PolicySettingsUi extends SettingsPanel {
|
|
|
49
42
|
items.push(element);
|
|
50
43
|
lastLabel = policy.label;
|
|
51
44
|
}
|
|
52
|
-
this.
|
|
45
|
+
this.addChildContent(new SettingsList(this).addChildren(items));
|
|
53
46
|
}
|
|
54
47
|
}
|
|
55
48
|
//# sourceMappingURL=PolicySettingsUi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolicySettingsUi.js","sourceRoot":"","sources":["../../source/ui/PolicySettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"PolicySettingsUi.js","sourceRoot":"","sources":["../../source/ui/PolicySettingsUi.ts"],"names":[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;gBACtE,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;oBACrC,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,MAAM,CAAC,KAAK,CAAC;QAC3B,CAAC;QAED,IAAI,CAAC,eAAe,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAClE,CAAC;CACF"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { SupportedLocale } from "../Engine.js";
|
|
2
|
-
import type { KittenScientists } from "../KittenScientists.js";
|
|
3
2
|
import { ReligionSettings } from "../settings/ReligionSettings.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";
|
|
8
|
-
|
|
5
|
+
import { SettingTriggerListItem } from "./components/SettingTriggerListItem.js";
|
|
6
|
+
import type { UiComponent } from "./components/UiComponent.js";
|
|
7
|
+
export declare class ReligionSettingsUi extends SettingsPanel<ReligionSettings, SettingTriggerListItem> {
|
|
9
8
|
private readonly _unicornBuildings;
|
|
10
9
|
private readonly _bestUnicornBuilding;
|
|
11
|
-
constructor(
|
|
12
|
-
refreshUi(): void;
|
|
10
|
+
constructor(parent: UiComponent, settings: ReligionSettings, locale: SettingOptions<SupportedLocale>);
|
|
13
11
|
}
|
|
14
12
|
//# sourceMappingURL=ReligionSettingsUi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReligionSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ReligionSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReligionSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/ReligionSettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAU9D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG/D,qBAAa,kBAAmB,SAAQ,aAAa,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;IAC7F,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAGhC;IACF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAkB;gBAGrD,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,gBAAgB,EAC1B,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC;CA+Q1C"}
|