Hello everyone,
Forgive me for the long post as I am a new user and have been trying to figure out this problem for days! Here’s what I’m trying to accomplish so far. Right now I have everything in place that should load a splash screen, transition to a main menu after 5 seconds and the main menu has four UI buttons in it. Right now the first button just transitions to the gamemode.lua screen which currently just has a background. The other three buttons just print that they were clicked.
Here’s where the weirdness happens … The four buttons show up and function great in the simulator (Both iPhone and Android) but when I push the .apk to my physical Android devices (G2, Galaxy S3, Xoom), the four buttons on the main menu are ALWAYS stuck at 0,0 - their reference points are still defaulted to center (You can see the bottom-right quarter of one of the buttons and it doesn’t do anything when you click it).
All of my image paths, sound paths etc. are correct and exist etc.
I have tried everything I can think of to get the buttons to show up right … Does anyone see anything wrong or anything I can improve? Your help is greatly appreciated!
UPDATE: I shortened the post as I have found the issue to keep everyone from having to read a ton of unnecessary code. The issue was a capital B in the image file name!
Here is the code that was causing the issue:
[code]
– Create buttons
newGameButton = ui.newButton{
default = “images/redbutton.png”,
over = “images/redButtonover.png”,
onRelease = newGameButtonReleased,
id = “newGameButton”,
text = “New Game”,
font = “Astron Boy”,
textColor = { 51, 51, 51, 255 },
size = 22,
emboss = true
}
screenGroup:insert( newGameButton );
[/code] [import]uid: 141828 topic_id: 29188 reply_id: 329188[/import]
[import]uid: 52491 topic_id: 29188 reply_id: 117387[/import]