From 932d018d0ad0fc6abfeef54fa0bfee2e499b19ba Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Mon, 20 Mar 2017 14:22:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B0=D0=BB=D0=B0=D0=B2=D0=B8=D1=82=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F=20=D1=81=D0=BE=D1=80=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B2=20TreeView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications.txt | 2 +- lib/GUI.lua | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Applications.txt b/Applications.txt index 755fb7ae..45d90b52 100644 --- a/Applications.txt +++ b/Applications.txt @@ -300,7 +300,7 @@ name="lib/GUI.lua", url="IgorTimofeev/OpenComputers/master/lib/GUI.lua", type="Library", - version=1.46, + version=1.47, }, { name="lib/windows.lua", diff --git a/lib/GUI.lua b/lib/GUI.lua index 9475c4a2..764b7b59 100755 --- a/lib/GUI.lua +++ b/lib/GUI.lua @@ -1621,7 +1621,8 @@ end local function treeViewUpdateFileList(treeView) treeView.fileList = {} updateFileList(treeView, 1, treeView.workPath) - + table.sort(treeView.fileList, function(a, b) return unicode.lower(a.path) < unicode.lower(b.path) end) + return treeView end @@ -1853,6 +1854,11 @@ end -------------------------------------------------------------------------------------------------------------------------------- +-- buffer.start() +-- buffer.clear(0x262626) +-- GUI.treeView(2, 2, 50, 40, 0xFFFFFF, 0x0, 0x262626, 0x555555, 0x888888, 0xFF4444, 0x44FF44, "/MineOS/Desktop/3DTest.app/"):draw() +-- buffer.draw(true) + -- buffer.start() -- local x, y, width, height = 10, 10, 32, 16 -- local chart = GUI.chart(x, y, width, height, 0xFFFFFF, 0xBBBBBB, 0x777777, 0xFF4444, 0.1, 0.15, "%", " RF/t", true, {})