Initial commit
This commit is contained in:
@@ -0,0 +1,334 @@
|
||||
template building_tooltip_detail {
|
||||
TooltipDebugTextBlock = {
|
||||
blockoverride "text" {
|
||||
debug_text = "[Building.GetDebugText]"
|
||||
}
|
||||
}
|
||||
|
||||
hbox = {
|
||||
layoutpolicy_horizontal = expanding
|
||||
spacing = 10
|
||||
widget = { ### EMPLOYMENT PIECHART
|
||||
visible = "[GreaterThan_CFixedPoint(Building.GetLevel, '(CFixedPoint)0')]"
|
||||
size = { 90 90 }
|
||||
using = marker_bg_circle
|
||||
tooltipwidget = {
|
||||
SimpleContextualTooltipType = {
|
||||
blockoverride "title_icon" {
|
||||
icon = {
|
||||
using = tooltip_title_icon_size
|
||||
texture = "[GetGraphicalCultureTextureForCountryPopType(Building.GetType.GetPopType, Building.GetOwner)]"
|
||||
}
|
||||
}
|
||||
blockoverride "concept_link" {
|
||||
text = "[employed|e]"
|
||||
}
|
||||
|
||||
datacontext = "[Building]"
|
||||
textcontext = "BUILDING_EMPLOYMENT_TT"
|
||||
}
|
||||
}
|
||||
|
||||
piechart = {
|
||||
parentanchor = center
|
||||
block "piechart_size" {
|
||||
size = { 90% 90% }
|
||||
}
|
||||
using = piechart_angles
|
||||
|
||||
icon = {
|
||||
size = { 55% 55% }
|
||||
parentanchor = vcenter|hcenter
|
||||
texture = "[GetGraphicalCultureTextureForCountryPopType(Building.GetType.GetPopType, Building.GetOwner)]"
|
||||
}
|
||||
|
||||
using = building_employment_piechart_data
|
||||
}
|
||||
}
|
||||
|
||||
TooltipListBase = { ### SIDE TABLE
|
||||
TooltipListRowContent = {
|
||||
TooltipManualTableField = {
|
||||
blockoverride "field_content" {
|
||||
text_single = {
|
||||
text = "[employment|e]"
|
||||
}
|
||||
expand = {}
|
||||
text_single = {
|
||||
raw_text = "[Building.GetEmploymentSize|w] / [Building.GetMaxWorkersRequired|w]"
|
||||
}
|
||||
tooltipwidget = {
|
||||
SimpleContextualTooltipType = {
|
||||
blockoverride "title_icon" {
|
||||
icon = {
|
||||
using = tooltip_title_icon_size
|
||||
texture = "[GetGraphicalCultureTextureForCountryPopType(Building.GetType.GetPopType, Building.GetOwner)]"
|
||||
}
|
||||
}
|
||||
blockoverride "concept_link" {
|
||||
text = "[employed|e]"
|
||||
}
|
||||
|
||||
datacontext = "[Building]"
|
||||
textcontext = "BUILDING_EMPLOYMENT_TT"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipManualTableField = {
|
||||
blockoverride "field_content" {
|
||||
text_single = {
|
||||
text = "BUILDING_LEVEL"
|
||||
default_format = "#W"
|
||||
}
|
||||
expand = {}
|
||||
text_single = {
|
||||
raw_text = "[Building.GetLevel]/[Building.GetMaxLevel|0L]"
|
||||
}
|
||||
tooltipwidget = {
|
||||
SimpleContextualStringPairTooltipType = {
|
||||
blockoverride "title_icon" {
|
||||
icon = {
|
||||
using = tooltip_title_icon_size
|
||||
texture = "gfx/interface/icons/outliner/categories/buildings.dds"
|
||||
}
|
||||
}
|
||||
blockoverride "tooltip_title" {
|
||||
ContextualTooltipHeader = {}
|
||||
TooltipLockProgress = {}
|
||||
|
||||
blockoverride "title_text" {
|
||||
datacontext = "[Building.GetLocation]"
|
||||
text = "BUILDING_LEVEL_MAX_SCRIPT_TITLE"
|
||||
}
|
||||
}
|
||||
blockoverride "concept_link" {
|
||||
text = "[building|e]"
|
||||
}
|
||||
lowpriotextcontext = "[Building.GetType.GetMaxLevelInformation(Building.GetLocation)]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
vbox = {
|
||||
visible = "[Building.IsProducing]"
|
||||
layoutpolicy_horizontal = expanding
|
||||
datamodel = "[DataModelFirst(Building.GetProductionMethods, '(int32)1')]"
|
||||
item = {
|
||||
TooltipManualTableField = {
|
||||
blockoverride "field_content" {
|
||||
text_single = {
|
||||
text = "[production_efficiency|e]"
|
||||
}
|
||||
expand = {}
|
||||
text_single = {
|
||||
text = "BUILDING_PROD_EFFICIENCY"
|
||||
default_format = "@bold!"
|
||||
}
|
||||
tooltipwidget = {
|
||||
using = building_production_efficiency_tooltip
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipManualTableField = {
|
||||
visible = "[And(Not(Building.GetType.IsFort), Building.GetType.OnlyEstatesCanBuild)]"
|
||||
blockoverride "field_content" {
|
||||
text_single = {
|
||||
text = "BUILDING_UPKEEP"
|
||||
default_format = "#W"
|
||||
}
|
||||
expand = {}
|
||||
icon = {
|
||||
size = { 24 24 }
|
||||
texture = "[GetEstateIcon(Building.GetType.GetEligibleEstate)]"
|
||||
}
|
||||
text_single = {
|
||||
raw_text = "#R [Multiply_CFixedPoint(Multiply_CFixedPoint(Building.GetLocation.GetMarket.GetCenterLocation.MakeScope.GetVariableFromVariableMap('epbm_bt_display', Building.GetType.MakeScope).GetValue, Building.GetLevel), Building.GetOwner.MakeScope.GetVariable('epbm_charge_factor').GetValue)|2]#!@expense!"
|
||||
default_format = "#bold"
|
||||
}
|
||||
tooltipwidget = {
|
||||
using = Building_upkeep_tooltip
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipManualTableField = {
|
||||
visible = "[And(Not(Building.GetType.IsFort), Not(Building.GetType.OnlyEstatesCanBuild))]"
|
||||
blockoverride "field_content" {
|
||||
text_single = {
|
||||
text = "BUILDING_UPKEEP"
|
||||
default_format = "#W"
|
||||
}
|
||||
expand = {}
|
||||
text_single = {
|
||||
raw_text = "#R [Building.GetUpkeep|2]#!@expense!"
|
||||
default_format = "#bold"
|
||||
}
|
||||
tooltipwidget = {
|
||||
using = Building_upkeep_tooltip
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipManualTableField = {
|
||||
visible = "[Building.GetType.IsFort]"
|
||||
blockoverride "field_content" {
|
||||
text_single = {
|
||||
text = "BUILDING_UPKEEP"
|
||||
default_format = "#W"
|
||||
}
|
||||
expand = {}
|
||||
text_single = {
|
||||
raw_text = "#R [Building.GetFortMaintenanceValue|2]#!@expense!"
|
||||
default_format = "#bold"
|
||||
}
|
||||
tooltipwidget = {
|
||||
using = Building_upkeep_tooltip
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipContentSection = {
|
||||
datamodel = "[Building.GetProductionMethods]"
|
||||
item = {
|
||||
vbox = {
|
||||
layoutpolicy_horizontal = expanding
|
||||
spacing = 2
|
||||
|
||||
TooltipTableHeader = {
|
||||
blockoverride "tableheader_text" {
|
||||
text = "ACTIVE_PRODUCTION_METHOD"
|
||||
}
|
||||
}
|
||||
|
||||
datacontext = "[ActiveProductionMethod.GetMethod]"
|
||||
datacontext = "[Building.GetLocation.GetOwner]"
|
||||
datacontext = "[Building.GetLocation.GetMarket]"
|
||||
|
||||
hbox = {
|
||||
using = production_method_active
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipTextBlock = {
|
||||
visible = "[LessThan_CFixedPoint(Building.GetInputGoodsAccess,'(CFixedPoint)1.0')]"
|
||||
blockoverride "text" {
|
||||
text = "[Building.GetInputGoodsInformation]"
|
||||
}
|
||||
blockoverride "textblock_background_tint" {
|
||||
modify_texture = {
|
||||
using = color_red_texture
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipTextBlock = {
|
||||
visible = "[Not(GreaterThan_CFixedPoint(Building.GetLocation.GetMarketAccess,'(CFixedPoint)0'))]"
|
||||
blockoverride "text" {
|
||||
text = "BUILDING_LACK_MARKET_ACCESS"
|
||||
}
|
||||
blockoverride "textblock_background_tint" {
|
||||
modify_texture = {
|
||||
using = color_red_texture
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipTextBlock = {
|
||||
visible = "[Not(Building.IsOpen)]"
|
||||
blockoverride "text" {
|
||||
text = "[GetToggleBuildingInfo(Building.Self)]"
|
||||
}
|
||||
blockoverride "textblock_background_tint" {
|
||||
modify_texture = {
|
||||
using = color_red_texture
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipStringPairList = {
|
||||
visible = "[And3(Building.HasLocationModifiers, Building.IsOpen, Not(StringIsEmpty(Building.GetLocationModifiers)))]"
|
||||
textcontext = "[Building.GetLocationModifiers]"
|
||||
}
|
||||
TooltipStringPairList = {
|
||||
visible = "[And3(Building.HasCountryModifiers, Building.IsOpen, Not(StringIsEmpty(Building.GetCountryModifiers)))]"
|
||||
textcontext = "[Building.GetCountryModifiers]"
|
||||
}
|
||||
|
||||
TooltipTextBlock = {
|
||||
visible = "[Building.IsSubsidized]"
|
||||
blockoverride "text" {
|
||||
text = "[Building.GetSubsidizeInfo]"
|
||||
}
|
||||
}
|
||||
|
||||
TooltipTextBlock = {
|
||||
visible = "[Building.ShowHostileInfo]"
|
||||
blockoverride "text" {
|
||||
text = "[Building.GetSubsidizeInfo]"
|
||||
}
|
||||
}
|
||||
|
||||
TooltipListBase = {
|
||||
visible = "[Not(Building.GetType.OnlyEstatesCanBuild)]"
|
||||
TooltipStringPairList = {
|
||||
textcontext = "[Building.GetMarketInfo]"
|
||||
}
|
||||
TooltipListRowContent = {
|
||||
visible = "[Building.IsProducing]"
|
||||
TooltipManualTableField = {
|
||||
blockoverride "field_content" {
|
||||
text_single = {
|
||||
text = "TOTAL_POTENTIAL_PROFIT"
|
||||
default_format = "#color_white"
|
||||
}
|
||||
expand = {}
|
||||
text_single = {
|
||||
raw_text = "[Building.GetProfit|2+=L]@gold!"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipStringPairList = {
|
||||
visible = "[GreaterThan_CFixedPoint(Building.GetProfit, '(CFixedPoint)0')]"
|
||||
textcontext = "BUILDING_TT_PROFIT_PER_LEVEL"
|
||||
}
|
||||
|
||||
TooltipTextBlock = {
|
||||
visible = "[And(LessThan_CFixedPoint(Building.GetProfit, '(CFixedPoint)0'), Not(Building.IsSubsidized))]"
|
||||
blockoverride "text" {
|
||||
text = "BUILDING_PROFIT_TT_TEXT_UNPROFITABLE"
|
||||
}
|
||||
|
||||
blockoverride "textblock_background_tint" {
|
||||
modify_texture = {
|
||||
using = color_red_texture
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TooltipTextBlock = {
|
||||
visible = "[And(LessThanOrEqualTo_CFixedPoint(Building.GetProfit, '(CFixedPoint)0'), Building.IsSubsidized)]"
|
||||
blockoverride "text" {
|
||||
text = "BUILDING_PROFIT_TT_TEXT_UNPROFITABLE_AND_SUBSIDIZED"
|
||||
}
|
||||
|
||||
blockoverride "textblock_background_tint" {
|
||||
modify_texture = {
|
||||
using = color_yellow_texture
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user