mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-17 05:10:25 +02:00
Use new intllib API.
This commit is contained in:
@ -3,17 +3,17 @@
|
||||
local S = homedecor.gettext
|
||||
|
||||
local shutters = {
|
||||
{"oak", "Unpainted oak", "#bf8a51:200" },
|
||||
{"mahogany", "Mahogany", "#822606:200" },
|
||||
{"red", "Red", "#d00000:150" },
|
||||
{"yellow", "Yellow", "#ffff00:150" },
|
||||
{"forest_green", "Forest green", "#006000:150" },
|
||||
{"light_blue", "Light blue", "#1963c7:150" },
|
||||
{"violet", "Violet", "#6000ff:150" },
|
||||
{"black", "Black", "#000000:200" },
|
||||
{"dark_grey", "Dark grey", "#202020:200" },
|
||||
{"grey", "Grey", "#c0c0c0:150" },
|
||||
{"white", "White", "#ffffff:150" },
|
||||
{"oak", S("unpainted oak"), "#bf8a51:200" },
|
||||
{"mahogany", S("mahogany"), "#822606:200" },
|
||||
{"red", S("red"), "#d00000:150" },
|
||||
{"yellow", S("yellow"), "#ffff00:150" },
|
||||
{"forest_green", S("forest green"), "#006000:150" },
|
||||
{"light_blue", S("light blue"), "#1963c7:150" },
|
||||
{"violet", S("violet"), "#6000ff:150" },
|
||||
{"black", S("black"), "#000000:200" },
|
||||
{"dark_grey", S("dark grey"), "#202020:200" },
|
||||
{"grey", S("grey"), "#c0c0c0:150" },
|
||||
{"white", S("white"), "#ffffff:150" },
|
||||
}
|
||||
|
||||
local shutter_cbox = {
|
||||
@ -23,10 +23,8 @@ local shutter_cbox = {
|
||||
wall_side = { -0.5, -0.5, -0.5, -0.4375, 0.5, 0.5 }
|
||||
}
|
||||
|
||||
for i in ipairs(shutters) do
|
||||
local name = shutters[i][1]
|
||||
local desc = shutters[i][2]
|
||||
local hue = shutters[i][3]
|
||||
for _, s in ipairs(shutters) do
|
||||
local name, desc, hue = unpack(s)
|
||||
|
||||
local tile = "homedecor_window_shutter.png^[colorize:"..hue
|
||||
local inv = "homedecor_window_shutter_inv.png^[colorize:"..hue
|
||||
@ -34,7 +32,7 @@ for i in ipairs(shutters) do
|
||||
homedecor.register("shutter_"..name, {
|
||||
mesh = "homedecor_window_shutter.obj",
|
||||
tiles = { tile },
|
||||
description = S("Wooden Shutter ("..desc..")"),
|
||||
description = S("Wooden Shutter (@1)", desc),
|
||||
inventory_image = inv,
|
||||
wield_image = inv,
|
||||
paramtype2 = "wallmounted",
|
||||
|
Reference in New Issue
Block a user