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

progressbar.progressbar.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">

    <!-- this is our nifty little progressbar control -->
    <controlDefinition name="progressbar" controller="de.lessvoid.nifty.examples.progressbar.ProgressbarControl">
        <image filename="progressbar/progressbar-outer.png" imageMode="resize:15,2,15,15,15,2,15,2,15,2,15,15"
               childLayout="absolute">
            <image id="#progress" x="0" y="0" filename="progressbar/progressbar-inner.png" width="32px" height="100%"
                   imageMode="resize:15,2,15,15,15,2,15,2,15,2,15,15"/>
            <text id="#progress-text" font="verdana-small-regular.fnt" text="" textHAlign="center" textVAlign="center"
                  width="100%" height="100%" x="0" y="0" color="#f00f"/>
        </image>
    </controlDefinition>

    <!-- a simple screen -->
    <screen id="start">
        <layer id="layer" childLayout="center">
            <control id="my-progress" name="progressbar" align="center" valign="center" width="400px" height="32px"/>
        </layer>
    </screen>
</nifty>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy