starblast-modding
starblast-modding copied to clipboard
Fancy player highlight and additional text for player components in scoreboard
a new components attach to scoreboard:
ship.setUIComponent({
id: "scoreboard",
components: [
{type:"highlight",position:[0,0,100,100],color:"#F00"},
{type:"player",id:5,position:[0,100,100,100],value:"6.<player>",color:"#FFF"}
]
});
This will add the player highlight component and edit the type:"player"
component with the ranking position next to their name like the image below