コード例 #1
0
ファイル: DebugButtonMenu.cs プロジェクト: Beider/Beider
        public override void _EnterTree()
        {
            Instance             = this;
            VisibilityGridParent = FindNode("VisibilityGroupGrid") as Control;
            ActionGridParent     = FindNode("ActionGrid") as Control;

            VisibilityGridParent.ClearNodeChildren();
            ActionGridParent.ClearNodeChildren();
        }
コード例 #2
0
        // Called when the node enters the scene tree for the first time.
        public override void _Ready()
        {
            // Do not show unless we are in debug mode
            if (!OS.IsDebugBuild())
            {
                QueueFree();
                return;
            }

            OnScreenDebugControl    = FindNode("OnScreenDebug") as OnScreenDebugInterface;
            DebugButtonMenu         = FindNode("DebugButtonMenu") as DebugButtonMenu;
            DebugButtonMenu.Visible = false;
            if (GetTheme() != null)
            {
                DebugButtonMenu.Theme = GetTheme();
            }

            // Add basic stuff to OnScreenDebug (FPS)
            OnScreenDebugManager.Initialize();
        }