Add report generation functionality to the UI
- Introduced a new script `report.gd` that extends `VBoxContainer` to manage the display of reports. - Implemented dynamic localization support for report headers and body content based on the global locale. - Created a `refresh` method to update the report content and header image when visibility changes or locale updates. - Added a static `build` method to format and compile report data from the world state, including calculations for star totals and effects. - Integrated presentation logic to render report templates based on the current state of the game world.
This commit is contained in:
@@ -1008,7 +1008,7 @@ Trends.Report.Header|[b]Влияние развитых цивилизаций
|
||||
Int.Fed.Report.Max|[Интеграция] Федерация: [color=#cccc88]+%value0%[/color]. Увеличено число цивилизаций, подверженных воздействию дипломатии.|max||||
|
||||
Int.Enl.Report.Max|[Интеграция] Просвещение: [color=#cccc88]+%value0%[/color]. Ускорен прогресс на примитивных стадиях жизни.|max||||
|
||||
Int.Ord.Report.Max|[Интеграция] Новый порядок: [color=#cccc88]+%value0%[/color]. Оказывается помощь и поддержка цивилизациям, попавшим в кризисные обстоятельства.|max||||
|
||||
Emerged.Report.Header|[b]Максимальное число возникших сущностей[/b]|||||
|
||||
Emerged.Report.Header|[b]Всего возникло сущностей[/b]|||||
|
||||
Ctm.Report.Max|Трансцендентная цивилизация мистиков: [color=#cccc88]%value0%[/color]|max||||
|
||||
Ctb.Report.Max|Трансцендентная цивилизация строителей: [color=#cccc88]%value0%[/color]|max||||
|
||||
Ctd.Report.Max|Трансцендентная цивилизация дипломатов: [color=#cccc88]%value0%[/color]|max||||
|
||||
@@ -1075,7 +1075,7 @@ HP.Report.Max|Обитаемая планета: [color=#cccc88]%value0%[/color]
|
||||
RP.Report.Max|Каменистая планета: [color=#cccc88]%value0%[/color]|max||||
|
||||
AB.Report.Max|Астероиды: [color=#cccc88]%value0%[/color]|max||||
|
||||
GG.Report.Max|Газовый гигант: [color=#cccc88]%value0%[/color]|max||||
|
||||
Produced.Report.Header|[b]Максимальное число созданных объектов[/b]|||||
|
||||
Produced.Report.Header|[b]Всего создано объектов[/b]|||||
|
||||
LUB.Report.Max|Вселенский пузырь: [color=#cccc88]%value0%[/color]|max||||
|
||||
LGW.Report.Max|Великая стена: [color=#cccc88]%value0%[/color]|max||||
|
||||
LGF.Report.Max|Галактическая нить: [color=#cccc88]%value0%[/color]|max||||
|
||||
@@ -1116,7 +1116,7 @@ YD.Report.Max|Жёлтый карлик: [color=#cccc88]%value0%[/color]|max||||
|
||||
OD.Report.Max|Оранжевый карлик: [color=#cccc88]%value0%[/color]|max||||
|
||||
RD.Report.Max|Красный карлик: [color=#cccc88]%value0%[/color]|max||||
|
||||
BD.Report.Max|Бурый карлик: [color=#cccc88]%value0%[/color]|max||||
|
||||
Obtained.Report.Header|[b]Максимум за время существования вселенной[/b]|||||
|
||||
Obtained.Report.Header|[b]Всего получено ресурсов[/b]|||||
|
||||
S.Report.Max|Пространство: [color=#cccc88]%value0%[/color]|max||||
|
||||
H.Report.Max|Водород: [color=#cccc88]%value0%[/color]|max||||
|
||||
He.Report.Max|Гелий: [color=#cccc88]%value0%[/color]|max||||
|
||||
@@ -2199,7 +2199,7 @@ Trends.Header|[b]Influence of advanced civilizations on the universe[/b]|||||
|
||||
Int.Fed.Max|[Integration] Federation: [color=#cccc88]+%value0%[/color]. The number of civilizations affected by diplomacy is increased.|max||||
|
||||
Int.Enl.Max|[Integration] Enlightenment: [color=#cccc88]+%value0%[/color]. The progress during primitive stages of life development is accelerated.|max||||
|
||||
Int.Ord.Max|[Integration] New Order: [color=#cccc88]+%value0%[/color]. Civilizations in crisis obtain aid and support.|max||||
|
||||
Emerged.Header|[b]Maximum amount of emerged entities[/b]|||||
|
||||
Emerged.Header|[b]Total entities emerged[/b]|||||
|
||||
Ctm.Max|Transcendent mystics civilization: [color=#cccc88]%value0%[/color]|max||||
|
||||
Ctb.Max|Transcendent builders civilization: [color=#cccc88]%value0%[/color]|max||||
|
||||
Ctd.Max|Transcendent diplomats civilization: [color=#cccc88]%value0%[/color]|max||||
|
||||
@@ -2266,7 +2266,7 @@ HP.Max|Habitable Planet: [color=#cccc88]%value0%[/color]|max||||
|
||||
RP.Max|Rocky Planet: [color=#cccc88]%value0%[/color]|max||||
|
||||
AB.Max|Asteroids: [color=#cccc88]%value0%[/color]|max||||
|
||||
GG.Max|Gas Giant: [color=#cccc88]%value0%[/color]|max||||
|
||||
Produced.Header|[b]Maximum amount of created objects[/b]|||||
|
||||
Produced.Header|[b]Total objects created[/b]|||||
|
||||
LUB.Max|Universe Bubble: [color=#cccc88]%value0%[/color]|max||||
|
||||
LGW.Max|Great Wall: [color=#cccc88]%value0%[/color]|max||||
|
||||
LGF.Max|Galactic Filament: [color=#cccc88]%value0%[/color]|max||||
|
||||
@@ -2307,7 +2307,7 @@ YD.Max|Yellow Dwarf: [color=#cccc88]%value0%[/color]|max||||
|
||||
OD.Max|Orange Dwarf: [color=#cccc88]%value0%[/color]|max||||
|
||||
RD.Max|Red Dwarf: [color=#cccc88]%value0%[/color]|max||||
|
||||
BD.Max|Brown Dwarf: [color=#cccc88]%value0%[/color]|max||||
|
||||
Obtained.Header|[b]Maximum for all the existence of the universe[/b]|||||
|
||||
Obtained.Header|[b]Total resources obtained[/b]|||||
|
||||
S.Max|Space: [color=#cccc88]%value0%[/color]|max||||
|
||||
H.Max|Hydrogen: [color=#cccc88]%value0%[/color]|max||||
|
||||
He.Max|Helium: [color=#cccc88]%value0%[/color]|max||||
|
||||
|
||||
Reference in New Issue
Block a user