decouple icon from text, see #19

This commit is contained in:
airstruck
2016-02-23 01:29:28 -05:00
parent 774d2856c1
commit 5f67a77114
11 changed files with 295 additions and 82 deletions

View File

@@ -1,10 +1,13 @@
return { style = 'dialog',
{ style = 'dialogHead', text = 'About LUIGI' },
{ style = 'dialogBody', padding = 24, icon = 'logo.png', text = [[
{ style = 'dialogBody', padding = 24, icon = 'logo.png', align = 'middle right',
textOffset = { -250, 0 },
text = [[
Lovely User Interfaces for Game Inventors
Copyright (c) 2015 airstruck
]] },
]]
},
{ style = 'dialogFoot',
{}, -- spacer
{ style = 'dialogButton', id = 'closeButton', text = 'Close' }

View File

@@ -45,7 +45,7 @@ return { id = 'mainWindow',
{ text = 'Use monospace font', id = 'mono' }
},
{ style = 'listThing', align = 'middle center',
text = 'Try the scroll wheel on this area.', },
text = 'Try the scroll wheel on this area.' },
{ style = 'listThing', align = 'middle center',
text = 'This text is centered, and in the middle vertically.' },
{ style = 'listThing', align = 'middle left',
@@ -73,10 +73,10 @@ return { id = 'mainWindow',
{ text = 'Use sans-serif font', id = 'sans2' },
{ text = 'Use monospace font', id = 'mono2' }
},
{ value = 1, text = 'Thing One' },
{ value = 2, text = 'Thing Two' },
{ value = 3, text = 'Thing Three' },
{ value = 4, text = 'Thing Four' },
{ value = 1, text = 'First stepper item' },
{ value = 2, text = 'Item two' },
{ value = 3, text = 'Third stepper item' },
{ value = 4, text = 'Item four' },
},
},
{