September 01, 2024, 01:29:09 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
IRC channel - server:
waelisch.de
channel:
#wme
(
read more
)
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Inventory.def question
« previous
next »
Pages: [
1
]
Print
Author
Topic: Inventory.def question (Read 3513 times)
0 Members and 1 Guest are viewing this topic.
piere
Supporter
Frequent poster
Karma: 4
Offline
Posts: 302
Sorry for any bad english in my posts. Game on !
Inventory.def question
«
on:
May 20, 2012, 09:55:31 AM »
Hey question here. Is it possible to have two separate inventory.def files, or to change the inventory.def attributes in game, like the visibility to false, or change the image, etc?? Thanks
«
Last Edit: May 20, 2012, 10:10:49 AM by piagent
»
Logged
anarchist
Regular poster
Karma: 5
Offline
Gender:
Posts: 212
Re: Inventory.def question
«
Reply #1 on:
May 20, 2012, 01:33:14 PM »
Not sure about all the inventory.def attributes (like ITEM_WIDTH, ITEM_HEIGHT etc.) but you can manipulate the inventory window like a normal game window. You can get a reference to the inventory window this way:
Code: WME Script
var
inv =
Game
.
GetInventoryWindow
(
)
;
Logged
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: Inventory.def question
«
Reply #2 on:
May 20, 2012, 07:48:32 PM »
Or you can load a new definition file using Game.LoadInventoryBox(). WME documentation is your friend.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Inventory.def question