|
| void | registerSprite (char spriteIndex, int width, int height, int fontHeight) |
|
int | calculateSize (int width, int height, int fontHeight) |
| int | totalLength (String string, boolean isBold) |
|
int | totalLength (String string) |
|
String | getSpacingString (int space) |
|
int | getLength (char c) |
◆ registerSprite()
| void cc.mrcl.hopperlib.ScreenUI.SpriteRegistry.registerSprite |
( |
char | spriteIndex, |
|
|
int | width, |
|
|
int | height, |
|
|
int | fontHeight ) |
Sprite index is the sprite to render's char in the resourcepack. Width is the width in pixels of the PNG Height is the height in pixels of the PNG FontHeight is the height of the character in the resourcepack (defaults.json)
◆ totalLength()
| int cc.mrcl.hopperlib.ScreenUI.SpriteRegistry.totalLength |
( |
String | string, |
|
|
boolean | isBold ) |
Returns the length, in pixels, that the string will take in the UI
The documentation for this class was generated from the following file:
- src/main/java/cc/mrcl/hopperlib/ScreenUI/SpriteRegistry.java