my most advanced banner gui code yet
This commit is contained in:
parent
7546100b75
commit
6afa358c96
2 changed files with 99 additions and 22 deletions
|
|
@ -2371,25 +2371,63 @@ types FaithWindow
|
|||
}
|
||||
using = tooltip_es
|
||||
|
||||
#using = Tenet_Glows
|
||||
|
||||
highlight_icon = {#default
|
||||
using = Tenet_Glows #glow activation (disable me PLZ i beg for death)
|
||||
###Religion Defined
|
||||
highlight_icon = {#default system defined in religion
|
||||
name = "doctrine_group_bg_def"
|
||||
visible = "[Not(Or(Faith.HasDoctrineByKey( 'special_doctrine_numenor' ),Faith.HasDoctrineByKey( 'special_doctrine_dionysian' )))]"
|
||||
size = { 130 200 }
|
||||
texture = "[Faith.GetTenetBackgroundIcon( Rite.Self, TenetType.Self )]"
|
||||
}
|
||||
highlight_icon = {#variant
|
||||
name = "doctrine_group_bg_nov"
|
||||
visible = "[Faith.HasDoctrineByKey( 'special_doctrine_numenor' )]"
|
||||
###Novelist
|
||||
highlight_icon = {#Core
|
||||
name = "doctrine_group_bg_nov_core"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'special_doctrine_numenor' ), Faith.GetMainRite.HasTenet( TenetType.Self ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/core_tenet_banner_novelist.dds"
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_marble_known_core.dds"
|
||||
}
|
||||
highlight_icon = {#variant
|
||||
name = "doctrine_group_bg_dion"
|
||||
visible = "[Faith.HasDoctrineByKey( 'special_doctrine_dionysian' )]"
|
||||
highlight_icon = {#permitted
|
||||
name = "doctrine_group_bg_nov_perm"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'special_doctrine_numenor' ), And( Not( Faith.GetMainRite.HasTenet( TenetType.Self ) ), Not( Faith.HasTenetStatus( TenetType.Self, 'prohibited' ) ) ) )]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/core_tenet_banner_britannic.dds"
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_marble_known_neutral.dds"
|
||||
}
|
||||
highlight_icon = {#prohibited
|
||||
name = "doctrine_group_bg_nov_prob"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'special_doctrine_numenor' ), Faith.HasTenetStatus( TenetType.Self, 'prohibited' ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_marble_unknown_heretical.dds"
|
||||
}
|
||||
highlight_icon = {#unknown
|
||||
name = "doctrine_group_bg_nov_unkn"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'special_doctrine_numenor' ), Faith.HasTenetStatus( TenetType.Self, 'unknown' ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_marble_unknown_neutral.dds"
|
||||
}
|
||||
###Europeanist
|
||||
highlight_icon = {#Core
|
||||
name = "doctrine_group_bg_euro_core"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'special_doctrine_dionysian' ), Faith.GetMainRite.HasTenet( TenetType.Self ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_europeanist_known_core.dds"
|
||||
}
|
||||
highlight_icon = {#permitted
|
||||
name = "doctrine_group_bg_euro_perm"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'special_doctrine_dionysian' ), And( Not( Faith.GetMainRite.HasTenet( TenetType.Self ) ), Not( Faith.HasTenetStatus( TenetType.Self, 'prohibited' ) ) ) )]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_europeanist_known_neutral.dds"
|
||||
}
|
||||
highlight_icon = {#prohibited
|
||||
name = "doctrine_group_bg_euro_prob"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'special_doctrine_dionysian' ), Faith.HasTenetStatus( TenetType.Self, 'prohibited' ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_europeanist_unknown_heretical.dds"
|
||||
}
|
||||
highlight_icon = {#unknown
|
||||
name = "doctrine_group_bg_euro_unkn"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'special_doctrine_dionysian' ), Faith.HasTenetStatus( TenetType.Self, 'unknown' ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_europeanist_unknown_neutral.dds"
|
||||
}
|
||||
|
||||
block "tenet_icon"
|
||||
|
|
@ -2598,7 +2636,7 @@ types FaithWindow
|
|||
}
|
||||
}
|
||||
}
|
||||
type widget_tenet_creation_item = widget_tenet_item2 {
|
||||
type widget_tenet_creation_item = widget_tenet_item {
|
||||
datacontext = "[TenetItem.GetTenet]"
|
||||
datacontext = "[TenetItem.GetFaith]"
|
||||
datacontext = "[TenetItem.GetRite]"
|
||||
|
|
@ -2954,7 +2992,7 @@ types FaithWindow
|
|||
|
||||
datamodel = "[TenetGroupItem.GetTenets]"
|
||||
item = {
|
||||
widget_tenet_item2 = {
|
||||
widget_tenet_item = {
|
||||
datacontext = "[TenetItem.GetTenet]"
|
||||
datacontext = "[TenetItem.GetFaith]"
|
||||
datacontext = "[TenetItem.GetRite]"
|
||||
|
|
|
|||
|
|
@ -1,23 +1,62 @@
|
|||
############ x = first faith's banner
|
||||
############ y = second faith's banner
|
||||
############ Found @ window_faith.gui line 2376 circa 25/10/2026
|
||||
highlight_icon = {#default is the vanilla system of assigning via religion
|
||||
###Religion Defined
|
||||
highlight_icon = {#default system defined in religion
|
||||
name = "doctrine_group_bg_def"
|
||||
visible = "[Not(Or(Faith.HasDoctrineByKey( 'x_doctrine_that_sets_banner' ),Faith.HasDoctrineByKey( 'y_doctrine_that_sets_banner' )))]"
|
||||
size = { 130 200 }
|
||||
texture = "[Faith.GetTenetBackgroundIcon( Rite.Self, TenetType.Self )]"
|
||||
}
|
||||
highlight_icon = {#variant
|
||||
name = "doctrine_group_bg_x"
|
||||
visible = "[Faith.HasDoctrineByKey( 'x_doctrine_that_sets_banner' )]"
|
||||
###x faith
|
||||
highlight_icon = {#Core
|
||||
name = "doctrine_group_bg_x_core"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'x_doctrine_that_sets_banner' ), Faith.GetMainRite.HasTenet( TenetType.Self ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/x_banner.dds"
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_marble_known_core.dds"
|
||||
}
|
||||
highlight_icon = {#variant
|
||||
name = "doctrine_group_bg_y"
|
||||
visible = "[Faith.HasDoctrineByKey( 'y_doctrine_that_sets_banner' )]"
|
||||
highlight_icon = {#permitted
|
||||
name = "doctrine_group_bg_x_perm"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'x_doctrine_that_sets_banner' ), And( Not( Faith.GetMainRite.HasTenet( TenetType.Self ) ), Not( Faith.HasTenetStatus( TenetType.Self, 'prohibited' ) ) ) )]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/y_banner.dds"
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_marble_known_neutral.dds"
|
||||
}
|
||||
highlight_icon = {#prohibited
|
||||
name = "doctrine_group_bg_x_prob"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'x_doctrine_that_sets_banner' ), Faith.HasTenetStatus( TenetType.Self, 'prohibited' ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_marble_unknown_heretical.dds"
|
||||
}
|
||||
highlight_icon = {#unknown
|
||||
name = "doctrine_group_bg_x_unkn"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'x_doctrine_that_sets_banner' ), Faith.HasTenetStatus( TenetType.Self, 'unknown' ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_marble_unknown_neutral.dds"
|
||||
}
|
||||
###y faith
|
||||
highlight_icon = {#Core
|
||||
name = "doctrine_group_bg_y_core"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'y_doctrine_that_sets_banner' ), Faith.GetMainRite.HasTenet( TenetType.Self ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_europeanist_known_core.dds"
|
||||
}
|
||||
highlight_icon = {#permitted
|
||||
name = "doctrine_group_bg_y_perm"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'y_doctrine_that_sets_banner' ), And( Not( Faith.GetMainRite.HasTenet( TenetType.Self ) ), Not( Faith.HasTenetStatus( TenetType.Self, 'prohibited' ) ) ) )]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_europeanist_known_neutral.dds"
|
||||
}
|
||||
highlight_icon = {#prohibited
|
||||
name = "doctrine_group_bg_y_prob"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'y_doctrine_that_sets_banner' ), Faith.HasTenetStatus( TenetType.Self, 'prohibited' ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_europeanist_unknown_heretical.dds"
|
||||
}
|
||||
highlight_icon = {#unknown
|
||||
name = "doctrine_group_bg_y_unkn"
|
||||
visible = "[And(Faith.HasDoctrineByKey( 'y_doctrine_that_sets_banner' ), Faith.HasTenetStatus( TenetType.Self, 'unknown' ))]"
|
||||
size = { 130 200 }
|
||||
texture = "gfx/interface/icons/faith_tenets/tenet_banner_europeanist_unknown_neutral.dds"
|
||||
}
|
||||
###############
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue