diff options
author | webdesigner97 <Christian_D_97@gmx.de> | 2014-04-16 18:25:12 +0200 |
---|---|---|
committer | webdesigner97 <Christian_D_97@gmx.de> | 2014-04-16 18:25:12 +0200 |
commit | 423a07355142555d088ce23554232b7df4336388 (patch) | |
tree | 9c355ac09324eb6b476d9aad4042818ea43ec2d9 | |
parent | 394f74c0d81cedfbd1f441192a4bcb52d7b04b07 (diff) | |
download | roads-423a07355142555d088ce23554232b7df4336388.tar roads-423a07355142555d088ce23554232b7df4336388.tar.gz roads-423a07355142555d088ce23554232b7df4336388.tar.bz2 roads-423a07355142555d088ce23554232b7df4336388.tar.xz roads-423a07355142555d088ce23554232b7df4336388.zip |
unfinished, start using smartfs
-rw-r--r-- | streetsmod/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
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) |