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: turning off the inventory window  (Read 2442 times)

0 Members and 1 Guest are viewing this topic.

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 196
    • View Profile
turning off the inventory window
« on: May 27, 2009, 09:48:04 AM »

I want a scene which is interactive, but the inventory window is disabled.  Looking at the documentation it would seem that

Game.InventoryVisible = false is the answer - however when I try this it doesn't work, is this because the of the main game loop script which sets the inventory periodocally sets it to true ?

If so can anyone suggest a work-around as I don't want to mess with major functionalilty like the loop script.
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: turning off the inventory window
« Reply #1 on: May 27, 2009, 10:37:52 AM »

You have to change the "display inventory" script in game_daemon.script. It isn't too difficult.

If your script is something like that:
Code: WME Script

You can simply add the Scene.Name at the first line so the inventory will not be displayed at that scene.

Code: WME Script
  1. if(Game.Interactive && Game.MouseY < 45 && !Game.ResponsesVisible && !WinMenu.Visible && Scene.Name!="NameOfTheScene") Game.InventoryVisible = true;

Otherwise you could use a global variable instead of the scene name if you want to do this in many scenes
Logged

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 196
    • View Profile
Re: turning off the inventory window
« Reply #2 on: May 28, 2009, 12:44:25 AM »

thanks that worked very nicely.
Logged
 

Page created in 0.038 seconds with 20 queries.