Hi,
I'm trying to add a scrollbar to the portraits screen on race creation,
I've allready donr it for cities and ships but they was configured differently.
So, the actual code is a gridBoxType and I need to include it i a containerWindowType but it ctd.
Here is the original code:
Here is what I'm trying to do:
Any idea why it doesn't work?
I am somehow breaking the "portraits" grid by including it in a container,
if so where can I find the code for this?
PS: all this is done in customize_species_editors.gui
I'm trying to add a scrollbar to the portraits screen on race creation,
I've allready donr it for cities and ships but they was configured differently.
So, the actual code is a gridBoxType and I need to include it i a containerWindowType but it ctd.
Here is the original code:
Code:
gridBoxType = {
name = "portraits"
position = { x = 175 y = 50 }
size = { width = 845 height = 265 }
background = {
name = "background"
spriteType = "GFX_tiles_frame"
}
slotSize = { width = 93 height = 130 }
max_slots_horizontal = 9
format = UPPER_LEFT
}
Here is what I'm trying to do:
Code:
containerWindowType = {
name = "grid_window"
position = { x = 175 y = 50 }
size = { width = 845 height = 265 }
orientation = upper_left
moveable = no
verticalScrollBar = "right_vertical_slider"
margin = { top = 2 bottom = 2 }
background = {
name = "background"
spriteType = "GFX_tiles_frame"
}
gridBoxType = {
name = "portraits"
position = { x = 0 y = 0 }
size = { width = 845 height = 265 }
slotSize = { width = 93 height = 130 }
max_slots_horizontal = 9
format = UPPER_LEFT
}
}
Any idea why it doesn't work?
I am somehow breaking the "portraits" grid by including it in a container,
if so where can I find the code for this?
PS: all this is done in customize_species_editors.gui