本文整理匯總了Java中com.jme3.system.AppSettings.setSettingsDialogImage方法的典型用法代碼示例。如果您正苦於以下問題:Java AppSettings.setSettingsDialogImage方法的具體用法?Java AppSettings.setSettingsDialogImage怎麽用?Java AppSettings.setSettingsDialogImage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.jme3.system.AppSettings
的用法示例。
在下文中一共展示了AppSettings.setSettingsDialogImage方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
AppSettings settings = new AppSettings(false);
settings.setTitle("SkyHussars");
settings.setUseJoysticks(true);
/* TODO: make it moddable */
settings.setSettingsDialogImage("images/settings_image.jpg");
SkyHussars application = new SkyHussars();
application.setSettings(settings);
application.start();
}
示例2: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) throws BackingStoreException {
Locale.setDefault(Locale.ENGLISH);
MainApp app = new MainApp();
app.setPauseOnLostFocus(false);
app.setDisplayStatView(false);
app.setDisplayFps(false);
AppSettings settings = new AppSettings(false);
settings.load("SMILE");
settings.setTitle("SMILE");
settings.setSettingsDialogImage("Interface/line500px.png");
settings.setFrameRate(60);
settings.setSamples(2);
settings.putBoolean("DisableJoysticks", false);
settings.save("SMILE");
// settings.setVSync(true);
// settings.setResolution(800, 600);
// settings.setSamples(4);
// settings.setFullscreen(true);
// GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
// DisplayMode[] modes = device.getDisplayModes();
// for (int i = 0; i < modes.length; ++i) {
// System.err.println(modes[i].getWidth() + "x" + modes[i].getHeight() + " " + modes[i].getRefreshRate()
// + " " + modes[i].getBitDepth());
// }
//
// int i = 10; // note: there are usually several, let's pick the first
// settings.setResolution(modes[i].getWidth(), modes[i].getHeight());
// settings.setFrequency(modes[i].getRefreshRate());
// settings.setBitsPerPixel(modes[i].getBitDepth());
//// settings.setFullscreen(device.isFullScreenSupported());
app.setSettings(settings);
app.setShowSettings(true);
app.start(); // restart the context to apply changes
}
示例3: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
Main app = new Main();
AppSettings settings = new AppSettings(true);
settings.setTitle("Jogo Básico");
settings.setSettingsDialogImage("Interface/splashscreen.png");
settings.setResolution(1280, 800);
app.setSettings(settings);
app.start();
}