- Extract chat line templates and logic so they can be reused across widgets - Make text notification styling entirely template driven (by removing chat color configuration and making color optional for `TextNotification`) - Add a new TextNotificationsDisplay widget (based on and replacing ChatDisplayWidget) - Add timestamp support to text notifications
40 lines
571 B
YAML
40 lines
571 B
YAML
Container@CHAT_LINE_TEMPLATE:
|
|
Width: PARENT_RIGHT
|
|
Height: 16
|
|
Children:
|
|
Label@TIME:
|
|
X: 5
|
|
Width: 37
|
|
Height: 16
|
|
Shadow: True
|
|
Label@PREFIX:
|
|
X: 5
|
|
Height: 16
|
|
Shadow: True
|
|
Label@TEXT:
|
|
X: 5
|
|
Height: 16
|
|
WordWrap: True
|
|
Shadow: True
|
|
|
|
Container@SYSTEM_LINE_TEMPLATE:
|
|
Width: PARENT_RIGHT
|
|
Height: 16
|
|
Children:
|
|
Label@TIME:
|
|
X: 5
|
|
Width: 37
|
|
Height: 16
|
|
Shadow: True
|
|
Label@PREFIX:
|
|
X: 5
|
|
Height: 16
|
|
Shadow: True
|
|
TextColor: FFFF00
|
|
Label@TEXT:
|
|
X: 5
|
|
Height: 16
|
|
WordWrap: True
|
|
Shadow: True
|
|
TextColor: FFFF00
|