congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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