lua programming

c, c++, php, html, sql ..etc discussion. also includes codes and source codes.

lua programming

Postby Maikon » Mon Oct 18, 2010 10:43 pm

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:

ORIGINAL:

Image

WANTED (photoshoped):

Image

RESULT:

Image
Attachments
luas.rar
(2.09 KiB) Downloaded 191 times
Maikon
Newbie..
Newbie..
 
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: lua programming

Postby Sethioz » Mon Oct 18, 2010 11:00 pm

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.
User avatar
Sethioz
Admin
Admin
 
Posts: 4757
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown

Re: lua programming

Postby Maikon » Tue Oct 19, 2010 8:17 pm

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.
Attachments
uifrontnewcampaign.rar
final lua
(1 KiB) Downloaded 184 times
preview.jpg
image
preview.jpg (52.82 KiB) Viewed 2644 times
Maikon
Newbie..
Newbie..
 
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am


Return to Programming / Coding / Debugging

Who is online

Users browsing this forum: No registered users and 0 guests