From 569591e6eb730f412ac7f671ebfffe0f68d5097f Mon Sep 17 00:00:00 2001 From: Kevin Harrison Date: Thu, 13 Dec 2018 16:03:52 -0500 Subject: [PATCH] Add button to transform example --- example/transform.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example/transform.lua b/example/transform.lua index 9efcc5b..f26d3e2 100644 --- a/example/transform.lua +++ b/example/transform.lua @@ -6,9 +6,11 @@ return function(ui) ui:rotate(t / 8) ui:scale(1 + math.sin(t / 4) / 2, 1 + math.cos(t / 4) / 2) ui:shear(math.cos(t / 8) / 4, math.sin(t / 8) / 4) - if ui:windowBegin('Transform', 0, 0, 200, 200, 'border', 'title') then - ui:layoutRow('dynamic', 150, 1) + if ui:windowBegin('Transform', 0, 0, 200, 200, 'border', 'movable', 'title') then + ui:layoutRow('dynamic', 100, 1) ui:label('You can apply transformations to the UI using ui:rotate, ui:scale, ui:shear, and ui:translate.', 'wrap') + ui:layoutRow('dynamic', 30, 1) + ui:button('Try and catch me!') end ui:windowEnd() end