Crusader Kings III

Crusader Kings III

Knight Manager CN/骑士管理器汉化
Juijote  [developer] 28 Mar, 2021 @ 8:49pm
翻译了几句新文本
######################################################
################# KNIGHTS VIEW ###################
######################################################

window = {
datacontext = "[KnightsView.GetMilitaryView]"
name = "knight_view"
size = { 540 865 }
parentanchor = top|right
position = { -626 170 }
movable = no
layer = middle

using = Window_Background_Subwindow

state = {
name = _show
using = Animation_FadeIn_Quick

position = { -626 170 }
}

state = {
name = _hide
using = Animation_FadeOut_Quick

position_x = -570
}

vbox = {
margin = { 4 4 }
spacing = 5

header_pattern = {
layoutpolicy_horizontal = expanding

blockoverride "header_text"
{
text = KV_HEADER
}

blockoverride "button_close"
{
onclick = "[KnightsView.Close]"

}
}

hbox = {
layoutpolicy_horizontal = expanding
margin = { 10 0 }
margin_bottom = 5

text_label_center = {
name = "knights_cap"
text = "MAX_KNIGHT_COUNT"
tooltip = "MAX_KNIGHT_TOOLTIP"
default_format = "#low"
}

text_label_center = {
name = "knights_effectiveness"

text = "KNIGHT_EFFECTIVENESS"
tooltip = "KNIGHT_EFFECTIVENESS_TOOLTIP"
default_format = "#low"
}
}

button_decision_entry = {
name = "invite_knights_decision"
datacontext = "[GetDecisionWithKey('invite_knights_decision')]"
visible = "[Decision.IsShownForPlayer]"
onclick = "[OpenDecisionDetailView( Decision.Self )]"
}
vbox = {
name = knight_manager_settings
layoutpolicy_horizontal = expanding
margin = { 20 10 }
text_label_center = {
text = "组别分类"
tooltip = "取消勾选复选框将禁止某些组别充当骑士。取消勾选时,该组中的所有人物将不再是骑士,也不会显示在列表中。如果想手动允许该组中的某个特定人物担任骑士,请在不允许他的组别担任骑士之前取消选中他的K.M复选框。"
default_format = "#medium"
}
hbox = {
name = knight_manager_first_row
layoutpolicy_horizontal = expanding
button_checkbox_label = {
max_width = 150
layoutpolicy_horizontal = expanding
datacontext = "[GetScriptedGui('knight_manager_toggle_kin_cannot_be_knight')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
onclick = "[MilitaryView.SetKnightDefault( GetPlayer.Self )]"
tooltip = "勾选后,家族成员可以成为骑士。"

blockoverride "checkbox"
{
checked = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
}

blockoverride "text"
{
text = "家族成员"
}
}
button_checkbox_label = {
max_width = 150
layoutpolicy_horizontal = expanding
datacontext = "[GetScriptedGui('knight_manager_toggle_children_cannot_be_knight')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
onclick = "[MilitaryView.SetKnightDefault( GetPlayer.Self )]"
tooltip = "勾选后,子女可以成为骑士"

blockoverride "checkbox"
{
checked = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
}

blockoverride "text"
{
text = "直系后代"
}
}
button_checkbox_label = {
max_width = 150
layoutpolicy_horizontal = expanding
datacontext = "[GetScriptedGui('knight_manager_toggle_family_spouses_cannot_be_knight')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
onclick = "[MilitaryView.SetKnightDefault( GetPlayer.Self )]"
tooltip = "勾选后,配偶和后代的配偶可以成为骑士。"

blockoverride "checkbox"
{
checked = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
}

blockoverride "text"
{
text = "家庭配偶"
}
}
}
hbox = {
name = knight_manager_second_row
layoutpolicy_horizontal = expanding
button_checkbox_label = {
max_width = 150
layoutpolicy_horizontal = expanding
datacontext = "[GetScriptedGui('knight_manager_toggle_councillors_cannot_be_knight')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
onclick = "[MilitaryView.SetKnightDefault( GetPlayer.Self )]"
tooltip = "勾选后,宫廷成员和宫廷医生可以成为骑士。"

blockoverride "checkbox"
{
checked = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
}

blockoverride "text"
{
text = "宫廷成员"
}
}
button_checkbox_label = {
max_width = 150
layoutpolicy_horizontal = expanding
datacontext = "[GetScriptedGui('knight_manager_toggle_lover_cannot_be_knight')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
onclick = "[MilitaryView.SetKnightDefault( GetPlayer.Self )]"
tooltip = "勾选后,情人和灵魂伴侣可以成为骑士。"

blockoverride "checkbox"
{
checked = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
}

blockoverride "text"
{
text = "为爱而战"
}
}
button_checkbox_label = {
max_width = 150
layoutpolicy_horizontal = expanding
datacontext = "[GetScriptedGui('knight_manager_toggle_player_heir_cannot_be_knight')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
onclick = "[MilitaryView.SetKnightDefault( GetPlayer.Self )]"
tooltip = "勾选后,玩家继承人可以成为骑士。"

blockoverride "checkbox"
{
checked = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
}

blockoverride "text"
{
text = "继承人"
}
}

}
hbox = {
name = knight_manager_third_row
layoutpolicy_horizontal = expanding
button_checkbox_label = {
max_width = 150
layoutpolicy_horizontal = expanding
datacontext = "[GetScriptedGui('knight_manager_toggle_awful_fighters_cannot_be_knight')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
onclick = "[MilitaryView.SetKnightDefault( GetPlayer.Self )]"
tooltip = "勾选后,弱小的战士(勇武低于6)可以充当骑士。"

blockoverride "checkbox"
{
checked = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
}

blockoverride "text"
{
text = "Bad Fighters"
}
}
button_checkbox_label = {
max_width = 150
layoutpolicy_horizontal = expanding
datacontext = "[GetScriptedGui('knight_manager_toggle_bad_fighters_cannot_be_knight')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
onclick = "[MilitaryView.SetKnightDefault( GetPlayer.Self )]"
tooltip = "勾选后,普通的战士(勇武低于13)可以充当骑士。"

blockoverride "checkbox"
{
checked = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End)]"
}

blockoverride "text"
{
text = "Average Fighters"
}
}
}
}

spacer = {
size = { 10 10 }
}

text_label_center = {
name = "knights_effectiveness"
text = "KNIGHTS_SUBHEADER"
default_format = "#medium"
}

scrollbox = {
name = "knights"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding

blockoverride "scrollbox_content" {
name = "knights"
datamodel = "[MilitaryView.GetKnights]"
spacing = 10

item = {
widget = {
layoutpolicy_horizontal = expanding
size = { 0 130 }

using = Background_Guest

blockoverride "Background_Guest_pattern_visible"
{
visible = "[Character.IsGuest]"
margin_bottom = -5
margin_right = 5
}
blockoverride "Background_Guest_frame_visible"
{
visible = "[Character.IsGuest]"
margin_left = 3
margin_bottom = -5
margin_top = 1
margin_right = 5
}

vbox = {
layoutpolicy_horizontal = expanding
spacing = 7

hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_right = 5
spacing = 10

portrait_head = {
alpha = "[Select_float( Character.IsKnight, '(float)1.0', '(float)0.6' )]"
}


vbox = {
layoutpolicy_vertical = expanding
layoutpolicy_horizontal = expanding
spacing = 10
margin_top = 15

hbox = {
layoutpolicy_horizontal = expanding

hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding

icon = {
visible = "[Character.IsKnight]"
texture = "gfx/interface/icons/icon_knight_small.dds"
size = { 40 40 }
}

vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding

text_single = {
layoutpolicy_horizontal = expanding
text = "[Character.GetNameNoTooltip]"
using = Font_Size_Medium
autoresize = no
}


text_single = {
layoutpolicy_horizontal = expanding
text = "[Character.GetRelationToString( GetPlayer )]"
default_format = "#low"
autoresize = no
align = nobaseline
}

expand = {}
}
}

vbox = {
layoutpolicy_vertical = expanding
margin = { 10 0 }

text_label_center = {
text = "[prowess_i][Character.GetSkill( 'prowess' )]"
using = Font_Size_Big
default_format = "#high"
}

expand = {}
}
}

hbox = {
visible = "[Not(Character.IsGuest)]"
layoutpolicy_horizontal = expanding
spacing = 10

button_standard = {
size = { 90 33 }
onclick = "[MilitaryView.SetKnightForced( Character.Self )]"
down = "[Character.IsKnightForced]"
alwaystransparent = "[Character.IsKnightForced]"

text = "KNIGHTS_VIEW_FORCE"

tooltip = "KNIGHTS_VIEW_TITLE_FORCE_TT"
using = tooltip_se
}

button_standard = {
size = { 90 33 }
onclick = "[MilitaryView.SetKnightDefault( Character.Self )]"
down = "[Character.IsKnightDefault]"
alwaystransparent = "[Character.IsKnightDefault]"

text = "KNIGHTS_VIEW_ALLOW"

tooltip = "KNIGHTS_VIEW_TITLE_BY_PROWESS_TT"
using = tooltip_se
}

button_standard = {
size = { 90 33 }
onclick = "[MilitaryView.SetKnightDisallowed( Character.Self )]"
down = "[Character.IsKnightDisallowed]"
alwaystransparent = "[Character.IsKnightDisallowed]"

text = "KNIGHTS_VIEW_FORBID"

tooltip = "KNIGHTS_VIEW_TITLE_FORBID_TT"
using = tooltip_se
}
button_checkbox_label = {
layoutpolicy_horizontal = expanding
datacontext = "[GetScriptedGui('knight_manager_toggle_manually_allowed')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( Character.MakeScope ).End)]"
onclick = "[MilitaryView.SetKnightDefault( GetPlayer.Self )]"
tooltip = "未勾选时,人物将从骑士管理器设置中排除,可单独选择是否成为骑士。"

blockoverride "checkbox"
{
checked = "[ScriptedGui.IsShown( GuiScope.SetRoot( Character.MakeScope ).End)]"
}

blockoverride "text"
{
text = "K.M."
}
}

expand = {}
}

hbox = {
visible = "[Character.IsGuest]"
layoutpolicy_horizontal = expanding
spacing = 10

button_standard = {
visible = "[Character.IsPlayerInteractionShown('recruit_guest_interaction')]"
enabled = "[Character.IsPlayerInteractionValid('recruit_guest_interaction')]"
onclick = "[Character.OpenPlayerInteraction('recruit_guest_interaction')]"
text = "[Character.GetPlayerInteractionName('recruit_guest_interaction')]"
tooltip = "[Character.GetPlayerInteractionTooltip('recruit_guest_interaction')]"
using = tooltip_se
}

expand = {}
}

expand = {}
}


}

divider = {
layoutpolicy_horizontal = expanding
}
}
}
}
}
}
}
}
< >
Showing 1-2 of 2 comments
Juijote  [developer] 28 Mar, 2021 @ 8:52pm 
使用方法:
用文本方式打开
\Steam\steamapps\workshop\content\1158310\2293272317\gui\window_knights.gui
然后复制覆盖就可以了。
Jacemperor 28 Mar, 2022 @ 8:13pm 
请问下大佬,文本怎么复制覆盖呀?是吧原来gui里面的全部删除再把你发在讨论区的再粘贴上去吗?
< >
Showing 1-2 of 2 comments
Per page: 1530 50