void Start()
 {
     smsBar     = pieCircle.GetComponent <SMSRadialProgressBar>();
     dataBar    = dataPieCircle.GetComponent <RadialProgressBar>();
     rewardsBar = rewardsPieCircle.GetComponent <RadialProgressBar>();
     helpAnim   = helpContent.GetComponent <Animator>();
 }
Esempio n. 2
0
        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            int    pingTimeout         = int.Parse(_storedData.getParameter("PingTimeout"));
            int    StartIP             = int.Parse(_storedData.getParameter("StartIP"));
            int    StopIP              = int.Parse(_storedData.getParameter("StopIP"));
            String BaseIP              = _storedData.getParameter("BaseIP");
            int    PingSequenceTimeout = int.Parse(_storedData.getParameter("PingSequenceTimeout"));

            Bitmap p1 = RadialProgressBar.drawRadialProgressBar(70, _radialProgressbar1, "Sending pings to network " + BaseIP + "" + StartIP + " to " + StopIP + " (" + pingTimeout + ", " + PingSequenceTimeout + ")");
            Bitmap p2 = RadialProgressBar.drawRadialProgressBar(70, _radialProgressbar2, "waiting for answers");

            e.Graphics.DrawImage(p1, new Point(50, 150));
            e.Graphics.DrawImage(p2, new Point(50, 250));
        }
Esempio n. 3
0
    void Start()
    {
        // Locate all the needed components from the UI
        _lanternRadialProgressBar = ui.GetComponentInChildren <RadialProgressBar>();
        _lightBulletText          = GameObject.FindWithTag("Light_Bullet_counter").GetComponent <TextMeshProUGUI>();

        _crosshairImage       = GameObject.FindWithTag("Crosshair").GetComponent <Image>();
        _absorbIndicatorImage = GameObject.FindWithTag("Absorb_indicator").GetComponent <Image>();

        _lanternRadialProgressBar.maxTime = lanternCooldownTime * 2;
        if (_lightBulletText != null)
        {
            _lightBulletText.text = "" + light;
        }
    }
Esempio n. 4
0
    public IEnumerator TestToPassIfFinishMenuNotDesplayedIfTimeStillRemaining()
    {
        LoadSceneByName("WaitingRoom");
        yield return(null);

        RadialProgressBar progressBarScript = GameObject.Find("RadialProgressBar").GetComponent <RadialProgressBar>();

        yield return(new WaitForSeconds(3));

        progressBarScript.setDecreaseBar(true);

        GameObject gameFinishMenu = GameObject.Find("LevelFinishedMenu");
        GameObject blurPanel      = gameFinishMenu.transform.Find("BlurPanel").gameObject;
        bool       blurPanelState = blurPanel.activeSelf;

        Assert.AreNotEqual(true, blurPanelState);
    }
Esempio n. 5
0
    public IEnumerator TimeGaugeUnitTestToPassIfProgressBarValueGoesTo0AndDisplaysFinishMenu()
    {
        LoadSceneByName("WaitingRoom");
        yield return(null);

        RadialProgressBar progressBarScript = GameObject.Find("RadialProgressBar").GetComponent <RadialProgressBar>();

        progressBarScript.setCurrentBarValue(10);
        yield return(new WaitForSeconds(2));

        progressBarScript.setDecreaseBar(true);

        GameObject gameFinishMenu = GameObject.Find("LevelFinishedMenu");
        GameObject blurPanel      = gameFinishMenu.transform.Find("BlurPanel").gameObject;

        if (blurPanel.activeSelf)
        {
            Assert.AreEqual(true, blurPanel.activeSelf);
        }
    }
Esempio n. 6
0
        private void Awake()
        {
            // Get all the instruction stuff and default to the first one
            _instruction      = transform.Find("Canvas/Instruction").gameObject;
            _instructionArrow = _instruction.transform.Find("Arrow").GetComponentInChildren <RectTransform>();
            _instructionNote  = _instruction.transform.Find("Note").GetComponentInChildren <RectTransform>();
            _instructionText  = _instruction.transform.Find("Text").GetComponentInChildren <Text>();

            ShowInstruction(INSTRUCTION.None);

            // Get the reset meter and related components
            _reset = transform.Find("Canvas/Reset").gameObject;

            ResetBar = _reset.GetComponentInChildren <RadialProgressBar>();
            _resetCG = _reset.GetComponent <CanvasGroup>();

            // Get the subtitle object and text component then turn it off for now
            _subtitle     = transform.Find("Canvas/Subtitle").gameObject;
            _subtitleText = _subtitle.transform.Find("Text").GetComponentInChildren <Text>();
            _subtitle.SetActive(false);
        }
Esempio n. 7
0
 private void Start()
 {
     dataBar = dataPieCircle.GetComponent <RadialProgressBar>();
 }
Esempio n. 8
0
 void Start()
 {
     positionCtrl = GetComponentInChildren <ListPositionCtrl>();
     bar          = pieCircle.GetComponent <RadialProgressBar>();
     dataBar      = pieCircle2.GetComponent <RadialProgressBar>();
 }
Esempio n. 9
0
 private void SetRadialProgressBar()
 {
     RadialProgressBar.SetMaxAmount(MaxValue);
     RadialProgressBar.CurrentAmount = 0f;
 }
 private void Start()
 {
     bodyAnim = bodyPanel.GetComponent <Animator>();
     fadeAnim = fadePanel1.GetComponent <Animator>();
     bar      = pieCircle.GetComponent <RadialProgressBar>();
 }
Esempio n. 11
0
 private void Start()
 {
     anim = GetComponentInChildren <Animator>();
     bar  = GetComponentInChildren <RadialProgressBar>();
 }
Esempio n. 12
0
 public override void Stop()
 {
     RadialProgressBar.ResetAmount();
     StopAllCoroutines();
 }