ObloxCC
922818dfa5
Add setPaletteColor and rgb8 to help files ( #214 )
...
* Added rgb8 help
* Update colours
* Added rgb8 help
* Added setPaletteColor help
* Added setPaletteColor help
* Added setColorPalette and rgb8 to change log
* Fixed formatting
* Fixed formatting
* Fixed formatting
* Fixed formatting
* Added changes to change log
* Added changes to whatsnew
* Fixed changelog
* Fixed whatsnew
* Added setPalatteColor
* Fixed Palette spelling
* Added space after 'b'
* Added getPaletteColor
* Ddded getPaletteColor
* Added getPaletteColor()
* Added getPaletteColor
* Update changelog
* Added getPaletteColor
2017-05-07 22:24:32 +01:00
Daniel Ratcliffe
0308ec555a
Merge pull request #207 from SquidDev-CC/feature/cleanup
...
Fix a couple of warnings
2017-05-07 18:26:07 +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
6fba381a4e
Merge pull request #211 from Lignum/shell-run-lua
...
Make shell.resolveProgram pick up on *.lua files
2017-05-07 17:33:44 +01:00
Daniel Ratcliffe
e063f5a6b8
Merge pull request #197 from Lignum/colour-palettes
...
Modifiable terminal colour palette
2017-05-07 17:31:14 +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
5f22d8bac6
Enabled setTextColour/setBackgroundColour with all colours on greyscale monitors
...
It's fine, now that we have greyscale rendering
2017-05-07 17:24:45 +01:00
Daniel Ratcliffe
a5e1dad5fc
Enabled term.setText/BackgroundColour with non grey colours on greyscale monitors
...
As rendering is greyscale now, this is fine.
2017-05-07 17:22:49 +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
c6abf0b890
Make shell.resolveProgram pick up on *.lua files
2017-05-07 16:21:15 +02:00
Lignum
c10e1ba78c
Get rid of setPaletteColour table overload
2017-05-07 15:04:09 +02:00
SquidDev
2e901a063d
Remove accessibility modifiers from all enums and interfaces
2017-05-07 13:35:18 +01:00
SquidDev
5a60818c99
Make many fields final
2017-05-07 13:35:18 +01:00
SquidDev
a3400ecf26
Fix all the deprecated warnings
2017-05-07 13:35:05 +01:00
SquidDev
a2fd0b1f7f
Use block comment instead of Javadoc for license
2017-05-07 13:30:10 +01:00
SquidDev
db9cd15fb3
Remove most raw types
...
This means we can remove even more casts and what not.
2017-05-07 13:30:05 +01:00
SquidDev
9af15d1e30
Remove some unnecessary constructs
...
- Replace for and while loops with for iterators
- Remove unused casts
2017-05-07 13:29:52 +01:00
SquidDev
dc5517303f
Add @Nullable and @NonNull annotations
2017-05-07 13:29:49 +01:00
Lignum
941d47908f
Oh bother
2017-05-07 13:09:51 +02:00
Lignum
0164032a4a
Allow greyscale palettes on basic computers
2017-05-07 13:04:54 +02:00
Lignum
70c2f50aa8
Un-break the non-table setPaletteColour overload
2017-05-07 12:55:16 +02:00
Lignum
54273fc6e5
Add Palette.DEFAULT
2017-05-07 12:51:06 +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
SquidDev
8ba5edb6e4
Minor cleanup of pocket computer upgrades
...
- General improvements of the docs.
- Move all ItemStack code to the ItemPocketComputer class
- Make PocketAPI execute on the server thread, rather than the computer
thread
2017-05-07 08:09:36 +01:00
SquidDev
5a4375f6ac
Allow changing the colour of the modem light
...
This now uses an integer between 0 and 15 to represent a colour, rather
than a simple on/off flag.
2017-05-07 08:09:36 +01:00
SquidDev
6020cd55b1
Added documentation and updated changelog/whatsnew
2017-05-07 08:09:36 +01:00
SquidDev
7f8100ae0f
Check the offhand inventory too when searching for upgrades
2017-05-07 08:08:09 +01:00
SquidDev
22631cfc63
Add .equip and .unequip methods to pocket API.
2017-05-07 08:08:09 +01:00
SquidDev
5faceac7ba
Add registry for pocket computer upgrades
2017-05-07 08:08:09 +01:00
Daniel Ratcliffe
ff16868dd8
Merge pull request #206 from Lignum/update-craftos-version
...
Set CraftOS version to 1.8
2017-05-07 00:41:58 +01:00
Lignum
287c6f172c
Allow passing RGB8 hex values to term.setColour
2017-05-07 01:16:48 +02:00
Daniel Ratcliffe
cad10fa2c7
Fixed incorrectness in os.day(). Added os.epoch()
2017-05-06 23:56:28 +01:00
Daniel Ratcliffe
58713caa73
Merge pull request #203 from SquidDev-CC/feature/turtle-models
...
Convert turtle rendering to use tinting
2017-05-06 23:56:13 +01:00
Daniel Ratcliffe
a6e3d4fd26
Merge pull request #195 from SquidDev-CC/hotfix/selection-boxes
...
Fix selection boxes not being shown
2017-05-06 23:55:45 +01:00
SquidDev
f34a319b79
Make cable collision boxes more accurate for cables
...
Each cable segment is added to the list, meaning you can get close and
snugly with the cables.
2017-05-06 23:45:15 +01:00
Lignum
1cc403191f
Add colours.rgb8(r, g, b)/colours.rgb8(hex)
2017-05-07 00:13:36 +02:00
Lignum
2c7ee1d7e7
Bump CraftOS version to 1.8
2017-05-06 23:26:45 +02:00
Daniel Ratcliffe
4b4e041f6f
Merge branch 'master' into master
2017-05-06 22:25:46 +01:00
Daniel Ratcliffe
423d5af87f
Merge pull request #191 from SquidDev-CC/feature/text-illumination
...
Make monitor text glow in the dark
2017-05-06 22:11:28 +01:00
Daniel Ratcliffe
5b6bbc3cbf
Merge pull request #200 from Lignum/fs-weak-set
...
Replace WeakHashMap for open files with a weak set
2017-05-06 21:44:28 +01:00
Lignum
a9e7acbec5
Fix monitors fetching palette when there is no terminal
2017-05-06 20:23:44 +02:00
Lignum
ac2382a861
Add setColour overload with table parameter
2017-05-06 20:22:16 +02:00
SquidDev
2f93354981
Remove dye block state property
...
It doesn't make sense to have it now as the coloured models do not exist
any more, and so would just produce errors should we try to load them.
2017-05-06 17:41:49 +01:00
SquidDev
c7f5d039b2
Use IBlockState instead of Block methods
...
There was a crash in RedstoneUtil when redstone state was changing next
to a full block due to the incorrect state being passed. By using
IBlockState methods we ensure that this cannot happen again.
The old IBlockState methods were also deprecated, so this reduces the
warning count a little. I've also moved string translation into
StringUtils, to reduce the number of deprecation warnings from there.
2017-05-06 15:31:06 +01:00
SquidDev
d652bdb0b0
Convert turtle rendering to use tinting
...
This uses Minecraft's colour tinting system in order to change the
colour of turtle models. This removes the need to have 16 models and
textures for each colour, reducing texture atlas space and hopefully
memory consumption.
See #145
2017-05-06 15:06:02 +01:00
Tim Ittermann
f1c4634dfa
os.time( ... ) now returns float
2017-05-06 14:52:02 +02:00
Tim Ittermann
f89bbeee54
Remove import
2017-05-06 14:30:19 +02:00
Tim Ittermann
e0e81a9b18
Put time functions into the OS API
2017-05-06 14:24:48 +02:00