コード例 #1
0
ファイル: ActiveSkills.cs プロジェクト: oLaudix/IdleGame2.0
 public MoneyShot()
 {
     this.lvlreq         = 500;
     this.spacing        = 130;
     this.active_image   = new Image("Assets/Img/Gui/icon_transmute_active.png");
     this.inactive_image = new Image("Assets/Img/Gui/icon_transmute_inactive.png");
     AddGraphic(can_buy);
     can_buy.SetPosition(X - 1, Y - 1);
     AddGraphic(active_image);
     AddGraphic(inactive_image);
     SetPosition(1920 / 2 + 51 * 5, 1080 - 261 - 50);
     infoBackground.SetPosition(infoBackground.X - 51 * 5, infoBackground.Y);
     InfoText.SetPosition(InfoText.X - 51 * 5, InfoText.Y);
     skillName.SetPosition(skillName.X - 51 * 5, skillName.Y);
     this.name          = "Transmute";
     this.magnitude     = (5 * this.level) + 10;
     this.cost          = GetNextUpgradeCost(this.lvlreq, this.spacing);
     this.cooldown      = 0;
     this.TotalCooldown = 60 * 60 * 60;
     this.duration      = 30 * 60;
     scene.Add(this);
     skillName.String = this.name;
     CreateText(ref durationText, "test", 20, new Vector2(0, 0));
     durationText.Visible = true;
     durationText.CenterTextOrigin();
     durationText.SetPosition(25, 25);
 }
コード例 #2
0
ファイル: ActiveSkills.cs プロジェクト: oLaudix/IdleGame2.0
 public CriticalStrike()
 {
     this.lvlreq         = 200;
     this.spacing        = 140;
     this.active_image   = new Image("Assets/Img/Gui/icon_perfectaim_active.png");
     this.inactive_image = new Image("Assets/Img/Gui/icon_perfectaim_inactive.png");
     AddGraphic(can_buy);
     can_buy.SetPosition(X - 1, Y - 1);
     AddGraphic(active_image);
     AddGraphic(inactive_image);
     SetPosition(1920 / 2 + 102, 1080 - 261 - 50);
     infoBackground.SetPosition(infoBackground.X - 51 * 2, infoBackground.Y);
     InfoText.SetPosition(InfoText.X - 51 * 2, InfoText.Y);
     skillName.SetPosition(skillName.X - 51 * 2, skillName.Y);
     this.name          = "Perfect Aim";
     this.magnitude     = (3 * this.level) + 14;
     this.cost          = GetNextUpgradeCost(this.lvlreq, this.spacing);
     this.cooldown      = 0;
     this.TotalCooldown = 30 * 60 * 60;
     this.duration      = 30 * 60;
     scene.Add(this);
     skillName.String = this.name;
     CreateText(ref durationText, "test", 20, new Vector2(0, 0));
     durationText.Visible = true;
     durationText.CenterTextOrigin();
     durationText.SetPosition(25, 25);
 }
コード例 #3
0
    public void TrySave()
    {
        if (loadoutEditor.GetUnitCount() > 14)
        {
            InfoText.Show("Loadouts may only have 16 Units");
            return;
        }
        if (loadoutEditor.GetLeaderCount() < 1)
        {
            InfoText.Show("Loadouts must contain at least 1 Leader");
            return;
        }
        string loadoutName = loadoutNameInput.text;

        if (fileManager.LoadoutWithNameExistsInFolder(loadoutName, "DefaultLoadouts"))
        {
            InfoText.Show($"Can't use {loadoutName} as a name");
            return;
        }

        if (fileManager.LoadoutWithNameExistsInFolder(loadoutName, "Loadouts"))
        {
            Show();
        }
        else
        {
            loadoutEditor.Save();
        }
    }
コード例 #4
0
    // -----------------------------------------------------------------------------------
    // AddMessage
    // @Client
    // -----------------------------------------------------------------------------------
    public void AddMsg(InfoText info, bool show = true)
    {
        if (content.childCount >= keepHistory)
        {
            Destroy(content.GetChild(0).gameObject);
        }

        GameObject go = Instantiate(textPrefab);

        go.transform.SetParent(content.transform, false);
        go.GetComponent <Text>().text  = messagePrefix + info.content;
        go.GetComponent <Text>().color = textColors[info.color];

        AutoScroll();

        if (show)
        {
            if (displayTime > 0)
            {
                Invoke("FadeHide", displayTime);
                LeanTween.alpha(panel.GetComponent <RectTransform>(), 1.0f, 0f).setEase(LeanTweenType.easeInCirc);
            }

            panel.SetActive(true);
        }
    }
コード例 #5
0
    void Start()
    {
        its       = new InfoTextSpecifications("Canvas_Right", "Merih", "Merih_Asansör_hub1", "Kapı ve punch makinasının bağlı olduğu hub ile ilgili sensör bilgilerini içermektedir.", new Vector2(320f, 320f), new Vector3(-180f, 0, 0));
        its_child = new InfoTextSpecifications("MainMenu", "Canvas_Right", "fam", "fam", "Lorem ipsum dolor sit FAM FAM", new Vector2(100f, 100f), new Vector3(189f, 56f, 0));
        ms_right  = new MenuSpecifications("Canvas_Left", "MainMenu", "menunameee", new string[] { "Show Analysis", "Show Analysis 2" }, 2, new Vector2(200, 200), ffb2, new Vector3(250, 0, 0));

        IT = FindObjectOfType(typeof(InfoText)) as InfoText;
        fillDummyVar();
        MS       = new MenuSpecifications("Canvas_Right", menuName, bNames, noOfButtons, size, ffb, menuPosition);
        ms_child = new MenuSpecifications("Canvas_Left", "Canvas_Right", "SubMenu1", new string[] { "Graph Chart 1", "Bar Chart 2" }, 2, new Vector2(200, 200), ffb2, new Vector3(250, 0, 0));
        bcs      = new BarChartSpecifications(new Vector3(0, 0, 0), new Vector2(400, 400), "Month Breakdown", 48.77f, 23.77f, 13, 13, 13, true, "Canvas_Right", "Canvas_Left_Left", new string[] { "Jan", "Feb", "March" }, new float[] { 5f, 3f, 10f });
        bcs2     = new BarChartSpecifications(new Vector3(0, 0, 0), new Vector2(317, 317), "Region Breakdown", 38.77f, 33.77f, 16, 16, 16, true, "Canvas_Right", "Canvas_Left_Left", new string[] { "Jan", "Feb", "March" }, new float[] { 5f, 3f, 10f });
        gcs      = new GraphChartSpecifications(new Vector3(0, 0, 0), new Vector2(600, 400), "Merih kapı2 sıcaklık", 2f, 13, AxisFormat.Time, 1f, 12, 2.569, 11.19, "Canvas_Right", "Canvas_Left_Left");
        gcs1     = new GraphChartSpecifications(new Vector3(0, 0, 0), new Vector2(600, 400), "Merih kapı1 titreşim", 2f, 13, AxisFormat.Time, 1f, 12, 2.569, 11.19, "Canvas_Right", "Canvas_Left_Left");
        gcs2     = new GraphChartSpecifications(new Vector3(0, 0, 0), new Vector2(600, 400), "Merih punch1 sıcaklık", 2f, 13, AxisFormat.Time, 1f, 12, 2.569, 11.19, "Canvas_Right", "Canvas_Left_Left");
        gcs3     = new GraphChartSpecifications(new Vector3(0, 0, 0), new Vector2(600, 400), "Merih Kapı2 sıcaklık1", 2f, 13, AxisFormat.Time, 1f, 12, 2.569, 11.19, "Canvas_Right", "Canvas_Left_Left");
        Uicont   = FindObjectOfType(typeof(UIController)) as UIController;
        BC       = FindObjectOfType(typeof(BarChartClass)) as BarChartClass;
        SBM      = FindObjectOfType(typeof(ScrollBarMenu)) as ScrollBarMenu;
        LC       = FindObjectOfType(typeof(LineChart)) as LineChart;

        //   Uicont.CreateScrollBarMenu(MS);
        //
        OnVRTriggerPressed(new Vector3(0, 0, 0));
        //   SBM.CreateScrollBarMenu(MS);
        //  SBM.CreateScrollBarMenu(MS);
        GameObject.Find("Month Breakdown").GetComponent <Button>().onClick.Invoke();
    }
コード例 #6
0
    private void ApplySettings()
    {
        // Demo-specific stuff
        var demo = TactisDemo.Instance;

        if (demo != null)
        {
            InfoText textComp = GetComponent <InfoText>();
            if (textComp != null)
            {
                TactisDemo.Instance.infoText.text = textComp.text;
            }

            Animator infoAnim = TactisDemo.Instance.infoAnim;
            infoAnim.SetBool("show_intro", showIntroScreen);
            infoAnim.SetBool("end", showEndScreen);
            infoAnim.SetBool("show_pane", textComp != null);
        }

        // General
        if (touchEnabled)
        {
            GetComponentInParent <PhysicsInputManager>().EnableTouch();
        }
        else
        {
            GetComponentInParent <PhysicsInputManager>().DisableTouch();
        }
    }
コード例 #7
0
ファイル: Singleton.cs プロジェクト: Ileha/Rolling-Ball
        public Singleton()
        {
            Load();

            screen = Camera.main.ScreenToWorldPoint(new Vector2(Camera.main.pixelWidth, Camera.main.pixelHeight)) - Camera.main.ScreenToWorldPoint(new Vector2(0, 0));
            screen.Set(Mathf.Abs(screen.x), Mathf.Abs(screen.y));
            TopBorder    = Resources.Load <Border>("prefub/TopBorder");
            BottomBorder = Resources.Load <Border>("prefub/BottomBorder");
            barrier      = Resources.Load <SpriteRenderer>("prefub/triangle");

            Particles onEnd = Resources.Load <Particles>("prefub/OnStar");

            onEndEmit = new ObjectPool(() => UnityEngine.Object.Instantiate(onEnd));

            Particles onGood = Resources.Load <Particles>("prefub/OnGood");

            onGoodEmit = new ObjectPool(() => UnityEngine.Object.Instantiate(onGood));

            Pause = Resources.Load <Sprite>("images/pause");
            Play  = Resources.Load <Sprite>("images/play");

            RunInfo uiInformation = Resources.Load <RunInfo>("prefub/UI/RunInfo");

            UIRunInformation = new ObjectPool(() => UnityEngine.Object.Instantiate(uiInformation));

            InfoText info = Resources.Load <InfoText>("prefub/UI/Info");

            InfoTexts = new ObjectPool(() => UnityEngine.Object.Instantiate(info));
        }
コード例 #8
0
ファイル: GenerateEPC.cs プロジェクト: lhf552004/UPC2EPC
        private void createAndSaveToCSV(string filePath, string outputfileName, string EPC, int quantity, string print0, string print1, string print2, string print3)
        {
            string outputText = "EPC;Print1;Print2;Print3;Print4" + Environment.NewLine;
            string EPCFront   = EPC.Substring(0, 14);
            long   index      = Convert.ToInt64(EPC.Substring(14), 16);
            string indexStr   = "";

            for (int j = 0; j < quantity; j++)
            {
                indexStr = Convert.ToString(index, 16);
                indexStr = indexStr.PadLeft(10, '0');
                indexStr = indexStr.ToUpper();
                string newEPC = EPCFront + indexStr;
                if (!checkEPCValided(indexStr, true) || !checkEPCValided(newEPC, false))
                {
                    InfoText.AppendText("EPC length is not correct: " + newEPC + Environment.NewLine);
                    MessageBox.Show("EPC length is not correct.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                string newLine = newEPC + ";" + print0 + ";" + print1 + ";" + print2 + ";" + print3 + ";" + Environment.NewLine;
                index++;
                outputText += newLine;
            }
            writeToFile(filePath, outputText);
        }
コード例 #9
0
ファイル: Editor.cs プロジェクト: zeOxx/SideSouler
        public Editor(Viewport view, ContentManager content, int screenWidth, int screenHeight)
        {
            mode = Modes.View;

            currentLevel = new Level(new Vector2(100, 100), "");
            currentLevel.populateWithGrid(content);

            Width = 32 * 100;
            Height = 32 * 100;

            EditorCamera = new EditorCamera(view, Width, Height, 1.0f);

            Margin = 2;     // MAGIC NUMBERS YAY
            Layer = 2;

            initDialogBoxes(content, screenWidth, screenHeight);

            CursorPosition = Vector2.Zero;

            TileText = new InfoText(content, "Tilesheet", new Vector2(370, -315));  // again, MAGIC NUMBERS!

            SelectedTile = null;

            HelpDiag = false;
        }
コード例 #10
0
ファイル: MenuManager.cs プロジェクト: viccob/Farmlexia-Game
 public void newGameButtonPressed()
 {
     PlayButton.SetActive(true);
     newGameButton.SetActive(false);
     inputField.SetActive(true);
     InfoText.SetActive(false);
 }
コード例 #11
0
 public bool PrintIfInvalid()
 {
     if (!valid)
     {
         InfoText.Show(error);
     }
     return(valid);
 }
コード例 #12
0
    private void MovingYes()
    {
        GameObject it = GameObject.Find("InfoText");

        InfoText infot = it.GetComponent <InfoText>();

        infot.YesMoving();
    }
コード例 #13
0
    private void WaitingNo()
    {
        GameObject it = GameObject.Find("InfoText");

        InfoText infot = it.GetComponent <InfoText>();

        infot.NoWaiting();
    }
コード例 #14
0
    public static InfoText SpawnInfoText(Vector2 pos, string text, Vector2 offset = default(Vector2), InfoTextType type = InfoTextType.Plain)
    {
        InfoText inst = Instantiate(infoText, pos, Quaternion.identity).GetComponent <InfoText>();

        inst.text        = text;
        inst.addedOffset = offset;
        inst.type        = type;
        return(inst);
    }
コード例 #15
0
        public ScreenControl(Game game)
        {
            this.game = game;

            Chat    = new ChatBox(new CPos(0, 4096, 0));
            Message = new MessageBox(new CPos(0, 4096, 0));
            Screen  = new InfoScreen();
            Text    = new InfoText();
        }
コード例 #16
0
 private void SetText(string text)
 {
     this.InfoText.AppendText(text + "\n");
     if (InfoText.Lines.Length > 5000)
     {
         InfoText.Clear();
     }
     this.InfoText.ScrollToCaret();
 }
コード例 #17
0
ファイル: GenerateEPC.cs プロジェクト: lhf552004/UPC2EPC
        private string convertToEPC(string UPCCompanyPrefix, string ItemReferenceNumber, string serialNumber)
        {
            string EPC       = "";
            string EPCBin    = "";
            string headerBin = Convert.ToString(header, 2);

            headerBin = headerBin.PadLeft(8, '0');
            string filterBin = Convert.ToString(filter, 2);

            filterBin = filterBin.PadLeft(3, '0');
            string partitionBin = Convert.ToString(partition, 2);

            partitionBin = partitionBin.PadLeft(3, '0');
            EPCBin       = headerBin + filterBin + partitionBin;
            string GS1CompanyPrefix = Convert.ToString(int.Parse(UPCCompanyPrefix), 2);

            GS1CompanyPrefix = GS1CompanyPrefix.PadLeft(24, '0');
            //GS1CompanyPrefix = "0000" + GS1CompanyPrefix;
            InfoText.AppendText("GS1CompanyPrefix: " + GS1CompanyPrefix + Environment.NewLine);
            InfoText.AppendText("The length of GS1CompanyPrefix: " + GS1CompanyPrefix.Length + Environment.NewLine);
            EPCBin = EPCBin + GS1CompanyPrefix;

            string indicatorBin = Convert.ToString(indicator, 2);

            indicatorBin = indicatorBin.PadLeft(4, '0');

            string ItemReferenceNumberBin = Convert.ToString(int.Parse(ItemReferenceNumber), 2);

            ItemReferenceNumberBin = ItemReferenceNumberBin.PadLeft(16, '0');
            ItemReferenceNumberBin = indicatorBin + ItemReferenceNumberBin;
            InfoText.AppendText("ItemReferenceNumber: " + ItemReferenceNumber + Environment.NewLine);
            InfoText.AppendText("The length of ItemReferenceNumber: " + ItemReferenceNumber.Length + Environment.NewLine);

            EPCBin = EPCBin + ItemReferenceNumberBin;
            string serialNumberBin = Convert.ToString(int.Parse(serialNumber), 2);

            serialNumberBin = serialNumberBin.PadLeft(38, '0');
            EPCBin          = EPCBin + serialNumberBin;
            if (EPCBin.Length == 96)
            {
                int    theNum    = -1;
                int    index     = -1;
                string theNumBin = "";
                string theNumHex = "";
                for (int i = 0; i < 24; i++)
                {
                    index     = i * 4;
                    theNumBin = EPCBin.Substring(index, 4);
                    theNum    = Convert.ToInt32(theNumBin, 2);
                    theNumHex = Convert.ToString(theNum, 16);
                    EPC       = EPC + theNumHex;
                }
            }
            EPC = EPC.ToUpper();
            InfoText.AppendText("EPC: " + EPC + Environment.NewLine);
            return(EPC);
        }
コード例 #18
0
        public void ShowInfo(string s)
        {
            GameObject obj = PrefabUtils.CreateGameObjectToParent(InfoRoot.gameObject, infoPrefab);

            obj.SetActive(true);
            InfoText info = obj.GetComponent <InfoText>();

            info.SetText(s);
        }
コード例 #19
0
    public static InfoText SpawnInfoText(Transform parent, string text, Vector2 offset = default(Vector2), InfoTextType type = InfoTextType.Plain)
    {
        InfoText inst = Instantiate(infoText, parent.position, Quaternion.identity).GetComponent <InfoText>();

        inst.text        = text;
        inst.addedOffset = offset;
        inst.type        = type;
        inst.SetParent(parent); //cannot simply pass in parent to Instantiate, as it would follow the rotation as well
        return(inst);
    }
コード例 #20
0
ファイル: MenuManager.cs プロジェクト: viccob/Farmlexia-Game
    public void DeleteGameButton()
    {
        GameData.currentGame.DeleteSavedGame(); //Borra archivo de datos guardados.

        //Actualizamos visualizacion interfaz.
        PlayButton.SetActive(false);
        newGameButton.SetActive(true);
        inputField.SetActive(false);
        InfoText.SetActive(false);
    }
コード例 #21
0
ファイル: Sample.cs プロジェクト: lhf552004/UPC2EPC
 private void ConvertButton_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(UPCCompanyPrefix) && !string.IsNullOrEmpty(ItemReferenceNumber) && !string.IsNullOrEmpty(serialNumber))
     {
         EPCText.Text = convertToEPC();
     }
     else
     {
         InfoText.AppendText("UPC or referenceNumber is empty" + Environment.NewLine);
     }
 }
