コード例 #1
0
    void Awake()
    {
        main = this;

        UIAssistant.onShowPage += TryToSaveProfile;

        DebugPanel.AddDelegate("Clear Data", ClearData);
        DebugPanel.AddDelegate("Unlock all levels", UnlockAllLevels);
    }
コード例 #2
0
ファイル: SessionAssistant.cs プロジェクト: dqtoy/jewels2
 void Update()
 {
     DebugPanel.Log("Animate", "Session", animate);
     DebugPanel.Log("Matching", "Session", matching);
     DebugPanel.Log("Gravity", "Session", gravity);
     DebugPanel.Log("Sugar Task", "Session", creatingSugarTask);
     DebugPanel.Log("Last Movement ID", "Session", lastMovementId);
     DebugPanel.Log("Event count", "Session", eventCount);
 }
コード例 #3
0
ファイル: CPUWindow.cs プロジェクト: bzuidgeest/FoenixIDE
 public void ClearTrace()
 {
     StepCounter = 0;
     IRQPC       = 0;
     system.CPU.Stack.Reset();
     stackText.Clear();
     DebugPanel.Refresh();
     lastLine.Text = "";
 }
コード例 #4
0
    private void Awake()
    {
        if (instance == null || instance != this)
        {
            instance = this;
        }

        text = GetComponent <Text>();
    }
コード例 #5
0
 private void DebugInfo()
 {
     DebugPanel.Log("Engine", "MoveEngineInfo", currentMovement);
     DebugPanel.Log("flyTriggerTimer", "FlySwitchProperties", flyTriggerTimer);
     DebugPanel.Log("awaitingSecondSpace", "FlySwitchProperties", awaitingSecondSpace);
     DebugPanel.Log("startCount", "FlySwitchProperties", startCount);
     DebugPanel.Log("StaminaCoundown", "FlightParameters", flightStaminaCurrentValue);
     DebugPanel.Log("Velocity", controller.velocity);
 }
コード例 #6
0
ファイル: CPUWindow.cs プロジェクト: Trinity-11/FoenixIDE
 private void RefreshStatus()
 {
     this.Text = "Debug: " + StepCounter.ToString();
     if (kernel.CPU.DebugPause)
     {
         DebugPanel.Refresh();
         UpdateStackDisplay();
     }
     registerDisplay1.UpdateRegisters();
 }
コード例 #7
0
 void Update()
 {
     if (local_profile != null)
     {
         foreach (KeyValuePair <string, int> pair in local_profile.inventory)
         {
             DebugPanel.Log(pair.Key, "Items", pair.Value);
         }
     }
 }
コード例 #8
0
    protected virtual void Awake()
    {
        showNameAndState = GetComponent <ShowNameAndState>();
        DebugPanel dpo = FindObjectOfType <DebugPanel>();

        if (dpo)
        {
            debugPanel = dpo;
        }
    }
コード例 #9
0
    // Use this for initialization
    void Start()
    {
        grabbable = GetComponent <OVRGrabbable>();

        debugPanel = GetComponentInChildren <DebugPanel>();
        anim       = debugPanel.GetComponent <Animation>();
        debugPanel.gameObject.SetActive(false);

        isShowDebug = false;
    }
コード例 #10
0
ファイル: CPUWindow.cs プロジェクト: bzuidgeest/FoenixIDE
 private void DebugPanel_Leave(object sender, EventArgs e)
 {
     position.X             = -1;
     position.Y             = -1;
     PlusButton.Visible     = false;
     MinusButton.Visible    = false;
     InspectButton.Visible  = false;
     StepOverButton.Visible = false;
     DebugPanel.Refresh();
 }
コード例 #11
0
    private void CalculateSourceRotation()
    {
        zAngle = source.rotation.eulerAngles.z;
        zAngle = (zAngle > 180) ? zAngle - 360 : zAngle;

        yRot = zAngle * ratio;
        DebugPanel.Log("zAngle", "yrot", zAngle);
        DebugPanel.Log("yrot", "yrot", yRot);

        transform.rotation = Quaternion.Euler(0, 0, yRot);
    }
コード例 #12
0
ファイル: DebugPanel.cs プロジェクト: yinhwa/arcore-depth-lab
 /// <summary>
 /// Checks if there is a different instance and destroys it when necesssary.
 /// </summary>
 private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }
コード例 #13
0
ファイル: CameraFollow.cs プロジェクト: SSC0147-2017/Grupo7
    private void Update()
    {
        for (int i = 0; i < TargetGroup.m_Targets.Length; i++)
        {
            DebugPanel.Log("Target " + i + " weight", "Camera", TargetGroup.m_Targets[i].weight);
        }

        DebugPanel.Log("Members in AllPlayers", "RuntimeSets", AllPlayers.Items.Count);
        DebugPanel.Log("Members in DeadPlayers", "RuntimeSets", DeadPlayers.Items.Count);
        DebugPanel.Log("Members in ActivvePlayers", "RuntimeSets", ActivePlayers.Items.Count);
    }
コード例 #14
0
    void Update()
    {
        DebugPanel.Log("Is Player's Turn? ", isPlayerTurn);
        DebugPanel.Log("Player Points: ", playerPoints);

        if (mode != "hero")
        {
            playerPointsText.text = "" + playerPoints;
            UpdateNeededPointsText();
        }
    }
コード例 #15
0
    void Update()
    {
        DebugPanel.Log("Dimiss Delay: ", passiveDismissDelay);
        passiveDismissDelay += Time.deltaTime;

        if (Input.GetMouseButtonDown(0) && passiveDismissDelay >= 1.5f)
        {
            currentStep++;
            DisplayNextInstruction(currentStep);
        }
    }
コード例 #16
0
ファイル: MainWindow.xaml.cs プロジェクト: andidegn/AmdUtil
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            dp = new DebugPanel(this, log, 500);
            StackTrace st = new StackTrace();

            log = LogWriter.Instance;
            log.WriteToLog(LogMsgType.Notification, st.GetFrame(1).GetMethod().Name, "This is a test: {0}", "Test1");
            dp.KeyUp += Window_KeyUp;
            CreateNewTabWindow();
            //ShowAboutModal();
        }
コード例 #17
0
 private void UpdateDebugLines(int newDebugLine, bool state)
 {
     BPCombo.BeginUpdate();
     BPCombo.Items.Clear();
     foreach (KeyValuePair <int, string> bp in knl_breakpoints)
     {
         BPCombo.Items.Add(bp.Value);
     }
     BPCombo.EndUpdate();
     DebugPanel.Refresh();
 }
コード例 #18
0
    private void SetGift(DateTime now, long seconds)
    {
        DebugPanel.Log("Setting Gift", now);
        DebugPanel.Log("Gift Due Date: ", seconds);
        PlayerPrefs.SetString(giftDate, now.ToString());
        int temp = UnityEngine.Random.Range(0, 8);

        DebugPanel.Log("GiftType: ", temp);
        PlayerPrefs.SetInt(giftType, temp);
        PlayerPrefs.SetString(giftDueDate, seconds.ToString());
    }
コード例 #19
0
 private void DebugPanel_Leave(object sender, EventArgs e)
 {
     position.X = -1;
     position.Y = -1;
     AddBPOverlayButton.Visible    = false;
     DeleteBPOverlayButton.Visible = false;
     InspectOverlayButton.Visible  = false;
     StepOverOverlayButton.Visible = false;
     LabelOverlayButton.Visible    = false;
     DebugPanel.Refresh();
 }
コード例 #20
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
            Init();
            DontDestroyOnLoad(gameObject);
            return;
        }

        Destroy(gameObject);
    }
コード例 #21
0
    void Update()
    {
        if (currentActivity != LoggingActivity.NONE && canSnapPlayer)
        {
            HandleSnapLogic();
            ProcessInput();
        }

        DebugPanel.Log("Action Counter: ", "LA Player Behavior", actionCounter);
        DebugPanel.Log("Can Perform Action", "LA Player Behavior", canPerformAction);
        DebugPanel.Log("Mouse Down", "LA Player Behavior", Input.GetMouseButton(0));
    }
コード例 #22
0
    // Use this for initialization
    void Start()
    {
        timeMaster = TimeMaster.Instance;
        debugPanel = DebugPanel.Instance;
        PatternLoader patternLoader = new PatternLoader();

        pattern = patternLoader.loadPattern(GameManager.Instance.currentMidi);

        Debug.LogFormat("Total scorable {0}", pattern.totalScorable());

        comboCalculator.setMaxScore(pattern.totalScorable());
    }
コード例 #23
0
    IEnumerator BaseSession()
    {
        DebugPanel.Log("Status (Base)", "Session", "Began.");
        while (!limitationRoutineIsOver && !targetRoutineIsOver)
        {
            yield return(0);
        }

        DebugPanel.Log("Status (Base)", "Session", "Waiting is over.");

        // Checking the condition of losing
        if (!reachedTheTarget)
        {
            DebugPanel.Log("Status (Base)", "Session", "Session failed. Clearing.");
            yield return(StartCoroutine(GameCamera.main.HideFieldRoutine()));

            FieldAssistant.main.RemoveField();
            ShowLosePopup();
            DebugPanel.Log("Status (Base)", "Session", "Session failed. End.");
            yield break;
        }

        iteraction = false;

        DebugPanel.Log("Status (Base)", "Session", "Session completed. Target is reached.");

        yield return(new WaitForSeconds(0.2f));

        UIAssistant.main.ShowPage("TargetIsReached");
        AudioAssistant.Shot("TargetIsReached");
        yield return(StartCoroutine(Utils.WaitFor(() => CPanel.uiAnimation == 0, 0.4f)));

        UIAssistant.main.ShowPage("Field");


        DebugPanel.Log("Status (Base)", "Session", "Session completed. Bonus matching.");

        // Conversion of the remaining moves into bombs and activating them
        yield return(StartCoroutine(BurnLastMovesToPowerups()));

        yield return(StartCoroutine(Utils.WaitFor(CanIWait, 1f)));

        DebugPanel.Log("Status (Base)", "Session", "Session completed. Clearing.");

        // Ending the session, showing win popup
        yield return(StartCoroutine(GameCamera.main.HideFieldRoutine()));

        FieldAssistant.main.RemoveField();
        StartCoroutine(YouWin());

        DebugPanel.Log("Status (Base)", "Session", "Session completed. End.");
    }
コード例 #24
0
    void Update()
    {
        // Need to implement an actual load screen with wait time so this can happen
        // automatically before transitioning to the next scene instead
        if (Input.GetKeyDown(KeyCode.P))
        {
            Debug.Log("Triggered Save");
            SaveSceneData();
        }

        DebugPanel.Log("Has Finished Saving", "Scene Save/Load", hasFinishedSaving);
        DebugPanel.Log("Has Finished Loading", "Scene Save/Load", hasFinishedLoading);
    }
コード例 #25
0
ファイル: CameraFollow.cs プロジェクト: SSC0147-2017/Grupo7
    private IEnumerator NewPlayerWeight(int iNewPlayer)
    {
        DebugPanel.Log("New Level Player Index", "Interactions", iNewPlayer);

        float elapsedTime = 0f;

        while (elapsedTime < 1f)
        {
            elapsedTime = Mathf.Min(elapsedTime + Time.deltaTime, 1f);
            TargetGroup.m_Targets[iNewPlayer].weight = elapsedTime;
            yield return(null);
        }
    }
コード例 #26
0
ファイル: Box.cs プロジェクト: troseberry/dotsgame
    void Update()
    {
        DebugPanel.Log(name + " Sides Left Open: ", SidesLeftOpen());

        //DebugPanel.Log(name + " Is Claimed: ", claimed);
        //DebugPanel.Log(name + " Owner: ", owner);
        //DebugPanel.Log(name + " Is Complete: ", IsComplete());

        if (IsComplete() && owner != "" && !claimed)
        {
            AwardPoint();
        }
    }
コード例 #27
0
 void Start()
 {
     this.tui = this.GetComponentInChildren <TimerUI>();
     this.ad  = this.GetComponentInChildren <ActionDisplay>();
     this.lb  = this.GetComponentInChildren <LockButton>();
     this.dbp = this.GetComponentInChildren <DebugPanel>();
     this.gsd = this.GetComponentInChildren <GameStateDisplay>();
     this.asg = this.GetComponentInChildren <ActionSelectGroup>();
     this.god = this.GetComponentInChildren <GameOverDisplay>();
     this.GameOverDisplayHide();         // Hide this till needed. Todo Warning, may depend on script execution order
     this.lasb = new List <ActionSelectButton>();
     this.hsd  = this.GetComponentInChildren <HitSunkDisplay>();
 }
コード例 #28
0
    static void TryToFindPanel()
    {
        DebugPanel panel;

        panel = FindObjectOfType <DebugPanel> ();
        if (!panel)
        {
            GameObject go = new GameObject();
            go.name = "DebugPanel";
            panel   = go.AddComponent <DebugPanel>();
        }
        mMain = panel;
    }
コード例 #29
0
    private void DebugValues()
    {
        DebugPanel.Log("Back Button", backButton);
        DebugPanel.Log("Back Button Down", backButtonDown);
        DebugPanel.Log("Back Button Up", backButtonUp);

        DebugPanel.Log("A Button", aButton);
        DebugPanel.Log("A Button Down", aButtonDown);
        DebugPanel.Log("A Button Up", aButtonUp);

        DebugPanel.Log("B Button", bButton);
        DebugPanel.Log("B Button Down", bButtonDown);
        DebugPanel.Log("B Button Up", bButtonUp);

        DebugPanel.Log("X Button", xButton);
        DebugPanel.Log("X Button Down", xButtonDown);
        DebugPanel.Log("X Button Up", xButtonUp);

        DebugPanel.Log("Y Button", yButton);
        DebugPanel.Log("Y Button Down", yButtonDown);
        DebugPanel.Log("Y Button Up", yButtonUp);

        DebugPanel.Log("L3 Button", l3Button);
        DebugPanel.Log("L3 Button Down", l3ButtonDown);
        DebugPanel.Log("L3 Button Up", l3ButtonUp);

        DebugPanel.Log("R3 Button", r3Button);
        DebugPanel.Log("R3 Button Down", r3ButtonDown);
        DebugPanel.Log("R3 Button Up", r3ButtonUp);

        DebugPanel.Log("Left Trigger Value", leftTriggerValue);
        DebugPanel.Log("Left Trigger", leftTrigger);
        DebugPanel.Log("Left Trigger Down", leftTriggerDown);
        DebugPanel.Log("Left Trigger Up", leftTriggerUp);

        DebugPanel.Log("Right Trigger Value", rightTriggerValue);
        DebugPanel.Log("Right Trigger", rightTrigger);
        DebugPanel.Log("Right Trigger Down", rightTriggerDown);
        DebugPanel.Log("Right Trigger Up", rightTriggerUp);

        DebugPanel.Log("Left Grip Value", leftGripValue);
        DebugPanel.Log("Left Grip", leftGrip);
        DebugPanel.Log("Left Grip Down", leftGripDown);
        DebugPanel.Log("Left Grip Up", leftGripUp);

        DebugPanel.Log("Right Grip Value", rightGripValue);
        DebugPanel.Log("Right Grip ", rightGrip);
        DebugPanel.Log("Right Grip Down", rightGripDown);
        DebugPanel.Log("Right Grip Up", rightGripUp);
    }
コード例 #30
0
ファイル: ToolManager.cs プロジェクト: troseberry/Woodlands
    void Update()
    {
        DebugPanel.Log("To Equip Index: ", "Tool Manager", toolToEquipIndex);
        if (doSwitch)
        {
            EnableTool();
        }
        else if (doUnequipOnly)
        {
            HideAllTools();
        }

        HandleToolAnimatorChecks();
    }
コード例 #31
0
ファイル: Window3D.cs プロジェクト: JoshGrooms/Tesseract
        /* CONSTRUCTOR & DESTRUCTOR METHODS */
        /// <summary>
        /// Creates a new window that supports 3D rendering using the SharpDX Direct3D11 API.
        /// </summary>
        /// <param name="width">The desired width of the window in pixels.</param>
        /// <param name="height">The desired height of the window in pixels.</param>
        /// <param name="title">The desired title to be displayed on the top border of the window.</param>
        public Window3D(int width = 500, int height = 500, string title = "")
        {
            // Initialize basic settings & data
            Antialiasing    = 1;
            BackgroundColor = Color.LightGray;
            Camera            = new Camera(0, 1, -2);
            FrameTime        = 0;
            LastTime        = Clock.Read();
            UseVerticalSync = true;

            // Initialize the Form & wrap its contents
            Window = Tag(new Form()
            {
                ClientSize = new System.Drawing.Size(width, height),
                MaximumSize = Screen.PrimaryScreen.WorkingArea.Size,
                Text = title,
            });
            Window.Show();
            RegisterEventHandlers();

            // Initialize 3D rendering resources
            CreateDeviceResources();
            CreateConstantBuffers();
            CreateDepthStencilResources();
            CreateShaderAndTextureLibs();
            CreateRasterizerResources();
            SetRasterizerResources();

            // Initialize 2D rendering resources
            Factory2D = Tag(new Factory2D());
            FactoryDW = Tag(new FactoryDW());
            RenderTarget = Tag(new RenderTarget
            (
                Factory2D,
                Tag(BackBuffer.QueryInterface<Surface>()),
                new RenderTargetProperties(new PixelFormat(Format.R8G8B8A8_UNorm, SharpDX.Direct2D1.AlphaMode.Premultiplied))
            ));
            RenderTarget.TextAntialiasMode = TextAntialiasMode.Grayscale;
            RenderTargetView = Tag(new RenderTargetView(Device3D, BackBuffer));
            Context3D.OutputMerger.SetTargets(DepthStencilView, RenderTargetView);

            // Initialize the remaining window properties
            DebugPanel = new DebugPanel(this)
            {
                BackgroundColor = new Color4(0.5f),
                BorderColor = new Color4(0.5f, 0.5f, 0.5f, 1f),
                CornerRadius = 10f,
                Height = 100,
                Width = 300,
                X = 5,
                Y = 5,
            };
            Projection = Matrix.PerspectiveFovLH
            (
                Constants.HalfPi,
                (float)WorkingArea.Width / (float)WorkingArea.Height,
                0.01f,
                100f
            );
        }
コード例 #32
0
ファイル: DebugPanel.cs プロジェクト: nvareille/GameProjectII
 // Use this for initialization
 void Start()
 {
     _DebugPanel = this;
 }
コード例 #33
0
ファイル: DebugPanel.cs プロジェクト: amisiak7/jewels2
 static void TryToFindPanel()
 {
     DebugPanel panel;
     panel = FindObjectOfType<DebugPanel> ();
     if (!panel) {
         GameObject go = new GameObject();
         go.name = "DebugPanel";
         panel = go.AddComponent<DebugPanel>();
     }
     mMain = panel;
 }
コード例 #34
0
ファイル: DebugPanel.cs プロジェクト: msworks/theOceanHandy
 void Awake()
 {
     _instance = this;
 }