12 if (!menuOverlaysManager)
return null;
15 if (!layer)
return null;
19 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
25 if (!menuOverlaysManager)
return;
30 layer.SetCurrentOverlay(var.GetInt());
32 override void PreviewVariable(
bool setPreview, SCR_AttributesManagerEditorComponent manager)
34 WriteVariable(
null, GetVariable(), manager, -1);
36 override int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
41 if (!menuOverlaysManager)
return 0;
46 array<SCR_EditorMenuOverlay> overlays =
new array<SCR_EditorMenuOverlay>;
47 int overlaysCount = layer.GetOverlays(overlays);
48 if (overlaysCount == 0)
return 0;
50 for (
int i = 0; i < overlaysCount; i++)