コード例 #22
0
ファイル: MetaPopup.cs プロジェクト: Swynfel/heirloom
 public void OpenInfo(InfoText info)
 {
     if (info == null)
     {
         GD.PrintErr("Info is empty");
         return;
     }
     Tabs.CurrentTab = 3;
     Tabs.GetNode <Visual.Tables.InfoTable>("InfoTable").SetInfoText(info);
     Open();
 }
コード例 #23
0
    public void SetTextToWaypointDeleted()
    {
        Text t = this.GetComponent <Text>();

        InfoText it = GameObject.Find("InfoText").GetComponent <InfoText>();

        if (it.currWaypoint == null)
        {
            t.text = "No Point Selected.";
        }
    }
コード例 #24
0
    public void displayInfo(string text)
    {
        Text newText = Instantiate(originalText);

        newText.text = text;
        newText.transform.SetParent(uiCanvas.transform);
        newText.rectTransform.anchoredPosition = new Vector2(0, 0);
        InfoText infoText = new InfoText(newText, infoTextSpeed);

        listInfoText.Add(infoText);
    }
コード例 #25
0
ファイル: HUD.cs プロジェクト: maxguillaume20/Darwin
    void Awake()
    {
        GameManager.Hud      = this;
        thisCanvas           = GetComponent <Canvas> ();
        mainButtons          = GetComponentsInChildren <MainButton> ();
        Infotext             = GetComponentInChildren <InfoText> ();
        EraText.text         = GameManager.HumanPlayer.Era.ToString();
        xCameraRotation      = Camera.main.transform.eulerAngles.x;
        speciesPopSpriteDick = new Dictionary <Species, Sprite> ();
        speciesPopSpriteDick.Add(Species.Bunnies, popSprites [0]);
        speciesPopSpriteDick.Add(Species.Deer, popSprites [1]);
        speciesPopSpriteDick.Add(Species.Sheep, popSprites [2]);
        speciesResourceSpriteDick = new Dictionary <Species, Dictionary <ResourceType, Sprite> >();
        for (int i = 0; i < GameManager.speciesArray.Length - 1; i++)
        {
            speciesResourceSpriteDick.Add(GameManager.speciesArray[i], new Dictionary <ResourceType, Sprite>());
            speciesResourceSpriteDick[GameManager.speciesArray[i]].Add(ResourceType.Gold, resSprites[0]);
            speciesResourceSpriteDick[GameManager.speciesArray[i]].Add(ResourceType.Wood, resSprites[1]);
            switch (GameManager.speciesArray[i])
            {
            case Species.Bunnies:
                speciesResourceSpriteDick[GameManager.speciesArray[i]].Add(ResourceType.Unique, resSprites[2]);
                break;

            case Species.Deer:
                speciesResourceSpriteDick[GameManager.speciesArray[i]].Add(ResourceType.Unique, resSprites[3]);
                break;

            case Species.Sheep:
                speciesResourceSpriteDick[GameManager.speciesArray[i]].Add(ResourceType.Unique, resSprites[4]);
                break;
            }
        }
        UniqueResSprite uniqueResSprite = GetComponentInChildren <UniqueResSprite> ();

        uniqueResSprite.GetComponent <Image>().sprite = speciesResourceSpriteDick[GameManager.HumanPlayer.species][ResourceType.Unique];
        PopImage popImage = GetComponentInChildren <PopImage> ();

        switch (GameManager.HumanPlayer.species)
        {
        case Species.Bunnies:
            popImage.GetComponent <Image>().sprite = popSprites[0];
            break;

        case Species.Deer:
            popImage.GetComponent <Image>().sprite = popSprites[1];
            break;

        case Species.Sheep:
            popImage.GetComponent <Image>().sprite = popSprites[2];
            break;
        }
        resDisplayer = GetComponentInChildren <ResourceDisplayer> ();
    }
コード例 #26
0
 private void Update()
 {
     if (infoTextQueue.Count > 0)
     {
         // Get new text only when current text is done being displayed, based on their timers
         if (!isDisplayingText)
         {
             InfoText infoText = infoTextQueue.Dequeue();
             StartCoroutine(DisplayAndWait(infoText));
         }
     }
 }
コード例 #27
0
    private void AddWaypointHouseKeeping(string waypoint)
    {
        // Disable Touches on AddWaypointButton.
        // Disable Touches on DeleteWaypointButton.
        // Switch CommandText.

        AddWaypointButtonScript abs = AddWaypointButton.GetComponent <AddWaypointButtonScript>();

        abs.DisableTap();
        AddWaypointButtonScript absText = AddText.GetComponent <AddWaypointButtonScript>();

        absText.DisableTap();

        DeleteWaypointButtonScript dwbs = DeleteWaypointButton.GetComponent <DeleteWaypointButtonScript>();

        dwbs.DisableTap();
        DeleteWaypointButtonScript dwbsText = DeleteText.GetComponent <DeleteWaypointButtonScript>();

        dwbsText.DisableTap();

        CommandTextScript cts = CommandText.GetComponent <CommandTextScript>();

        cts.SetTextToHeightCommand();

        // Graying out the AddwaypointButton b/c we're waiting for the height.

        ButtonColorHandler bch = AddWaypointButton.GetComponent <ButtonColorHandler>();

        bch.UpdateColorToGray();

        // Graying out the DeleteWaypointButton b/c we're waiting for the height.

        ButtonColorHandler bchd = DeleteWaypointButton.GetComponent <ButtonColorHandler>();

        bchd.UpdateColorToGray();

        // Switch ZSliders adding boolean to true.
        DetailBoxDragHelper dbdh = ZSlider.GetComponent <DetailBoxDragHelper>();

        dbdh.AddStateTrue();

        // Set CurrWaypoint of InfoText to the current waypoint because
        // an add action is considered a selection.

        InfoText it = InfoText.GetComponent <InfoText>();

        it.SetCurrWaypoint(waypoint);
        it.YesAdding();

        // Disable all waypoint tap function to prevent moves when waiting for height.
        DisableAllWaypointTapFunction();
    }
