hey guys I figured out how to make a tree project view for notepad++, but I need help displaying the UI from the Ansca Moblie Rotation and Buttons tutorials.
here is my code
[lua]local gear = display.newImage(“gear.png”);
local gear2 = display.newImage(“gear.png”);
local ui = require(“ui”)
gear.xScale = .5
gear.yScale = .5
gear2.xScale = .5
gear2.yScale = .5
gear.x = display.stageWidth / 4 + 25
gear.y = display.stageHeight / 2 - 50
gear2.x = display.stageWidth * .67
gear2.y = display.stageHeight * .67
gear2.rotation = - 7
local rotateAmount = 1
local function animate(event)
gear.rotation = gear.rotation + rotateAmount
gear2.rotation = gear2.rotation - rotateAmount
end
Runtime:addEventListener( “enterFrame”, animate);
local buttonHandler = function(event)
end
local button1 = ui.newButton
{
default = “buttonGray.png”,
over = “buttonGrayOver.png”,
onEvent = buttonHandler,
text = “Stop”,
id = “stop”,
size = 12,
emboss = true
}
[lua] [import]uid: 168985 topic_id: 29524 reply_id: 329524[/import]