當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。