mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 23:35:54 +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;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
script = ExtResource("1_2rpsr")
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
z_index = 50
|
||||
z_as_relative = false
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue