congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LwjglPreferences.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.badlogic.gdx.backends.lwjgl.LwjglPreferences
constructor

Best Java code snippets using com.badlogic.gdx.backends.lwjgl.LwjglPreferences.<init> (Showing top 15 results out of 315)

origin: libgdx/libgdx

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, ".prefs/");
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: libgdx/libgdx

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, ".prefs/");
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: libgdx/libgdx

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, ".prefs/");
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: libgdx/libgdx

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, ".prefs/");
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: libgdx/libgdx

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(new LwjglFileHandle(new File(preferencesdir, name), preferencesFileType));
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: libgdx/libgdx

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(new LwjglFileHandle(new File(preferencesdir, name), preferencesFileType));
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, ".prefs/");
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, ".prefs/");
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: crashinvaders/gdx-texture-packer-gui

@Override
public Preferences getPreferences(String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(new LwjglFileHandle(new File(prefersDir, name), prefsFileType));
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(new LwjglFileHandle(new File(preferencesdir, name), preferencesFileType));
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: org.mini2Dx/mini2Dx-desktop

@Override
public Preferences getPreferences(String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, this.preferencesdir);
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: crashinvaders/gdx-texture-packer-gui

private void loadWindowParams(LwjglApplicationConfiguration configuration) {
  FileHandle file = new FileHandle(LwjglFiles.externalPath + configuration.preferencesDirectory + "/window_params.xml");
  if (!file.exists()) return;
  DisplayMode displayMode = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode();
  int screenWidth = displayMode.getWidth();
  int screenHeight = displayMode.getHeight();
  Preferences prefs = new LwjglPreferences(file);
  configuration.width = MathUtils.clamp(prefs.getInteger("width", configuration.width), 320, screenWidth);
  configuration.height = MathUtils.clamp(prefs.getInteger("height", configuration.height), 320, screenHeight);
  configuration.x = MathUtils.clamp(prefs.getInteger("x", configuration.x), 0, screenWidth - configuration.width);
  configuration.y = MathUtils.clamp(prefs.getInteger("y", configuration.y), 0, screenHeight - configuration.height);
}
origin: dsaltares/libgdx-cookbook

final Preferences prefs = new LwjglPreferences(new FileHandle(new LwjglFiles().getExternalStoragePath()
  + ".prefs/libgdxCookbookSamples"));
list.setSelectedValue(prefs.getString("last", null), true);
origin: 00-Evan/shattered-pixel-dungeon-gdx

com.badlogic.gdx.Preferences prefs = new LwjglPreferences(SPDSettings.FILE_NAME, config.preferencesDirectory);
origin: lycying/c2d-engine

final Preferences prefs = new LwjglPreferences(new FileHandle(new LwjglFiles().getExternalStoragePath() + ".prefs/c2d-tests"));
list.setSelectedValue(prefs.getString("last", null), true);
com.badlogic.gdx.backends.lwjglLwjglPreferences<init>

Popular methods of LwjglPreferences

  • getBoolean
  • getFloat
  • getInteger
  • getLong
  • getString
  • putBoolean
  • putFloat
  • putInteger
  • putLong
  • putString

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • findViewById (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now