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

style.label.label.xml 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
<?xml version="1.0" encoding="UTF-8"?>
<nifty xmlns="http://nifty-gui.lessvoid.com/nifty-gui">
  <style id="base-font-style">
    <attributes font="menu.fnt" />
  </style>

  <style id="base-label-style" base="base-font-style">
    <attributes align="center" valign="center" backgroundColor="#f00f"/>
  </style>

  <style id="base-label-style-center-with-effect" base="base-label-style">
    <attributes align="center"/>
    <effect>
      <onStartScreen name="move" direction="right" mode="in" length="800" />
    </effect>
  </style>

  <screen id="start" controller="de.lessvoid.nifty.examples.style.label.LabelStartScreen">
    <layer id="layer" backgroundColor="#206f" childLayout="vertical">
      <text id="label1" style="base-label-style-center-with-effect" text="base-label-style-center-with-effect" />
      <text id="label2" style="base-label-style" text="base-label-style" />
      <text id="label3" style="base-label-style" text="base-label-style (custom color and effects)" backgroundColor="#0f0f" >
        <effect>
          <onStartScreen name="move" direction="bottom" mode="in" length="800" />
        </effect>
      </text>
      <text id="label4" style="base-label-style-center-with-effect" text="base-label-style-center-with-effect (+ custom effects)" backgroundColor="#0f0f" >
        <effect>
          <onStartScreen name="move" direction="bottom" mode="in" length="800" />
        </effect>
      </text>
    </layer>
  </screen>
</nifty>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy