229 {
231 if (item_cards_count > 0)
233 float angle_rad = -
Math.
PI / 2;
234
235
237 {
239 }
240
241
242
244 if (delimiters_panel)
245 {
246 Widget del_child = delimiters_panel.GetChildren();
247 while (del_child)
248 {
249 Widget child_to_destroy1 = del_child;
250 del_child = del_child.GetSibling();
251
252 delete child_to_destroy1;
253 }
254 }
255
256
258 Widget item_card = item_cards_panel.GetChildren();
259
260
262 float item_cards_r = original_r;
263
264
266 {
268 if (item_cards_r < 0) item_cards_r = 0;
269 }
270
272 for (int i = 0; i < item_cards_count; ++i)
273 {
274
275 if (item_card)
276 {
277
278 float pos_x = item_cards_r *
Math.
Cos(angle_rad);
279 float pos_y = item_cards_r *
Math.
Sin(angle_rad);
280
281 pos_x = pos_x / original_r;
282 pos_y = pos_y / original_r;
283
284 item_card.SetPos(pos_x, pos_y);
285
286
288
289
290 item_card = item_card.GetSibling();
291 }
292
293
294
296 {
299 delimiter_widget.SetPos(0, 0);
301 }
302
303
305 }
306
307
308 if (hide_selector)
309 {
311 }
312 }
proto native WorkspaceWidget GetWorkspace()
proto native CGame GetGame()
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float Sin(float angle)
Returns sinus of angle in radians.