This shows you the differences between the selected revision and the current
version of the page.
kbase:how_to_display_the_inventory_constantly_at_the_bottom_of_the_screen | kbase:how_to_display_the_inventory_constantly_at_the_bottom_of_the_screen 2017/12/08 02:51 current | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How to Display the Inventory Constantly at the Bottom of the Screen ====== | ||
+ | |||
+ | This tutorial is based solely on advice posted by [[http://forum.dead-code.org/index.php?action=profile;u=29757|NAItReIN]]. **__THANK YOU__**, NAItReIN! | ||
+ | |||
+ | By default the inventory is positioned at the top of the screen in a WME project. If you wish to constantly display it at the bottom of the screen instead, follow the steps. | ||
+ | |||
+ | ===== Step 1 ===== | ||
+ | |||
+ | Open **scripts\game_loop.script** and erase or comment out lines 48 – 50: | ||
+ | |||
+ | <code script> | ||
+ | // display the inventory window | ||
+ | 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; | ||
+ | </code> | ||
+ | |||
+ | You won’t need those anymore. | ||
+ | |||
+ | ===== Step 2 ===== | ||
+ | |||
+ | Open **interface\inventory.def** and change Y value of WINDOW from 0 to 510: | ||
+ | |||
+ | <code script> | ||
+ | 1. WINDOW | ||
+ | 2. { | ||
+ | 3. X = 0 | ||
+ | 4. Y = 510 | ||
+ | 5. WIDTH = 800 | ||
+ | 6. HEIGHT = 90 | ||
+ | 7. IMAGE = "interface\inventory.bmp" | ||
+ | </code> | ||
+ | |||
+ | ===== Step 3 ===== | ||
+ | |||
+ | Open **scripts\game.script** and add this line: | ||
+ | |||
+ | <code script> | ||
+ | Game.InventoryVisible = true; | ||
+ | </code> | ||
+ | |||
+ | Now run the game and see your inventory window being constantly at the bottom of the screen. | ||