From 423a07355142555d088ce23554232b7df4336388 Mon Sep 17 00:00:00 2001 From: webdesigner97 Date: Wed, 16 Apr 2014 18:25:12 +0200 Subject: unfinished, start using smartfs --- streetsmod/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'streetsmod') diff --git a/streetsmod/init.lua b/streetsmod/init.lua index bf89a60..1887e7e 100644 --- a/streetsmod/init.lua +++ b/streetsmod/init.lua @@ -14,6 +14,10 @@ else S = function ( s ) return s end end + +-- rubenwardy: smartfs + dofile(minetest.get_modpath("streetsmod").."/libs/smartfs/smartfs.lua") + -- Create variables and tables print("Streets: " .. S("Creating variables and tables...")) streets = {} @@ -24,6 +28,7 @@ start = os.clock(), fin = 0 } + streets.forms = {} -- Check for mods which change this mod's beahaviour print("Streets: Checking installed mods...") @@ -68,6 +73,10 @@ local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mult end + streets.forms.chatcmd = smartfs.create("streets:chatcmd", function(state) + state:size(10,6) + + end) minetest.register_chatcommand("streets",{ description = S("Check version of your installed StreetsMod and find information"), func = function(name,param) -- cgit v1.2.3