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


Java NumericValue类代码示例

本文整理汇总了Java中com.badlogic.gdx.graphics.g2d.ParticleEmitter.NumericValue的典型用法代码示例。如果您正苦于以下问题:Java NumericValue类的具体用法?Java NumericValue怎么用?Java NumericValue使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NumericValue类属于com.badlogic.gdx.graphics.g2d.ParticleEmitter包,在下文中一共展示了NumericValue类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: create

import com.badlogic.gdx.graphics.g2d.ParticleEmitter.NumericValue; //导入依赖的package包/类
public void create () {
	if (spriteBatch != null) return;

	Texture.setEnforcePotImages(false);

	spriteBatch = new SpriteBatch();

	worldCamera = new OrthographicCamera();
	textCamera = new OrthographicCamera();

	pixelsPerMeter = new NumericValue();
	pixelsPerMeter.setValue(1.0f);
	pixelsPerMeter.setAlwaysActive(true);

	zoomLevel = new NumericValue();
	zoomLevel.setValue(1.0f);
	zoomLevel.setAlwaysActive(true);

	font = new BitmapFont(Gdx.files.getFileHandle("default.fnt", FileType.Internal), Gdx.files.getFileHandle("default.png",
		FileType.Internal), true);
	effectPanel.newEmitter("Untitled", true);
	// if (resources.openFile("/editor-bg.png") != null) bgImage = new Image(gl, "/editor-bg.png");
	Gdx.input.setInputProcessor(this);
}
 
开发者ID:tjumyk,项目名称:touhou-java,代码行数:25,代码来源:ParticleEditor.java

示例2: NumericPanel

import com.badlogic.gdx.graphics.g2d.ParticleEmitter.NumericValue; //导入依赖的package包/类
public NumericPanel (final NumericValue value, String name, String description) {
	super(value, name, description);
	this.value = value;

	initializeComponents();

	valueSpinner.setValue(value.getValue());

	valueSpinner.addChangeListener(new ChangeListener() {
		public void stateChanged (ChangeEvent event) {
			value.setValue((Float)valueSpinner.getValue());
		}
	});
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:15,代码来源:NumericPanel.java

示例3: create

import com.badlogic.gdx.graphics.g2d.ParticleEmitter.NumericValue; //导入依赖的package包/类
public void create () {
	if (spriteBatch != null) return;

	spriteBatch = new SpriteBatch();

	worldCamera = new OrthographicCamera();
	textCamera = new OrthographicCamera();

	pixelsPerMeter = new NumericValue();
	pixelsPerMeter.setValue(1.0f);
	pixelsPerMeter.setAlwaysActive(true);

	zoomLevel = new NumericValue();
	zoomLevel.setValue(1.0f);
	zoomLevel.setAlwaysActive(true);
	
	deltaMultiplier = new NumericValue();
	deltaMultiplier.setValue(1.0f);
	deltaMultiplier.setAlwaysActive(true);

	backgroundColor = new GradientColorValue();
	backgroundColor.setColors(new float[] { 0f, 0f, 0f});

	font = new BitmapFont(Gdx.files.getFileHandle("default.fnt", FileType.Internal), Gdx.files.getFileHandle("default.png",
		FileType.Internal), true);
	effectPanel.newExampleEmitter("Untitled", true);
	// if (resources.openFile("/editor-bg.png") != null) bgImage = new Image(gl, "/editor-bg.png");
	Gdx.input.setInputProcessor(this);
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:30,代码来源:ParticleEditor.java

示例4: create

import com.badlogic.gdx.graphics.g2d.ParticleEmitter.NumericValue; //导入依赖的package包/类
@Override
public void create () {
	if (spriteBatch != null) return;

	Texture.setEnforcePotImages(false);

	spriteBatch = new SpriteBatch();

	this.particlePanel.worldCamera = new OrthographicCamera();
	this.particlePanel.textCamera = new OrthographicCamera();

	this.particlePanel.pixelsPerMeter = new NumericValue();
	this.particlePanel.pixelsPerMeter.setValue(1.0f);
	this.particlePanel.pixelsPerMeter.setAlwaysActive(true);

	this.particlePanel.zoomLevel = new NumericValue();
	this.particlePanel.zoomLevel.setValue(1.0f);
	this.particlePanel.zoomLevel.setAlwaysActive(true);
	
	this.particlePanel.deltaMultiplier = new NumericValue();
	this.particlePanel.deltaMultiplier.setValue(1.0f);
	this.particlePanel.deltaMultiplier.setAlwaysActive(true);

	font = new BitmapFont(Gdx.files.getFileHandle("default.fnt", FileType.Internal), Gdx.files.getFileHandle("default.png",
		FileType.Internal), true);
	this.particlePanel.effectPanel.newExampleEmitter("Untitled", true);
	// if (resources.openFile("/editor-bg.png") != null) bgImage = new Image(gl, "/editor-bg.png");
	//Gdx.input.setInputProcessor(this);
}
 
开发者ID:pyros2097,项目名称:GdxStudio,代码行数:30,代码来源:ParticleRenderer.java


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