Page 1 of 1

lua programming

PostPosted: Mon Oct 18, 2010 10:43 pm
by Maikon
Hi, I have been trying to make a remake of gui written in lua language. I want to add new selection screen for new campaign (so I decided to test it with duplicating one of existing ones). I followed the logic in original file but end result was horrible, so I must have screwd up somewhere. I have never used this language so there could be many errors.

Here are the screens and below are original and new lua file attached:



WANTED (photoshoped):




Re: lua programming

PostPosted: Mon Oct 18, 2010 11:00 pm
by Sethioz
i have never used .lua either, but its not complex. what i would do, is basically same. dublicating the original, get original working, just like it is when you havent touched it, then start chaning small bits and see what happens. like making a new "table" for new campaign, or chaning height/width to test if it works.

again, i can't test because i dont have the game you are testing on, but thats what i would do, just start changing small bits, so you know what went wrong and you can always change it back.

NOTE - use forum's attachment for images. reason for that, is because those free hostings WILL delete your pictures over time, like after 6 months if they dont get views or after year, even if they get views..etc, but on my forum, they will always stay, so if somebody reads this thread after a year, then he/she will be able to view the images you included. just explained it, cuz some ppl think its some trick to get more views or whatever, it is trick indeed, but to make things better for readers.

Re: lua programming

PostPosted: Tue Oct 19, 2010 8:17 pm
by Maikon
Ok after some tinkering and trials and errors I managed to solve the problem. Results are attached.

I just need to improve it a bit to look better but the basic concept I had was accomplished so if anyone has similar problems can use this as help.

p.s. missing data on right panel comes from external xml file I will change later.