Inventory Window

this readme will be updated in the package vice the forum.

--------------------------
-- Inventory Window README
--------------------------

1. Features:
- dynamically resizes 
- based on User Inventory Script maxSize property up to 40
- inventory size could break if too many times on save, not tested
- right side placement - allows for future shop to be on left side
- widget has setting // out for center and left placement

2. Dependices
- Crayta Inventory Package
- Cyayta Prompts Package

3. Install
- place template "Player Inventory Window" on player template 
- adjust setting under player template on added script folder
- details on settings below...

4. Navigation
- Item Selection
	- Controller
		- L-stick moves left, right, up, and down
		- R-stick moves cursor for pointer
	- WASD moves up, left, down, and right
	- Mouseover support using real mouse
- Sort (todo)
	- (default)
		- hold R3 controller
		- hold C keyboard
	- shows progress bar before sorting 
	- hold for x seconds 
	- prevents accidentaly sorting
- Drop (todo)
	- (default)
		- Y controller 
		- R keyboard 
	- drop placement where (todo)
- Move (todo)
	- (default)
		- A controller
		- [spacebar] keyboard
	- Action 
		- pickup fm index
		- drop   to index
- Use (todo)
	- (default)
		- X controller
		- E keyboard
	- event (todo)
- Close
	- button on widget, lower right corner
	- (default)
		- B on controller
		- Q on keyboard

5. Button Pressed
- when window is visible
- sends to lua client for action

6. Show Currency
- blank = show no currency
- container list (of templates)
	- sort based on index of container
	- show one or many or none (blank)
	- leave blank in array for spacer
	- DOES NOT autosort

7. Open Prompt
- text and icon to display on screen 
- uses prompts package

8. Open Button 
- LocalOnButtonPressed function
- when window open, not called
- uses prompts package

9. Window Name 
- text that appears over inventory
- needs other language support 

10. Close Prompt
- text and icon 
- displayed on lower right button

11. Close Action 
- action sent from widget to lua
- no lua LocalOnButtonPressed used

12. <placeholder>

------------
-- Changelog
------------

2021-11-17 README updated - localization added - some script comments
1 Like