From d902a13e1c131b1a80ea02f0b269e668b8ab5384 Mon Sep 17 00:00:00 2001 From: TheSumm Date: Sun, 30 Sep 2012 06:16:15 +0300 Subject: [PATCH] Textwindow.otui update for scrollbars --- modules/game_textwindow/textwindow.otui | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/game_textwindow/textwindow.otui b/modules/game_textwindow/textwindow.otui index 342c8328..e93b65ae 100644 --- a/modules/game_textwindow/textwindow.otui +++ b/modules/game_textwindow/textwindow.otui @@ -1,3 +1,5 @@ +TextScrollbar < VerticalScrollBar + TextWindow < MainWindow id: textWindow size: 280 280 @@ -24,9 +26,21 @@ TextWindow < MainWindow id: text anchors.fill: parent anchors.top: textItem.bottom + margin-right: 10 margin-top: 30 margin-bottom: 30 + TextScrollbar + id: textScroll + anchors.left: prev.right + anchors.top: prev.top + anchors.bottom: prev.bottom + minimum: 0 + maximum: 0 + step: 1 + value: 0 + pixels-scroll: true + Button id: cancelButton !text: tr('Cancel') @@ -42,4 +56,4 @@ TextWindow < MainWindow anchors.top: text.bottom anchors.right: text.right margin-top: 10 - width: 60 + width: 60 \ No newline at end of file