Skip to content

Instantly share code, notes, and snippets.

@victorholt
Created August 24, 2017 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorholt/d1321c8d3623e167c029e1604b424d44 to your computer and use it in GitHub Desktop.
Save victorholt/d1321c8d3623e167c029e1604b424d44 to your computer and use it in GitHub Desktop.
Character Info Window
#####################################################
# Character information window.
#####################################################
character_info_wnd = {
name = "CharacterInfoWnd"
type = "window_type"
inherit_from = "window_type"
# Prevent us from showing this element.
is_base_type = no
init = {
visible = no
enabled = no
}
display = {
# Take up the full screen for child elements.
width = 350
height = 550
valign = "top"
halign = "left"
draggable = no
always_in_front = no
show_close_button = yes
ypos = 36
# Transparent, only show children.
bgcolor = { 0.15 0.15 0.15 0.85 }
}
children = {
# Name of character
element = {
name = "CharacterInfo_TitleText"
type = "text_type"
inherit_from = "text_type"
text = "character.information"
display = {
width = "100%"
height = 11
valign = "top"
halign = "left"
xpos = 10
ypos = 50
font_size = 12
font_color = { 1.0 1.0 1.0 1.0 }
}
}
# Age of character
element = {
name = "CharacterInfo_AgeText"
type = "text_type"
inherit_from = "text_type"
text = "character.age.label: 0"
tooltip = ""
display = {
width = 100
height = 11
valign = "top"
halign = "left"
xpos = 10
ypos = 70
font_size = 10
font_color = { 1.0 1.0 1.0 1.0 }
}
}
# Guild of character
element = {
name = "CharacterInfo_GuildText"
type = "text_type"
inherit_from = "text_type"
text = "guild.label"
display = {
width = 180
height = 11
valign = "top"
halign = "left"
xpos = 150
ypos = 70
font_size = 10
font_color = { 1.0 1.0 1.0 1.0 }
}
}
# Character stats
element = {
name = "CharacterInfo_CharacterStats"
type = "window_type"
inherit_from = "characterinfo_stats_widget"
display = {
halign = "left"
ypos = 95
}
}
# Character detail stats
element = {
name = "CharacterInfo_CharacterDetails"
type = "window_type"
inherit_from = "characterinfo_details_widget"
display = {
halign = "right"
ypos = 95
}
}
# Character info tabs
element = {
name = "CharacterInfo_Tabs"
type = "window_type"
inherit_from = "characterinfo_tabs_widget"
display = {
ypos = 300
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment