Minor D2k encyclopedia UI polish

- Make the text area taller so all the current text fits without a scroll.
- Limit label width so text doesn't press against the scrollbar.
This commit is contained in:
penev92
2023-02-14 18:08:27 +02:00
committed by Matthias Mailänder
parent 63bc73d9d2
commit 19613ed833

View File

@@ -54,7 +54,7 @@ Background@ENCYCLOPEDIA_PANEL:
Children: Children:
Background@ACTOR_BG: Background@ACTOR_BG:
Width: 150 Width: 150
Height: 150 Height: 170
Background: dialog3 Background: dialog3
Children: Children:
ActorPreview@ACTOR_PREVIEW: ActorPreview@ACTOR_PREVIEW:
@@ -65,13 +65,13 @@ Background@ENCYCLOPEDIA_PANEL:
ScrollPanel@ACTOR_DESCRIPTION_PANEL: ScrollPanel@ACTOR_DESCRIPTION_PANEL:
X: 150 + 10 X: 150 + 10
Width: PARENT_RIGHT - 150 - 10 Width: PARENT_RIGHT - 150 - 10
Height: 150 Height: 170
TopBottomSpacing: 8 TopBottomSpacing: 8
Children: Children:
Label@ACTOR_DESCRIPTION: Label@ACTOR_DESCRIPTION:
X: 8 X: 8
Y: 8 Y: 8
Width: PARENT_RIGHT - 32 Width: PARENT_RIGHT - 40
VAlign: Top VAlign: Top
Font: Regular Font: Regular
Button@BACK_BUTTON: Button@BACK_BUTTON: