18 o = me.itemOrigin +
eX * (col * me.itemSpacing.x) +
eY * (row * me.itemSpacing.y);
19 s = me.itemSize +
eX * ((colspan - 1) * me.itemSpacing.x) +
eY * ((rowspan - 1) * me.itemSpacing.y);
20 o.x -= 0.5 * (me.itemSpacing.x - me.itemSize.x) * v.x;
21 s.x += (me.itemSpacing.x - me.itemSize.x) * v.x;
22 o.y -= 0.5 * (me.itemSpacing.y - me.itemSize.y) * v.y;
23 s.y += (me.itemSpacing.y - me.itemSize.y) * v.y;
24 me.addItem(me, e, o, s, 1);
30 me.currentColumn = col;
36 me.currentColumn = me.firstColumn;
41 me.addItemSimple(me, me.currentRow, me.currentColumn, rowspan, colspan, e,
'0 0 0');
42 me.currentColumn += colspan;
47 me.addItemSimple(me, me.currentRow, me.currentColumn, rowspan, colspan, e, v);
48 me.currentColumn += colspan;
58 me.currentColumn += colspan;
63 float absWidth, absHeight;
68 me.frame.configureBorderImage(me.frame, me.title, me.titleFontSize, me.color, me.backgroundImage, me.borderLines * me.titleHeight);
69 me.frame.zoomedOutTitleBarPosition = me.zoomedOutTitleBarPosition;
70 me.frame.zoomedOutTitleBar = me.zoomedOutTitleBar;
71 me.frame.alpha = me.alpha;
72 me.addItem(me, me.frame,
'0 0 0',
'1 1 0', 1);
75 if (!me.titleFontSize) me.titleHeight = 0;
77 absWidth = me.intendedWidth *
conwidth;
78 absHeight = me.borderLines * me.titleHeight + me.marginTop + me.rows * me.rowHeight + (me.rows - 1) * me.rowSpacing + me.marginBottom;
79 me.itemOrigin =
eX * (me.marginLeft / absWidth)
80 +
eY * ((me.borderLines * me.titleHeight + me.marginTop) / absHeight);
81 me.itemSize =
eX * ((1 - (me.marginLeft + me.marginRight + me.columnSpacing * (me.columns - 1)) / absWidth) / me.columns)
82 +
eY * (me.rowHeight / absHeight);
83 me.itemSpacing = me.itemSize
84 +
eX * (me.columnSpacing / absWidth)
85 +
eY * (me.rowSpacing / absHeight);
86 me.intendedHeight = absHeight /
conheight;
88 me.currentColumn = -1;
92 if (me.isTabRoot && me.closable && me.borderLines > 0)
95 closebutton = me.closeButton = me.frame.closeButton =
NEW(
Button);
96 closebutton.configureButton(closebutton,
"", 0, me.closeButtonImage);
98 closebutton.onClickEntity = me;
99 closebutton.srcMulti = 0;
100 me.addItem(me, closebutton,
'0 0 0',
'1 1 0', 1);
106 if (me.parent.instanceOfNexposee)
109 if(me.hideMenuOnClose)
111 me.hideMenuOnClose =
false;
115 else if (me.parent.instanceOfModalController)
130 float r =
SUPER(
Dialog).keyDown(me, key, ascii, shift);
131 if (!me.closable && key ==
K_ESCAPE)
void Dialog_gotoRC(entity me, float row, float col)
void Dialog_fill(entity me)
void Dialog_TR(entity me)
void Dialog_configureDialog(entity me)
void DialogCloseButton_Click(entity button, entity tab)
void Dialog_TDempty(entity me, float colspan)
void Dialog_close(entity me)
void Dialog_Close(entity button, entity me)
void Dialog_setFirstColumn(entity me, float col)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void ExposeeCloseButton_Click(entity button, entity other)
void Dialog_TDNoMargin(entity me, float rowspan, float colspan, entity e, vector v)
float Dialog_keyDown(entity me, float key, float ascii, float shift)
void Dialog_TD(entity me, float rowspan, float colspan, entity e)
void Dialog_addItemSimple(entity me, float row, float col, float rowspan, float colspan, entity e, vector v)