ToggleMainInventory

void ToggleMainInventory ( void )

Function is located within Inventory/script/INV_Scripts.dh

Simply toggles the default inventory windows open or closed. Remotely opened chests are also closed. script void ToggleMainInventory ( void ) { 	if(InventoryWindow.ENABLED == false && ChestWindow.ENABLED == false) { 		ToggleInventory(TOGGLE_ON, TOGGLE_INVENTORY); ToggleInventory(TOGGLE_ON, TOGGLE_CRAFTING); ToggleInventory(TOGGLE_ON, TOGGLE_EQUIPMENT); } 	else { 		ToggleInventory(TOGGLE_OFF, TOGGLE_INVENTORY); ToggleInventory(TOGGLE_OFF, TOGGLE_CRAFTING); ToggleInventory(TOGGLE_OFF, TOGGLE_EQUIPMENT); ToggleInventory(TOGGLE_OFF, TOGGLE_CHEST); Cursor.ENABLED = false; }; 	if(Cursor.ENABLED == true) { 		ACS_NamedExecute("CURSOR_SCRIPT", 0); }; };