TheOriginalBIT, on 15 February 2013 - 07:05 PM, said:
Hey guys,
Here is a sneak peek of just some of what I have been working on over the past few days on CCTube.
-SNIP-
Posted 15 February 2013 - 07:24 PM
Posted 15 February 2013 - 07:55 PM
Posted 15 February 2013 - 08:53 PM
Posted 15 February 2013 - 09:40 PM
superaxander, on 15 February 2013 - 09:30 PM, said:
Posted 15 February 2013 - 09:46 PM
Posted 15 February 2013 - 09:50 PM
Posted 15 February 2013 - 10:11 PM
superaxander, on 15 February 2013 - 09:50 PM, said:
Posted 15 February 2013 - 10:25 PM
Posted 16 February 2013 - 09:03 AM
config:getBoolean("name",true)
OR
config:getBoolean("name",false)
Because it tries to string.lower() the second parameter, which won't work.local config = CConfig.new("shnupProgFiles/screensaver/config.cfg")
config:load()
scrnsvrID = config:getNumber("screensaver",0)
config:addCommentForKey("screensaver","What screensaver to use? 0 = words, 1 = indie letters, 2 = random letters, 3 = pixels, 4 = lines")
wait = config:getNumber("waitBetweenPrints",0.005)
config:addCommentForKey("waitBetweenPrints","How many seconds to wait before printing the next word/pixel/whatever")
isRandCol = config:getBoolean("randomColour","true") -- Tell BIT that booleans aren't working.
config:addCommentforKey("randomColour","Is colour randomly picked each time it prints?")
col = config:getColour("colourToUse",colours.white)
config:addCommentForKey("colourToUse","If colour is not random, what colour should it use?")
(And yes, all folders it mentions have been created already)
Posted 16 February 2013 - 01:29 PM
Shnupbups100, on 16 February 2013 - 09:03 AM, said:
config:getBoolean("name",true) OR config:getBoolean("name",false) Because it tries to string.lower() the second parameter, which won't work.
Shnupbups100, on 16 February 2013 - 09:03 AM, said:
config:save()Also on a side note, this part of the comment for key 'screensaver'
0 = words, 1 = indie letters, 2 = random letters, 3 = pixels, 4 = linesis probably more suited to
config:addRestrictionForKey("screensaver", "0 = words, 1 = indie letters, 2 = random letters, 3 = pixels, 4 = lines")
Now note this is another kind of comment, the api doesn't actually force the user to stick within these restrictions
Edited by TheOriginalBIT, 16 February 2013 - 01:34 PM.
Posted 16 February 2013 - 01:47 PM
Posted 16 February 2013 - 03:30 PM
Shnupbups100, on 16 February 2013 - 03:23 PM, said:
0 members, 1 guests, 0 anonymous users