lua programming

c, c++, php, html, sql ..etc discussion. also includes codes and source codes.
Post Reply
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

lua programming

Post 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:

ORIGINAL:

Image

WANTED (photoshoped):

Image

RESULT:

Image
Attachments
luas.rar
(2.09 KiB) Downloaded 671 times
User avatar
Sethioz
Admin
Admin
Posts: 4762
Joined: Fri Jul 27, 2007 5:11 pm
Custom: Gaming YT > https://youtube.com/SethiozEntertainment
Game Hacking YT > https://youtube.com/sethioz
Game Hacks Store > https://sethioz.com/shopz
Location: unknown
Contact:

Re: lua programming

Post 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.
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: lua programming

Post 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.
Attachments
uifrontnewcampaign.rar
final lua
(1 KiB) Downloaded 671 times
image
image
preview.jpg (52.82 KiB) Viewed 8015 times
Post Reply