Examples of WtWindowManager


Examples of games.stendhal.client.gui.wt.core.WtWindowManager

    if (Debug.PRE_RELEASE_VERSION != null) {
      addEventLine(new HeaderLessEventLine("This is a pre release test client: " + Debug.VERSION + " - " + Debug.PRE_RELEASE_VERSION, NotificationType.CLIENT));
    }

    // set some default window positions
    final WtWindowManager windowManager = WtWindowManager.getInstance();
    windowManager.setDefaultProperties("corpse", false, 0, 190);
    windowManager.setDefaultProperties("chest", false, 100, 190);

    /*
     * Finally create the window, and place all the components in it
     */
    // Create the main window
View Full Code Here

Examples of games.stendhal.client.gui.wt.core.WtWindowManager

        mDeviceEvaluator.createDeviceList(mAudioFormat), mAudioFormat);
    initVolumes();
  }

  private void initVolumes() {
    WtWindowManager config = WtWindowManager.getInstance();

    int volume = config.getPropertyInt("sound.volume.master", 100);
    changeVolume(Numeric.intToFloat(volume, 100.0f));

    this.getGroup("gui").changeVolume(Numeric.intToFloat(config.getPropertyInt("sound.volume.gui", 100), 100.0f));
    this.getGroup("sfx").changeVolume(Numeric.intToFloat(config.getPropertyInt("sound.volume.sfx", 100), 100.0f));
    this.getGroup("creature").changeVolume(Numeric.intToFloat(config.getPropertyInt("sound.volume.creature", 95), 100.0f));
    this.getGroup("ambient").changeVolume(Numeric.intToFloat(config.getPropertyInt("sound.volume.ambient", 80), 100.0f));
    this.getGroup("music").changeVolume(Numeric.intToFloat(config.getPropertyInt("sound.volume.music", 60), 100.0f));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.