1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-27 16:39:29 +00:00
Commit graph

56 commits

Author SHA1 Message Date
Firew0lf
5494f3d2e5 Added some sleep mode related functions, fixed the example, fixed some things 2016-05-09 23:28:41 +02:00
Reuh
b4ceb200ea Added gfx.linedRectangle and gfx.linedCircle 2016-04-29 17:55:59 +02:00
Reuh
f554f53a47 ctr.time() returns a negative value; updated documentation and sprite.lua 2016-04-25 21:02:32 +02:00
Reuh
d0fb704205 Added hotspot arguments when drawing rotated textures
Did related changes to sprite.lua and cleaned stuff.

I had to add a function to sf2dlib to make this work, so a make build-sf2dlib is required. Also, we should probably send this change to the original sf2dlib repository...
2016-04-25 19:43:09 +02:00
Reuh
358b68c643 Renamed item.fileSize to item.size in fs.list() return value, enabled 3D in the editor, added a lot of missing documentation
For the return values, I followed this rule: if the fuction returns true on success, it should return false, error on error; for every other case it should return nil, error on error.

Also, who doesn't want to edit code in 3D ? The line depth depends on the indentation level.
2016-04-22 13:42:59 +02:00
Reuh
2b7d37304d Made the editor usable
It was able to edit file before, but didn't show the changes on the screen, so this was easy to do.

Also renamed some setTextSize->setSize missed in last commit.
2016-04-21 22:31:48 +02:00
Reuh
347e480d5a Moved ctr.gfx.set|getTextSize to ctr.gfx.font.set|getSize, added missing documentation to font:width
Started working again on the editor
2016-04-21 21:51:45 +02:00
Firew0lf
6b65df0b8e Fixed some documentation, added some things to sockets, "Fixed" the ROMFS
The romfs is still not working, but it works better.
2016-04-13 16:19:25 +02:00
Reuh
e87651a404 Readd require('ctr') in keyboard 2016-04-02 19:09:40 +02:00
Reuh
15bb00780b Fixed sublime-completions doc building 2016-04-02 19:03:24 +02:00
Neil Zeke Cecchini
1f23b86379 Changed the icon, and deleted the test files.
The new one is much nicer. As for the test files, they had nothing to do
here from the start.
2016-04-02 18:41:25 +02:00
Neil Zeke Cecchini
05c9adc2a0 Updated apps that rely on file selection
The editor doesn't use openfile.lua anymore, the main shell is updated
to use filepicker.filePicker's new format. Also, updated the editor to
use resources/VeraMono.ttf instead of its own copy, which was deleted.
2016-04-02 18:41:25 +02:00
Neil Zeke Cecchini
4669a68402 Updated filepicker.lua and adding documentation
Effectively rendering openfile.lua completely obsolete, which is why it
was deleted. filepicker.lua is now way smarter, handles file creation
and has a documentation file in LDoc.
2016-04-02 18:41:25 +02:00
Neil Zeke Cecchini
c687efcfb4 Made keyboard.lua use a configuration file
Thus removing the need to edit it directly as an user
2016-04-02 18:41:25 +02:00
Reuh
04eb578892 Updated audio example 2016-03-23 19:53:46 +01:00
Firew0lf
5107f0277c Updated sf2dlib, added a "thickness" argument to lines (warning: break some old lines), Added WIP render targets, Added arguments (main file and root path)
You'll need to update some of your codes if you used lines with colors, or you'll have some ... Nice line effects.
2016-03-22 21:48:52 +01:00
Neil Zeke Cecchini
694159f444 Updated LSH to use the new constants
Doesn't change much anyway.
2016-03-13 21:30:14 +01:00
Firew0lf
6a9fbbb133 Added ":addTrustedRootCA()" to the httpc contexts, close #8, Added some values in ctr.
I didn't test :addTrustedRootCA(), but it's just a simple string-to-char+size function.
2016-03-12 19:57:59 +01:00
Reuh
f180d4352d Merge pull request #3 from ctruLua/lsh
Replacing the old shell with LSH
2016-02-24 19:07:06 +01:00
Neil Zeke Cecchini
34d12eae0f Added VeraMono.ttf, for real this time 2016-02-24 19:04:17 +01:00
Neil Zeke Cecchini
60b304b2d3 Forgot the font 2016-02-24 19:00:47 +01:00
Neil Zeke Cecchini
cbfc7bfaca Oopsie. 2016-02-24 18:01:37 +01:00
Neil Zeke Cecchini
b6beaddf66 Tabulation correction 2016-02-24 17:55:12 +01:00
Firew0lf
a380f09a34 Updated httpc.c to the latest ctrulib, fixed the cfgu example.
The name is still buggy, can't find why.
2016-02-24 14:46:11 +01:00
Neil Zeke Cecchini
3eb41b5062 Tidbits of documentation 2016-02-24 14:23:36 +01:00
Neil Zeke Cecchini
116575fb5f Replaced the old shell with LSH 2016-02-24 14:19:16 +01:00
Reuh
e7c9a60d61 Alphabetical sorting in openfile.lua 2015-12-31 15:54:10 +01:00
Firew0lf
e10a101a4a Added some examples, fixed a typo 2015-12-31 15:41:09 +01:00
Reuh
b87b2676e6 gfx.GFX_TOP, gfx.GFX_BOTTOM, gfx.GFX_LEFT, gfx.GFX_RIGHT -> gfx.TOP, gfx.BOTTOM, gfx.LEFT, gfx.RIGHT
Also commented and moved tests/audio to examples/audio because the code is quite clean, and we lack examples.
2015-12-30 19:15:46 +01:00
Reuh
73b5c55133 gfx.startFrame -> gfx.start and gfx.endFrame -> gfx.stop 2015-12-30 18:19:13 +01:00
Reuh
c053997f96 Reset defaults before starting a file (main.lua) 2015-12-29 17:20:29 +01:00
Reuh
bda9de4d1c ADDED AUDIO! WAV working perfectly
Added libogg, libvorbis and libvorbisfile to 3ds_portlibs. You will need to compile thems using make build-portlibs. Opening OGG files works but they play badly.

