I'm sorry, but I don't get........I can't manage to get the transparant window and its button to show up in the game.
I made a transparant window:
{
NAME = "transparent"
TEMPLATE = "interface\transparentwindow.window"
; position and size
X = 0
Y = 0
WIDTH = 800
HEIGHT = 600
VISIBLE = TRUE
DISABLED = FALSE
TITLE = "transparent window"
TITLE_RECT { 5,5,235,45 }
TITLE_ALIGN = left
DRAG_RECT { 0,0,215,25 }
FONT = "fonts\bart.font"
FONT_INACTIVE = "bart.font"
SCRIPT = "interface\transparentinv.script"
TRANSPARENT = TRUE
MENU = TRUE
IN_GAME = TRUE
CLIP_CONTENTS = TRUE
}
Containing one button:
BUTTON
{
NAME = "truhe"
TEXT = "Truhe"
X = 0
Y = 0
WIDTH = 100
HEIGHT = 60
}
This is the button definition (truhe.button):
BUTTON
{
FONT = "fonts\outline_white.font"
FONT_DISABLE = "fonts\outline_disabled.font"
BACK = "ui_elements\truhe.png"
BACK_HOVER = "ui_elements\truhe.png"
BACK_PRESS = "ui_elements\truhe.png"
BACK_DISABLE = "ui_elements\truhe.png"
BACK_FOCUS = "ui_elements\truhe.png"
PARENT_NOTIFY = TRUE
WIDTH = 100
HEIGHT = 50
TEXT_ALIGN = CENTER
CENTER_IMAGE = TRUE
}
It also has an truhe.image file:
TILED_IMAGE
{
IMAGE="ui_elements\truhe.png"
VERTICAL_TILES {10,10,10}
HORIZONTAL_TILES {10,10,10}
}
I think I have to change this part of the gam_daemon.script:
if(Game.Interactive && Game.MouseY < 45 && !Game.ResponsesVisible && !WinMenu.Visible) Game.InventoryVisible = true;
else if(Game.MouseY > 100 || Game.ResponsesVisible || !Game.Interactive) Game.InventoryVisible = false;
but I don't know what it should be...