Hi again,
I can't seem to get any items to appear in my inventory - the code for adding them to the inventory is fine as I've checked it over - same code as I've always done.
I think it's the inventory "area" rectangle that's the problem.
INVENTORY_BOX
{
ITEM_WIDTH = 42
ITEM_HEIGHT = 42
SPACING = 10
SCROLL_BY = 1
HIDE_SELECTED = TRUE
AREA { 0, 558, 800, 42 }
EXCLUSIVE = FALSE
; ALWAYS_VISIBLE = FALSE
WINDOW
{
X = 0
Y = 558
WIDTH = 800
HEIGHT = 42
IMAGE = "interface\inventory_background_place_holder.jpg"
SCRIPT = "interface\inventory.script"
}
}
The actual inventory windows displays fine in the desired location, but how does that "area" work exactly? The documentation says the points are "x, y, width, height", so as far as I can see the area rectangle should be fitting perfectly over the inventory window, and the items should be showing up nicely, but there's just nothing there.
Each of my inventory "items" are square images 42 x 42, which is the height of the inventory window and the area rectangle, so what's the problem? Anyone know?
Thanks again.
EDIT - So the X and Y of the "area" are the X and Y corresponding to the inventory window top left corner, not the scene corner?
I made it work now, but I don't know - it just worked after I altered some numbers - I still don't understand how that "area" ties excactly to the window and whether there are any rules are not. It seemed to work when I entered massively large numbers and then I worked backwards from there testing and testing until the numbers were nice and small again.
Works anyway, which is good.