[DWM] I implemented a window manager on Roblox!

Draggable Window Manager

licecap_60


BIG UPDATE!!!

You can preview the window manager HERE (for 16+ age verified players only). Dont worry, Once DWM is out of development, I will make an uncopylocked version for all players and developers.

The game is a avatar and emotes previewer which shows off many capabilities of DWM (Draggable Window Manager).

It (hopefully) would be updated if I have time. It still have some issues, but I am now confident enough for other players to check out Draggable Window Manager.

Image Gallery



Today I completed a (mostly) functional implementation of a stacking window manager entirely from scratch. This is after my first attempt that I made back in 2024, because of my lack of scripting knowledge at the time, I scrapped it and I had a go at it again which reuses some of the old modules and ideas from the first iteration.

A you can see, I added support for a multiple-document interface (Microsoft) which allows me to have a child-parent window relationship where windows can be displayed within windows. This also includes window priority where certain windows is displayed on top of everything else e.g. An error window on Windows 10.

How was this achieved? OOP!

I am planning to make this into an open-source project sometime later. For now, I only got the “basics” done with many of my goals not completed yet. The biggest achievement so far is actually getting window layering working properly and making it support MDI.


Note that this does NOT use DragDetector. I used a completely different input handler and dragging framework which is also written by me. This is because DragDetector didn’t exist in 2024 so I didn’t use it here.


In the future, I want the window manager to support SurfaceGUIs and even Plugin windows on Roblox Studio since in my original version it never worked properly with those user interfaces. Here are some examples I wanted implemented on the new version:

  • Independent and global support for UI scaling
  • Mobile and controller support (via a virtual mouse)
  • User-resizable windows
  • Using UDim Scale instead of offsets to position windows
  • Add a way to customize the window theme. Windows XP Luna theme anyone??
Cool! Source code where?

Like I said, this is mostly functional with many of the methods not working properly or not yet implemented and I will publish the final build as an open-source project, and because there is no documentation on how to use it yet. This is mainly just a showcase for now and I don’t feel like publishing partially completed code on the internet.

Anyways, If you have any suggestions (or know of other implementations of a window manager like this) then let me know!

10 Likes

This window manager on Roblox is awesome! Excellent job on it! How long did it take to make? It is very cool and unique for Roblox!

1 Like

Wow! It looks really cool :fire: I really like it, great job on this!

1 Like

…whats the maximum windows you can have?
Just asking for a ‘friend’ because I can see a use in this where you can literally spam your friend’s screen with GUIs like a windows error popup (that actually gave me a game idea too lol-)

but overall well done!!

2 Likes

The maximum amount of windows is hard limited to 64 per each instance of the window manager so technically infinite but if you are using only one window group then it is always 64 by default.
It can obviously be changed to the developer’s liking, for example you just do math.huge for infinite windows or 1 for just one window.
I added a limit because I am using my own input handler (ie it does not use TextButtons or ImageButtons to detect window mouse clicks) and having lots of windows may hinder performance because it has to go through every single window that is within the mouse position. I am not good at writing efficient code, only functional ones.

3 Likes

only 2-3 weeks editing time, not including the long breaks I have between sessions. if you count some of the modules I recycled from the old version of the script then technically it is TWO YEARS in the making. (some of the original code was written in 2024)

1 Like

note: I DIDN’T FORGET ABOUT THIS PROJECT!

I have chosen the name “Draggable Window Manager” or DWM for short, Probably a dumb name and definitely does not have any association with Microsoft’s “Desktop Window Manager”

Here are some updates that I made so far, Still using a standard ScreenGUI since SurfaceGUIs and Plugin windows need more work but it didn’t stop me from making some basic “applications” using DWM. These applications themselves are object-oriented which means that one or more of the same application can run at the same time.

Top left: Emote viewer
Top right: Avatar loader (from UserId or OutfitID), with a popup window to add a new avatar.
Bottom Left: An MDI window and the built-in About dialogue box (called by Version(true))
Bottom right: Nothing

licecap_66

1 Like