2018-06-19 20:43:52 -07:00
|
|
|
Notes
|
|
|
|
|
2019-01-06 16:26:02 -08:00
|
|
|
# Lua API integration
|
|
|
|
|
|
|
|
## HUD
|
|
|
|
```lua
|
2019-01-06 18:55:37 -08:00
|
|
|
local hud = LuaHUD.new()
|
2019-01-06 16:26:02 -08:00
|
|
|
|
2019-01-06 18:55:37 -08:00
|
|
|
hud:hotbar {
|
|
|
|
pos = {x = 42, y = 84},
|
|
|
|
texture = "default_hotbar.png",
|
|
|
|
slots = 8,
|
|
|
|
}
|
2019-01-06 16:26:02 -08:00
|
|
|
|
2019-01-06 18:55:37 -08:00
|
|
|
openminer:player():set_hud(hud)
|
2018-06-19 20:43:52 -07:00
|
|
|
|