Package mindustry.ui
Class Fonts
java.lang.Object
mindustry.ui.Fonts
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic arc.scene.style.TextureRegionDrawablegetGlyph(arc.graphics.g2d.Font font, char glyph) static arc.graphics.g2d.TextureRegiongetLargeIcon(String name) static intgetUnicode(String content) static StringgetUnicodeStr(String content) static booleanhasUnicodeStr(String content) static voidstatic voidstatic voidCalled from a static context for use in the loading screen.static voidstatic voidCalled from a static context to make the cursor appear immediately upon startup.static voidmergeFontAtlas(arc.graphics.g2d.TextureAtlas atlas) Merges the UI and font atlas together for better performance.static voidregisterIcon(String name, String regionName, int ch, arc.graphics.g2d.TextureRegion region) static StringunicodeToName(int unicode)
-
Field Details
-
def
public static arc.graphics.g2d.Font def -
outline
public static arc.graphics.g2d.Font outline -
icon
public static arc.graphics.g2d.Font icon -
iconLarge
public static arc.graphics.g2d.Font iconLarge -
tech
public static arc.graphics.g2d.Font tech -
logic
public static arc.graphics.g2d.Font logic
-
-
Constructor Details
-
Fonts
public Fonts()
-
-
Method Details
-
getUnicode
-
getUnicodeStr
-
hasUnicodeStr
-
loadSystemCursors
public static void loadSystemCursors()Called from a static context to make the cursor appear immediately upon startup. -
cursorScale
public static int cursorScale() -
loadFonts
public static void loadFonts() -
unicodeToName
-
getLargeIcon
-
registerIcon
-
loadContentIcons
public static void loadContentIcons() -
loadContentIconsHeadless
public static void loadContentIconsHeadless() -
loadDefaultFont
public static void loadDefaultFont()Called from a static context for use in the loading screen. -
mergeFontAtlas
public static void mergeFontAtlas(arc.graphics.g2d.TextureAtlas atlas) Merges the UI and font atlas together for better performance. -
getGlyph
public static arc.scene.style.TextureRegionDrawable getGlyph(arc.graphics.g2d.Font font, char glyph)
-