Example #1
0
        private void RestoreDesktop()
        {
            DesktopEx.Icons(_Mode, _IconSize);

            /* restore styles */
            foreach (var entry in _Style)
            {
                DesktopEx.Style(entry.Key, entry.Value);
            }

            Wallpaper.Restore();
        }
Example #2
0
        private void SetupDesktop()
        {
            Wallpaper.Backup();

            Style(DesktopEx.FolderFlags.FWF_AUTOARRANGE, false);
            Style(DesktopEx.FolderFlags.FWF_SNAPTOGRID, false);

            DesktopEx.Icons(ref _Mode, ref _IconSize);
            var normalizedSize = new Vector2(1.0f, 1.0f) / (Config.StageSize + new Vector2Int(1, 1));
            var desktopSize    = Coordinates.NormalizedToDesktop_Size(normalizedSize);

            Debug.Log(Mathf.Min(desktopSize.x, desktopSize.y));
            DesktopEx.Icons(_Mode, Mathf.Min(desktopSize.x, desktopSize.y));
        }