Added a very simple error handler in main.lua

Added audio example.

Renamed isGfxInitialised to isGfxInitialized.

Did you know? The audio module is the longest ctrµLua module.
2015-12-27 19:54:58 +01:00
Reuh
716c42b849 Fixed keyboard and editor colors 2015-12-24 13:15:00 +01:00
Firew0lf
b4d025d602 Updated the sf2dlib and sftdlib; Added the gfx.color.hex() function; Added the New3DS CPU mode control.
As the color order of the sf2dlib changed, you have to change it in your code, or use the color.hex() function.
To fix the problems, just change "0xRRGGBBAA" to "0xAABBGGRR".
Also, the shader compiler changed to Picasso, so you'll need it in order to compile.
https://github.com/fincs/picasso
2015-12-09 23:14:23 +01:00
Reuh
b32fa5da2b Moved keyboard.lua and openfile.lua to the libs/ directory 2015-10-25 12:41:43 +01:00
Reuh
0efdc23576 Moved library path modifications to main.lua, made all paths relative
The library path can now be easlily modified.

Instead of always launching /3ds/ctruLua/main.lua, ctruLua will now launch the main.lua in the current directory (the ctruLua.3dsx directory when launched with HBL).

On citra, this will be the root of the sdmc directory.
2015-10-25 11:08:27 +01:00
Firew0lf
b47634f699 Fixed the documentation error with lzlib, Added gfx.get3D(), Enhanced the ir library errors returns. 2015-09-15 23:10:15 +02:00
Reuh
0773992b68 Fully documented ctr and ctr.gfx in the C source
The documentation can be built using LDoc : run make build-doc

However, there's still a bunch of things to document.
2015-09-12 13:35:21 +02:00
Reuh
45f3216ed8 Updated font and fs lib; updated editor; updated sf2dlib
Libs additions: font.load, font:unload, font:getWidth, fs.getDirectory, fs.setDirectory, fs.exists

Editor additions: syntaxic coloring and mono font

sf2dlib update: you will need the latest version of ctrulib.

Also, because of the lib font needs, the sftdlib was modified.
2015-09-05 19:00:36 +02:00
Firewolf
3f995629c0 Hotfixed sprite.lua
Removed debug code. Again.
2015-09-02 17:17:33 +02:00
Firew0lf
e0ff7ad9c4 Fixed the the getBox() function (only usable in the library) 2015-09-01 18:23:12 +02:00
Firew0lf
e8471ce6e6 Changed spaces to tabs, Fixed a potential bug, Removed debug stuff 2015-09-01 16:48:49 +02:00
Firew0lf
a4a6e09d74 Added a sprite library (unfinished, but working) 2015-09-01 11:31:09 +02:00
Reuh
6a26be4b43 Added text editor, keyboard lib and stuff in Lua 2015-08-26 12:16:16 +02:00
Firew0lf
d3ca4d0360 "Fixed" the HTTPC lib with the crappiest code you've ever seen, Added a (very) small QTM lib
Don't look at the HTTPC code !!! Also, the example only work a random number of times.
2015-08-24 20:24:15 +02:00
Reuh
8da0e47ae3 Load texture in RAM by default 2015-08-22 20:07:59 +02:00
Reuh
49ae4454d3 Updated sftdlib and sf2dlib 2015-08-22 19:10:37 +02:00
Reuh
d662e5509d Fixed freeze when Lua tried to garbage collect a unloaded texture 2015-08-22 17:52:50 +02:00
Reuh
2a5513473d Support for special characters in gfx.text; added scrolling to the default shell; updated sftdlib.
There is a known bug with different text size in sftdlib.
2015-08-22 16:45:32 +02:00
Firew0lf
819dabcf0f Added "icon.png" where needed, Added an error in example.lua 2015-08-21 21:20:50 +02:00