private void InitialiseAllStrings()
 {
     TitleWorkingLabel.Text        = Application.LocalizedString("Functionning");
     DescriptionWorkingLabel.Text  = Application.LocalizedString("ZoneTrackingExplanation");
     TitleTrackingLabel.Text       = Application.LocalizedString("DMTitleTracking");
     DescriptionTrackingLabel.Text = Application.LocalizedString("ZoneDescriptionTracking");
     TitlePowerSavingButton.SetTitle(Application.LocalizedString("DMTitlePowerSavingWithSpace"), UIControlState.Normal);
     DescriptionPowerSavingLabel.Text = Application.LocalizedString("DMDescriptionPowerSaving");
     ActivatePowerSavingLabel.Text    = Application.LocalizedString("DMActivatePowerSaving");
     UpdatePositionLabel.Text         = Application.LocalizedString("ZoneUpdatePosition");
     ActivateButton.SetTitle(Application.LocalizedString("ActivateZone"), UIControlState.Normal);
 }
Exemple #2
0
    private void Start()
    {
        //dialogueBox.SetActive(false);

        button = GetComponent <ActivateButton>();

        dialogueText.text = "";

        SetDialogue();

        if (numDialogue == 0)
        {
            StartDialogue();
        }
    }
 private void InitialiseAllStrings()
 {
     TitleWorkingLabel.Text       = Application.LocalizedString("Functionning");
     DescriptionWorkingLabel.Text = Application.LocalizedString("TrackingPositionExplanation");
     TitleTrackingLabel.Text      = Application.LocalizedString("TrackingParameterTitle");
     if (App.Locator.ModeTracking.TrackingSetting.RefreshTime < 30)
     {
         PowerSavingSwitch.Enabled = false;
         TitlePowerSavingButton.SetTitle(Application.LocalizedString("DMTitlePowerSavingWithSpace") + " (>=30 min)", UIControlState.Normal);
     }
     else
     {
         TitlePowerSavingButton.SetTitle(Application.LocalizedString("DMTitlePowerSavingWithSpace"), UIControlState.Normal);
     }
     DescriptionPowerSavingLabel.Text = Application.LocalizedString("DMDescriptionPowerSaving");
     ActivatePowerSavingLabel.Text    = Application.LocalizedString("DMActivatePowerSaving");
     UpdatePositionLabel.Text         = Application.LocalizedString("TrackingUpdatePosition");
     ActivateButton.SetTitle(Application.LocalizedString("ActivateTracking"), UIControlState.Normal);
 }
        void ReleaseDesignerOutlets()
        {
            if (ActivateButton != null)
            {
                ActivateButton.Dispose();
                ActivateButton = null;
            }

            if (ActivatePowerSavingLabel != null)
            {
                ActivatePowerSavingLabel.Dispose();
                ActivatePowerSavingLabel = null;
            }

            if (DescriptionPowerSavingLabel != null)
            {
                DescriptionPowerSavingLabel.Dispose();
                DescriptionPowerSavingLabel = null;
            }

            if (DescriptionWorkingLabel != null)
            {
                DescriptionWorkingLabel.Dispose();
                DescriptionWorkingLabel = null;
            }

            if (GoTutorialImage != null)
            {
                GoTutorialImage.Dispose();
                GoTutorialImage = null;
            }

            if (MinutesPickerView != null)
            {
                MinutesPickerView.Dispose();
                MinutesPickerView = null;
            }

            if (MyPickerView != null)
            {
                MyPickerView.Dispose();
                MyPickerView = null;
            }

            if (PickerViewButton != null)
            {
                PickerViewButton.Dispose();
                PickerViewButton = null;
            }

            if (PowerSavingImage != null)
            {
                PowerSavingImage.Dispose();
                PowerSavingImage = null;
            }

            if (PowerSavingSwitch != null)
            {
                PowerSavingSwitch.Dispose();
                PowerSavingSwitch = null;
            }

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

            if (TitlePowerSavingButton != null)
            {
                TitlePowerSavingButton.Dispose();
                TitlePowerSavingButton = null;
            }

            if (TitleTrackingLabel != null)
            {
                TitleTrackingLabel.Dispose();
                TitleTrackingLabel = null;
            }

            if (TitleWorkingLabel != null)
            {
                TitleWorkingLabel.Dispose();
                TitleWorkingLabel = null;
            }

            if (UpdatePositionLabel != null)
            {
                UpdatePositionLabel.Dispose();
                UpdatePositionLabel = null;
            }
        }
Exemple #5
0
 public ActivateInfo(RaycastHit hit, ActivateButton button)
 {
     this.hit    = hit;
     this.button = button;
 }