Slider: added setIndex() and changed setValue behaviour Monitor: Changed monitor draw priority so input's cursor still shows (have to figure out why its even hiding) added new function where you can check if a user is holding a key currently down
26 lines
652 B
Lua
26 lines
652 B
Lua
local basalt = { debugger = true, version = 1 }
|
|
local activeFrame
|
|
local frames = {}
|
|
local keyActive = {}
|
|
local parentTerminal = term.current()
|
|
|
|
local sub = string.sub
|
|
|
|
local tHex = { -- copy paste is a very important feature
|
|
[colors.white] = "0",
|
|
[colors.orange] = "1",
|
|
[colors.magenta] = "2",
|
|
[colors.lightBlue] = "3",
|
|
[colors.yellow] = "4",
|
|
[colors.lime] = "5",
|
|
[colors.pink] = "6",
|
|
[colors.gray] = "7",
|
|
[colors.lightGray] = "8",
|
|
[colors.cyan] = "9",
|
|
[colors.purple] = "a",
|
|
[colors.blue] = "b",
|
|
[colors.brown] = "c",
|
|
[colors.green] = "d",
|
|
[colors.red] = "e",
|
|
[colors.black] = "f",
|
|
} |