Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Inventory.def question  (Read 3302 times)

0 Members and 1 Guest are viewing this topic.

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Inventory.def question
« on: May 20, 2012, 09:55:31 AM »

::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer ::beer


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 Offline
  • Gender: Male
  • Posts: 212
    • View Profile
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
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
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. ::wave
 

Page created in 0.022 seconds with 20 queries.