コード例 #28
0
ファイル: Server.cs プロジェクト: ugursoysal/Device
 public void SetInfoText(string text)
 {
     if (InfoText.InvokeRequired)
     {
         var d = new SafeCallDelegate(SetInfoText);
         InfoText.Invoke(d, new object[] { text });
     }
     else
     {
         InfoText.Text = text;
     }
     LastInfo = text;
 }
コード例 #29
0
 //Displays Information UI Box
 public void DisplayInfo(InfoText info)
 {
     if (!isActive)
     {
         timescale      = Time.timeScale;
         Time.timeScale = 0;
         isActive       = !isActive;
         MenuObject.SetActive(isActive);
         HeaderText.text  = info.Header;
         InfoTextBox.text = info._InfoText;
         ConfirmText.text = info.ConfirmText;
     }
 }
コード例 #30
0
        public override void _Ready()
        {
            InfoText found = InfoText.Find("index");

            if (found == null)
            {
                GD.Print("Null");
            }
            else
            {
                SetInfoText(found);
            }
        }
コード例 #31
0
ファイル: GenerateEPC.cs プロジェクト: lhf552004/UPC2EPC
        /// <summary>
        /// set the output path depending on the choice whether using default path
        /// </summary>
        private void setOutputFolder()
        {
            if (!IsUseDefaultSetCheckBox.Checked == true)
            {
                if (folderBrowserDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    outputFolderPathPrefix = folderBrowserDialog1.SelectedPath;
                    InfoText.AppendText("outputFolderPathPrefix: " + outputFolderPathPrefix + Environment.NewLine);
                }
            }


            OutputPathText.Text = outputFolderPathPrefix;
        }