當前位置: 首頁>>代碼示例>>Java>>正文


Java Table.setDebug方法代碼示例

本文整理匯總了Java中com.badlogic.gdx.scenes.scene2d.ui.Table.setDebug方法的典型用法代碼示例。如果您正苦於以下問題:Java Table.setDebug方法的具體用法?Java Table.setDebug怎麽用?Java Table.setDebug使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.badlogic.gdx.scenes.scene2d.ui.Table的用法示例。


在下文中一共展示了Table.setDebug方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: show

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
@Override
public void show() {
	stage = new Stage(new ScreenViewport());
	mainTable = new Table();
	stage.addActor(mainTable);
	mainTable.setFillParent(true);

	mainTable.setDebug((boolean) game.showDebugStuff());

	game.setInputProcessor(stage);

	initUI();
}
 
開發者ID:eskalon,項目名稱:ProjektGG,代碼行數:14,代碼來源:BaseUIScreen.java

示例2: IntroScreen

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
IntroScreen(final ParticleGame game) {
    particle_game = game;
    stage = new Stage();
    table = new Table();

    table.setFillParent(true);
    table.setDebug(true);
    stage.addActor(table);

    Skin skin = new Skin();
    
    Pixmap pixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);
    pixmap.setColor(Color.WHITE);
    pixmap.fill();
    
    skin.add("white", new Texture(pixmap));
    skin.add("font", game.getFont());

    TextButton.TextButtonStyle text_button_style = new TextButton.TextButtonStyle();
    final Color button_color = new Color(226 / 255f, 226 / 255f, 226 / 255f, 1f);
    final Color hover_color = new Color(162 / 255f, 162 / 255f, 162 / 255f, 1f);
    text_button_style.up = skin.newDrawable("white", button_color);
    text_button_style.down = skin.newDrawable("white", button_color);
    text_button_style.over = skin.newDrawable("white", hover_color);
    text_button_style.font = skin.getFont("font");
    skin.add("default", text_button_style);

    TextButton play_button = new TextButton("play", skin);
    play_button.addListener(new ChangeListener() {
        @Override
        public void changed(ChangeEvent event, Actor actor) {
            particle_game.setScreen(particle_game.getGameSetupScreen());
        }
    });
    table.add(play_button);
}
 
開發者ID:treeman1111,項目名稱:Particles,代碼行數:37,代碼來源:IntroScreen.java

示例3: create_selectpart_texture

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private void create_selectpart_texture() {
	// TODO Auto-generated method stub

			 Table container = new Table();
			 Table table = new Table();
			container.setDebug(debug_pages);
			 table.setDebug(debug_pages);
			 container.setFillParent(true);
				parts_scroll_pane = new ScrollPane(table);

				 container.add(parts_scroll_pane).width(screen_width).height(screen_height);
				 ;
				  
				 
					selectpart_stage.addActor(container);
				    
				    for (int i = 1 ;i <=ajzaa_no ;i++){
						 GozaTap tablea = new GozaTap(i);
						// tablea.setColor((float)Math.random(),(float)Math.random(),(float)Math.random(),1);
						 tablea.setDebug(debug_pages);
						 table.add(tablea).width(GozaTap.tab_width).height(GozaTap.tab_height+GozaTap.tab_pading_height);
						 table.row();
						 /*
						 selectpart_stage.addActor(new PageSeen(i));*/
						}

			
			
}
 
開發者ID:omar6597,項目名稱:alquran-alkarem,代碼行數:30,代碼來源:book.java

示例4: create_selectsorah_texture

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private void create_selectsorah_texture() {

				 Table container = new Table();
				 Table table = new Table();
				container.setDebug(debug_pages);
				 table.setDebug(debug_pages);
				 container.setFillParent(true);
					sorah_scroll_pane = new ScrollPane(table);

					 container.add(sorah_scroll_pane).width(screen_width).height(screen_height);
					 ;
					  
					 
						selectsorah_stage.addActor(container);
					    
					    for (int i = 1 ;i <=suar_no ;i++){
							 SorahTab tablea = new SorahTab(i);
							// tablea.setColor((float)Math.random(),(float)Math.random(),(float)Math.random(),1);
							 tablea.setDebug(debug_pages);
							 table.add(tablea).width(SorahTab.tab_width).height(SorahTab.tab_height+SorahTab.tab_pading_height);
							 table.row();
							 /*
							 selectpart_stage.addActor(new PageSeen(i));*/
							}

		
	}
 
開發者ID:omar6597,項目名稱:alquran-alkarem,代碼行數:28,代碼來源:book.java

示例5: create_selectpage_texture

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private void create_selectpage_texture() {
	// TODO Auto-generated method stub

			 Table container = new Table();
			 Table table = new Table();
			container.setDebug(debug_pages);
			 table.setDebug(debug_pages);
			 container.setFillParent(true);
				select_page_pane = new ScrollPane(table);

				 container.add(select_page_pane).width(screen_width).height(screen_height);
				 ;
				  
				 
					selectpage_stage.addActor(container);
				    
				    for (int i = 1 ;i <=pages_no ;i++){
						 PageTap tablea = new PageTap(i);
						// tablea.setColor((float)Math.random(),(float)Math.random(),(float)Math.random(),1);
						 tablea.setDebug(debug_pages);
						 table.add(tablea).width(PageTap.tab_width).height(PageTap.tab_height+PageTap.tab_pading_height);
						 table.row();
						 /*
						 selectpart_stage.addActor(new PageSeen(i));*/
						}

			
	
}
 
開發者ID:omar6597,項目名稱:alquran-alkarem,代碼行數:30,代碼來源:book.java

示例6: create_pages_texture

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private void create_pages_texture() {
	// TODO Auto-generated method stub
			
			 Table container = new Table();
			 Table table = new Table();
			container.setDebug(debug_pages);
			 table.setDebug(debug_pages);
			 container.setFillParent(true);
 
			  pages_scroll_pane = new ScrollPane(table);

			 pages_scroll_pane.layout();
			 container.add(pages_scroll_pane).width(screen_width).height(screen_height);
			 ;
			 pages_scroll_pane.setTouchable(Touchable.enabled);
			 pages_scroll_pane.setBounds(0, 0, screen_width, screen_height);
			  
			    container.setBounds(0,0,screen_width,screen_height);
			    container.setTouchable(Touchable.enabled);
			    
			    pages_stage.addActor(container);
			    
			    for (int i = 1 ;i <=pages_no ;i++){
					 Table tablea = new Table();
					// tablea.setColor((float)Math.random(),(float)Math.random(),(float)Math.random(),1);
					 tablea.setDebug(debug_pages);
					 table.add(tablea).width(screen_width).height(screen_height);
					 table.row();
					 pages_draw_stage.addActor(new PageSeen(i));
					}
			  
}
 
開發者ID:omar6597,項目名稱:alquran-alkarem,代碼行數:33,代碼來源:book.java

示例7: Chat

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
public Chat(SpriteBatch batch){
    field = new TextField("", Assets.getInstance().getSkin());
    field.setVisible(false);

    table = new Table();
    table.bottom().padLeft(20).padRight(20).padBottom(10).setFillParent(true);
    table.setDebug(false);
    table.add(field).width(Config.SCREEN_WIDTH-40);
    stage = new Stage(new FillViewport(Config.SCREEN_WIDTH,Config.SCREEN_HEIGHT,new OrthographicCamera()),batch);
    stage.addActor(table);
    stage.setKeyboardFocus(field);
}
 
開發者ID:guojiank,項目名稱:skycity,代碼行數:13,代碼來源:Chat.java

示例8: GameSetupScreen

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
GameSetupScreen(ParticleGame game) {
    particle_game = game;
    stage = new Stage();
    table = new Table();

    table.setDebug(true);
    table.setFillParent(true);
    stage.addActor(table);

    Skin skin = new Skin();

    Pixmap pixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);
    pixmap.setColor(Color.WHITE);
    pixmap.fill();

    skin.add("white", new Texture(pixmap));
    skin.add("font", game.getFont());

    TextButton.TextButtonStyle text_button_style = new TextButton.TextButtonStyle();
    final Color button_color = new Color(226 / 255f, 226 / 255f, 226 / 255f, 1f);
    final Color hover_color = new Color(162 / 255f, 162 / 255f, 162 / 255f, 1f);
    text_button_style.up = skin.newDrawable("white", button_color);
    text_button_style.down = skin.newDrawable("white", button_color);
    text_button_style.over = skin.newDrawable("white", hover_color);
    text_button_style.font = skin.getFont("font");
    skin.add("default", text_button_style);

    TextButton create_game_button = new TextButton("create game!", skin);
    create_game_button.addListener(new ChangeListener() {
        @Override
        public void changed(ChangeEvent event, Actor actor) {
            final int num_boards = 10;
            final PlayerCamera player_camera = new PlayerCamera(PARTICLE_BOARD_W, PARTICLE_BOARD_W,
                PARTICLE_BOARD_W * num_boards
            );
            final DisplayManager display_manager = new DisplayManager(particle_game.getBatch(), player_camera);
            final PropertyDictionary property_dictionary = new PropertyDictionary(10, 10, 10, 10);
            final ParticleSystem particle_system = new ParticleSystem(PARTICLE_BOARD_W, num_boards);
            final VelocitySystem velocity_system = new VelocitySystem(PARTICLE_BOARD_W / 9);
            final WorldGenerator world_generator = new WorldGenerator(
                    11, 25, PARTICLE_BOARD_W * num_boards
            );

            particle_game.setCamera(player_camera);
            particle_game.setDisplayManager(display_manager);
            particle_game.setPropertyDictionary(property_dictionary);
            particle_game.setParticleSystem(particle_system);
            particle_game.setVelocitySystem(velocity_system);

            world_generator.generate(property_dictionary, particle_system);
            final Player player = new Player(particle_game, 0, 50);
            particle_game.setPlayer(player);

            particle_game.setScreen(particle_game.getGameScreen());
        }
    });
    table.add(create_game_button);
}
 
開發者ID:treeman1111,項目名稱:Particles,代碼行數:59,代碼來源:GameSetupScreen.java

示例9: create_doaa_texture

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private void create_doaa_texture() {
	// TODO Auto-generated method stub
			
			

			 Table container = new Table();
			 Table table = new Table();
			container.setDebug(debug_pages);
			 table.setDebug(debug_pages);
			 container.setFillParent(true);
			 doaa_scroll_pane  = new ScrollPane(table);

				 container.add(doaa_scroll_pane ).width(screen_width).height(screen_height);
				 ;
				  
				 for (int i = 1 ;i <=2 ;i++){
					 Table tablea = new Table();
					// tablea.setColor((float)Math.random(),(float)Math.random(),(float)Math.random(),1);
					 tablea.setDebug(debug_pages);
					 table.add(tablea).width(screen_width).height(screen_height);
					 table.row();
					 /*
					 selectpart_stage.addActor(new PageSeen(i));*/
					}

					doaa_stage.addActor(container);
					doaa_stage.addActor(new DoaaActor());
				    
				   

			
			
}
 
開發者ID:omar6597,項目名稱:alquran-alkarem,代碼行數:34,代碼來源:book.java


注:本文中的com.badlogic.gdx.scenes.scene2d.ui.Table.setDebug方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。