Page 1 of 1

3rd- code

Posted: Mon Nov 02, 2009 5:13 pm
by xpoy
Add a file list that loaded, don't show file list on cache, but the list of file name on hard disk, this will helpful for players check his TA3D have true data files.

This is very important :P, for me... And more eazyly to write code.
And may write it down if new version isn't public in soon, but my trouble c++ (just start learn c++ for TA3D before 2 weeks, so a c++ primer :P) will trouble TA3D's code, and asm or c code will trouble more, in this case maybe some interface for 3rd code?
That make sure 3rd-code couldn't effect a lot, at least couldn't effect TA3D crash /:^|

Re: 3rd- code

Posted: Tue Nov 03, 2009 12:19 pm
by zuzuf
May be we could add a Lua interface which could be used by a set of scripts which could communicate with external tools.

Re: 3rd- code

Posted: Tue Nov 03, 2009 4:23 pm
by xpoy
/:^}~!
And give 3rd-code a choose to select when to run, like TA3D loading, TA3D setting, in game..

Re: 3rd- code

Posted: Tue Nov 03, 2009 5:04 pm
by zuzuf
I'd rather give information about GUI state through Lua interface, it would require less code both in the scripts and in TA3D itself.

Re: 3rd- code

Posted: Wed Nov 04, 2009 10:10 am
by xpoy
GUI data? What will that be?

Re: 3rd- code

Posted: Wed Nov 04, 2009 4:14 pm
by zuzuf
for example which GUI files are loaded (the .area file will tell you which menu is on screen, .tdf files will tell you which windows are loaded), maybe which windows (using their internal names) are loaded too and why not add the ability to send GUI messages (you could hide/show windows, get/set widget content, etc...) and to load/create/unload windows.

Re: 3rd- code

Posted: Mon Nov 09, 2009 9:20 am
by xpoy
If the GUI info able to get by lua, maybe UI control able write in lua? /:^]
I mean, for example I press a button, then the button method able write in lua?

Re: 3rd- code

Posted: Mon Nov 09, 2009 12:52 pm
by zuzuf
what do you mean by "write" ? If you mean call a Lua function then it's easy to do :)

Re: 3rd- code

Posted: Tue Nov 10, 2009 9:14 am
by xpoy
Yeah, call.
Press a button call a lua function, this mean eazy to modify mothed of button.