mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Z indexs
This commit is contained in:
parent
313f773fc9
commit
8e784be1aa
4 changed files with 9 additions and 5 deletions
|
|
@ -72,7 +72,7 @@ public partial class GlobalState : Node
|
|||
{
|
||||
// It is now safe to remove the current scene.
|
||||
CurrentScene.Free();
|
||||
|
||||
|
||||
// Load a new scene.
|
||||
var nextScene = GD.Load<PackedScene>(path);
|
||||
|
||||
|
|
@ -120,7 +120,8 @@ public partial class GlobalState : Node
|
|||
canvas.ProcessMode = ProcessModeEnum.Always;
|
||||
|
||||
var rect = new ColorRect();
|
||||
rect.ZIndex = 2;
|
||||
rect.ZAsRelative = false;
|
||||
rect.ZIndex = 100;
|
||||
rect.SetAnchorsPreset(Control.LayoutPreset.FullRect);
|
||||
rect.Color = new Color(Colors.Black, 1f);
|
||||
rect.ProcessMode = ProcessModeEnum.Always;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue