GUI
This commit is contained in:
parent
0445bb9601
commit
f866dd83d0
8 changed files with 4726 additions and 1149 deletions
|
|
@ -240,6 +240,7 @@ types IntrigueWindow
|
|||
|
||||
vbox = {
|
||||
set_parent_size_to_minimum = yes
|
||||
spacing = 4
|
||||
|
||||
background = {
|
||||
using = Background_Area
|
||||
|
|
@ -629,12 +630,6 @@ types IntrigueWindow
|
|||
expand = {}
|
||||
}
|
||||
|
||||
text_multi = {
|
||||
visible = "[And( Scheme.HasTaskContract, InDebugMode )]"
|
||||
layoutpolicy_horizontal = expanding
|
||||
raw_text= "#D Contract: [Scheme.GetTaskContract.GetNameNoTooltip]#!"
|
||||
}
|
||||
|
||||
expand = {}
|
||||
|
||||
hbox = {
|
||||
|
|
@ -652,11 +647,11 @@ types IntrigueWindow
|
|||
|
||||
spacer = {
|
||||
visible = "[IsDataModelEmpty(Scheme.GetModifiers)]"
|
||||
size = { 0 10 }
|
||||
size = { 0 6 }
|
||||
}
|
||||
|
||||
hbox = {
|
||||
visible = "[Not( IsDataModelEmpty(Scheme.GetModifiers))]"
|
||||
visible = "[Not( IsDataModelEmpty(Scheme.GetModifiers) )]"
|
||||
layoutpolicy_horizontal = expanding
|
||||
margin_bottom = 5
|
||||
margin_left = 10
|
||||
|
|
@ -721,6 +716,52 @@ types IntrigueWindow
|
|||
}
|
||||
}
|
||||
|
||||
button_standard = {
|
||||
name = "open_push_for_advantages"
|
||||
visible = "[And( Not(SchemeItem.GetScheme.GetSchemeType.IsBasic), Scheme.GetTaskContract.GetType.HasGroup( 'merchant_trade_opportunity_group' ) )]"
|
||||
enabled = "[Not( SchemeItem.GetScheme.GetOwner.MakeScope.HasFlag('push_for_advantage_cooldown') )]"
|
||||
size = { 490 44 }
|
||||
|
||||
onclick = "[PostCommand( SchemeItem.TriggerPushForAdvantages )]"
|
||||
|
||||
tooltip = "SCHEME_WINDOW_OPEN_PUSH_FOR_ADVANTAGES_TT"
|
||||
|
||||
icon = {
|
||||
parentanchor = vcenter
|
||||
position = { 2 0 }
|
||||
size = { 98 56 }
|
||||
texture = "gfx/interface/window_scheme/scheme_push_illustration.dds"
|
||||
alpha = 0.6
|
||||
scale = 0.7
|
||||
|
||||
modify_texture = {
|
||||
texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds"
|
||||
blend_mode = alphamultiply
|
||||
}
|
||||
}
|
||||
|
||||
icon = {
|
||||
parentanchor = center
|
||||
size = { 99.3% 40 }
|
||||
|
||||
texture = "gfx/interface/component_tiles/tile_vignette_3px.dds"
|
||||
spriteType = Corneredtiled
|
||||
spriteborder = { 5 5 }
|
||||
}
|
||||
|
||||
hbox = {
|
||||
datacontext = "[SchemeItem.GetScheme]"
|
||||
layoutpolicy_horizontal = expanding
|
||||
|
||||
text_single = {
|
||||
alwaystransparent = yes
|
||||
text = "SCHEME_WINDOW_PUSH_FOR_ADVANTAGES_TT"
|
||||
align = left|nobaseline
|
||||
max_width = 480
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button_standard = {
|
||||
name = "open_scheme_prep"
|
||||
visible = "[Not(SchemeItem.GetScheme.GetSchemeType.IsBasic)]"
|
||||
|
|
@ -949,7 +990,7 @@ types IntrigueWindowTypes
|
|||
|
||||
text_label_center = {
|
||||
layoutpolicy_horizontal = expanding
|
||||
text = "[contract_schemes|E]"
|
||||
text = "CONTRACT_SCHEMES_CONCEPT"
|
||||
}
|
||||
|
||||
vbox = {
|
||||
|
|
@ -1049,7 +1090,7 @@ types IntrigueWindowTypes
|
|||
name = "my_political_schemes"
|
||||
datacontext = "[IntrigueWindow.GetPoliticalSchemes]"
|
||||
datacontext = "[IntrigueWindow.GetCharacter]"
|
||||
visible = "[Or4( Character.GetGovernment.HasMechanic( 'administrative' ), Character.GetGovernment.IsType( 'japan_feudal_government' ), Character.GetTopLiege.GetGovernment.HasMechanic( 'administrative' ), Character.GetGovernment.IsType( 'mandala_government' ) )]"
|
||||
visible = "[Or3( Character.GetGovernment.HasGovernmentFlag( 'government_is_republic' ), GetSituation( 'guelph_ghibelline' ).IsParticipant( Character.Self ), Or4( Character.GetGovernment.HasMechanic( 'administrative' ), Character.GetGovernment.IsType( 'japan_feudal_government' ), Character.GetTopLiege.GetGovernment.HasMechanic( 'administrative' ), Character.GetGovernment.IsType( 'mandala_government' ) ) )]"
|
||||
layoutpolicy_horizontal = expanding
|
||||
|
||||
text_label_center = {
|
||||
|
|
@ -1085,6 +1126,47 @@ types IntrigueWindowTypes
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
vbox = {
|
||||
name = "my_trade_schemes"
|
||||
datacontext = "[IntrigueWindow.GetTradeSchemes]"
|
||||
datacontext = "[IntrigueWindow.GetCharacter]"
|
||||
visible = "[Character.GetGovernment.HasRule( 'profit_trade_routes' )]"
|
||||
layoutpolicy_horizontal = expanding
|
||||
|
||||
text_label_center = {
|
||||
layoutpolicy_horizontal = expanding
|
||||
text = "[trade_schemes|E]"
|
||||
}
|
||||
|
||||
vbox = {
|
||||
name = "my_own_trade_schemes"
|
||||
visible = "[SkillSchemeGroup.HasSchemes]"
|
||||
layoutpolicy_horizontal = expanding
|
||||
|
||||
datamodel = "[SkillSchemeGroup.GetSchemes]"
|
||||
item = {
|
||||
widget_own_scheme_item = {
|
||||
layoutpolicy_horizontal = expanding
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
text_multi = {
|
||||
name = "no_own_trade_schemes"
|
||||
visible = "[Not( SkillSchemeGroup.HasSchemes )]"
|
||||
layoutpolicy_horizontal = expanding
|
||||
minimumsize = { 0 110 }
|
||||
|
||||
text = "SCHEME_WINDOW_NOT_OWNED_SCHEMES"
|
||||
default_format = "#low;italic"
|
||||
align = center
|
||||
|
||||
background = {
|
||||
using = Background_Area
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
## Known schemes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue