Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
new options for config
To change the model using JS, you need to create two files and include them in modinfo: the first one is shell.js: JavaScript: import LeaderSelectModelManager from '/core/ui/shell/leader-select/leader-select-model-manager.js'; LeaderSelectModelManager.modelMap = { ...(LeaderSelectModelManager.modelMap || {}), LEADER_CONFUCIUS: "CHAR_LOGIOS_ARISTOTLE" } second one is game.js: JavaScript: import LeaderModelManager from '/base-standard/ui/diplomacy/leader-model-manager.js'; LeaderModelManager.modelMap = { ...(LeaderModelManager.modelMap || {}), LEADER_CONFUCIUS: "CHAR_LOGIOS_ARISTOTLE" } and include files into modinfo: XML: <ActionGroup id="..." scope="game" criteria="always"> <Actions> <UIScripts> <Item>ui/game.js</Item> </UIScripts> </Actions> </ActionGroup> <ActionGroup id="..." scope="shell" criteria="always"> <Actions> <UIScripts> <Item>ui/shell.js</Item> </UIScripts> </Actions> </ActionGroup>
import LeaderSelectModelManager from '/core/ui/shell/leader-select/leader-select-model-manager.js'; LeaderSelectModelManager.modelMap = { ...(LeaderSelectModelManager.modelMap || {}), LEADER_CONFUCIUS: "CHAR_LOGIOS_ARISTOTLE" }
import LeaderModelManager from '/base-standard/ui/diplomacy/leader-model-manager.js'; LeaderModelManager.modelMap = { ...(LeaderModelManager.modelMap || {}), LEADER_CONFUCIUS: "CHAR_LOGIOS_ARISTOTLE" }
<ActionGroup id="..." scope="game" criteria="always"> <Actions> <UIScripts> <Item>ui/game.js</Item> </UIScripts> </Actions> </ActionGroup> <ActionGroup id="..." scope="shell" criteria="always"> <Actions> <UIScripts> <Item>ui/shell.js</Item> </UIScripts> </Actions> </ActionGroup>