From c7e0435862e0ddaeb4f9fce1fb4e2366caacf338 Mon Sep 17 00:00:00 2001 From: redlock Date: Mon, 14 Mar 2011 22:46:22 +0100 Subject: [PATCH] added rukanos new classes, see docs --- LICK/lib/docs/index.html | 2 +- LICK/lib/help.lua | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/LICK/lib/docs/index.html b/LICK/lib/docs/index.html index 6868575..90b90a0 100644 --- a/LICK/lib/docs/index.html +++ b/LICK/lib/docs/index.html @@ -1 +1 @@ -live_libs_doc

live_libs documentation

Guidelines for new classes and commenting

Classes:

Object
SCObject
SCSynth
Drawable
Circle
Line
\ No newline at end of file +live_libs_doc

live_libs documentation

Guidelines for new classes and commenting

Classes:

Object
SCObject
SCSynth
Drawable
Circle
Line
Image
Point
Sequencer
Polygon
Rect
Triangle
Text
\ No newline at end of file diff --git a/LICK/lib/help.lua b/LICK/lib/help.lua index 744ffd4..25aa80e 100644 --- a/LICK/lib/help.lua +++ b/LICK/lib/help.lua @@ -35,7 +35,8 @@ function generate() local output = "" end - dp,ep = string.find(line, ":") + local dp,ep = string.find(line, ":") + if dp then name = line:sub(e+1, dp-1 or 0) print(name) table.insert(classes,name) @@ -44,6 +45,7 @@ function generate() output = output .._newclasstitle .. name..tab..tab..line:sub(dp+1) ..newclasstitle_ found_methods = 0 found_classes = found_classes + 1 + end elseif b1 and e1 and not string.find(line,"require") then output = output .."

"..tab..line:sub(e1+2).."

"..tab..tab.." Constructor" @@ -84,8 +86,9 @@ end function writeClassFile(name, output) dir = love.filesystem.getWorkingDirectory( ) + print(dir) --print("touch "..dir.."/"..help_filename) - local path = dir.."/live_testproject/"..help_filename.."classes/"..name..".html" + local path = dir.."/shittygames/"..help_filename.."classes/"..name..".html" os.execute("touch "..path) local helpfile = io.open(path, "w" ) @@ -97,7 +100,7 @@ end function writeFile(name, output) dir = love.filesystem.getWorkingDirectory( ) --print("touch "..dir.."/"..help_filename) - local path = dir.."/live_testproject/"..help_filename..name..".html" + local path = dir.."/shittygames/"..help_filename..name..".html" os.execute("touch "..path) local helpfile = io.open(path, "w" )