Новое приложение: Палитра

This commit is contained in:
Igor 2016-03-20 02:40:56 +03:00
parent 150e94ffeb
commit 15a1fdd0d2
4 changed files with 10 additions and 1 deletions

View File

@ -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",

Binary file not shown.

View File

@ -0,0 +1 @@
require("palette").draw("auto", "auto", 0x6600FF)

View File

@ -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, "")