Space Engineers

Space Engineers

Text HUD API
Digi 25. feb. 2018 kl. 19:03
Space text shadow and immediate draw call
Space text doesn't have a shadow option, would be nice to have one :}

Also, I'm drawing some lines along with the text in Draw() and the text lags behind the lines, most likely because your Draw() executes before my mod's.
I tried setting priority in the session component to 0, 1, 9999 and zero difference.
Maybe add a manual Draw() call for text objects to invoke ourselves in Draw().
< >
Viser 1-4 af 4 kommentarer
DraygoKorvan  [udvikler] 5. mar. 2019 kl. 21:13 
Manual draw was added.
Digi 5. mar. 2019 kl. 21:58 
Nice.
However, calling it yields an error:

[07:50:56] ERROR: System.Exception: ModMessageBase-GetMember: MemberEnum out of enumerable range 7 at UIFun.Messagesv2.ModMessageBase.GetMember(Int32 MemberEnum) at UIFun.Messagesv2.ModSpaceMessage.GetMember(Int32 MemberEnum) at UIFun.FontTexture.GetMember(Object arg2, Int32 arg3) at Draygo.API.HudAPIv2.MessageGet(Object BackingObject, Int32 Member) at Draygo.API.HudAPIv2.MessageBase.Draw() at Digi.BuildInfo.Features.BlockInfoAdditions.UpdateDraw()
That is in my local branch so you can't replicate it with my public mod, but it's simply a SpaceMessage to which I call Draw() inside my session's Draw().
Sidst redigeret af Digi; 5. mar. 2019 kl. 21:58
DraygoKorvan  [udvikler] 5. mar. 2019 kl. 21:59 
hrm, wonder if i missed something ill take a look.
DraygoKorvan  [udvikler] 5. mar. 2019 kl. 22:06 
Fixed, or it should be working now ;)
< >
Viser 1-4 af 4 kommentarer
Per side: 1530 50