All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.lessvoid.nifty.examples.style.label.LabelStartScreen Maven / Gradle / Ivy

Go to download

Lots of Nifty example code! You can find the source for nearly all demos/tutorials in here.

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.nifty.examples.style.label;

import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.examples.NiftyExample;
import de.lessvoid.nifty.screen.Screen;
import de.lessvoid.nifty.screen.ScreenController;

import javax.annotation.Nonnull;

/**
 * @author void
 */
public class LabelStartScreen implements ScreenController, NiftyExample {
  private Nifty nifty;
  @Override
  public final void bind(@Nonnull final Nifty newNifty, @Nonnull final Screen newScreen) {
    this.nifty = newNifty;
  }

  @Override
  public final void onStartScreen() {
  }

  @Override
  public final void onEndScreen() {
  }

  public final void quit() {
    nifty.fromXml("all/intro.xml", "menu");
  }

  @Nonnull
  @Override
  public String getStartScreen() {
    return "start";
  }

  @Nonnull
  @Override
  public String getMainXML() {
    return "style/label/label.xml";
  }

  @Nonnull
  @Override
  public String getTitle() {
    return "Nifty Style Label Example";
  }

  @Override
  public void prepareStart(Nifty nifty) {
    // nothing
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy