Added: Scroll bar for main chat tabs
--HG-- branch : develop
This commit is contained in:
parent
1f1bd9fb8f
commit
5a1a167de9
2 changed files with 28 additions and 1 deletions
|
@ -1042,7 +1042,9 @@
|
|||
h="24"
|
||||
posref="TL TL"
|
||||
x="0"
|
||||
y="-4">
|
||||
y="-4"
|
||||
max_w="0"
|
||||
max_sizeref="w">
|
||||
<ctrl style="tab_button_new"
|
||||
id="tab0"
|
||||
x="0"
|
||||
|
@ -1183,6 +1185,22 @@
|
|||
texture="blank.tga"
|
||||
color="166 166 166 255" />
|
||||
</group>
|
||||
|
||||
<!-- scroll target element will be set from c++ code: it does not exist on template build time -->
|
||||
<ctrl type="scroll"
|
||||
id="channel_scroll"
|
||||
vertical="false"
|
||||
align="L"
|
||||
y="-1"
|
||||
h="4"
|
||||
scale="true"
|
||||
posref="BL TL"
|
||||
posparent="header_opened"
|
||||
tx_bottomleft="skin_scroll_l.tga"
|
||||
tx_middle="skin_scroll_h.tga"
|
||||
tx_topright="skin_scroll_r.tga"
|
||||
target="" />
|
||||
|
||||
<group id="content"
|
||||
x="0"
|
||||
y="0"
|
||||
|
|
|
@ -1142,6 +1142,15 @@ CChatWindow *CChatWindowManager::createChatGroupWindow(const CChatWindowDesc &de
|
|||
if (!desc.HeaderColor.empty())
|
||||
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<CCtrlScroll*>(w->getContainer()->getCtrl("channel_scroll"));
|
||||
if (sb) sb->setTarget(pIG);
|
||||
}
|
||||
|
||||
return w;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue