mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-20 07:05:14 +00:00
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
This commit is contained in:
committed by
Daniel Ratcliffe
parent
0308ec555a
commit
922818dfa5
@@ -8,6 +8,28 @@ New Features in ComputerCraft 1.80:
|
|||||||
* Monitor text now glows in the dark.
|
* Monitor text now glows in the dark.
|
||||||
* Added a "Pocket Computer upgrde API" so mod developers can add their own pocket upgrades.
|
* Added a "Pocket Computer upgrde API" so mod developers can add their own pocket upgrades.
|
||||||
* Added pocket.equipBack()/pocket.unequipBack() to add/remove pocket upgrades.
|
* Added pocket.equipBack()/pocket.unequipBack() to add/remove pocket upgrades.
|
||||||
|
* Added term.setPaletteColor()/term.getPaletteColor() to change/check colors
|
||||||
|
* Added colors.rgb8()/colours.rgb8()
|
||||||
|
* Performance improvements to fs.find
|
||||||
|
* Requires the player to be interacting with the computer when typing
|
||||||
|
* Disk labels are limited to 32 characters
|
||||||
|
* Labels can now only include characters within the printable range ( to ~)
|
||||||
|
* Various model improvements
|
||||||
|
* There is now a configurable file descriptor limit
|
||||||
|
* Threads are now daemon threads
|
||||||
|
* Termination signals are now sent unless the computer is off
|
||||||
|
* Fixed compilation errors
|
||||||
|
* Now handles tile entity changes
|
||||||
|
* GPS coordinates now have to be numbers
|
||||||
|
* Turtle upgrades now act as tools and peripherals
|
||||||
|
* The Filesystem.list result is now sorted
|
||||||
|
* The number of values to unpack can now be manually specified
|
||||||
|
* Small terminal & monitor rendering improvements
|
||||||
|
* General improvements to the documentation
|
||||||
|
* Redstone inputs are no longer reset when adding peripherals
|
||||||
|
* Turtles now use tinting
|
||||||
|
* shell.resolveProgram now picks up on *.lua files
|
||||||
|
* Fixed a handful of bugs in ComputerCraft
|
||||||
|
|
||||||
New Features in ComputerCraft 1.79:
|
New Features in ComputerCraft 1.79:
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ Functions in the colors api
|
|||||||
colors.combine( color1, color2, color3, ... )
|
colors.combine( color1, color2, color3, ... )
|
||||||
colors.subtract( colors, color1, color2, ... )
|
colors.subtract( colors, color1, color2, ... )
|
||||||
colors.test( colors, color )
|
colors.test( colors, color )
|
||||||
|
colors.rgb8( r, g, b )
|
||||||
|
|
||||||
Color constants in the colors api, in ascending bit order:
|
Color constants in the colors api, in ascending bit order:
|
||||||
colors.white, colors.orange, colors.magenta, colors.lightBlue, colors.yellow, colors.lime, colors.pink, colors.gray, colors.lightGray, colors.cyan, colors.purple, colors.blue, colors.brown, colors.green, colors.red, colors.black.
|
colors.white, colors.orange, colors.magenta, colors.lightBlue, colors.yellow, colors.lime, colors.pink, colors.gray, colors.lightGray, colors.cyan, colors.purple, colors.blue, colors.brown, colors.green, colors.red, colors.black.
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ Functions in the colours api
|
|||||||
colours.combine( colour1, colour2, colour3, ...)
|
colours.combine( colour1, colour2, colour3, ...)
|
||||||
colours.subtract( colours, colour1, colour2, ...)
|
colours.subtract( colours, colour1, colour2, ...)
|
||||||
colours.test( colours, colour )
|
colours.test( colours, colour )
|
||||||
|
colours.rgb8( r, g, b )
|
||||||
|
|
||||||
Colour constants in the colours api, in ascending bit order:
|
Colour constants in the colours api, in ascending bit order:
|
||||||
colours.white, colours.orange, colours.magenta, colours.lightBlue, colours.yellow, colours.lime, colours.pink, colours.grey, colours.lightGrey, colours.cyan, colours.purple, colours.blue, colours.brown, colours.green, colours.red, colours.black.
|
colours.white, colours.orange, colours.magenta, colours.lightBlue, colours.yellow, colours.lime, colours.pink, colours.grey, colours.lightGrey, colours.cyan, colours.purple, colours.blue, colours.brown, colours.green, colours.red, colours.black.
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ getTextColor()
|
|||||||
getBackgroundColor()
|
getBackgroundColor()
|
||||||
getSize()
|
getSize()
|
||||||
scroll( n )
|
scroll( n )
|
||||||
|
setPaletteColor( color, r, g, b )
|
||||||
|
getPaletteColor( color )
|
||||||
|
|
||||||
Events fired by the Monitor:
|
Events fired by the Monitor:
|
||||||
"monitor_touch" when an Advanced Monitor is touched by the player. Arguments are name, x, y
|
"monitor_touch" when an Advanced Monitor is touched by the player. Arguments are name, x, y
|
||||||
"monitor_resize" when the size of a Monitor changes. Argument is the name of the monitor.
|
"monitor_resize" when the size of a Monitor changes. Argument is the name of the monitor.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ term.getSize()
|
|||||||
term.scroll( n )
|
term.scroll( n )
|
||||||
term.redirect( object )
|
term.redirect( object )
|
||||||
term.current()
|
term.current()
|
||||||
|
term.setPaletteColor( color, r, g, b )
|
||||||
|
term.getPaletteColor( color )
|
||||||
|
|
||||||
Events emitted by the terminals:
|
Events emitted by the terminals:
|
||||||
"term_resize", when the size of a terminal changes. This can happen in multitasking environments, or when the terminal out is being redirected by the "monitor" program.
|
"term_resize", when the size of a terminal changes. This can happen in multitasking environments, or when the terminal out is being redirected by the "monitor" program.
|
||||||
|
|||||||
@@ -8,5 +8,27 @@ New Features in ComputerCraft 1.80:
|
|||||||
* Monitor text now glows in the dark.
|
* Monitor text now glows in the dark.
|
||||||
* Added a "Pocket Computer upgrde API" so mod developers can add their own pocket upgrades.
|
* Added a "Pocket Computer upgrde API" so mod developers can add their own pocket upgrades.
|
||||||
* Added pocket.equipBack()/pocket.unequipBack() to add/remove pocket upgrades.
|
* Added pocket.equipBack()/pocket.unequipBack() to add/remove pocket upgrades.
|
||||||
|
* Added term.setPaletteColor()/term.getPaletteColor() to change/check colors
|
||||||
|
* Added colors.rgb8()/colours.rgb8()
|
||||||
|
* Performance improvements to fs.find
|
||||||
|
* Requires the player to be interacting with the computer when typing
|
||||||
|
* Disk labels are limited to 32 characters
|
||||||
|
* Labels can now only include characters within the printable range ( to ~)
|
||||||
|
* Various model improvements
|
||||||
|
* There is now a configurable file descriptor limit
|
||||||
|
* Threads are now daemon threads
|
||||||
|
* Termination signals are now sent unless the computer is off
|
||||||
|
* Fixed compilation errors
|
||||||
|
* Now handles tile entity changes
|
||||||
|
* GPS coordinates now have to be numbers
|
||||||
|
* Turtle upgrades now act as tools and peripherals
|
||||||
|
* The Filesystem.list result is now sorted
|
||||||
|
* The number of values to unpack can now be manually specified
|
||||||
|
* Small terminal & monitor rendering improvements
|
||||||
|
* General improvements to the documentation
|
||||||
|
* Redstone inputs are no longer reset when adding peripherals
|
||||||
|
* Turtles now use tinting
|
||||||
|
* shell.resolveProgram now picks up on *.lua files
|
||||||
|
* Fixed a handful of bugs in ComputerCraft
|
||||||
|
|
||||||
Type "help changelog" to see the full version history.
|
Type "help changelog" to see the full version history.
|
||||||
|
|||||||
@@ -21,3 +21,5 @@ redraw()
|
|||||||
restoreCursor()
|
restoreCursor()
|
||||||
getPosition()
|
getPosition()
|
||||||
reposition( x, y, width, height )
|
reposition( x, y, width, height )
|
||||||
|
getPaletteColor( color )
|
||||||
|
setPaletteColor( color, r, g, b )
|
||||||
|
|||||||
Reference in New Issue
Block a user