starblast-modding
starblast-modding copied to clipboard
Glyphs in UI
A simple new UI component.
ship.setUIComponent({
components: [
{type:"glyph",position:[0,0,100,100],value:"\u0061",color:"#F00"}
]
});
This code would display a red ship glyph, a bit like the image below.
This should be easy to implement, it's just a text component with the glyphs font.