From 5a1a167de91056c074e73aff026a0847063b6e38 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Tue, 29 Jan 2019 00:37:34 +0200 Subject: [PATCH] Added: Scroll bar for main chat tabs --HG-- branch : develop --- .../gamedev/interfaces_v3/interaction.xml | 20 ++++++++++++++++++- .../client/src/interface_v3/chat_window.cpp | 9 +++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/data/gamedev/interfaces_v3/interaction.xml b/code/ryzom/client/data/gamedev/interfaces_v3/interaction.xml index f4ab98453..90432bcff 100644 --- a/code/ryzom/client/data/gamedev/interfaces_v3/interaction.xml +++ b/code/ryzom/client/data/gamedev/interfaces_v3/interaction.xml @@ -1042,7 +1042,9 @@ h="24" posref="TL TL" x="0" - y="-4"> + y="-4" + max_w="0" + max_sizeref="w"> + + + + setHeaderColor(desc.HeaderColor); + + // because root group was created from template, element from scrollbar target attribute was not created yet + CInterfaceGroup *pIG = w->getContainer()->getGroup("header_opened:channel_select"); + if (pIG) + { + CCtrlScroll *sb = dynamic_cast(w->getContainer()->getCtrl("channel_scroll")); + if (sb) sb->setTarget(pIG); + } + return w; } else