ATTRIB(BorderImage, isNexposeeTitleBar, float, 0)
ATTRIB(BorderImage, zoomedOutTitleBarPosition, float, 0)
ATTRIB(BorderImage, zoomedOutTitleBar, float, 0)
- ATTRIB(BorderImage, borderLines, float, 1)
ENDCLASS(BorderImage)
#endif
me.realFontSize_Nexposeed = me.realFontSize;
}
SUPER(BorderImage).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
- me.borderVec = me.borderHeight / absSize_y * (eY + eX * (absSize_y / absSize_x));
+ me.borderVec_x = me.borderHeight / absSize_x;
+ me.borderVec_y = me.borderHeight / absSize_y;
me.realOrigin_y = 0.5 * (me.borderVec_y - me.realFontSize_y);
if(me.closeButton)
{
//print(vtos(me.borderVec), "\n");
if(me.src)
- draw_BorderPicture('0 0 0', me.src, '1 1 0', me.color, 1, me.borderLines * me.borderVec);
+ draw_BorderPicture('0 0 0', me.src, '1 1 0', me.color, 1, me.borderVec);
if(me.fontSize > 0)
{
vector ro, rf, df;
ATTRIB(Dialog, zoomedOutTitleBar, float, 0)
ATTRIB(Dialog, backgroundImage, string, string_null)
+ ATTRIB(Dialog, borderLines, float, 1)
ATTRIB(Dialog, closeButtonImage, string, string_null)
ATTRIB(Dialog, frame, entity, NULL)
float absWidth, absHeight;
me.frame = spawnBorderImage();
- me.frame.configureBorderImage(me.frame, me.title, me.titleFontSize, me.color, me.backgroundImage, me.titleHeight);
+ me.frame.configureBorderImage(me.frame, me.title, me.titleFontSize, me.color, me.backgroundImage, me.borderLines * me.titleHeight);
me.frame.zoomedOutTitleBarPosition = me.zoomedOutTitleBarPosition;
me.frame.zoomedOutTitleBar = me.zoomedOutTitleBar;
me.frame.alpha = me.alpha;
me.titleHeight = 0; // no title bar
absWidth = me.intendedWidth * conwidth;
- absHeight = me.titleHeight + me.marginTop + me.rows * me.rowHeight + (me.rows - 1) * me.rowSpacing + me.marginBottom;
+ absHeight = me.borderLines * me.titleHeight + me.marginTop + me.rows * me.rowHeight + (me.rows - 1) * me.rowSpacing + me.marginBottom;
me.itemOrigin = eX * (me.marginLeft / absWidth)
- + eY * ((me.titleHeight + me.marginTop) / absHeight);
+ + eY * ((me.borderLines * me.titleHeight + me.marginTop) / absHeight);
me.itemSize = eX * ((1 - (me.marginLeft + me.marginRight + me.columnSpacing * (me.columns - 1)) / absWidth) / me.columns)
+ eY * (me.rowHeight / absHeight);
me.itemSpacing = me.itemSize