Daniel Ratcliffe
94613d28a6
Merge pull request #381 from Wilma456/colerror
...
Better Error for "Invalid color"
2017-07-25 19:56:59 +01:00
Wilma456 (Jakob0815)
43a5fc9fe7
Better Error for "Invalid color"
...
the "Invalid color" error now contain the wrong color.
2017-07-18 16:12:19 +02:00
Wilma456
c46391555f
Update term.redirect check to new style
2017-07-03 18:08:51 +02:00
Daniel Ratcliffe
1d63598d43
Merge pull request #338 from Wilma456/textcheck
...
Add Checks to Textutils API
2017-06-29 19:04:37 +01:00
Wilma456
5e244273c2
Allow Number and Table
2017-06-29 17:58:53 +02:00
Wilma456
13f886be5a
Add Checks to disk,gps,help and keys
2017-06-29 16:41:48 +02:00
Wilma456
845e1b633d
Merge branch 'master' into textcheck
2017-06-29 16:24:30 +02:00
Wilma456
6a8c544914
Feedback from dan200
2017-06-29 16:18:13 +02:00
Daniel Ratcliffe
14e4d037ad
Merge pull request #317 from Wojbie/Mixed-lua-side-improvements
...
Multiple fixes and feature fixes for lua side of CC.
2017-06-28 22:25:18 +01:00
Wojbie
bf533dd00a
Reverting requested changes. Take 1
...
Reverting rewrites to painutils, paint and edit - keept the paste logic change in edit.
Changed and removed misc parts as requested in PR.
2017-06-28 22:58:57 +02:00
Wilma456
6bbd1f3718
Add Checks to Textutils API
2017-06-26 15:21:52 +02:00
Wojbie
fc93ee474f
Merge branch 'master' into Mixed-lua-side-improvements
2017-06-24 14:29:19 +02:00
Wilma456
fb5ba01e5a
Add Checks to Colors API
2017-06-23 17:38:40 +02:00
Wojbie
7090f6b6a7
Make settings API getNames() function sort names.
...
Makes it easier for eye and keeps settings from same program next to eachother.
2017-06-23 01:07:18 +02:00
Bomb Bloke
d9190f95ec
Update paintutils.lua
...
Couple of fixes, plus let's not use maxn when blitting images after all. Load method ensures it isn't needed.
2017-06-21 23:41:40 +10:00
Bomb Bloke
a7db108762
Update paintutils.lua
2017-06-19 13:46:13 +10:00
Bomb Bloke
be861a1c0d
Fix Bug with peripheral.find()
...
Since #315 peripheral.find() doesn't work. This PR fix this.
2017-06-19 13:09:06 +10:00
Wojbie
1489da1f5f
Adds support for colon operator in complete() function.
...
Includes changes to lua and edit programs to correctly support that too.
2017-06-19 01:15:26 +02:00
Wojbie
7e08662b95
Assorted fixes to rednet, textutils, gps, chat.
...
As reported by @SquidDev.
2017-06-18 17:12:08 +02:00
Wilma456
4580f10567
Fix Bug with peripheral.find()
2017-06-18 15:58:06 +02:00
Wojbie
06b2f3511f
Update paintutils.lua
...
Make error messages consistent with new system.
Fix some type errors and fix problem noticed by @BombBloke.
2017-06-18 12:03:14 +02:00
Wojbie
3acbdb2f90
Merge branch 'master' into Mixed-lua-side-improvements
2017-06-17 22:21:25 +02:00
Wojbie
01a0ce3dd0
Implements suggested changes.
2017-06-17 22:14:04 +02:00
Bomb Bloke
221143e767
Update paintutils.lua
...
Resolve a few potential bugs.
2017-06-15 00:23:40 +10:00
Bomb Bloke
8e958d7a13
Update paintutils.lua
...
Remove drawPixelInternal / drawLineHorizontal. At runtime they're both just excess calls.
Localise high-use term functions.
Arg-related function errors reflect that "colour" parameter is optional.
Add saveImage(tImage, sPath).
Use term.blit for images.
2017-06-13 23:44:07 +10:00
Wojbie
76a3562d58
Multiple fixes and feature fixes for lua side of CC
...
In no particular order:
bios.lua - added missing test for ensure turtle folder exists.
paintutils.lua - added drawLineHorizontal() to reduce most (not all) cases of running multiple writes on same horizontal line that can be solved with one write.
textutils.lua - Added exception to complete function - will not complete if provided with LuaKeyword - solves do->dofile problem and removes other LuaKeyword related ones in advance.
edit.lua - Changed logic in handling the paste event - if paste event is received when menu is open it automatically closed said menu and lets it paste - resolves ctrl+ctrl+v annoyance. Added Jump to Menu functions - allows for fast jump to needed line - must for bigger files and a nice feature to have.
set.lua - Switched set to use pagedPrint - this will ensure that even if there are more settings than lines on screen the set command will show you all of them.
startup.lua - Added autocompletition for turtle programs go, turn, equip, unequip and command program exec.
lua.lua - Changed return function to print returned stuff correctly -
will print all returned variables even if there are any nils in there.
2017-06-13 11:00:07 +02:00
SquidDev
fac625173a
Use Lua style error messages in the rom files
...
This makes it mostly consistent with the Java APIs, and makes debugging
significantly easier.
2017-06-12 10:54:44 +01:00
Daniel Ratcliffe
0f982e6199
Merge pull request #303 from Wojbie/Window-api-fix
...
Fix to setPaletteColour in rgb8 mode.
2017-06-04 13:58:40 +01:00
Wilma456
c9bf463419
Add checks to window API
2017-06-04 12:34:40 +02:00
Wojbie
a90e2a8bfd
Fix to setPaletteColour in rgb8 mode.
...
Was not saving color if called using rgb8 mode.
2017-06-04 11:59:30 +02:00
Wilma456
fd842be37f
Remove second fix
2017-06-03 16:30:35 +02:00
Wilma456
d6e4323f17
Fix Bug with term.setCursorPos
...
I fixed 2 Bugs:
1. If you call this function, without 2 numbers, you get a error in the window API and not in your Program
2. If you call, this function with 2 numbers lower then 1 (e.g. term.setCursorPos(0,0) ), CraftOS will hang forever and need to press Ctrl+R or rejoin the world.
2017-06-02 17:35:18 +02:00
Wilma456
e8ecf5dcd5
Add .txt extension to all help files
2017-05-20 12:20:27 +02:00
Daniel Ratcliffe
6e6b8e7eef
Made os.loadAPI handle .lua files. Renamed all builtin APIs to .lua
2017-05-17 22:47:13 +01:00
Daniel Ratcliffe
8c4331d15a
Added checks to window.setTextColor and window.setBackgroundColor
2017-05-16 19:23:08 +01:00
Daniel Ratcliffe
008663c0e1
Lua fix
2017-05-07 17:42:39 +01:00
Daniel Ratcliffe
38e09920fa
Lua fix
2017-05-07 17:40:23 +01:00
Daniel Ratcliffe
0b8b39ced0
colours.rgb8(r,g,b) and colours.rgb8(c) are now the inverse of each other
2017-05-07 17:29:59 +01:00
Daniel Ratcliffe
ebb7d7a8d9
Enabled window.setText/BackgroundColour with no grey colours. Some small optimisations
2017-05-07 17:19:21 +01:00
Lignum
c10e1ba78c
Get rid of setPaletteColour table overload
2017-05-07 15:04:09 +02:00
Lignum
70c2f50aa8
Un-break the non-table setPaletteColour overload
2017-05-07 12:55:16 +02:00
Lignum
4e55e03c8b
Don't sync the whole palette in window.setPaletteColour
2017-05-07 12:46:23 +02:00
Lignum
156e74b69c
setColour -> setPaletteColour
2017-05-07 12:40:31 +02:00
Lignum
287c6f172c
Allow passing RGB8 hex values to term.setColour
2017-05-07 01:16:48 +02:00
Lignum
1cc403191f
Add colours.rgb8(r, g, b)/colours.rgb8(hex)
2017-05-07 00:13:36 +02:00
Lignum
ac2382a861
Add setColour overload with table parameter
2017-05-06 20:22:16 +02:00
Lignum
bfa5f6ec9c
Make palettes work properly with the window API
2017-05-05 20:23:57 +02:00
Lignum
088dab799e
Network the colour palette
...
Which means it actually has a visible effect! 🎉
2017-05-05 17:21:53 +02:00
Lignum
b0f0d8fd71
Add getColour/setColour to the window api
2017-05-05 16:14:13 +02:00
Daniel Ratcliffe
2a0556fa4c
Merge pull request #185 from SquidDev-CC/hotfix/unpack-length
...
Manually specify the number of values to unpack
2017-05-04 21:05:14 +01:00