1
我試圖做一個簡單的可滾動的按鈕表。下面是代碼:Libgdx Scene2d表和滾動窗格錯誤?
craft = new Stage();
craftbl = new Table();
craftbl.setDebug(true);
craftbl.add(button1);
craftbl.row();
craftbl.add(button2);
scroll = new ScrollPane(craftbl);
scroll.setSize(640, 480);
craft.addActor(scroll);
我怎樣才能解決這個問題?
請向我們展示如何創建按鈕,因爲它在我的身邊工作。謝謝 –
[代碼在這裏](http://pastebin.com/T6H61D2P) – BerNardEr