Nested Tables and Input

121 views
Skip to first unread message

Rashmi Kheria

unread,
Jul 31, 2014, 10:44:59 AM7/31/14
to tablelay...@googlegroups.com
Hi all,

I am having a very strange problem with libGDX tables.

I have a root table (Rtable) and I add another table (table) to it. "table" is basically just a grid of textbuttons each with a letter, like wordsearch games.
I added a listener tot the table which implements touchUp, touchDown and touchDragged methods on the table.

When I use tableR.add(table) - The tables are displayed as expected, but the inputs - touchdragged and touchUp are not processed correctly.
When I use tableR.addActor(table) - Only the top-right 1/4th of the table is displayed in the bottom left corner. Input works perfectly for this 1/4th table that is displayed.

Before using the nested tables, I was using just one table with a grid of textbuttons each with a letter. That was working perfectly - both display and input. But then I wanted to nest this table inside a root table so that I can add other actors on screen to the root table like a timer, list of words etc.

Please help, I am not able to find anything I am doing wrong. I can share the full code if required.

I have a detailed post here : http://stackoverflow.com/questions/25051438/libgdx-nested-table-display-and-input

I am trying to make a WordSearch game, please let me know if you have come across any opensource/tutorial for that kind of game.


Thanks guys!!

Nate

unread,
Jul 31, 2014, 11:23:21 AM7/31/14
to tablelay...@googlegroups.com
I will respond on SO.

Cheers,
-Nate



--
--
You received this message because you are subscribed to the "tablelayout" group:
http://groups.google.com/group/tablelayout-users

---
You received this message because you are subscribed to the Google Groups "tablelayout-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tablelayout-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages