|
|
@ -2373,7 +2373,7 @@ namespace NLGUI
|
|
|
|
{
|
|
|
|
{
|
|
|
|
setMaxH(_PopupMaxH);
|
|
|
|
setMaxH(_PopupMaxH);
|
|
|
|
// _W is given by scripter-man
|
|
|
|
// _W is given by scripter-man
|
|
|
|
newH = pLayer->H_T;
|
|
|
|
newH = (pLayer->H_T - pLayer->InsetT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -2382,7 +2382,7 @@ namespace NLGUI
|
|
|
|
_W = _Parent->getW();
|
|
|
|
_W = _Parent->getW();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setMaxH (16384); // No scrollbar for container of layer > 0
|
|
|
|
setMaxH (16384); // No scrollbar for container of layer > 0
|
|
|
|
newH = pLayer->H_T;
|
|
|
|
newH = (pLayer->H_T - pLayer->InsetT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (_Opened)
|
|
|
|
if (_Opened)
|
|
|
@ -2396,11 +2396,11 @@ namespace NLGUI
|
|
|
|
_HeaderOpened->setY (- newH);
|
|
|
|
_HeaderOpened->setY (- newH);
|
|
|
|
_HeaderOpened->setW (_W-(pLayer->W_L+pLayer->W_R));
|
|
|
|
_HeaderOpened->setW (_W-(pLayer->W_L+pLayer->W_R));
|
|
|
|
_HeaderOpened->updateCoords();
|
|
|
|
_HeaderOpened->updateCoords();
|
|
|
|
newH += max (_HeaderOpened->getHReal(), pLayer->getValSInt32 ("header_h"));
|
|
|
|
newH += max (_HeaderOpened->getHReal(), pLayer->HeaderH);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
newH += pLayer->getValSInt32 ("header_h");
|
|
|
|
newH += pLayer->HeaderH;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
newH -= (sint32) _ContentYOffset;
|
|
|
|
newH -= (sint32) _ContentYOffset;
|
|
|
@ -2448,12 +2448,12 @@ namespace NLGUI
|
|
|
|
if (_LayerSetup == 0)
|
|
|
|
if (_LayerSetup == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// zeH is the height to substract to total height of the container to obtain height of the list
|
|
|
|
// zeH is the height to substract to total height of the container to obtain height of the list
|
|
|
|
sint32 zeH = pLayer->H_T + pLayer->H_B_Open + pLayer->H_EM_Open;
|
|
|
|
sint32 zeH = (pLayer->H_T - pLayer->InsetT) + pLayer->H_B_Open + pLayer->H_EM_Open;
|
|
|
|
|
|
|
|
|
|
|
|
if (_HeaderOpened != NULL)
|
|
|
|
if (_HeaderOpened != NULL)
|
|
|
|
zeH += max (_HeaderOpened->getHReal(), pLayer->getValSInt32 ("header_h"));
|
|
|
|
zeH += max (_HeaderOpened->getHReal(), pLayer->HeaderH);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
zeH += pLayer->getValSInt32 ("header_h");
|
|
|
|
zeH += pLayer->HeaderH;
|
|
|
|
|
|
|
|
|
|
|
|
if (_Content != NULL)
|
|
|
|
if (_Content != NULL)
|
|
|
|
zeH += _Content->getHReal();
|
|
|
|
zeH += _Content->getHReal();
|
|
|
@ -2513,11 +2513,11 @@ namespace NLGUI
|
|
|
|
_HeaderClosed->setY (-newH);
|
|
|
|
_HeaderClosed->setY (-newH);
|
|
|
|
_HeaderClosed->setW (_W-(pLayer->W_L+pLayer->W_R));
|
|
|
|
_HeaderClosed->setW (_W-(pLayer->W_L+pLayer->W_R));
|
|
|
|
_HeaderClosed->updateCoords();
|
|
|
|
_HeaderClosed->updateCoords();
|
|
|
|
newH += max (_HeaderClosed->getHReal(), pLayer->getValSInt32 ("header_h"));
|
|
|
|
newH += max (_HeaderClosed->getHReal(), pLayer->HeaderH);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
newH += pLayer->getValSInt32 ("header_h");
|
|
|
|
newH += pLayer->HeaderH;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
newH += pLayer->H_B;
|
|
|
|
newH += pLayer->H_B;
|
|
|
|
|
|
|
|
|
|
|
@ -2731,7 +2731,7 @@ namespace NLGUI
|
|
|
|
// h is the size of what is on top of the child list
|
|
|
|
// h is the size of what is on top of the child list
|
|
|
|
sint32 x, y, w, h;
|
|
|
|
sint32 x, y, w, h;
|
|
|
|
|
|
|
|
|
|
|
|
h = pLayer->H_T + pLayer->H_B_Open;
|
|
|
|
h = (pLayer->H_T - pLayer->InsetT) + pLayer->H_B_Open;
|
|
|
|
|
|
|
|
|
|
|
|
if (_Opened)
|
|
|
|
if (_Opened)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -2856,7 +2856,7 @@ namespace NLGUI
|
|
|
|
else
|
|
|
|
else
|
|
|
|
rVR.drawRotFlipBitmapTiled (rl, x, y+pLayer->H_BL, pLayer->W_L, h-(pLayer->H_BL+pLayer->H_TL), 0, false, pLayer->TxId_L, pLayer->Tile_L-1, col);
|
|
|
|
rVR.drawRotFlipBitmapTiled (rl, x, y+pLayer->H_BL, pLayer->W_L, h-(pLayer->H_BL+pLayer->H_TL), 0, false, pLayer->TxId_L, pLayer->Tile_L-1, col);
|
|
|
|
// Right
|
|
|
|
// Right
|
|
|
|
if (pLayer->Tile_T == 0) // Tiling ?
|
|
|
|
if (pLayer->Tile_R == 0) // Tiling ?
|
|
|
|
rVR.drawRotFlipBitmap (rl, x+w-pLayer->W_R, y+pLayer->H_BR, pLayer->W_R, h-(pLayer->H_BL+pLayer->H_TL), 0, false, pLayer->TxId_R, col);
|
|
|
|
rVR.drawRotFlipBitmap (rl, x+w-pLayer->W_R, y+pLayer->H_BR, pLayer->W_R, h-(pLayer->H_BL+pLayer->H_TL), 0, false, pLayer->TxId_R, col);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
rVR.drawRotFlipBitmapTiled (rl, x+w-pLayer->W_R, y+pLayer->H_BR, pLayer->W_R, h-(pLayer->H_BL+pLayer->H_TL), 0, false, pLayer->TxId_R, pLayer->Tile_R-1, col);
|
|
|
|
rVR.drawRotFlipBitmapTiled (rl, x+w-pLayer->W_R, y+pLayer->H_BR, pLayer->W_R, h-(pLayer->H_BL+pLayer->H_TL), 0, false, pLayer->TxId_R, pLayer->Tile_R-1, col);
|
|
|
|