├── Integrations ├── ML │ ├── futuremodders.txt │ ├── license.md │ ├── UI │ │ ├── Panels │ │ │ └── modallenspanel.xml │ │ └── Lenses │ │ │ ├── modlens_cityoverlap.xml │ │ │ ├── modlens_barbarian.lua │ │ │ ├── modlens_wonder.lua │ │ │ ├── modlens_resource.xml │ │ │ ├── modlens_adjacencyyield.lua │ │ │ ├── modlens_scout.lua │ │ │ └── modlens_archaeologist.lua │ └── Text │ │ ├── morelenses_text_ko.xml │ │ ├── morelenses_text_zh.xml │ │ ├── morelenses_text_ru.xml │ │ ├── morelenses_text_pl.xml │ │ ├── morelenses_text_fr.xml │ │ ├── morelenses_text_es.xml │ │ └── morelenses_text.xml ├── IDS │ └── Text │ │ ├── ids_text_ko.xml │ │ ├── ids_text_ru.xml │ │ ├── ids_text_es.xml │ │ ├── ids_text_zh.xml │ │ ├── ids_text_pl.xml │ │ ├── ids_text_fr.xml │ │ ├── ids_text.xml │ │ ├── ids_text_ja.xml │ │ ├── ids_text_pt.xml │ │ ├── ids_text_de.xml │ │ └── ids_text_it.xml ├── BES │ ├── Text │ │ ├── bes_text.xml │ │ ├── bes_text_it.xml │ │ ├── bes_text_ru.xml │ │ ├── bes_text_pt.xml │ │ ├── bes_text_ja.xml │ │ ├── bes_text_de.xml │ │ └── bes_text_es.xml │ └── Expansion1 │ │ └── Replacements │ │ ├── espionagechooser_expansion1.lua │ │ └── espionageoverview_expansion1.lua ├── BTS │ ├── license.md │ ├── UI │ │ └── Choosers │ │ │ └── tradeoriginchooser.xml │ └── Text │ │ ├── bts_text.xml │ │ ├── bts_text_zh.xml │ │ ├── bts_text_ko.xml │ │ ├── bts_text_fr.xml │ │ ├── bts_text_ja.xml │ │ ├── bts_text_pl.xml │ │ ├── bts_text_es.xml │ │ ├── bts_text_ru.xml │ │ └── bts_text_pt.xml ├── PQ │ └── license └── URS │ └── Text │ ├── urs_text_ko.xml │ ├── urs_text_ru.xml │ ├── urs_text_zh.xml │ ├── urs_text.xml │ ├── urs_text_es.xml │ ├── urs_text_fr.xml │ ├── urs_text_pl.xml │ ├── urs_text_ja.xml │ ├── urs_text_pt.xml │ ├── urs_text_de.xml │ └── urs_text_it.xml ├── .gitignore ├── Assets ├── cqui_main.lua ├── cqui_toplayer.lua ├── cqui_toplayer.xml ├── cqui_databaseschema.sql ├── UI │ ├── ToolTips │ │ └── plottooltip.xml │ ├── Panels │ │ └── statusmessagepanel.xml │ ├── Instances │ │ └── leadericon.xml │ ├── Utilities │ │ └── extendedrelationship.lua │ ├── Popups │ │ ├── policyreminderpopup.xml │ │ ├── mappinlistpanel.xml │ │ ├── mappinpopup.xml │ │ └── policyreminderpopup.lua │ ├── WorldView │ │ └── plotinfo.xml │ ├── partialscreenhooks.xml │ ├── diplomacyribbon.xml │ └── worldtracker.xml └── Text │ ├── cqui_text_general_ko.xml │ ├── cqui_text_general_zh.xml │ ├── cqui_text_general_pl.xml │ ├── cqui_text_general_ru.xml │ ├── cqui_InGameText_ja.xml │ ├── cqui_InGameText.xml │ ├── cqui_InGameText_it.xml │ ├── cqui_InGameText_de.xml │ ├── cqui_text_general_fr.xml │ ├── cqui_text_general_es.xml │ ├── cqui_text_general_ja.xml │ ├── cqui_text_general_pt.xml │ ├── cqui_text_general.xml │ ├── cqui_text_general_de.xml │ └── cqui_text_general_it.xml ├── .editorconfig ├── CQUI.dep ├── LICENSE └── ArtDefs └── Minimap.artdef /Integrations/ML/futuremodders.txt: -------------------------------------------------------------------------------- 1 | ML/UI/MinimapPanel.lua requires special attention when updating, due to custom hooks into the CQUI mod options 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | /.project 3 | cqui.sln 4 | cqui.luaproj 5 | .vs/cqui/v14/.suo 6 | cqui_settings_local.sql 7 | .bak 8 | *.bak 9 | .DS_Store 10 | -------------------------------------------------------------------------------- /Assets/cqui_main.lua: -------------------------------------------------------------------------------- 1 | --This is the main CQUI script. There's not much here yet! 2 | 3 | function Initialize() 4 | print("CQUI Loaded! Update for v1.0.0.229 (2018-03-09)"); 5 | end 6 | 7 | Initialize(); 8 | -------------------------------------------------------------------------------- /Assets/cqui_toplayer.lua: -------------------------------------------------------------------------------- 1 | --This is a layer that lives at the very top of the UI. It's an excellent place for catching inputs globally or displaying a custom overlay 2 | 3 | function Initialize() 4 | ContextPtr:SetHide(false); 5 | end 6 | 7 | Initialize(); 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | ; top-most EditorConfig file 2 | ; http://editorconfig.org/ 3 | root = true 4 | 5 | [*] 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | charset = utf-8 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true 12 | 13 | [*.md] 14 | trim_trailing_whitespace = false 15 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_ko.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 거래 현황 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_ru.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Текущие Сделки 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_es.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Acuerdos actuales 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_zh.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 交易记录 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_pl.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Aktualne umowy handlowe 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Integrations/BES/Text/bes_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | All 6 | 7 | 8 | Show Cities 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Integrations/BES/Text/bes_text_it.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Tutto 6 | 7 | 8 | Mostra Città 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Integrations/BES/Text/bes_text_ru.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Все 6 | 7 | 8 | Все города 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Assets/cqui_toplayer.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Integrations/BES/Text/bes_text_pt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Todos 6 | 7 | 8 | Mostrar cidades 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Integrations/BES/Text/bes_text_ja.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 全て 6 | 7 | 8 | 都市を表示 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Integrations/BES/Text/bes_text_de.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Alle 7 | 8 | 9 | Zeige Städte 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Integrations/BES/Text/bes_text_es.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Todo 7 | 8 | 9 | Mostrar ciudades 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_fr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Transactions actuelles 9 | 10 | 11 | 12 | Céder 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Assets/cqui_databaseschema.sql: -------------------------------------------------------------------------------- 1 | /* 2 | Created by LordYanaek for CQUI mod by chaorace. 3 | This file contains queries used to create the mod's tables in the database. 4 | Don't touch this unless you know what you do. 5 | */ 6 | 7 | CREATE TABLE 'CQUI_Bindings' ( 8 | 'Action' TEXT NOT NULL, 9 | 'Keys' TEXT NOT NULL, 10 | 'keyMod' INTEGER, 11 | 'keyMain' INTEGER, 12 | PRIMARY KEY('Action') 13 | ); 14 | 15 | CREATE TABLE 'CQUI_Settings' ( 16 | 'Setting' TEXT NOT NULL, 17 | 'Value' INTEGER NOT NULL, 18 | PRIMARY KEY('Setting') 19 | ); 20 | -------------------------------------------------------------------------------- /CQUI.dep: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | false 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Assets/UI/ToolTips/plottooltip.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Current Deals 9 | 10 | 11 | Deal Terms 12 | 13 | 14 | Cede 15 | 16 | 17 | Return 18 | 19 | 20 | [COLOR_Red]Trade[ENDCOLOR] with 21 | 22 | 23 | [COLOR_Civ6Blue]Suzerain[ENDCOLOR] of 24 | 25 | 26 | Untradeable 27 | 28 | 29 | Duplicate 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_ja.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 現在の取引 9 | 10 | 11 | 取引条項 12 | 13 | 14 | 割譲 15 | 16 | 17 | 返還 18 | 19 | 20 | [COLOR_Red]取引[ENDCOLOR] 21 | 22 | 23 | [COLOR_Civ6Blue]輸入[ENDCOLOR] 24 | 25 | 26 | 取引不可 27 | 28 | 29 | 両国所持 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_pt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Ofertas atuais 9 | 10 | 11 | Termos da oferta 12 | 13 | 14 | Ceder 15 | 16 | 17 | Retornar 18 | 19 | 20 | [COLOR_Red]Comércio[ENDCOLOR] com 21 | 22 | 23 | [COLOR_Civ6Blue]Suserano[ENDCOLOR] de 24 | 25 | 26 | Não comercializável 27 | 28 | 29 | Duplicado 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Integrations/BTS/license.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 astog 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Integrations/ML/license.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 astog 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Integrations/PQ/license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Kevin Blease 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016-2017 Christopher Crockett 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_de.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Handelsübersicht 9 | 10 | 11 | Handelsbedingungen 12 | 13 | 14 | Zurücktreten 15 | 16 | 17 | Zurück 18 | 19 | 20 | [COLOR_Red]Handel[ENDCOLOR] mit 21 | 22 | 23 | [COLOR_Civ6Blue]Suzerän[ENDCOLOR] von 24 | 25 | 26 | nicht handelbar 27 | 28 | Wiederholen 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Integrations/IDS/Text/ids_text_it.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Scambi correnti 9 | 10 | 11 | Termini dell'accordo 12 | 13 | 14 | Ci cede 15 | 16 | 17 | Ritorna 18 | 19 | 20 | [COLOR_Red]Commercia[ENDCOLOR] con 21 | 22 | 23 | [COLOR_Civ6Blue]Sovrano[ENDCOLOR] di 24 | 25 | 26 | Non trattabile 27 | 28 | 29 | Duplicato 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general_ko.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | 거래 기간 12 | 13 | 14 | 15 | 16 | 현재 연구 중인 사회 제도인 17 | 18 | 19 | 현재 연구 중인 과학기술인 20 | 21 | 22 | 의 상승 효과를 최대치로 받을 수 있는 턴까지 1턴 남았습니다. 23 | 24 | 25 | 이(가) 완료되었습니다. 26 | 27 | 28 | 29 | 30 | 유흥 31 | 32 | 33 | 34 | 35 | 경과: 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general_zh.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | 交易期限 12 | 13 | 14 | 15 | 16 | 当前市政, 17 | 18 | 19 | 当前科技, 20 | 21 | 22 | ,离最充分利用尤里卡还有1回合。 23 | 24 | 25 | ,已完成。 26 | 27 | 28 | 29 | 30 | 娱乐 31 | 32 | 33 | 34 | 35 | 进度: 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general_pl.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | Warunki umowy 12 | 13 | 14 | 15 | 16 | Obecny kodeks prawny, 17 | 18 | 19 | Obecne badanie, 20 | 21 | 22 | , jest jedną turę od osiągnięcia maksymalnego potencjału Inspiracji. 23 | 24 | 25 | , zakończono. 26 | 27 | 28 | 29 | 30 | Rozrywka 31 | 32 | 33 | 34 | 35 | Postęp: 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general_ru.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | Срок действия сделки 12 | 13 | 14 | 15 | 16 | Текущий Соц. Институт, 17 | 18 | 19 | Текущее Исследование, 20 | 21 | 22 | , ещё один ход до максимального потенциала Вдохновения. 23 | 24 | 25 | , завершена. 26 | 27 | 28 | 29 | 30 | Развлечения 31 | 32 | 33 | 34 | 35 | Прогресс: 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_ko.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 거래 현황 9 | 10 | 11 | 도시 건물 숨기기 12 | 13 | 14 | 15 | 지출 16 | 17 | 18 | 수입 19 | 20 | 21 | 22 | 육군 23 | 24 | 25 | 공군 26 | 27 | 28 | 해군 29 | 30 | 31 | 이 유닛을 지도에서 봅니다. 32 | 33 | 34 | 보너스 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Assets/Text/cqui_InGameText_ja.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 21位 8 | 9 | 10 | 22位 11 | 12 | 13 | 23位 14 | 15 | 16 | 24位 17 | 18 | 19 | 25位 20 | 21 | 22 | 26位 23 | 24 | 25 | 27位 26 | 27 | 28 | 28位 29 | 30 | 31 | 29位 32 | 33 | 34 | 30位 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_ru.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Текущие Сделки 9 | 10 | 11 | Скрыть городские постройки 12 | 13 | 14 | 15 | Исходящие 16 | 17 | 18 | Входящие 19 | 20 | 21 | 22 | Военный (Наземный) 23 | 24 | 25 | Военный (Воздушный) 26 | 27 | 28 | Военный (Морской) 29 | 30 | 31 | Показать юнит на карте. 32 | 33 | 34 | Бонусные: 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_zh.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 交易记录 9 | 10 | 11 | 隐藏建筑 12 | 13 | 14 | 15 | 支出 16 | 17 | 18 | 收入 19 | 20 | 21 | 22 | 军队(陆军) 23 | 24 | 25 | 军队(空军) 26 | 27 | 28 | 军队(海军) 29 | 30 | 31 | 在地图上查看该单位。 32 | 33 | 34 | 加成资源 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Assets/Text/cqui_InGameText.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | twenty-first 8 | 9 | 10 | twenty-second 11 | 12 | 13 | twenty-third 14 | 15 | 16 | twenty-fourth 17 | 18 | 19 | twenty-fifth 20 | 21 | 22 | twenty-sixth 23 | 24 | 25 | twenty-seventh 26 | 27 | 28 | twenty-eighth 29 | 30 | 31 | twenty-ninth 32 | 33 | 34 | thirtieth 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Current Deals 9 | 10 | 11 | Hide city buildings 12 | 13 | 14 | 15 | Outgoing 16 | 17 | 18 | Incoming 19 | 20 | 21 | 22 | Military (Land) 23 | 24 | 25 | Military (Air) 26 | 27 | 28 | Military (Sea) 29 | 30 | 31 | View this unit on the map. 32 | 33 | 34 | Bonuses 35 | 36 | 37 | Promotion Available 38 | 39 | 40 | In Formation 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Assets/Text/cqui_InGameText_it.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | ventunesimo 8 | 9 | 10 | ventiduesimo 11 | 12 | 13 | ventitreesimo 14 | 15 | 16 | ventiquattresimo 17 | 18 | 19 | venticinquesimo 20 | 21 | 22 | ventiseiesimo 23 | 24 | 25 | ventisettesimo 26 | 27 | 28 | ventottesimo 29 | 30 | 31 | ventinovesimo 32 | 33 | 34 | trentesimo 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_es.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Acuerdos actuales 9 | 10 | 11 | Ocultar edificios 12 | 13 | 14 | 15 | Saliente 16 | 17 | 18 | Entrante 19 | 20 | 21 | 22 | Militar (Tierra) 23 | 24 | 25 | Militar (Aire) 26 | 27 | 28 | Militar (Mar) 29 | 30 | 31 | Ver esta unidad en el mapa. 32 | 33 | 34 | Bonificaciones 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_fr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Transactions actuelles 9 | 10 | 11 | Masquer les bâtiments de la ville 12 | 13 | 14 | 15 | Sortant 16 | 17 | 18 | Entrant 19 | 20 | 21 | 22 | Militaire (Terre) 23 | 24 | 25 | Militaire (Air) 26 | 27 | 28 | Militaire (Mer) 29 | 30 | 31 | Afficher cet unité sur la carte. 32 | 33 | 34 | Bonus 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Assets/Text/cqui_InGameText_de.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | einundzwanzigsten 8 | 9 | 10 | zweiundzwanzigsten 11 | 12 | 13 | dreiundzwanzigsten 14 | 15 | 16 | vierundzwanzigsten 17 | 18 | 19 | fünfundzwanzigsten 20 | 21 | 22 | sechsundzwanzigsten 23 | 24 | 25 | siebenundzwanzigsten 26 | 27 | 28 | achtundzwanzigsten 29 | 30 | 31 | neunundzwanzigsten 32 | 33 | 34 | dreißigsten 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_pl.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Aktualne umowy handlowe 9 | 10 | 11 | Ukryj budynki miejskie 12 | 13 | 14 | 15 | Wychodzące 16 | 17 | 18 | Przychodzące 19 | 20 | 21 | 22 | Jednoski militarne (Lądowe) 23 | 24 | 25 | Jednoski militarne (Powietrzne) 26 | 27 | 28 | Jednoski militarne (Morskie) 29 | 30 | 31 | Znajdź tę jednostkę na mapie. 32 | 33 | 34 | Premie 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_ja.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 現在の取引 9 | 10 | 11 | 都市の建造物を非表示 12 | 13 | 14 | 15 | 自国 16 | 17 | 18 | 相手 19 | 20 | 21 | 22 | 陸軍 23 | 24 | 25 | 空軍 26 | 27 | 28 | 海軍 29 | 30 | 31 | このユニットをマップから発見 32 | 33 | 34 | ボーナス 35 | 36 | 37 | レベルアップ可能 38 | 39 | 40 | 護衛陣形 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_pt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Ofertas Atuais 9 | 10 | 11 | Esconder edificações da cidade 12 | 13 | 14 | 15 | Saindo 16 | 17 | 18 | Entrando 19 | 20 | 21 | 22 | Militar (Terra) 23 | 24 | 25 | Militar (Ar) 26 | 27 | 28 | Militar (Oceano) 29 | 30 | 31 | Veja esta unidade no mapa. 32 | 33 | 34 | Bônus 35 | 36 | 37 | Promoção Disponível 38 | 39 | 40 | Em formação 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_de.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Handelsübersicht 9 | 10 | 11 | Verstecke Stadtgebäude 12 | 13 | 14 | 15 | Ausgaben 16 | 17 | 18 | Einnahmen 19 | 20 | 21 | 22 | Militär (Heer) 23 | 24 | 25 | Militär (Luftwaffe) 26 | 27 | 28 | Militär (Marine) 29 | 30 | 31 | Zeige Einheit auf der Karte 32 | 33 | 34 | Boni 35 | 36 | 37 | Beförderung verfügbar 38 | 39 | 40 | In Ausbildung 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general_fr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | Durée de la transaction 12 | 13 | 14 | 15 | 16 | Le Dogme actuel, 17 | 18 | 19 | La Technologie actuelle, 20 | 21 | 22 | , n'est plus qu'à un tour du maximum potentiel d'Inspiration. 23 | 24 | 25 | , est terminée. 26 | 27 | 28 | 29 | 30 | Activité 31 | 32 | 33 | 34 | 35 | Progression: 36 | 37 | 38 | 39 | 40 | ATTAQUE À DISTANCE DU CAMPEMENT 41 | 42 | 43 | Votre campement peut attaquer à distance 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Integrations/URS/Text/urs_text_it.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Scambi correnti 9 | 10 | 11 | Nascondi edifici cittadini 12 | 13 | 14 | 15 | In uscita 16 | 17 | 18 | In entrata 19 | 20 | 21 | 22 | Militari (terrestri) 23 | 24 | 25 | Militari (aeree) 26 | 27 | 28 | Militari (navali) 29 | 30 | 31 | Trova l'unità sulla mappa. 32 | 33 | 34 | Bonus 35 | 36 | 37 | Promozione Disponibile 38 | 39 | 40 | In Formazione 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general_es.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | Término del reparto 12 | 13 | 14 | 15 | 16 | El Principio actual, 17 | 18 | 19 | La Tecnología actual, 20 | 21 | 22 | , está a un turno del potencial máximo por Inspiración. 23 | 24 | 25 | , se ha completado. 26 | 27 | 28 | 29 | 30 | Ocio 31 | 32 | 33 | 34 | 35 | Progreso: 36 | 37 | 38 | 39 | 40 | Ataque a Distancia desde Campamento 41 | 42 | 43 | Tu Campamento puede efectuar un ataque a distancia 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Integrations/BES/Expansion1/Replacements/espionagechooser_expansion1.lua: -------------------------------------------------------------------------------- 1 | --[[ 2 | -- Original Created by Keaton VanAuken, Oct 13 2017 3 | -- Original Copyright (c) Firaxis Games 4 | --]] 5 | 6 | -- =========================================================================== 7 | -- Base File 8 | -- =========================================================================== 9 | include("espionagechooser"); 10 | 11 | -- =========================================================================== 12 | -- CACHE BASE FUNCTIONS 13 | -- =========================================================================== 14 | BASE_ShouldAddPlayer = ShouldAddPlayer; 15 | BASE_ShouldAddToFilter = ShouldAddToFilter; 16 | 17 | -- =========================================================================== 18 | -- Modified conditions (handles free cities, ie not adding them) 19 | -- =========================================================================== 20 | function ShouldAddPlayer(player:table) 21 | local localPlayer = Players[Game.GetLocalPlayer()]; 22 | if (player:GetID() == localPlayer:GetID() or player:GetTeam() == -1 or localPlayer:GetTeam() == -1 or player:GetTeam() ~= localPlayer:GetTeam()) then 23 | if (not player:IsFreeCities()) then 24 | return true 25 | end 26 | end 27 | return false 28 | end 29 | 30 | -- =========================================================================== 31 | -- Modified to include city states 32 | -- =========================================================================== 33 | function ShouldAddToFilter(player:table) 34 | if (not player:IsFreeCities()) and HasMetAndAlive(player) and (not player:IsBarbarian()) then 35 | return true 36 | end 37 | return false 38 | end 39 | -------------------------------------------------------------------------------- /Integrations/BES/Expansion1/Replacements/espionageoverview_expansion1.lua: -------------------------------------------------------------------------------- 1 | --[[ 2 | -- Original Created by Keaton VanAuken on Nov 29 2017 3 | -- Original Copyright (c) Firaxis Games 4 | --]] 5 | 6 | -- =========================================================================== 7 | -- Base File 8 | -- =========================================================================== 9 | include("espionageoverview"); 10 | 11 | -- =========================================================================== 12 | -- CACHE BASE FUNCTIONS 13 | -- =========================================================================== 14 | BASE_ShouldAddPlayer = ShouldAddPlayer; 15 | BASE_ShouldAddToFilter = ShouldAddToFilter; 16 | 17 | -- =========================================================================== 18 | -- Modified conditions (handles free cities, ie not adding them) 19 | -- =========================================================================== 20 | function ShouldAddPlayer(player:table) 21 | local localPlayer = Players[Game.GetLocalPlayer()]; 22 | if (player:GetID() == localPlayer:GetID() or player:GetTeam() == -1 or localPlayer:GetTeam() == -1 or player:GetTeam() ~= localPlayer:GetTeam()) then 23 | if (not player:IsFreeCities()) then 24 | return true 25 | end 26 | end 27 | return false 28 | end 29 | 30 | -- =========================================================================== 31 | -- Modified to include city states 32 | -- =========================================================================== 33 | function ShouldAddToFilter(player:table) 34 | if (not player:IsFreeCities()) and HasMetAndAlive(player) and (not player:IsBarbarian()) then 35 | return true 36 | end 37 | return false 38 | end 39 | -------------------------------------------------------------------------------- /Assets/UI/Panels/statusmessagepanel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Assets/UI/Instances/leadericon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 16 | 17 | 18 | 19 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Assets/UI/Utilities/extendedrelationship.lua: -------------------------------------------------------------------------------- 1 | -- Extended Relationship Tooltip creator 2 | -- Aristos and atggta 3 | function RelationshipGet(nPlayerID :number) 4 | local tPlayer :table = Players[nPlayerID]; 5 | local nLocalPlayerID :number = Game.GetLocalPlayer(); 6 | local tTooltips :table = tPlayer:GetDiplomaticAI():GetDiplomaticModifiers(nLocalPlayerID); 7 | 8 | if not tTooltips then return ""; end 9 | 10 | local tRelationship :table = {}; 11 | local nRelationshipSum :number = 0; 12 | local sTextColor :string = ""; 13 | 14 | for i, tTooltip in ipairs(tTooltips) do 15 | local nScore :number = tTooltip.Score; 16 | local sText :string = tTooltip.Text; 17 | 18 | if(nScore ~= 0) then 19 | if(nScore > 0) then 20 | sTextColor = "[COLOR_Civ6Green]"; 21 | else 22 | sTextColor = "[COLOR_Civ6Red]"; 23 | end 24 | table.insert(tRelationship, {nScore, sTextColor .. nScore .. "[ENDCOLOR] - " .. sText .. "[NEWLINE]"}); 25 | nRelationshipSum = nRelationshipSum + nScore; 26 | end 27 | end 28 | 29 | table.sort( 30 | tRelationship, 31 | function(a, b) 32 | return a[1] > b[1]; 33 | end 34 | ); 35 | 36 | local sRelationshipSum :string = ""; 37 | local sRelationship :string = ""; 38 | if(nRelationshipSum >= 0) then 39 | sRelationshipSum = "[COLOR_Civ6Green]"; 40 | else 41 | sRelationshipSum = "[COLOR_Civ6Red]"; 42 | end 43 | sRelationshipSum = sRelationshipSum .. nRelationshipSum .. "[ENDCOLOR]" 44 | for nKey, tValue in pairs(tRelationship) do 45 | sRelationship = sRelationship .. tValue[2]; 46 | end 47 | if sRelationship ~= "" then 48 | sRelationship = Locale.Lookup("LOC_DIPLOMACY_INTEL_RELATIONSHIPS") .. " " .. sRelationshipSum .. "[NEWLINE]" .. sRelationship:sub(1, #sRelationship - #"[NEWLINE]"); 49 | end 50 | 51 | return sRelationship; 52 | end 53 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general_ja.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | の研究がブーストの最大値直前まで到達しました。 18 | 19 | 20 | の研究が完了しました。 21 | 22 | 23 | 24 | 25 | 娯楽 26 | 27 | 28 | (人口から) 29 | 30 | 31 | 少数宗教 32 | 33 | 34 | [COLOR:StatBadCS](略奪)[ENDCOLOR] 35 | 36 | 37 | 38 | 39 | 次の国境拡張でこのタイルを取得する。 40 | 41 | 42 | 43 | 44 | 進捗: 45 | 46 | 47 | 48 | 49 | 兵営の遠隔攻撃 50 | 51 | 52 | 兵営から遠隔攻撃が可能 53 | 54 | 55 | 56 | 57 | 政策の通知 58 | 59 | 60 | 新たな政策が解禁されました。 61 | 62 | 63 | 政策の変更 64 | 65 | 66 | このターンは政策を変更できます。 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /Integrations/ML/UI/Panels/modallenspanel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 48 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | The current Civic, 12 | 13 | 14 | The current Technology, 15 | 16 | 17 | , is one turn away from maximum Inspiration bonus. 18 | 19 | 20 | , is completed. 21 | 22 | 23 | 24 | 25 | Entertainment 26 | 27 | 28 | from Population 29 | 30 | 31 | Religious Minorities 32 | 33 | 34 | [COLOR:StatBadCS](Pillaged)[ENDCOLOR] 35 | 36 | 37 | 38 | 39 | The city will expand to this tile upon the next cultural borders growth 40 | 41 | 42 | 43 | 44 | Progress: 45 | 46 | 47 | 48 | 49 | Encampent Ranged Strike 50 | 51 | 52 | Your encampment is able to make a ranged strike 53 | 54 | 55 | 56 | 57 | POLICY REMINDER 58 | 59 | 60 | New policy cards have been unlocked. 61 | 62 | 63 | POLICY CHANGE 64 | 65 | 66 | You can change your policy this turn. 67 | 68 | 69 | 70 | 71 | Total 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general_de.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | Die gegenwärtige Ausrichtung " 12 | 13 | 14 | Die Erforschung der Technologie " 15 | 16 | 17 | " ist eine Runde von maximaler Inspirations-Bonus entfernt. 18 | 19 | 20 | " ist abgeschlossen. 21 | 22 | 23 | 24 | 25 | Unterhaltung 26 | 27 | 28 | durch Bevölkerung 29 | 30 | 31 | Religiöse Minderheiten 32 | 33 | 34 | [COLOR:StatBadCS](geplündert)[ENDCOLOR] 35 | 36 | 37 | 38 | 39 | Hierhin wird sich die Stadt bei der nächsten Grenzausdehnung (Kultur) erweitern. 40 | 41 | 42 | 43 | 44 | Fortschritt: 45 | 46 | 47 | 48 | 49 | Fernangriff durch Lager 50 | 51 | 52 | Das Lager kann einen Fernangriff ausführen. 53 | 54 | 55 | 56 | 57 | Politik-Erinnerung 58 | 59 | 60 | Neue Politik-Optionen stehen zur Auswahl. 61 | 62 | 63 | Politik ändern 64 | 65 | 66 | Die Politik kann diese Runder verändert werden. 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /Assets/Text/cqui_text_general_it.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CQUI 7 | 8 | 9 | 10 | 11 | Progresso civico corrente, 12 | 13 | 14 | Tecnologia corrente, 15 | 16 | 17 | , è ad un turno dall'Ispirazione massima potenziale. 18 | 19 | 20 | , è completata. 21 | 22 | 23 | 24 | 25 | Svaghi 26 | 27 | 28 | dalla Popolazione 29 | 30 | 31 | Minoranze Religiose 32 | 33 | 34 | [COLOR:StatBadCS](Saccheggiato)[ENDCOLOR] 35 | 36 | 37 | 38 | 39 | La città si espanderà in questa casella alla prossima crescita dei confini culturali 40 | 41 | 42 | 43 | 44 | Progresso: 45 | 46 | 47 | 48 | 49 | Attacco a distanza Accampamento 50 | 51 | 52 | Il tuo accampamento è in grado di eseguire un attacco a distanza 53 | 54 | 55 | 56 | 57 | PROMEMORIA POLITICHE 58 | 59 | 60 | Sono state sbloccate nuove politiche sociali. 61 | 62 | 63 | CAMBIA POLITICHE 64 | 65 | 66 | In questo turno puoi modificare le tue politiche sociali. 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /Assets/UI/WorldView/plotinfo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 15 | 16 | 17 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Integrations/ML/UI/Lenses/modlens_wonder.lua: -------------------------------------------------------------------------------- 1 | include("LensSupport") 2 | 3 | local LENS_NAME = "ML_WONDER" 4 | local ML_LENS_LAYER = LensLayers.HEX_COLORING_APPEAL_LEVEL 5 | 6 | -- =========================================================================== 7 | -- Wonder Lens Support 8 | -- =========================================================================== 9 | 10 | -- =========================================================================== 11 | -- Exported functions 12 | -- =========================================================================== 13 | 14 | local function OnGetColorPlotTable() 15 | local mapWidth, mapHeight = Map.GetGridSize(); 16 | local localPlayer :number = Game.GetLocalPlayer(); 17 | local localPlayerVis:table = PlayersVisibility[localPlayer]; 18 | 19 | local NaturalWonderColor :number = UI.GetColorValue("COLOR_NATURAL_WONDER_LENS"); 20 | local PlayerWonderColor :number = UI.GetColorValue("COLOR_PLAYER_WONDER_LENS"); 21 | local colorPlot:table = {}; 22 | colorPlot[NaturalWonderColor] = {} 23 | colorPlot[PlayerWonderColor] = {} 24 | 25 | for i = 0, (mapWidth * mapHeight) - 1, 1 do 26 | local pPlot:table = Map.GetPlotByIndex(i); 27 | if localPlayerVis:IsRevealed(pPlot:GetX(), pPlot:GetY()) then 28 | -- check for player wonder. 29 | if plotHasWonder(pPlot) then 30 | table.insert(colorPlot[PlayerWonderColor], i); 31 | else 32 | -- Check for natural wonder 33 | local featureInfo = GameInfo.Features[pPlot:GetFeatureType()]; 34 | if featureInfo ~= nil and featureInfo.NaturalWonder then 35 | table.insert(colorPlot[NaturalWonderColor], i) 36 | end 37 | end 38 | end 39 | end 40 | 41 | return colorPlot 42 | end 43 | 44 | --[[ 45 | local function ShowWonderLens() 46 | LuaEvents.MinimapPanel_SetActiveModLens(LENS_NAME) 47 | UILens.ToggleLayerOn(ML_LENS_LAYER) 48 | end 49 | 50 | local function ClearWonderLens() 51 | if UILens.IsLayerOn(ML_LENS_LAYER) then 52 | UILens.ToggleLayerOff(ML_LENS_LAYER); 53 | end 54 | LuaEvents.MinimapPanel_SetActiveModLens("NONE"); 55 | end 56 | 57 | local function OnInitialize() 58 | -- Nothing to do 59 | end 60 | ]] 61 | 62 | local WonderLensEntry = { 63 | LensButtonText = "LOC_HUD_WONDER_LENS", 64 | LensButtonTooltip = "LOC_HUD_WONDER_LENS_TOOLTIP", 65 | Initialize = nil, 66 | GetColorPlotTable = OnGetColorPlotTable 67 | } 68 | 69 | -- minimappanel.lua 70 | if g_ModLenses ~= nil then 71 | g_ModLenses[LENS_NAME] = WonderLensEntry 72 | end 73 | 74 | -- modallenspanel.lua 75 | if g_ModLensModalPanel ~= nil then 76 | g_ModLensModalPanel[LENS_NAME] = {} 77 | g_ModLensModalPanel[LENS_NAME].LensTextKey = "LOC_HUD_WONDER_LENS" 78 | g_ModLensModalPanel[LENS_NAME].Legend = { 79 | {"LOC_TOOLTIP_WONDER_LENS_NWONDER", UI.GetColorValue("COLOR_NATURAL_WONDER_LENS")}, 80 | {"LOC_TOOLTIP_RESOURCE_LENS_PWONDER", UI.GetColorValue("COLOR_PLAYER_WONDER_LENS")} 81 | } 82 | end 83 | -------------------------------------------------------------------------------- /Integrations/ML/UI/Lenses/modlens_resource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 27 | 28 | 29 | 30 | 31 | 32 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Assets/UI/Popups/mappinlistpanel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 20 | 21 | 22 | 23 | 36 | 37 | 38 | 39 | 40 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /Assets/UI/partialscreenhooks.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 43 | 44 | 45 | 46 | 47 | 48 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Integrations/ML/UI/Lenses/modlens_adjacencyyield.lua: -------------------------------------------------------------------------------- 1 | local LENS_NAME = "ML_ADJYIELD" 2 | local ML_LENS_LAYER = LensLayers.HEX_COLORING_APPEAL_LEVEL 3 | 4 | -- =========================================================================== 5 | -- AdjYield Lens Support 6 | -- =========================================================================== 7 | 8 | local function clamp(val, min, max) 9 | if val < min then 10 | return min 11 | elseif val > max then 12 | return max 13 | end 14 | return val 15 | end 16 | 17 | -- =========================================================================== 18 | -- Exported functions 19 | -- =========================================================================== 20 | 21 | local function OnGetColorPlotTable() 22 | local mapWidth, mapHeight = Map.GetGridSize(); 23 | local localPlayer :number = Game.GetLocalPlayer(); 24 | local localPlayerVis:table = PlayersVisibility[localPlayer]; 25 | 26 | local colorPlot = {} 27 | for i = 1, 8 do 28 | colorPlot[UI.GetColorValue("COLOR_GRADIENT8_" .. tostring(i))] = {} 29 | end 30 | 31 | for i = 0, (mapWidth * mapHeight) - 1, 1 do 32 | local pPlot:table = Map.GetPlotByIndex(i); 33 | if localPlayerVis:IsRevealed(pPlot:GetX(), pPlot:GetY()) and pPlot:GetOwner() == localPlayer then 34 | if plotHasDistrict(pPlot) and (not pPlot:IsCity()) and (not plotHasWonder(pPlot)) then 35 | local pPlayer = Players[localPlayer]; 36 | local districtID = pPlot:GetDistrictID() 37 | local pDistrict = pPlayer:GetDistricts():FindID(districtID); 38 | local pCity = pDistrict:GetCity(); 39 | -- Get adjacency yield 40 | local iBonus = 0 41 | for yieldInfo in GameInfo.Yields() do 42 | iBonus = iBonus + pPlot:GetAdjacencyYield(localPlayer, pCity:GetID(), pPlot:GetDistrictType(), yieldInfo.Index); 43 | -- Don't break here, calculate net-yield 44 | end 45 | local colorKey:string = "COLOR_GRADIENT8_" .. tostring(clamp(iBonus,0,7)+1) 46 | -- print("Adding " .. tostring(i) .. " to " .. colorKey) 47 | table.insert(colorPlot[UI.GetColorValue(colorKey)], i) 48 | end 49 | end 50 | end 51 | 52 | return colorPlot 53 | end 54 | 55 | --[[ 56 | local function ShowAdjYieldLens() 57 | LuaEvents.MinimapPanel_SetActiveModLens(LENS_NAME) 58 | UILens.ToggleLayerOn(ML_LENS_LAYER) 59 | end 60 | 61 | local function ClearAdjYieldLens() 62 | if UILens.IsLayerOn(ML_LENS_LAYER) then 63 | UILens.ToggleLayerOff(ML_LENS_LAYER); 64 | end 65 | LuaEvents.MinimapPanel_SetActiveModLens("NONE"); 66 | end 67 | 68 | local function OnInitialize() 69 | -- Nothing to do 70 | end 71 | ]] 72 | 73 | local AdjYieldLensEntry = { 74 | LensButtonText = "LOC_HUD_ADJYIELD_LENS", 75 | LensButtonTooltip = "LOC_HUD_ADJYIELD_LENS_TOOLTIP", 76 | Initialize = nil, 77 | GetColorPlotTable = OnGetColorPlotTable 78 | } 79 | 80 | -- minimappanel.lua 81 | if g_ModLenses ~= nil then 82 | g_ModLenses[LENS_NAME] = AdjYieldLensEntry 83 | end 84 | 85 | -- modallenspanel.lua 86 | if g_ModLensModalPanel ~= nil then 87 | g_ModLensModalPanel[LENS_NAME] = {} 88 | g_ModLensModalPanel[LENS_NAME].Legend = {} 89 | g_ModLensModalPanel[LENS_NAME].LensTextKey = "LOC_HUD_ADJYIELD_LENS" 90 | for i = 1, 8 do 91 | local params:table = { 92 | "LOC_HUD_REPORTS_TAB_YIELDS", 93 | UI.GetColorValue("COLOR_GRADIENT8_" .. tostring(i)), 94 | nil, -- bonus icon 95 | "+ " .. tostring(i-1) -- bonus value 96 | } 97 | table.insert(g_ModLensModalPanel[LENS_NAME].Legend, params) 98 | end 99 | end 100 | -------------------------------------------------------------------------------- /Integrations/BTS/UI/Choosers/tradeoriginchooser.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |