Add dummy panels

master
rubenwardy 2018-11-20 01:06:09 +00:00
parent 3ee484738a
commit 028a93c124
3 changed files with 22 additions and 5 deletions

View File

@ -7,8 +7,8 @@ end
company.register_panel({
title = "Finance",
bgcolor = "#960",
get = function(_, comp, _)
bgcolor = "#DAA520",
get = function(_, comp, _)
return "label[0.2,0.2;" .. minetest.formspec_escape("Balance: " .. banking.get_balance(comp)) .. "]"
end,
})

View File

@ -119,8 +119,16 @@ table.remove(sfinv.pages_unordered, #sfinv.pages_unordered)
company.register_panel({
title = "Company House",
bgcolor = "#396",
get = function(_, comp, _)
return "button[0.2,0.2;2,1;edit;Edit]"
bgcolor = "#369",
get = function(_, _, _)
return ""
end,
})
company.register_panel({
title = "Employees",
bgcolor = "#396",
get = function(_, _, _)
return "label[0.2,0.2;0 employees.]"
end,
})

View File

@ -132,3 +132,12 @@ land.show_debug_to = lib_quickfs.register("land:debug", function(self, playernam
end
end
end, { land_admin = true })
company.register_panel({
title = "Land",
bgcolor = "#A0522D",
get = function(_, _, _)
return "label[0.2,0.2;" .. minetest.formspec_escape("Total: 1 ($100,000)\nCommercial: 1 ($100,000)\nIndustrial: 0 ($0)") .. "]"
end,
})