mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-05-06 17:34:15 +00:00
setColour -> setPaletteColour
This commit is contained in:
parent
287c6f172c
commit
156e74b69c
@ -74,10 +74,10 @@ public class TermAPI implements ILuaAPI
|
||||
"getBackgroundColour",
|
||||
"getBackgroundColor",
|
||||
"blit",
|
||||
"setColour",
|
||||
"setColor",
|
||||
"getColour",
|
||||
"getColor"
|
||||
"setPaletteColour",
|
||||
"setPaletteColor",
|
||||
"getPaletteColour",
|
||||
"getPaletteColor"
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -57,10 +57,10 @@ public class MonitorPeripheral implements IPeripheral
|
||||
"getBackgroundColour",
|
||||
"getBackgroundColor",
|
||||
"blit",
|
||||
"setColour",
|
||||
"setColor",
|
||||
"getColour",
|
||||
"getColor"
|
||||
"setPaletteColour",
|
||||
"setPaletteColor",
|
||||
"getPaletteColour",
|
||||
"getPaletteColor"
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
|
||||
|
||||
for i=0,15 do
|
||||
local c = 2 ^ i
|
||||
tPalette[c] = { parent.getColour( c ) }
|
||||
tPalette[c] = { parent.getPaletteColour( c ) }
|
||||
end
|
||||
end
|
||||
|
||||
@ -107,7 +107,7 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
|
||||
end
|
||||
|
||||
local function updatePalette()
|
||||
return parent.setColour( tPalette )
|
||||
return parent.setPaletteColour( tPalette )
|
||||
end
|
||||
|
||||
local function internalBlit( sText, sTextColor, sBackgroundColor )
|
||||
@ -286,7 +286,7 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
|
||||
setTextColor( color )
|
||||
end
|
||||
|
||||
function window.setColour( colour, r, g, b )
|
||||
function window.setPaletteColour( colour, r, g, b )
|
||||
if type(colour) == "table" then
|
||||
for k,v in pairs(colour) do
|
||||
tPalette[k] = v
|
||||
@ -305,13 +305,13 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
|
||||
end
|
||||
end
|
||||
|
||||
window.setColor = window.setColour
|
||||
window.setPaletteColor = window.setPaletteColour
|
||||
|
||||
function window.getColour( colour )
|
||||
function window.getPaletteColour( colour )
|
||||
return table.unpack( tPalette[ colour ] )
|
||||
end
|
||||
|
||||
window.getColor = window.getColour
|
||||
window.getPaletteColor = window.getPaletteColour
|
||||
|
||||
local function setBackgroundColor( color )
|
||||
if not parent.isColor() then
|
||||
|
Loading…
x
Reference in New Issue
Block a user