| net.gtaun.shoebill.object.Menu |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | INVALID_ID | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
addItem(int column, String text)
Adds a Item
| ||||||||||
| abstract static Menu |
create(String title, int columns, Vector2D pos, float col1Width, float col2Width)
Create a Menu with params.
| ||||||||||
| abstract static Menu |
create(String title, int columns, float x, float y, float col1Width, float col2Width)
Create a Menu with params.
| ||||||||||
| abstract void |
disable()
Disables the Menu
| ||||||||||
| abstract void |
disableRow(int row)
Disables the Row
| ||||||||||
| abstract static Menu |
get(int id)
Gets a Menu by its Id
| ||||||||||
| abstract static Collection<Menu> |
get()
Gets all Menus
| ||||||||||
| abstract float |
getColumn1Width()
Gets the width of Column 1.
| ||||||||||
| abstract float |
getColumn2Width()
Gets the width of Column 2.
| ||||||||||
| abstract String[] |
getColumnHeader()
Gets the Column Header.
| ||||||||||
| abstract int |
getColumns()
Get the Column Count.
| ||||||||||
| abstract int |
getId()
Gets the Id of the Menu.
| ||||||||||
| abstract Vector2D |
getPosition()
Gets the Position of the Menu.
| ||||||||||
| abstract String |
getTitle()
Gets the Title of the Menu.
| ||||||||||
| abstract void |
hide(Player player)
Hides the menu for a specific player
| ||||||||||
| abstract void |
setColumnHeader(int column, String text)
Sets the Column Header
| ||||||||||
| abstract void |
show(Player player)
Shows the Menu for a specific player
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
net.gtaun.shoebill.object.Destroyable
| |||||||||||
From interface
net.gtaun.shoebill.object.Proxyable
| |||||||||||
Adds a Item
| column | The Column where the Text will be displayed |
|---|---|
| text | The displayed Text |
Create a Menu with params. If the Creation fails, it will throw a CreationFailedException.
| title | The Title of the menu. |
|---|---|
| columns | The amount of columns. |
| pos | Vector2D-Position where the Menu should appear. |
| col1Width | The Columnwidth of column 1. |
| col2Width | The Columnwidth of column 2. |
| CreationFailedException |
|---|
Create a Menu with params. If the Creation fails, it will throw a CreationFailedException.
| title | The Title of the menu. |
|---|---|
| columns | The amount of columns. |
| x | X-Pos where the Menu should appear. |
| y | Y-Pos where the Menu should appear. |
| col1Width | The Columnwidth of column 1. |
| col2Width | The Columnwidth of column 2. |
| CreationFailedException |
|---|
Disables the Menu
Disables the Row
| row | Rowid |
|---|
Gets a Menu by its Id
| id | Id of the Menu |
|---|
Gets the width of Column 1.
Gets the width of Column 2.
Get the Column Count.
Gets the Id of the Menu.
Gets the Position of the Menu.
Hides the menu for a specific player
| player | The Player |
|---|
Sets the Column Header
| column | The Column Id |
|---|---|
| text | The The displayed Text |
Shows the Menu for a specific player
| player | The Player |
|---|