import Interface from 'WTF-Adventure/WTF-Adventure/client/controllers/interface.js'
Interface
Handles game UI interfaces
Constructor Summary
Public Constructor | ||
public |
constructor(game: Game) Default constructor |
Member Summary
Public Members | ||
public |
A reference to player click interactions |
|
public |
A reference to player's bank |
|
public |
confirm: DOMElement Jquery DOM reference to the confirm box |
|
public |
done: DOMElement Jquery DOM reference to the notifcations done button |
|
public |
A reference to the player's magic |
|
public |
fade: DOMElement Jquery DOM reference to the notifcations fading out |
|
public |
An instance of the game |
|
public |
A reference to the inventory class |
|
public |
message: DOMElement Jquery DOM reference to the message box |
|
public |
notify: DOMElement Jquery DOM reference to the notifcations box |
|
public |
A reference to the player's profile class |
|
public |
A reference to warp map |
Method Summary
Public Methods | ||
public |
displayConfirm(message: [type]) Display the confirmation box |
|
public |
displayNotify(message: String) Display a notification if not already visible |
|
public |
Return a reference to the profile quests |
|
public |
hideAll() Hides all interface menus |
|
public |
Hide the confirmation window |
|
public |
Hide the notifications window |
|
public |
Check if the confirmation box is visible |
|
public |
Checks to see if the notifications window is visible or not |
|
public |
Load the player's click actions |
|
public |
Similar structure as the inventory, just that it has two containers. |
|
public |
Load the player's magic enchantments |
|
public |
loadInventory(size: Number, data: Object) This can be called multiple times and can be used to completely refresh the inventory. |
|
public |
Load the player's current notifications |
|
public |
Load the player's profile |
|
public |
loadWarp() Load warp map |
|
public |
resize() Handles resizing the interface elements by calling each UI element's unique resize functionality |
Public Constructors
Public Members
Public Methods
public displayConfirm(message: [type]) source
Display the confirmation box
Params:
Name | Type | Attribute | Description |
message | [type] | The confirmation message |
public displayNotify(message: String) source
Display a notification if not already visible
Params:
Name | Type | Attribute | Description |
message | String | the message to display |
public isNotifyVisible(): Boolean source
Checks to see if the notifications window is visible or not
public loadBank(size: Number, data: Object) source
Similar structure as the inventory, just that it has two containers. The bank and the inventory.
public loadInventory(size: Number, data: Object) source
This can be called multiple times and can be used to completely refresh the inventory.
public resize() source
Handles resizing the interface elements by calling each UI element's unique resize functionality