Search found 11 matches
- Mon Dec 05, 2005 2:56 am
- Forum: PSP Lua Player Development
- Topic: Fonts
- Replies: 8
- Views: 3502
Fonts
When I try to load a font and print it, it doesn't seem to work. Can anyone tell me what's wrong? These are my codes: white = Color.new(255, 255, 255) t = Font.load("times.ttf") screen:fontPrint(t, 10, 10, "hello", white) sc...
- Sat Nov 12, 2005 2:30 am
- Forum: PSP Lua Player Development
- Topic: Detect files?
- Replies: 4
- Views: 2760
- Tue Nov 08, 2005 8:01 am
- Forum: PSP Lua Player Development
- Topic: String to Code
- Replies: 6
- Views: 3490
Ok.. got it
print(assert(loadstring("3+3"))) -> 6
- Mon Nov 07, 2005 9:32 am
- Forum: PSP Lua Player Development
- Topic: String to Code
- Replies: 6
- Views: 3490
String to Code
Is there any way to convert a string to normal code?
for example
would print 6
for example
Code: Select all
print(tocode("3+3"))
- Wed Oct 12, 2005 7:35 pm
- Forum: PSP Lua Player Development
- Topic: File browser
- Replies: 5
- Views: 2871
When you print all values of an indice by doing the following:KawaGeo wrote:Is that all, just three indices? What about dates? I wonder.
Code: Select all
table.foreach(contents[1], print)
- Wed Oct 12, 2005 11:54 am
- Forum: PSP Lua Player Development
- Topic: File browser
- Replies: 5
- Views: 2871
Each indice of the results of System.listDirectory(), has three parts. name: the name of the file size: the size of the file in bytes directory: a boolean saying whether the file is a directory/folder heres a quick example of a code to display the names all files on the root of the memory stick: con...
- Wed Oct 12, 2005 11:23 am
- Forum: PSP Lua Player Development
- Topic: C Functions
- Replies: 3
- Views: 2238
- Wed Oct 12, 2005 10:53 am
- Forum: PSP Lua Player Development
- Topic: C Functions
- Replies: 3
- Views: 2238
C Functions
I'm pretty sure it's possible to execute C Functions in lua. Can anyone explain how?
- Mon Oct 10, 2005 11:15 am
- Forum: PSP Lua Player Development
- Topic: System.listDirectory()
- Replies: 3
- Views: 2524
- Mon Oct 10, 2005 9:08 am
- Forum: PSP Lua Player Development
- Topic: System.listDirectory()
- Replies: 3
- Views: 2524
- Mon Oct 10, 2005 8:54 am
- Forum: PSP Lua Player Development
- Topic: System.listDirectory()
- Replies: 3
- Views: 2524
System.listDirectory()
Does any one know how this works?
When I do this:
All the values are some thing like this:
When I do this:
Code: Select all
listdir = System.listDirectory()
table.foreach(listdir, print)
table: 0x89a6b78