Fix models and buttons, and let containers handle inventories properly.
This commit is contained in:
parent
1040034efa
commit
d4a18b492a
2 changed files with 35 additions and 17 deletions
|
|
@ -278,7 +278,7 @@ Creates a model element.
|
|||
|
||||
Methods:
|
||||
* `:style([state, ]props)`: Applies the styling properties `props` to the model when in the `state` state. If omitted, `state` is `"default"`.
|
||||
* `:rotation(rotation[, continuous])`: Set the rotation of the model in the view, and optionally whether it is continuous.
|
||||
* `:rotation(rotation_x[, rotation_y[, continuous]])`: Set the X and Y rotation of the model in the view, and optionally whether it is continuous.
|
||||
* `:mouse_control(state)`: Passing `false` will prevent the user from changing the model's rotation by clicking and dragging.
|
||||
* `:animated(frames, speed)`: Sets an animation on the model defined by the given frame range and speed.
|
||||
|
||||
|
|
@ -295,7 +295,7 @@ Methods:
|
|||
|
||||
### `imfs.list(x, y, width, height, location = "current_player", list = "main"[, start])`
|
||||
|
||||
Creates an inventory element.
|
||||
Creates an inventory element. Note that `width` and `height` are in units of inventory slots; when set to flex ratios, however, they will resolve to the maximum number of slots that can be displayed in their assigned width.
|
||||
|
||||
`imfs.inventory` is an alias for this element.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue