DoubleDeez / MDFramework

A multiplayer C# game framework for Godot 3.4 Mono.
https://discord.gg/UH49eHK
MIT License
77 stars 13 forks source link

Interface Manager #28

Closed DoubleDeez closed 4 years ago

DoubleDeez commented 4 years ago

The MDInterfaceManager will introduce the concept of a Screen and ScreenLayers.

A screen is a fullscreen collection of Controls and exists on a ScreenLayer. A Screen is itself a control, with the addition of a Close method that calls into the interface manager.

The Interface Manager has two (at this time) screen layers: Main and PopUp. A screen layer is a stack of Screens. For the Main layer, only the top screen in the stack is visible, when that screen closes, the screen below it is revealed. If a new screen is opening on the Main layer, the previous top screen is hidden. For the PopUp layer, all screens in the stack are visible, layered on screen in the same order they were added to the screen layer stack.