mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-06 19:22:40 +01:00
Новое приложение: Палитра
This commit is contained in:
parent
150e94ffeb
commit
15a1fdd0d2
@ -399,6 +399,14 @@
|
||||
["version"]=1.0,
|
||||
},
|
||||
----------------------------------------------------- Приложения без ресурсов --------------------------------------------------------------------------
|
||||
{
|
||||
["name"]="MineOS/Applications/Palette",
|
||||
["url"]="IgorTimofeev/OpenComputers/master/Applications/Palette/Palette.lua",
|
||||
["type"]="Application",
|
||||
["icon"]="IgorTimofeev/OpenComputers/master/Applications/Palette/Icon.pic",
|
||||
["createShortcut"] = "desktop",
|
||||
["version"]=1.0,
|
||||
},
|
||||
{
|
||||
["name"]="MineOS/Applications/Radio",
|
||||
["url"]="IgorTimofeev/OpenComputers/master/Applications/Radio/Radio.lua",
|
||||
|
||||
BIN
Applications/Palette/Icon.pic
Normal file
BIN
Applications/Palette/Icon.pic
Normal file
Binary file not shown.
1
Applications/Palette/Palette.lua
Normal file
1
Applications/Palette/Palette.lua
Normal file
@ -0,0 +1 @@
|
||||
require("palette").draw("auto", "auto", 0x6600FF)
|
||||
@ -78,7 +78,7 @@ end
|
||||
local function drawGUI()
|
||||
if showGUI then
|
||||
--Верхний бар
|
||||
buffer.square(1, 1, buffer.screen.width, 1, 0xFFFFFF, 0xFFFFFF, " ", 30)
|
||||
buffer.square(1, 1, buffer.screen.width, 1, 0xDDDDDD, 0xFFFFFF, " ")
|
||||
local text = #imageList > 0 and ecs.stringLimit("start", imageList[currentImage], 40) or "Viewer"
|
||||
buffer.text(math.floor(buffer.screen.width / 2 - unicode.len(text) / 2), 1, 0x000000, text)
|
||||
buffer.text(2, 1, ecs.colors.red, "⬤")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user