Skip to content

Commit

Permalink
1.2.08
Browse files Browse the repository at this point in the history
fixed replacing buildings in holdings.
  • Loading branch information
Agamidae committed Nov 24, 2024
1 parent 830f4c9 commit d19f966
Show file tree
Hide file tree
Showing 8 changed files with 154 additions and 121 deletions.
247 changes: 140 additions & 107 deletions OCR-Support/gui/window_county_view.gui
Original file line number Diff line number Diff line change
Expand Up @@ -3369,120 +3369,34 @@ window = {
datacontext = "[HoldingView.GetProvince.GetCounty.GetCulture]"
# visible = "[HoldingView.IsSelectingNewBuilding]"

text_single = {
raw_text = "Selecting a building will start construction, without a preview!"
layoutpolicy_horizontal = expanding
visible = "[EqualTo_string(HoldingView.GetTracksViewPrompt, Localize('REPLACE_BUILDING_PROMPT'))]"
}

item = {
vbox = {
layoutpolicy_horizontal = expanding


button_text = {
layoutpolicy_horizontal = expanding
tooltip = "[GUIPotentialBuildingItem.GetTooltip]"
onclick = "[GUIPotentialBuildingItem.ShowDetails]"
blockoverride "num" {

button_select_building = {
visible = "[Not(EqualTo_string(HoldingView.GetTracksViewPrompt, Localize('REPLACE_BUILDING_PROMPT')))]"
blockoverride "click" {
onclick = "[GUIPotentialBuildingItem.ShowDetails]"
}
shortcuts_list = {
blockoverride "click" {
onclick = "[GUIPotentialBuildingItem.ShowDetails]"
}
blockoverride "preview" {
raw_text = "Preview."
}
}

blockoverride "extra" {

text_single = {
margin_left = -3
raw_text = "[GUIPotentialBuildingItem.GetBuilding.GetTypeName]."
}

text_single = {
visible = "[Not(GUIPotentialBuildingItem.CanConstruct)]"
raw_text = "Disabled,"
}

hbox = {
spacing = 3
text_single = {
raw_text = "Costs"
}

hbox = {
margin_bottom = 1

hbox = {
spacing = 3
datacontext = "[GUIPotentialBuildingItem.GetGoldCost]"
visible = "[GUIPotentialBuildingItem.HasGoldCost]"

text_single = {
# layoutpolicy_horizontal = expanding
raw_text = "[ValueBreakdown.GetValue],"
tooltip_visible = "[ValueBreakdown.HasTooltip]"

tooltipwidget = {
widget_value_breakdown_tooltip = { }
}
}

text_single = {
visible = "[LessThan_CFixedPoint(GetPlayer.GetGold, ValueBreakdown.GetFixedPointValue)]"
raw_text = "need [Subtract_CFixedPoint(ValueBreakdown.GetFixedPointValue, GetPlayer.GetGold)|0] more."
}
}

hbox = {
spacing = 3
datacontext = "[GUIPotentialBuildingItem.GetPrestigeCost]"
visible = "[GUIPotentialBuildingItem.HasPrestigeCost]"

text_single = {
raw_text = "[ValueBreakdown.GetValue],"
tooltip_visible = "[ValueBreakdown.HasTooltip]"

tooltipwidget = {
widget_value_breakdown_tooltip = { }
}
}

text_single = {
visible = "[LessThan_CFixedPoint(GetPlayer.GetPrestige, ValueBreakdown.GetFixedPointValue)]"
raw_text = "need [Subtract_CFixedPoint(ValueBreakdown.GetFixedPointValue, GetPlayer.GetPrestige)|0] more."
}

}

hbox = {
datacontext = "[GUIPotentialBuildingItem.GetPietyCost]"
visible = "[GUIPotentialBuildingItem.HasPietyCost]"
spacing = 3

text_single = {
raw_text = "[ValueBreakdown.GetValue],"
tooltip_visible = "[ValueBreakdown.HasTooltip]"

tooltipwidget = {
widget_value_breakdown_tooltip = { }
}
}

text_single = {
visible = "[LessThan_CFixedPoint(GetPlayer.GetPiety, ValueBreakdown.GetFixedPointValue)]"
raw_text = "need [Subtract_CFixedPoint(ValueBreakdown.GetFixedPointValue, GetPlayer.GetPiety)|0] more."
}
}
}

text_single = {
datacontext = "[GUIPotentialBuildingItem.GetConstructionTime]"
raw_text = "will take [ValueBreakdown.GetValue]."
tooltip_visible = "[ValueBreakdown.HasTooltip]"

tooltipwidget = {
widget_value_breakdown_tooltip = { }
}
}

expand = { }
}
button_select_building = {
visible = "[EqualTo_string(HoldingView.GetTracksViewPrompt, Localize('REPLACE_BUILDING_PROMPT'))]"
blockoverride "click" {
enabled = "[GUIPotentialBuildingItem.CanConstruct]"
onclick = "[GUIPotentialBuildingItem.Construct]"
}
blockoverride "preview" {
raw_text = "Construct."
}
}

Expand Down Expand Up @@ -4052,6 +3966,7 @@ window = {
vbox = {
name = "level_track_previous"
datamodel = "[GUITrackItem.GetPreLevelItems]"
layoutpolicy_horizontal = expanding

item = {
button_text = {
Expand Down Expand Up @@ -4983,4 +4898,122 @@ types CountyViewTypes
}
}
}

type button_select_building = button_text {
layoutpolicy_horizontal = expanding
tooltip = "[GUIPotentialBuildingItem.GetTooltip]"
block "click" {
}
blockoverride "num" {

}
shortcuts_list = {
}

blockoverride "extra" {

text_single = {
margin_left = -3
raw_text = "[GUIPotentialBuildingItem.GetBuilding.GetTypeName]."
}

text_single = {
visible = "[Not(GUIPotentialBuildingItem.CanConstruct)]"
raw_text = "Disabled,"
}


flowcontainer = {
ignoreinvisible = yes
spacing = 3
text_single = {
raw_text = "Costs"
}

flowcontainer = {
ignoreinvisible = yes
margin_bottom = 1

flowcontainer = {
ignoreinvisible = yes
spacing = 3
datacontext = "[GUIPotentialBuildingItem.GetGoldCost]"
visible = "[GUIPotentialBuildingItem.HasGoldCost]"

text_single = {
# layoutpolicy_horizontal = expanding
raw_text = "[ValueBreakdown.GetValue],"
tooltip_visible = "[ValueBreakdown.HasTooltip]"

tooltipwidget = {
widget_value_breakdown_tooltip = { }
}
}

text_single = {
visible = "[LessThan_CFixedPoint(GetPlayer.GetGold, ValueBreakdown.GetFixedPointValue)]"
raw_text = "need [Subtract_CFixedPoint(ValueBreakdown.GetFixedPointValue, GetPlayer.GetGold)|0] more."
}
}

flowcontainer = {
ignoreinvisible = yes
spacing = 3
datacontext = "[GUIPotentialBuildingItem.GetPrestigeCost]"
visible = "[GUIPotentialBuildingItem.HasPrestigeCost]"

text_single = {
raw_text = "[ValueBreakdown.GetValue],"
tooltip_visible = "[ValueBreakdown.HasTooltip]"

tooltipwidget = {
widget_value_breakdown_tooltip = { }
}
}

text_single = {
visible = "[LessThan_CFixedPoint(GetPlayer.GetPrestige, ValueBreakdown.GetFixedPointValue)]"
raw_text = "need [Subtract_CFixedPoint(ValueBreakdown.GetFixedPointValue, GetPlayer.GetPrestige)|0] more."
}

}

flowcontainer = {
ignoreinvisible = yes
datacontext = "[GUIPotentialBuildingItem.GetPietyCost]"
visible = "[GUIPotentialBuildingItem.HasPietyCost]"
spacing = 3

text_single = {
raw_text = "[ValueBreakdown.GetValue],"
tooltip_visible = "[ValueBreakdown.HasTooltip]"

tooltipwidget = {
widget_value_breakdown_tooltip = { }
}
}

text_single = {
visible = "[LessThan_CFixedPoint(GetPlayer.GetPiety, ValueBreakdown.GetFixedPointValue)]"
raw_text = "need [Subtract_CFixedPoint(ValueBreakdown.GetFixedPointValue, GetPlayer.GetPiety)|0] more."
}
}
}

text_single = {
datacontext = "[GUIPotentialBuildingItem.GetConstructionTime]"
raw_text = "will take [ValueBreakdown.GetValue]."
tooltip_visible = "[ValueBreakdown.HasTooltip]"

tooltipwidget = {
widget_value_breakdown_tooltip = { }
}
}
}

text_single = {
block "preview" {}
}
}
}
}
4 changes: 2 additions & 2 deletions OCR-Support/localization/english/ocr_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ LOADING_TIP: "Loading tip:"
# 4. Disconnect
# 5. upload

mod_version: "Mod version 1.2.07 for CK3 1.14"
mod_changes: ".07 changes: Added missing descriptions for camp buildings.\n.06 changes: Fixed succession laws missing from the realm window.\n.05 changes: fixed unclickable traits in the ruler designer. Hopefully.\n.04 changes: Fixed a character missing in the event window.\nAlso added the number of characters, ages and their skills.\nFixed advice Finding Contracts.\nClicking an alert will now automatically restore the advice window if it was minimized.\n.03 changes: Added refill buttons for adventurers in the military window.\nAdded missing provisions label to tooltips.\nChanged camp hotkey to Control q.\nAdded Enter for construct and upgrade buttons in the camp.\n.02 changes: Fixed the list of dangers not appearing.\nFixed some dangers listed as both medium and low.\n.01 changes: Fixed game rules being limited to 200.\nAdded numbers to wars, when calling an ally to war. Should fix an issue with clicks.\nAdded how many of adjacent rulers are at war.\n1.2 Changes: Updated to game version 1.14.\nYou can now play as landless adventurers. With Roads to Power DLC.\nTo do next: admin governments, message settings, music player, update sighted view.\nOther changes: Removed traits from the list of mercenaries because it caused massive lag.\nUpdated the list of holy orders, they apparently weren't converted to text.\nDid some clean up on the bookmark screen.\nMain menu now shows a character of the week."
mod_version: "Mod version 1.2.08 for CK3 1.14"
mod_changes: ".08 changes: fixed replacing buildings in holdings.\n.07 changes: Added missing descriptions for camp buildings.\n.06 changes: Fixed succession laws missing from the realm window.\n.05 changes: fixed unclickable traits in the ruler designer. Hopefully.\n.04 changes: Fixed a character missing in the event window.\nAlso added the number of characters, ages and their skills.\nFixed advice Finding Contracts.\nClicking an alert will now automatically restore the advice window if it was minimized.\n.03 changes: Added refill buttons for adventurers in the military window.\nAdded missing provisions label to tooltips.\nChanged camp hotkey to Control q.\nAdded Enter for construct and upgrade buttons in the camp.\n.02 changes: Fixed the list of dangers not appearing.\nFixed some dangers listed as both medium and low.\n.01 changes: Fixed game rules being limited to 200.\nAdded numbers to wars, when calling an ally to war. Should fix an issue with clicks.\nAdded how many of adjacent rulers are at war.\n1.2 Changes: Updated to game version 1.14.\nYou can now play as landless adventurers. With Roads to Power DLC.\nTo do next: admin governments, message settings, music player, update sighted view.\nOther changes: Removed traits from the list of mercenaries because it caused massive lag.\nUpdated the list of holy orders, they apparently weren't converted to text.\nDid some clean up on the bookmark screen.\nMain menu now shows a character of the week."
prev_changes: ""
agot_ocr_version: ""
agot_ocr_mod_changes: ""
Expand Down
4 changes: 2 additions & 2 deletions OCR-Support/localization/french/ocr_l_french.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ LOADING_TIP: "Loading tip:"
# 4. Disconnect
# 5. upload

mod_version: "Mod version 1.2.07 for CK3 1.14"
mod_changes: ".07 changes: Added missing descriptions for camp buildings.\n.06 changes: Fixed succession laws missing from the realm window.\n.05 changes: fixed unclickable traits in the ruler designer. Hopefully.\n.04 changes: Fixed a character missing in the event window.\nAlso added the number of characters, ages and their skills.\nFixed advice Finding Contracts.\nClicking an alert will now automatically restore the advice window if it was minimized.\n.03 changes: Added refill buttons for adventurers in the military window.\nAdded missing provisions label to tooltips.\nChanged camp hotkey to Control q.\nAdded Enter for construct and upgrade buttons in the camp.\n.02 changes: Fixed the list of dangers not appearing.\nFixed some dangers listed as both medium and low.\n.01 changes: Fixed game rules being limited to 200.\nAdded numbers to wars, when calling an ally to war. Should fix an issue with clicks.\nAdded how many of adjacent rulers are at war.\n1.2 Changes: Updated to game version 1.14.\nYou can now play as landless adventurers. With Roads to Power DLC.\nTo do next: admin governments, message settings, music player, update sighted view.\nOther changes: Removed traits from the list of mercenaries because it caused massive lag.\nUpdated the list of holy orders, they apparently weren't converted to text.\nDid some clean up on the bookmark screen.\nMain menu now shows a character of the week."
mod_version: "Mod version 1.2.08 for CK3 1.14"
mod_changes: ".08 changes: fixed replacing buildings in holdings.\n.07 changes: Added missing descriptions for camp buildings.\n.06 changes: Fixed succession laws missing from the realm window.\n.05 changes: fixed unclickable traits in the ruler designer. Hopefully.\n.04 changes: Fixed a character missing in the event window.\nAlso added the number of characters, ages and their skills.\nFixed advice Finding Contracts.\nClicking an alert will now automatically restore the advice window if it was minimized.\n.03 changes: Added refill buttons for adventurers in the military window.\nAdded missing provisions label to tooltips.\nChanged camp hotkey to Control q.\nAdded Enter for construct and upgrade buttons in the camp.\n.02 changes: Fixed the list of dangers not appearing.\nFixed some dangers listed as both medium and low.\n.01 changes: Fixed game rules being limited to 200.\nAdded numbers to wars, when calling an ally to war. Should fix an issue with clicks.\nAdded how many of adjacent rulers are at war.\n1.2 Changes: Updated to game version 1.14.\nYou can now play as landless adventurers. With Roads to Power DLC.\nTo do next: admin governments, message settings, music player, update sighted view.\nOther changes: Removed traits from the list of mercenaries because it caused massive lag.\nUpdated the list of holy orders, they apparently weren't converted to text.\nDid some clean up on the bookmark screen.\nMain menu now shows a character of the week."
prev_changes: ""
agot_ocr_version: ""
agot_ocr_mod_changes: ""
Expand Down
4 changes: 2 additions & 2 deletions OCR-Support/localization/german/ocr_l_german.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ LOADING_TIP: "Loading tip:"
# 4. Disconnect
# 5. upload

mod_version: "Mod version 1.2.07 for CK3 1.14"
mod_changes: ".07 changes: Added missing descriptions for camp buildings.\n.06 changes: Fixed succession laws missing from the realm window.\n.05 changes: fixed unclickable traits in the ruler designer. Hopefully.\n.04 changes: Fixed a character missing in the event window.\nAlso added the number of characters, ages and their skills.\nFixed advice Finding Contracts.\nClicking an alert will now automatically restore the advice window if it was minimized.\n.03 changes: Added refill buttons for adventurers in the military window.\nAdded missing provisions label to tooltips.\nChanged camp hotkey to Control q.\nAdded Enter for construct and upgrade buttons in the camp.\n.02 changes: Fixed the list of dangers not appearing.\nFixed some dangers listed as both medium and low.\n.01 changes: Fixed game rules being limited to 200.\nAdded numbers to wars, when calling an ally to war. Should fix an issue with clicks.\nAdded how many of adjacent rulers are at war.\n1.2 Changes: Updated to game version 1.14.\nYou can now play as landless adventurers. With Roads to Power DLC.\nTo do next: admin governments, message settings, music player, update sighted view.\nOther changes: Removed traits from the list of mercenaries because it caused massive lag.\nUpdated the list of holy orders, they apparently weren't converted to text.\nDid some clean up on the bookmark screen.\nMain menu now shows a character of the week."
mod_version: "Mod version 1.2.08 for CK3 1.14"
mod_changes: ".08 changes: fixed replacing buildings in holdings.\n.07 changes: Added missing descriptions for camp buildings.\n.06 changes: Fixed succession laws missing from the realm window.\n.05 changes: fixed unclickable traits in the ruler designer. Hopefully.\n.04 changes: Fixed a character missing in the event window.\nAlso added the number of characters, ages and their skills.\nFixed advice Finding Contracts.\nClicking an alert will now automatically restore the advice window if it was minimized.\n.03 changes: Added refill buttons for adventurers in the military window.\nAdded missing provisions label to tooltips.\nChanged camp hotkey to Control q.\nAdded Enter for construct and upgrade buttons in the camp.\n.02 changes: Fixed the list of dangers not appearing.\nFixed some dangers listed as both medium and low.\n.01 changes: Fixed game rules being limited to 200.\nAdded numbers to wars, when calling an ally to war. Should fix an issue with clicks.\nAdded how many of adjacent rulers are at war.\n1.2 Changes: Updated to game version 1.14.\nYou can now play as landless adventurers. With Roads to Power DLC.\nTo do next: admin governments, message settings, music player, update sighted view.\nOther changes: Removed traits from the list of mercenaries because it caused massive lag.\nUpdated the list of holy orders, they apparently weren't converted to text.\nDid some clean up on the bookmark screen.\nMain menu now shows a character of the week."
prev_changes: ""
agot_ocr_version: ""
agot_ocr_mod_changes: ""
Expand Down
Loading

0 comments on commit d19f966

Please sign in to comment.