Skip to content
This repository was archived by the owner on May 18, 2020. It is now read-only.

Scrolling Text API

HAlexTM edited this page Sep 8, 2016 · 1 revision
//Starting a scroller animation with the HTML tag <scroller>
	//Needed arguments are:
	//  - width --> The maximum with of the scroller
	//  - space --> Space between repeating
	//  - time --> time per step in ms
RunningTextFormater scroller = new RunningTextFormater("<scroller width=10  space=0 time=100>HELL§nO THIS IS A§a TEST§a STRING!</scroller>XX<scroller width=10  space=0 time=150>HELLO THIS IS A TEST STRING!</scroller>XX<scroller width=10  space=0 time=200>HELLO THIS IS A TEST STRING!</scroller>") {
  @Override
  public void update(String newText) {
    //this method will run when the text is updating
  }
};

Clone this wiki locally