当前位置: 首页>>代码示例>>Java>>正文


Java WidgetGroup.setFillParent方法代码示例

本文整理汇总了Java中com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.setFillParent方法的典型用法代码示例。如果您正苦于以下问题:Java WidgetGroup.setFillParent方法的具体用法?Java WidgetGroup.setFillParent怎么用?Java WidgetGroup.setFillParent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup的用法示例。


在下文中一共展示了WidgetGroup.setFillParent方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: create

import com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup; //导入方法依赖的package包/类
@Override
public void create() {
	Gdx.app.setLogLevel(Application.LOG_DEBUG);
	Gdx.gl.glClearColor(0f, 0f, 0f, 0f);
	stage = new Stage(new ScreenViewport());
	WidgetGroup modalContainer = new WidgetGroup();
	modalContainer.setFillParent(true);

	WidgetGroup viewContainer = new WidgetGroup();
	viewContainer.setFillParent(true);

	stage.getRoot().addActor(viewContainer);
	stage.getRoot().addActor(modalContainer);
	Gdx.input.setInputProcessor(stage);
	actor = new LoadingIndicator();
	if (actor instanceof WidgetGroup) {
		((WidgetGroup) actor).setFillParent(true);
	}
	viewContainer.addActor(actor);
}
 
开发者ID:e-ucm,项目名称:ead,代码行数:21,代码来源:LoadingIndicatorDemo.java

示例2: UI

import com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup; //导入方法依赖的package包/类
public UI()
{
	uiElements = new ArrayList<UIElement>();

	stage = new Stage(new ScreenViewport());
	skin = new Skin(Gdx.files.internal("data/uiskin.json"));

	root = new WidgetGroup();
	root.setFillParent(true);
	stage.addActor(root);

	new MainOptionsWnd(skin);
}
 
开发者ID:bp2008,项目名称:blueirisviewer,代码行数:14,代码来源:UI.java

示例3: ToastManager

import com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup; //导入方法依赖的package包/类
/** Toast manager will create own group to host toasts and put it into the stage root. */
public ToastManager (Stage stage) {
	WidgetGroup widgetGroup = new WidgetGroup();
	widgetGroup.setFillParent(true);
	widgetGroup.setTouchable(Touchable.childrenOnly);
	stage.addActor(widgetGroup);
	this.root = widgetGroup;
}
 
开发者ID:kotcrab,项目名称:vis-editor,代码行数:9,代码来源:ToastManager.java

示例4: create

import com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup; //导入方法依赖的package包/类
@Override
public void create() {
	Gdx.app.setLogLevel(Application.LOG_DEBUG);
	Gdx.gl.glClearColor(1f, 1f, 1f, 1f);
	stage = new Stage(new ScreenViewport());
	WidgetGroup modalContainer = new WidgetGroup();
	modalContainer.setFillParent(true);

	WidgetGroup viewContainer = new WidgetGroup();
	viewContainer.setFillParent(true);

	stage.getRoot().addActor(viewContainer);
	stage.getRoot().addActor(modalContainer);
	controller = new MokapController(platform = new MockPlatform(),
			Gdx.files, viewContainer, modalContainer);
	controller.getCommands().pushStack();
	platform.setBatch(stage.getBatch());
	Gdx.input.setInputProcessor(stage);
	ApplicationAssets assets = controller.getApplicationAssets();
	actor = buildUI(assets.getSkin(), assets.getI18N());
	if (actor instanceof WidgetGroup) {
		((WidgetGroup) actor).setFillParent(true);
	}
	viewContainer.addActor(actor);

	stage.addListener(new ShortcutListener());
}
 
开发者ID:e-ucm,项目名称:ead,代码行数:28,代码来源:UITest.java

示例5: buildController

import com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup; //导入方法依赖的package包/类
protected Controller buildController() {
	WidgetGroup modalContainer = new WidgetGroup();
	modalContainer.setFillParent(true);

	WidgetGroup viewContainer = new WidgetGroup();
	viewContainer.setFillParent(true);

	stage.addActor(viewContainer);
	stage.addActor(modalContainer);

	return new MokapController(this.platform, Gdx.files, viewContainer,
			modalContainer);
}
 
开发者ID:e-ucm,项目名称:ead,代码行数:14,代码来源:MokapApplicationListener.java

示例6: ToastManager

import com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup; //导入方法依赖的package包/类
public ToastManager(Stage stage) {
	WidgetGroup widgetGroup = new WidgetGroup();
	widgetGroup.setFillParent(true);
	stage.addActor(widgetGroup);
	this.root = widgetGroup;
}
 
开发者ID:crashinvaders,项目名称:gdx-texture-packer-gui,代码行数:7,代码来源:ToastManager.java


注:本文中的com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.setFillParent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。