Space Engineers

Space Engineers

Text HUD API
Digi 2 Mar, 2018 @ 10:08pm
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.
Last edited by Digi; 2 Mar, 2018 @ 10:15pm
< >
Showing 1-6 of 6 comments
DraygoKorvan  [developer] 5 Mar, 2019 @ 9:12pm 
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 @ 9:44pm 
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  [developer] 5 Mar, 2019 @ 9:59pm 
yes, which is why i'm avoiding adding additional tags right now.
Digi 7 Oct, 2019 @ 11:50pm 
Since it was redesigned, what about these inline sprites? :P
DraygoKorvan  [developer] 7 Jul, 2020 @ 10:12pm 
Still thinking this over :P
DraygoKorvan  [developer] 11 Jul, 2020 @ 9:21pm 
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.
< >
Showing 1-6 of 6 comments
Per page: 1530 50