Skip to content

UI Manager

squaresun edited this page Aug 26, 2017 · 8 revisions

Since the UI of rhythm is one of the core component, I provided a simple UI in this plugin. In order to make your own UI stuff, I am going to explain my implementation.

The UI Manager handles the UI notes movement and measure area placement.

⚠️UI Manager occupied the first (1 + poolsize * 2) pictures in object: $gameScreen. If you want to show pictures, you should not use those id; or you can adjust the id.

The notes’ x-coordinate determined by the game player’s judge stopwatch time and the measure area picture scales with the miss cutoff point of judge, which means the it wouldn’t be a Miss when the note lies on the measure area picture.

The scaling of measure area (picture size = 64px*64px) would be:

f3

You can define the UISpeed in range [1, 100], which determines the notes’ traveling speed.

⚠️The images should stores in /img/pictures/


Next Page:

Stage Manager

Clone this wiki locally