Space Engineers

Space Engineers

Text HUD API
Digi 2018 年 3 月 2 日 下午 10: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.
最后由 Digi 编辑于; 2018 年 3 月 2 日 下午 10:15
< >
正在显示第 1 - 6 条,共 6 条留言
DraygoKorvan  [开发者] 2019 年 3 月 5 日 下午 9: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 2019 年 3 月 5 日 下午 9: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  [开发者] 2019 年 3 月 5 日 下午 9:59 
yes, which is why i'm avoiding adding additional tags right now.
Digi 2019 年 10 月 7 日 下午 11:50 
Since it was redesigned, what about these inline sprites? :P
DraygoKorvan  [开发者] 2020 年 7 月 7 日 下午 10:12 
Still thinking this over :P
DraygoKorvan  [开发者] 2020 年 7 月 11 日 下午 9: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.
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50