Ui enhancements 2.0 (#29)
* canvas overhaul * editor 2.0 * more tweaks * more editor work * completions + refactor * cleanup + editor additions * cleanup + undo overhaul * editor recent/peripherals/redo + cleanup * editor path issues * cleanup * changes for deprecated ui methods - recolor milo - make turtle scripts run again - mob rancher improvements * can now use named colors
This commit was merged in pull request #29.
This commit is contained in:
@@ -16,16 +16,19 @@ local config = Config.load('lzwfs', {
|
||||
local tab = UI.Tab {
|
||||
tabTitle = 'Compression',
|
||||
description = 'Disk compression',
|
||||
[1] = UI.Window {
|
||||
x = 2, y = 2, ex = -2, ey = 6,
|
||||
},
|
||||
label1 = UI.Text {
|
||||
x = 2, y = 2,
|
||||
x = 3, y = 3,
|
||||
value = 'Enable compression',
|
||||
},
|
||||
checkbox = UI.Checkbox {
|
||||
x = 20, y = 2,
|
||||
x = 21, y = 3,
|
||||
value = config.enabled
|
||||
},
|
||||
entry = UI.TextEntry {
|
||||
x = 2, y = 4, ex = -2,
|
||||
x = 3, y = 5 , ex = -3,
|
||||
limit = 256,
|
||||
shadowText = 'enter new path',
|
||||
accelerators = {
|
||||
@@ -34,7 +37,7 @@ local tab = UI.Tab {
|
||||
help = 'add a new path',
|
||||
},
|
||||
grid = UI.Grid {
|
||||
x = 2, ex = -2, y = 6, ey = -5,
|
||||
x = 2, ex = -2, y = 8, ey = -5,
|
||||
disableHeader = true,
|
||||
columns = { { key = 'value' } },
|
||||
autospace = true,
|
||||
@@ -45,7 +48,7 @@ local tab = UI.Tab {
|
||||
},
|
||||
},
|
||||
button = UI.Button {
|
||||
x = -9, ex = -2, y = -3,
|
||||
x = -8, ex = -2, y = -3,
|
||||
text = 'Apply',
|
||||
event = 'apply',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user