Control frames of model[]

This commit is contained in:
Jean-Patrick Guerrero 2020-12-15 19:49:13 +01:00
parent 7f15ad68e5
commit 2dc89b43f0
1 changed files with 4 additions and 3 deletions

View File

@ -105,7 +105,7 @@ local fs_elements = {
tooltip = "tooltip[%f,%f;%f,%f;%s]", tooltip = "tooltip[%f,%f;%f,%f;%s]",
item_image = "item_image[%f,%f;%f,%f;%s]", item_image = "item_image[%f,%f;%f,%f;%s]",
bg9 = "background9[%f,%f;%f,%f;%s;false;%u]", bg9 = "background9[%f,%f;%f,%f;%s;false;%u]",
model = "model[%f,%f;%f,%f;%s;%s;%s;0,0;true]", model = "model[%f,%f;%f,%f;%s;%s;%s;0,0;true;true;%s]",
image_button = "image_button[%f,%f;%f,%f;%s;%s;%s]", image_button = "image_button[%f,%f;%f,%f;%s;%s;%s]",
animated_image = "animated_image[%f,%f;%f,%f;;%s;%u;%u]", animated_image = "animated_image[%f,%f;%f,%f;;%s;%u;%u]",
scrollbar = "scrollbar[%f,%f;%f,%f;horizontal;%s;%u]", scrollbar = "scrollbar[%f,%f;%f,%f;horizontal;%s;%u]",
@ -226,7 +226,7 @@ local group_names = {
craftguide.model_alias = { craftguide.model_alias = {
["boats:boat"] = {name = "boats:boat", drawtype = "entity"}, ["boats:boat"] = {name = "boats:boat", drawtype = "entity"},
--["carts:cart"] = {name = "carts:cart", drawtype = "entity"}, -- animation broken ["carts:cart"] = {name = "carts:cart", drawtype = "entity", frames = "0,0"},
} }
local function err(str) local function err(str)
@ -1339,7 +1339,8 @@ local function get_model_fs(fs, data, def, model_alias)
end end
fs(fmt("model", fs(fmt("model",
data.xoffset + 6.6, data.yoffset + 0.05, 1.3, 1.3, "", def.mesh, concat(t, ","))) data.xoffset + 6.6, data.yoffset + 0.05, 1.3, 1.3, "",
def.mesh, concat(t, ","), model_alias.frames or ""))
end end
local function get_title_fs(fs, data) local function get_title_fs(fs, data)