mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-24 03:45:13 -06:00
added setInterfaceModel
This commit is contained in:
parent
f2c25bc7ed
commit
44bcdd722c
1 changed files with 12 additions and 0 deletions
|
|
@ -1679,6 +1679,18 @@ fun setInterfaceText(player: Player, string: String, iface: Int, child: Int) {
|
|||
player.packetDispatch.sendString(string, iface, child)
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a model to a specific interface child
|
||||
* @param player the player to send the packet to
|
||||
* @param modelId the modelId to send to the child
|
||||
* @param iface the ID of the interface to use
|
||||
* @param child the index of the child to send the string to
|
||||
* @param zoom the zoom of the child to send the string to
|
||||
*/
|
||||
fun setInterfaceModel(player: Player, modelId: Int, iface: Int, child: Int, zoom: Int) {
|
||||
player.packetDispatch.sendModelOnInterface(modelId, iface, child,zoom)
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows you to hide or show specific children in an interface
|
||||
* @param player the player to send the packet to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue