237 {
239 EntityAI selectedItem = ItemManager.GetInstance().GetSelectedItem();
240 SlotsIcon icon;
242 int visible_items_count = 0;
243 int visible_rows = 0;
244 ref array<EntityAI> visible_items = new array<EntityAI>;
245
246 for (
x = 0;
x < items.Count(); ++
x )
247 {
248 item = items.Get(
x );
249
251 continue;
252
253 visible_items.Insert( item );
254 visible_items_count++;
255 }
256
258
259 for (
x = 0;
x < visible_items_count; ++
x )
260 {
261 item = visible_items.Get(
x );
264 icon = SlotsContainer.Cast(
m_Container.Get( row ) ).GetSlotIcon( column );
265
266 icon.GetMainWidget().Show( true );
268
269 #ifdef PLATFORM_CONSOLE
270 if (selectedItem == item)
271 {
273 }
274 else
275 {
277 }
278 #endif
279
283
284 bool draggable = ItemManager.GetInstance().EvaluateContainerDragabilityDefault(item);
287 ItemManager.GetInstance().SetWidgetDraggable( icon.
GetPanelWidget(), draggable );
288
290
292 if ( conta )
293 {
294 conta.SetSlotIcon(icon);
295 }
296
298 {
300 }
301 else
302 {
304 if ( conta )
305 conta.OnHide();
306 }
307 }
308
310
312 {
314 icon.GetMainWidget().Show( false );
316 }
317
318
320 {
322 slots_last.
GetSlotIcon( 0 ).GetMainWidget().Show(
true );
324 slots_last.GetMainWidget().Update();
325 }
326
327
329 }
override void UpdateRadialIcon()
override bool IsDisplayable()
SlotsIcon GetSlotIcon(int index)
Widget GetMicromanagedPanel()
void Init(EntityAI obj, bool reservation=false)
override void UpdateInterval()
Widget GetRadialIconPanel()
ImageWidget GetGhostSlot()
bool ExcludeFromContainer(EntityAI item)
Decides on the icon visibility.
ref array< EntityAI > m_ShowedItems
void RecomputeNumberOfContainers(array< EntityAI > items)
ref AttachmentsGroupContainer m_Container