diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-06-07 00:26:24 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-06-07 00:26:24 +0200 |
commit | 2e52b69f092cf183ce05d0697954eee749e94e5e (patch) | |
tree | d4def4f8fc66e35c5c475c88c1aa81be6d9a8806 /tocltcmds.go | |
parent | f25294a72d4ab25a07f4ee29c533407e183af8af (diff) | |
download | mt-2e52b69f092cf183ce05d0697954eee749e94e5e.tar.xz |
Support HUD font style
Diffstat (limited to 'tocltcmds.go')
-rw-r--r-- | tocltcmds.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tocltcmds.go b/tocltcmds.go index 37d7bed..7c28749 100644 --- a/tocltcmds.go +++ b/tocltcmds.go @@ -429,6 +429,7 @@ type HUD struct { Size [2]int32 ZIndex int16 Text2 string + Style uint32 } type HUDID uint32 @@ -516,6 +517,10 @@ type ToCltChangeHUD struct { //mt:if %s.Field == HUDText2 Text2 string //mt:end + + //mt:if %s.Field == HUDStyle + Style HUDStyleFlags + //mt:end } type HUDField uint8 @@ -534,11 +539,22 @@ const ( HUDSize HUDZIndex HUDText2 + HUDStyle hudMax ) //go:generate stringer -trimprefix HUD -type HUDField +type HUDStyleFlags uint32 + +const ( + StyleBold HUDStyleFlags = 1 << iota + StyleItalic + StyleMono +) + +//go:generate stringer -trimprefix Style -type HUDStyleFlags + // ToCltHUDFlags tells the client to update its HUD flags. type ToCltHUDFlags struct { // &^= Mask |