Space Engineers

Space Engineers

Text HUD API
Digi 2. mar. 2018 kl. 22:08
Suggestion: inline sprite
Similar to <color=...>, have something like <sprite=sometransparentmaterial> that makes it max height of the text and same width with an optional size arg maybe.

Basically icons, emojis, custom characters or whatever people might want to add mixed with the text.
Sidst redigeret af Digi; 2. mar. 2018 kl. 22:15
< >
Viser 1-6 af 6 kommentarer
DraygoKorvan  [udvikler] 5. mar. 2019 kl. 21:12 
it would be possible to do this if i allow you to add characters to the fonts and then the mod can substitute the inline image in when you send that character code. This also helps keep the computational cost of manipulating the strings down.
Digi 5. mar. 2019 kl. 21:44 
That seems unnecessarily complicated.
Looking at the code for <color>, it's already allocating quite a lot every draw frame because of that regex splitting, it needs a redesign to read only without allocating any strings until it reaches a supported tag's value.
DraygoKorvan  [udvikler] 5. mar. 2019 kl. 21:59 
yes, which is why i'm avoiding adding additional tags right now.
Digi 7. okt. 2019 kl. 23:50 
Since it was redesigned, what about these inline sprites? :P
DraygoKorvan  [udvikler] 7. juli 2020 kl. 22:12 
Still thinking this over :P
DraygoKorvan  [udvikler] 11. juli 2020 kl. 21:21 
Well you can add inline sprites now via the custom font support. You can add them to existing fonts too by adding a character to the white or monospace font.
< >
Viser 1-6 af 6 kommentarer
Per side: 1530 50