Nate
|
 |
«
Posted
2011-02-22 13:27:43 » |
|
I have my latest project mostly finished: http://code.google.com/p/table-layout/The TWL implementation doesn't exist yet, but will be easy. There is a simple class in the tools directory that renders a Swing GUI on the fly as you type in the TableLayout language. I'll probably make this an applet eventually. I started the project 10 days ago in my free time, but my motivation began to wane so I did a big push tonight to (mostly) finish the project. Now I'll probably take a bit of a break. Who knows, maybe I'll actually work on my game next? Hmm, I don't have room in my sig for another project.  Feedback of any kind is appreciated!
|
|
|
|
badlogicgames
|
 |
«
Reply #1 - Posted
2011-02-22 20:59:17 » |
|
And not a single f**k was given :p
|
|
|
|
ra4king
|
 |
«
Reply #2 - Posted
2011-02-22 22:00:22 » |
|
And not a single f**k was given :p
If this is your normal attitude toward hardworking people who bring quality software like Nate, then an admin needs to ban you. I have my latest project mostly finished: http://code.google.com/p/table-layout/The TWL implementation doesn't exist yet, but will be easy. There is a simple class in the tools directory that renders a Swing GUI on the fly as you type in the TableLayout language. I'll probably make this an applet eventually. I started the project 10 days ago in my free time, but my motivation began to wane so I did a big push tonight to (mostly) finish the project. Now I'll probably take a bit of a break. Who knows, maybe I'll actually work on my game next? Hmm, I don't have room in my sig for another project.  Feedback of any kind is appreciated! That is pretty amazing! Integration with TWL will make it even better! I will definitely try it next time I need to make a non-game application. Keep up the good work!! 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Eli Delventhal
|
 |
«
Reply #3 - Posted
2011-02-22 22:33:38 » |
|
And not a single f**k was given :p
Yeah, I don't have those powers anymore but if I did I would send you a warning.
|
|
|
|
badlogicgames
|
 |
«
Reply #4 - Posted
2011-02-22 23:00:03 » |
|
Calm down, it's an insider. Nate and me are on the same team...
|
|
|
|
Nate
|
 |
«
Reply #5 - Posted
2011-02-22 23:22:54 » |
|
I don't know what he's talking about, ban his ass!  (j/k) I guess people must be too busy building GUIs with TableLayout to post any feedback. 
|
|
|
|
ra4king
|
 |
«
Reply #6 - Posted
2011-02-23 00:10:41 » |
|
Calm down, it's an insider. Nate and me are on the same team...
Nate and I are ..... Not only do you have bad logic, but bad grammar 
|
|
|
|
badlogicgames
|
 |
«
Reply #7 - Posted
2011-02-23 02:04:42 » |
|
Go learn my native tongue then if those grammar errors are to much for you handle and make you feel bad.
|
|
|
|
ra4king
|
 |
«
Reply #8 - Posted
2011-02-23 03:24:02 » |
|
What's your native tongue? 
|
|
|
|
Riven
|
 |
«
Reply #9 - Posted
2011-02-23 14:18:36 » |
|
As a result of this thread, I decided that everybody is banned.
In other news, I love how JGO runs perfectly well without moderators!
|
|
|
|
Games published by our own members! Check 'em out!
|
|
ra4king
|
 |
«
Reply #10 - Posted
2011-02-23 15:25:35 » |
|
As a result of this thread, I decided that everybody is banned.
Awwww, I was just starting to like this place  In other news, I love how JGO runs perfectly well without moderators!
Why are there no mods? How many admins are there besides you?
|
|
|
|
Eli Delventhal
|
 |
«
Reply #11 - Posted
2011-02-23 18:13:34 » |
|
Why are there no mods? How many admins are there besides you?
-5
|
|
|
|
ra4king
|
 |
«
Reply #12 - Posted
2011-02-23 18:55:14 » |
|
Why are there no mods? How many admins are there besides you?
-5 I mean I thought the innocent mods that lost their privileges in that attack on SMF have gained them back. For the moment all moderators have lost their permissions, to prevent this from happening again.

|
|
|
|
Riven
|
 |
«
Reply #13 - Posted
2011-02-23 19:07:07 » |
|
There is this massive discrepancy between good intentions and available spare time. 'meanwhile' the #1 priority is to keep JGO up and running (and keeping my dayjob, naturally  )
|
|
|
|
Nate
|
 |
«
Reply #14 - Posted
2011-02-23 22:58:57 » |
|
Hey guys! How about that layout library! Wooo!
Can a brother get a code review? Comments on the language? You hate it and would never use it?
I was thinking about adding SWT and Android support, so it could layout GUIs with those UI toolkits.
|
|
|
|
ra4king
|
 |
«
Reply #15 - Posted
2011-02-23 23:20:31 » |
|
LOL yeah back to the main topic  I looked through it and I am preparing to use it in an app I'm about to make 
|
|
|
|
Nate
|
 |
«
Reply #16 - Posted
2011-03-13 05:05:23 » |
|
|
|
|
|
ra4king
|
 |
«
Reply #17 - Posted
2011-03-13 05:29:43 » |
|
That's awesome! But first, I've got to learn TWL 
|
|
|
|
Nate
|
 |
«
Reply #18 - Posted
2011-03-16 08:45:30 » |
|
Hopefully it is clear by now that TableLayout is easily ported to other toolkits. Anyone care to do SWT?  Update: Now has libgdx support. libgdx has a scene2d package and now TableLayout can be used to layout actors in your 2D scenes. Eg, this TableLayout definition: 1 2 3 4 5 6 7 8 9
| debug * spacing:10 size:50 '1' '2' '3' --- '4' '5' '6' --- '7' '8' '9' --- '#' '0' '*' |
Produces this:  Debug causes the red and green borders to show up, so you can see the table (green) and edges of the actors (red). The asterisk sets some properties that apply to all cells. The single quoted values create a label. You could also put in a bunch of images, buttons, or any libgdx actor (write your own fancy one). Conveniently libgdx actors already have names, so you can just add actors to your scene, then reference the names in the TableLayout with square brakcets: 1 2 3 4 5 6 7 8
| * spacing:10 size:50 [1] [2] [3] --- [4] [5] [6] --- [7] [8] [9] --- [#] [0] [*] |
One nice thing about using TableLayout with libgdx is that you can describe a table that has cells that expand, actors can fill any percentage of a cell, etc. This means you can have layouts that work on many different screen resolutions. Coding this manually can be tedious. See the TableLayout homepage for many other features such as describing nested tables, setting bean properties, etc.
|
|
|
|
Nate
|
 |
«
Reply #19 - Posted
2011-03-17 09:26:45 » |
|
Update: Added TableLayout support for the Android GUI toolkit.
|
|
|
|
|
|
ra4king
|
 |
«
Reply #21 - Posted
2011-04-09 00:19:34 » |
|
Looking at this and your other projects on Google Code, Nate you are amazing!  How did you do the syntax highlighting and line numbering?
|
|
|
|
Nate
|
 |
«
Reply #22 - Posted
2011-04-09 02:58:27 » |
|
Thanks.  How did you do the syntax highlighting and line numbering?
It was done in one evening using RSyntaxTextArea and Ragel. The Ragel code for it is here. Ragel is super cool, I'm finding more uses for it all the time. 
|
|
|
|
|