92 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED);
95 me.focusedItemAlpha =
getFadedAlpha(me.focusedItemAlpha, SKINALPHA_LISTBOX_FOCUSED, SKINFADEALPHA_LISTBOX_FOCUSED);
96 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_FOCUSED, me.focusedItemAlpha);
101 float theAlpha, nameSize, nameOrigin;
104 theColor = SKINCOLOR_MUTATORS_TITLES;
105 theAlpha = SKINALPHA_MUTATORS_TITLES;
111 nameSize = me.columnNameSize;
112 nameOrigin = me.columnNameOrigin;
118 theColor = SKINCOLOR_MUTATORS_DISABLED;
119 theAlpha = SKINALPHA_MUTATORS_DISABLED;
123 theColor = SKINCOLOR_MUTATORS_ENTRIES;
124 theAlpha = SKINALPHA_MUTATORS_ENTRIES;
128 me.columnTreeIconSize *
eX +
eY,
'1 1 1', SKINALPHA_LISTBOX_SELECTED);
132 draw_Text(me.realUpperMargin *
eY + nameOrigin *
eX, s, me.realFontSize, theColor, theAlpha, 0);
149 me.itemAbsSize =
'0 0 0';
150 me.itemAbsSize.y = absSize.y * me.itemHeight;
151 me.itemAbsSize.x = absSize.x * (1 - me.controlWidth);
152 me.realFontSize.y = me.fontSize / me.itemAbsSize.y;
153 me.realFontSize.x = me.fontSize / me.itemAbsSize.x;
154 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
155 me.columnIconSize = me.itemAbsSize.y / me.itemAbsSize.x;
156 me.columnIconOrigin = 1 - me.columnIconSize;
157 me.columnTreeIconSize = me.columnIconSize;
158 me.columnNameOrigin = me.columnTreeIconSize + 0.5 * me.realFontSize.x;
159 me.columnNameSize = me.columnIconOrigin - me.columnNameOrigin - me.realFontSize.x;
203 entity c = me.currentPanel;
205 entity removing = me.currentItem;
208 if (removing == adding)
212 me.currentItem =
NULL;
213 c.removeItem(c, removing);
217 me.currentItem = adding;
218 adding.resizeNotify(adding,
'0 0 0', c.size,
'0 0 0', c.size);
219 c.addItem(c, adding,
'0 0 0',
'1 1 0', 1);
221 s.resizeNotify(s,
'0 0 0', s.size,
'0 0 0', s.size);
224 me.currentItem.showNotify(me.currentItem);
231 entity topics = me.topicList;
232 topics.onChange = me.topicChangeNotify;
233 topics.onChangeEntity = me;
238 me.gotoRC(me, 0, col);
239 me.TD(me, me.rows - 1.5, width, topics);
242 width = me.columns - col;
243 me.gotoRC(me, 0, col); me.setFirstColumn(me, me.currentColumn);
246 me.TD(me, me.rows - 6.5, width, me.currentPanel);
247 me.gotoRC(me, me.rows - 5.5, col);
250 e.allowColors =
true;
251 me.descriptionLabel = e;
253 me.gotoRC(me, me.rows - 1, 0);
256 e.onClickEntity = me;
258 me.topicChangeNotify(topics, me);
entity makeXonoticTextBox()
entity makeXonoticHeaderLabel(string theText)