TableLayout

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. :frowning:

Feedback of any kind is appreciated!

And not a single fuck was given :stuck_out_tongue:

If this is your normal attitude toward hardworking people who bring quality software like Nate, then an admin needs to ban you.

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!! :smiley:

Yeah, I don’t have those powers anymore but if I did I would send you a warning.

Calm down, it’s an insider. Nate and me are on the same team…

I don’t know what he’s talking about, ban his ass! :smiley: (j/k)

I guess people must be too busy building GUIs with TableLayout to post any feedback. :wink:

Nate and I are …

Not only do you have bad logic, but bad grammar ;D

Go learn my native tongue then if those grammar errors are to much for you handle and make you feel bad.

What’s your native tongue? ;D

As a result of this thread, I decided that everybody is banned.

In other news, I love how JGO runs perfectly well without moderators!

Awwww, I was just starting to like this place :’(

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.

;D

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

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.

LOL yeah back to the main topic :stuck_out_tongue:

I looked through it and I am preparing to use it in an app I’m about to make :slight_smile:

Update: Now has TWL support. Example:
http://code.google.com/p/table-layout/source/browse/trunk/toolkits/twl/test/com/esotericsoftware/tablelayout/twl/TwlTest.java#44

That’s awesome! But first, I’ve got to learn TWL :stuck_out_tongue:

Hopefully it is clear by now that TableLayout is easily ported to other toolkits. Anyone care to do SWT? :slight_smile:

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:


debug
* spacing:10 size:50
'1' '2' '3'
---
'4' '5' '6'
---
'7' '8' '9'
---
'#' '0' '*'

Produces this:

http://screensnapr.com/e/OL0fiG.png

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:


* 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.

Update: Added TableLayout support for the Android GUI toolkit.