Наследование: MonoBehaviour
Пример #1
0
    public void Update()
    {
        DateTime nowTime = System.DateTime.Now;

        subtractTime = nowTime.Subtract(lastDateTime);


        if (subtractTime.TotalSeconds < BoosterValues.BoosterTime[boosterNum] * 60)
        {
            UpdateTime();

            string costText = TextStrings.GetString("is_activate");

            if (!costText.Equals(cost.text))
            {
                cost.text = costText;
            }

            if (!boosterImage.sprite.Equals(activeSprite))
            {
                boosterImage.sprite = activeSprite;
                rawButton.DisableButton();
                steel.sprite = activeSteel;
            }
            isActive = true;
        }
        else
        {
            string timeText = BoosterValues.BoosterTime[boosterNum] + " " + TextStrings.GetString("minutes");

            if (!time.text.Equals(timeText))
            {
                time.text = timeText;
            }

            if (Bank.GetFreeBooster(boosterNum) > 0)
            {
                string textCost = TextStrings.GetString("free");
                if (!cost.text.Equals(textCost))
                {
                    cost.text = textCost;
                }
            }
            else
            {
                string textCost = "^ " + BoosterValues.BoosterCost[boosterNum];
                if (!cost.text.Equals(textCost))
                {
                    cost.text = textCost;
                }
            }

            if (!boosterImage.sprite.Equals(unActiveSprite))
            {
                boosterImage.sprite = unActiveSprite;
                rawButton.EnableButton();
                steel.sprite = unActiveSteel;
            }
        }
    }
Пример #2
0
 public void BuyBoosters()
 {
     if (isActive)
     {
         libraryMenu.windowWarning.Show(TextStrings.GetString("booster_is_active"));
     }
     else
     {
         if (Bank.GetFreeBooster(boosterNum) > 0)
         {
             lastDateTime = System.DateTime.Now;
             PreferencesSaver.SetBoosterActivateTime(boosterNum, lastDateTime);
             Bank.MinusFreeBooster(boosterNum, 1);
         }
         else
         {
             if (BoosterValues.BoosterCost[boosterNum] > Bank.GetMoney())
             {
                 libraryMenu.windowWarning.Show(TextStrings.GetString("no_money"));
             }
             else
             {
                 lastDateTime = System.DateTime.Now;
                 PreferencesSaver.SetBoosterActivateTime(boosterNum, lastDateTime);
                 Bank.MinusMoney(BoosterValues.BoosterCost[boosterNum]);
             }
         }
     }
 }
Пример #3
0
    protected override void OnClick()
    {
        CarParametres carParametres = libraryMenu.carChanger.GetCurrentCarParametres();

        if (carParametres.GetCost() > Bank.GetMoney())
        {
            libraryMenu.windowWarning.Show(TextStrings.GetString("no_money") + " " + carParametres.GetName());
        }
        else
        {
            Button buttonOk = libraryMenu.windowConfirmation.button1;
            buttonOk.onClick.AddListener(
                delegate
            {
                libraryMenu.windowConfirmation.Hide();

                Bank.MinusMoney(carParametres.GetCost());
                PreferencesSaver.OpenCar(carParametres.GetNumCar());

                libraryMenu.carChanger.ShowCar();
            }
                );
            libraryMenu.windowConfirmation.Show("Вы уверены, что хотите купить " + carParametres.GetName() + " за " + carParametres.GetCost() + "%");
        }
    }
Пример #4
0
        private void Initialize()
        {
            TextStrings.Add(0, "sıfır");
            TextStrings.Add(1, "bir");
            TextStrings.Add(2, "iki");
            TextStrings.Add(3, "üç");
            TextStrings.Add(4, "dört");
            TextStrings.Add(5, "beş");
            TextStrings.Add(6, "altı");
            TextStrings.Add(7, "yedi");
            TextStrings.Add(8, "sekiz");
            TextStrings.Add(9, "dokuz");
            TextStrings.Add(10, "on");
            TextStrings.Add(20, "yirmi");
            TextStrings.Add(30, "otuz");
            TextStrings.Add(40, "kırk");
            TextStrings.Add(50, "elli");
            TextStrings.Add(60, "altmış");
            TextStrings.Add(70, "yetmiş");
            TextStrings.Add(80, "seksen");
            TextStrings.Add(90, "doksan");
            TextStrings.Add(100, "yüz");

            Scales.Add(1000000000, "milyar");
            Scales.Add(1000000, "milyon");
            Scales.Add(1000, "bin");
        }
Пример #5
0
    // Use this for initialization
    void Start()
    {
        libraryMenu = GameObject.FindObjectOfType <LibraryMenu>();

        type = int.Parse(transform.parent.name);

        //   for(int i = 0; i < 6; i++)
        //        mainSprites[i] = Resources.Load<Sprite>("Images/GUI/Menu/car_powers/car_pow_"+(i+1));

        //     for (int i = 0; i < 4; i++)
        //         secondSprites[i] = Resources.Load<Sprite>("Images/GUI/Menu/car_updates/car_update_" + i);

        button.onClick.AddListener(
            delegate
        {
            Button buttonOk             = libraryMenu.windowConfirmation.button1;
            CarParametres carParametres = libraryMenu.carChanger.GetCurrentCarParametres();
            string tempStr = "";


            switch (type)
            {
            case 1: tempStr = TextStrings.GetString("2"); break;

            case 2: tempStr = TextStrings.GetString("3"); break;

            case 3: tempStr = TextStrings.GetString("4"); break;
            }

            int upgradeCost = carParametres.GetUpgradeCost(valSecond + 1);


            buttonOk.onClick.AddListener(
                delegate
            {
                libraryMenu.windowConfirmation.Hide();

                if (upgradeCost < Bank.GetMoney())
                {
                    Bank.MinusMoney(upgradeCost);
                    AddPower();
                }
                else
                {
                    libraryMenu.windowWarning.Show(TextStrings.GetString("1") + " " + tempStr);
                }
            }
                );


            libraryMenu.windowConfirmation.Show(TextStrings.GetString("5") + " " + tempStr + " " + TextStrings.GetString("6") + " ^" + upgradeCost + ". " + TextStrings.GetString("7") + "?");
        }
            );
    }
        private void Initialize()
        {
            TextStrings.Add(0, "Нуль");
            TextStrings.Add(1, "Одна");
            TextStrings.Add(2, "Дві");
            TextStrings.Add(3, "Три");
            TextStrings.Add(4, "Чотири");
            TextStrings.Add(5, "П'ять");
            TextStrings.Add(6, "Шість");
            TextStrings.Add(7, "Сім");
            TextStrings.Add(8, "Вісім");
            TextStrings.Add(9, "Дев'ять");
            TextStrings.Add(10, "Десять");
            TextStrings.Add(11, "Одинадцять");
            TextStrings.Add(12, "Дванадцять");
            TextStrings.Add(13, "Тринадцять");
            TextStrings.Add(14, "Чотирнадцять");
            TextStrings.Add(15, "П'ятнадцять");
            TextStrings.Add(16, "Шістнадцять");
            TextStrings.Add(17, "Сімнадцять");
            TextStrings.Add(18, "Вісімнадцять");
            TextStrings.Add(19, "Дев'ятнадцять");
            TextStrings.Add(20, "Двадцять");
            TextStrings.Add(30, "Тридцять");
            TextStrings.Add(40, "Сорок");
            TextStrings.Add(50, "П'ятдесят");
            TextStrings.Add(60, "Шістдесят");
            TextStrings.Add(70, "Сімдесят");
            TextStrings.Add(80, "Вісімдесят");
            TextStrings.Add(90, "Дев'яносто");
            TextStrings.Add(100, "Сто");
            TextStrings.Add(200, "Двісті");
            TextStrings.Add(300, "Триста");
            TextStrings.Add(400, "Чотириста");
            TextStrings.Add(500, "П'ятсот");
            TextStrings.Add(600, "Шістсот");
            TextStrings.Add(700, "Сімсот");
            TextStrings.Add(800, "Вісімсот");
            TextStrings.Add(900, "Дев'ятсот");

            AdditionalStrings.Add(1, "Один");
            AdditionalStrings.Add(2, "Два");
            AdditionalStrings.Add(1000, "тисяча");
            AdditionalStrings.Add(1000000, "мільйон");
            AdditionalStrings.Add(1000000000, "мільярд");

            Scales.Add(1000000000, "мільярдів");
            Scales.Add(1000000, "мільйонів");
            Scales.Add(1000, "тисяч");

            AdditionalScales.Add(1000000000, "мільярди");
            AdditionalScales.Add(1000000, "мільйони");
            AdditionalScales.Add(1000, "тисячі");
        }
Пример #7
0
 protected void SetTextStrings(IEnumerable <string> textStrings)
 {
     if (TextStrings.Any())
     {
         TextStrings.Clear();
     }
     foreach (var b in textStrings)
     {
         TextStrings.Add(b);
     }
 }
        private void Initialize()
        {
            TextStrings.Add(0, "ноль");
            TextStrings.Add(1, "один");
            TextStrings.Add(2, "два");
            TextStrings.Add(3, "три");
            TextStrings.Add(4, "четыре");
            TextStrings.Add(5, "пять");
            TextStrings.Add(6, "шесть");
            TextStrings.Add(7, "семь");
            TextStrings.Add(8, "восемь");
            TextStrings.Add(9, "девять");
            TextStrings.Add(10, "десять");
            TextStrings.Add(11, "одиннадцать");
            TextStrings.Add(12, "двенадцать");
            TextStrings.Add(13, "тринадцать");
            TextStrings.Add(14, "четырнадцать");
            TextStrings.Add(15, "пятнадцать");
            TextStrings.Add(16, "шестнадцать");
            TextStrings.Add(17, "семнадцать");
            TextStrings.Add(18, "восемнадцать");
            TextStrings.Add(19, "девятнадцать");
            TextStrings.Add(20, "двадцать");
            TextStrings.Add(30, "тридцать");
            TextStrings.Add(40, "сорок");
            TextStrings.Add(50, "пятьдесят");
            TextStrings.Add(60, "шестьдесят");
            TextStrings.Add(70, "семьдесят");
            TextStrings.Add(80, "восемьдесят");
            TextStrings.Add(90, "девяносто");
            TextStrings.Add(100, "сто");
            TextStrings.Add(200, "двести");
            TextStrings.Add(300, "триста");
            TextStrings.Add(400, "четыреста");
            TextStrings.Add(500, "пятьсот");
            TextStrings.Add(600, "шестьсот");
            TextStrings.Add(700, "семьсот");
            TextStrings.Add(800, "восемьсот");
            TextStrings.Add(900, "девятьсот");

            AdditionalStrings.Add(1, "одна");
            AdditionalStrings.Add(2, "две");
            AdditionalStrings.Add(1000, "тысяча");
            AdditionalStrings.Add(2000, "тысячи");
            AdditionalStrings.Add(1000000, "миллион");
            AdditionalStrings.Add(2000000, "миллиона");
            AdditionalStrings.Add(1000000000, "миллиард");
            AdditionalStrings.Add(2000000000, "миллиарда");

            Scales.Add(1000000000, "миллиардов");
            Scales.Add(1000000, "миллионов");
            Scales.Add(1000, "тысяч");
        }
        private void Initialize()
        {
            TextStrings.Add(0, "cero");
            TextStrings.Add(1, "uno");
            TextStrings.Add(2, "dos");
            TextStrings.Add(3, "tres");
            TextStrings.Add(4, "cuatro");
            TextStrings.Add(5, "cinco");
            TextStrings.Add(6, "seis");
            TextStrings.Add(7, "siete");
            TextStrings.Add(8, "ocho");
            TextStrings.Add(9, "nueve");
            TextStrings.Add(10, "diez");
            TextStrings.Add(11, "once");
            TextStrings.Add(12, "doce");
            TextStrings.Add(13, "trece");
            TextStrings.Add(14, "catorce");
            TextStrings.Add(15, "quince");
            TextStrings.Add(16, "dieciséis");
            TextStrings.Add(17, "diecisiete");
            TextStrings.Add(18, "dieciocho");
            TextStrings.Add(19, "diecinueve");
            TextStrings.Add(20, "veinte");
            TextStrings.Add(30, "treinta");
            TextStrings.Add(40, "cuarenta");
            TextStrings.Add(50, "cincuenta");
            TextStrings.Add(60, "sesenta");
            TextStrings.Add(70, "setenta");
            TextStrings.Add(80, "ochenta");
            TextStrings.Add(90, "noventa");
            TextStrings.Add(100, "cien");
            TextStrings.Add(200, "doscientos");
            TextStrings.Add(300, "trescientos");
            TextStrings.Add(400, "cuatrocientos");
            TextStrings.Add(500, "quinientos");
            TextStrings.Add(600, "seiscientos");
            TextStrings.Add(700, "setecientos");
            TextStrings.Add(800, "ochocientos");
            TextStrings.Add(900, "novecientos");

            AdditionalStrings.Add(1, "un");
            AdditionalStrings.Add(1000000, "milones");

            Scales.Add(1000000000, "mil millones");
            Scales.Add(1000000, "millón");
            Scales.Add(1000, "mil");
        }
Пример #10
0
    void SetDescription(int val1)
    {
        int padej = Padej.GetPadej(val1);

        switch (gift.type)
        {
        case Gift.GiftType.Money: description.text = "+" + val1 + " " + TextStrings.GetString("valuta");  break;

        case Gift.GiftType.Booster1: description.text = "+" + val1 + " " + TextStrings.GetString("tuning_set_" + padej); break;

        case Gift.GiftType.Booster2: description.text = "+" + val1 + " " + TextStrings.GetString("full_tank_" + padej);  break;

        case Gift.GiftType.Booster3: description.text = "+" + val1 + " " + TextStrings.GetString("additional_rates_" + padej); break;

        case Gift.GiftType.Bonus: description.text = "+" + val1 + " " + TextStrings.GetString("bonus_" + padej); break;
        }
    }
Пример #11
0
 void Awake()
 {
     m_Colors = Colors;
     m_Game = Game;
     m_Music = Music;
     m_Particles = Particles;
     m_Prefabs = Prefabs;
     m_Sprites = Sprites;
     m_Score = Score;
     m_SoundFX = SoundFX;
     m_Timer = Timer;
     if (!MainMenu)
         m_Camera = Camera;
     m_Strings = TextStrings;
     m_Input = InputHandler;
     if (MainMenu)
         m_interMain = MainMenu;
     else if(HUD)
         m_interGame = HUD;
     else if (CreateMode)
         m_interCreate = CreateMode;
 }
Пример #12
0
        private void Initialize()
        {
            TextStrings.Add(0, "zéro");
            TextStrings.Add(1, "un");
            TextStrings.Add(2, "deux");
            TextStrings.Add(3, "trois");
            TextStrings.Add(4, "quatre");
            TextStrings.Add(5, "cinq");
            TextStrings.Add(6, "six");
            TextStrings.Add(7, "sept");
            TextStrings.Add(8, "huit");
            TextStrings.Add(9, "neuf");
            TextStrings.Add(10, "dix");
            TextStrings.Add(11, "onze");
            TextStrings.Add(12, "douze");
            TextStrings.Add(13, "treize");
            TextStrings.Add(14, "quatorze");
            TextStrings.Add(15, "quinze");
            TextStrings.Add(16, "seize");
            TextStrings.Add(17, "dix-sept");
            TextStrings.Add(18, "dix-huit");
            TextStrings.Add(19, "dix-neuf");
            TextStrings.Add(20, "vingt");
            TextStrings.Add(30, "trente");
            TextStrings.Add(40, "quarante");
            TextStrings.Add(50, "cinquante ");
            TextStrings.Add(60, "soixante");
            TextStrings.Add(80, "quatre-vingt");
            TextStrings.Add(100, "cent");

            AdditionalStrings.Add(1, "et un");
            AdditionalStrings.Add(11, "et onze");
            AdditionalStrings.Add(80, "quatre-vingts");

            Scales.Add(1000000000, "milliard");
            Scales.Add(1000000, "million");
            Scales.Add(1000, "mille");
        }
Пример #13
0
        private void Initialize()
        {
            TextStrings.Add(0, "zero");
            TextStrings.Add(1, "one");
            TextStrings.Add(2, "two");
            TextStrings.Add(3, "three");
            TextStrings.Add(4, "four");
            TextStrings.Add(5, "five");
            TextStrings.Add(6, "six");
            TextStrings.Add(7, "seven");
            TextStrings.Add(8, "eight");
            TextStrings.Add(9, "nine");
            TextStrings.Add(10, "ten");
            TextStrings.Add(11, "eleven");
            TextStrings.Add(12, "twelve");
            TextStrings.Add(13, "thirteen");
            TextStrings.Add(14, "fourteen");
            TextStrings.Add(15, "fifteen");
            TextStrings.Add(16, "sixteen");
            TextStrings.Add(17, "seventeen");
            TextStrings.Add(18, "eighteen");
            TextStrings.Add(19, "nineteen");
            TextStrings.Add(20, "twenty");
            TextStrings.Add(30, "thirty");
            TextStrings.Add(40, "forty");
            TextStrings.Add(50, "fifty");
            TextStrings.Add(60, "sixty");
            TextStrings.Add(70, "seventy");
            TextStrings.Add(80, "eighty");
            TextStrings.Add(90, "ninety");
            TextStrings.Add(100, "hundred");

            Scales.Add(1000000000, "billion");
            Scales.Add(1000000, "million");
            Scales.Add(1000, "thousand");
        }
Пример #14
0
 public static void TextStrings_English()
 {
     TextStrings.Add("version", "Version");
     TextStrings.Add("binary_prefixes", "KMGTPEZY");
     TextStrings.Add("byte_short", "b");
     TextStrings.Add("bytes_per_second", "B/s");
     TextStrings.Add("outdated", "Outdated");
     TextStrings.Add("enabled", "Enabled");
     TextStrings.Add("disabled", "Disabled");
     TextStrings.Add("button_yes", "Yes");
     TextStrings.Add("button_no", "No");
     TextStrings.Add("button_download", "Download");
     TextStrings.Add("button_downloading", "Downloading");
     TextStrings.Add("button_running", "Running");
     TextStrings.Add("button_update", "Update");
     TextStrings.Add("button_pause", "Pause");
     TextStrings.Add("button_launch", "Launch");
     TextStrings.Add("button_options", "Options");
     TextStrings.Add("button_resume", "Resume");
     TextStrings.Add("button_ok", "OK");
     TextStrings.Add("button_confirm", "Confirm");
     TextStrings.Add("button_cancel", "Cancel");
     TextStrings.Add("button_github", "Go to GitHub repository");
     TextStrings.Add("button_generate", "Generate");
     TextStrings.Add("label_server", "Server");
     TextStrings.Add("label_mirror", "Mirror");
     TextStrings.Add("label_pre_install", "Game Pre-Installation");
     TextStrings.Add("label_get_now", "Get Now");
     TextStrings.Add("label_verifying", "Verifying");
     TextStrings.Add("label_paused", "Paused");
     TextStrings.Add("label_done", "Done");
     TextStrings.Add("label_retry", "Retry");
     TextStrings.Add("label_downloaded_1", "Downloaded {0}%");
     TextStrings.Add("label_downloaded_2", "Download resources:");
     TextStrings.Add("label_merged", "Merged {0}%");
     TextStrings.Add("label_eta", "Time remaining:");
     TextStrings.Add("label_download_speed", "Download speed:");
     TextStrings.Add("label_merge_speed", "Merge speed:");
     TextStrings.Add("introbox_title", "Welcome to Better HI3 Launcher!");
     TextStrings.Add("introbox_msg", "Seems like this is your first time using the launcher. I'm glad you've decided to give it a try so in case you'd like to give feedback don't hesitate to do so by clicking \"Options\" button and selecting \"Send feedback\".\nIf you already have the game installed just press the \"Download\" button and point to where your game is. The launcher will detect your game version automatically and you won't have to download the game again.");
     TextStrings.Add("repairbox_msg", "This will check every game file and attempt to repair if any is broken. It can take a while.\nContinue?\nAvailable mirrors: {0}.\nCurrent mirror maintainer is {1}.");
     TextStrings.Add("fpsinputbox_title", "Enter max FPS cap");
     TextStrings.Add("fpsinputbox_label_combatfps", "FPS in-game");
     TextStrings.Add("fpsinputbox_label_menufps", "FPS in menu");
     TextStrings.Add("resolutioninputbox_title", "Enter custom resolution");
     TextStrings.Add("resolutioninputbox_label_width", "Width");
     TextStrings.Add("resolutioninputbox_label_height", "Height");
     TextStrings.Add("resolutioninputbox_label_fullscreen", "Fullscreen");
     TextStrings.Add("changelogbox_title", "Changelog");
     TextStrings.Add("changelogbox_1_msg", "Better HI3 Launcher has just become even better. Here's what happened:");
     TextStrings.Add("changelogbox_2_msg", "Loading changelog...");
     TextStrings.Add("changelogbox_3_msg", "Failed to load the changelog.");
     TextStrings.Add("aboutbox_msg", "Well it is much more advanced, isn't it? :^)\nThis project was made with hope for many captains to have a better experience with the game.\nIt is not affiliated with miHoYo and is completely open source.\nAny feedback is greatly appreciated.\nSpecial thanks to these GitHub contributors:\nSinsOfSeven - Custom resolution contribution\nProxy-E23 - Spanish language translation\nSpookyKisuy - Portuguese (Brazil) language translation\nbulawin1, Vrontis - German language translation\nKorewaLidesu - Vietnamese language translation\nSm1leAway - Serbian language translation\nVoRTeXStarz - Thai language translation\nTrilip - French language translation\nfabio-silva-pt - Portuguese (Portugal) language translation\nneon-nyan - Indonesian language translation, parallel download feature\nRinnosuke93 - Italian language translation\nMartinial - Czech language translation\nKLXLjun - Chinese (Simplified) translation");
     TextStrings.Add("announcementbox_do_not_show", "Do not show me this next time");
     TextStrings.Add("contextmenu_download_cache", "Download cache");
     TextStrings.Add("contextmenu_fix_subtitles", "Fix subtitles");
     TextStrings.Add("contextmenu_repair", "Repair game files");
     TextStrings.Add("contextmenu_move", "Move game files");
     TextStrings.Add("contextmenu_uninstall", "Uninstall game");
     TextStrings.Add("contextmenu_game_settings", "Manage game settings");
     TextStrings.Add("contextmenu_custom_fps", "Set custom FPS cap");
     TextStrings.Add("contextmenu_custom_resolution", "Set custom resolution");
     TextStrings.Add("contextmenu_custom_launch_options", "Set custom launch options");
     TextStrings.Add("contextmenu_reset_download_type", "Reset download type");
     TextStrings.Add("contextmenu_web_profile", "Go to web profile");
     TextStrings.Add("contextmenu_feedback", "Send feedback");
     TextStrings.Add("contextmenu_changelog", "Show changelog");
     TextStrings.Add("contextmenu_custom_background", "Set custom background");
     TextStrings.Add("contextmenu_show_log", "Show log");
     TextStrings.Add("contextmenu_sounds", "Sounds");
     TextStrings.Add("contextmenu_language", "Language");
     TextStrings.Add("contextmenu_language_system", "System Default");
     TextStrings.Add("contextmenu_language_chinese_simplified", "Chinese (Simplified)");
     TextStrings.Add("contextmenu_language_czech", "Czech");
     TextStrings.Add("contextmenu_language_english", "English");
     TextStrings.Add("contextmenu_language_french", "French");
     TextStrings.Add("contextmenu_language_german", "German");
     TextStrings.Add("contextmenu_language_indonesian", "Indonesian");
     TextStrings.Add("contextmenu_language_italian", "Italian");
     TextStrings.Add("contextmenu_language_portuguese_brazil", "Portuguese (Brazil)");
     TextStrings.Add("contextmenu_language_portuguese_portugal", "Portuguese (Portugal)");
     TextStrings.Add("contextmenu_language_russian", "Russian");
     TextStrings.Add("contextmenu_language_serbian", "Serbian");
     TextStrings.Add("contextmenu_language_spanish", "Spanish");
     TextStrings.Add("contextmenu_language_thai", "Thai");
     TextStrings.Add("contextmenu_language_vietnamese", "Vietnamese");
     TextStrings.Add("contextmenu_language_contribute", "Want to help?");
     TextStrings.Add("contextmenu_about", "About");
     TextStrings.Add("progresstext_checking_update", "Checking for update...");
     TextStrings.Add("progresstext_cleaning_up", "Cleaning up...");
     TextStrings.Add("progresstext_downloaded", "Downloaded {0}/{1} ({2})");
     TextStrings.Add("progresstext_downloading_file", "Downloading file {0}/{1}...");
     TextStrings.Add("progresstext_error", "Mistakes were made :^(");
     TextStrings.Add("progresstext_eta", "Estimated time: {0}");
     TextStrings.Add("progresstext_fetching_hashes", "Fetching file hashes...");
     TextStrings.Add("progresstext_generating_hash", "Generating hash for file {0}/{1}...");
     TextStrings.Add("progresstext_initiating_download", "Initiating download...");
     TextStrings.Add("progresstext_mirror_connect", "Connecting to mirror...");
     TextStrings.Add("progresstext_moving_files", "Moving game files...");
     TextStrings.Add("progresstext_uninstalling", "Uninstalling the game...");
     TextStrings.Add("progresstext_unpacking_1", "Unpacking game files...");
     TextStrings.Add("progresstext_unpacking_2", "Unpacking game file {0}/{1} ({2}%)...");
     TextStrings.Add("progresstext_updating_launcher", "Updating launcher...");
     TextStrings.Add("progresstext_verifying_file", "Verifying game file {0}/{1}...");
     TextStrings.Add("progresstext_verifying_files", "Verifying game files...");
     TextStrings.Add("progresstext_zipping", "Adding file {0}/{1} to ZIP archive...");
     TextStrings.Add("msgbox_abort_1_msg", "Are you sure you want to cancel the download and close the launcher?");
     TextStrings.Add("msgbox_abort_2_msg", "Are you sure you want to cancel the download?");
     TextStrings.Add("msgbox_abort_3_msg", "Progress will not be saved.");
     TextStrings.Add("msgbox_abort_4_msg", "Progress will be saved.");
     TextStrings.Add("msgbox_abort_title", "Abort");
     TextStrings.Add("msgbox_conn_bp_error_msg", "Cannot connect to Bp Network:");
     TextStrings.Add("msgbox_conn_mihoyo_error_msg", "Cannot connect to HoYoverse servers:");
     TextStrings.Add("msgbox_custom_background_1_msg", "You can select a file to be used as a background.\nIt can be an image or a video.\nRecommended resolution is {0} by {1} pixels.\nContinue?");
     TextStrings.Add("msgbox_custom_background_2_msg", "Select what would you like to do with the background.");
     TextStrings.Add("msgbox_custom_background_3_msg", "Selected file does not have the recommended resolution. You may still use it, but it will be stretched to the window size.\nContinue?");
     TextStrings.Add("msgbox_custom_background_4_msg", "Please select another file.");
     TextStrings.Add("msgbox_custom_background_5_msg", "Selected file is too large.\nYou can use files up to {0} in size.");
     TextStrings.Add("msgbox_custom_background_6_msg", "There is not enough free space on your system drive to use the file.");
     TextStrings.Add("msgbox_custom_background_7_msg", "Selected file is not in a supported format.");
     TextStrings.Add("msgbox_custom_background_8_msg", "Failed to load selected file.");
     TextStrings.Add("msgbox_custom_background_edit", "Change it");
     TextStrings.Add("msgbox_custom_background_delete", "Reset to official");
     TextStrings.Add("msgbox_custom_fps_1_msg", "Values must not be empty.");
     TextStrings.Add("msgbox_custom_fps_2_msg", "Values must not be zero or negative.");
     TextStrings.Add("msgbox_custom_fps_3_msg", "Values lower than 30 are not recommended. Continue?");
     TextStrings.Add("msgbox_custom_fps_4_msg", "In-game and menu FPS cap successfully set to {0} and {1} respectively.");
     TextStrings.Add("msgbox_custom_resolution_1_msg", "Height being greater than width is not recommended.\nContinue?");
     TextStrings.Add("msgbox_custom_resolution_2_msg", "Resolution successfully set to {0}x{1} with fullscreen {2}.");
     TextStrings.Add("msgbox_custom_launch_options_msg", "Advanced users may enter custom launch options here.\nNote: they are applied independently per server.");
     TextStrings.Add("msgbox_download_cache_1_msg", "Full cache is about to be downloaded.\nDownload size: {0}\nUsing mirror: {1}.\nCache last updated: {2}.\nCurrent mirror maintainer is {3}.");
     TextStrings.Add("msgbox_download_cache_2_msg", "The cache is outdated either partially or fully.\nCheck the last update time for the exact date.\nDo you still want to continue?");
     TextStrings.Add("msgbox_download_cache_3_msg", "The entire game cache will be checked and can be downloaded if needed. It can take a while.\nHi3Mirror is a project courtesy of {0}.\nContinue?");
     TextStrings.Add("msgbox_download_type_1_msg", "This will reset game's resource download type and allow you to reselect which assets to download.\nContinue?");
     TextStrings.Add("msgbox_download_type_2_msg", "Download type has been reset.");
     TextStrings.Add("msgbox_download_type_3_msg", "Download type has already been reset.");
     TextStrings.Add("msgbox_extract_skip_msg", "Unpacking finished, but some files failed to be unpacked. You might want to unpack them manually.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_extract_skip_title", "File skip notice");
     TextStrings.Add("msgbox_feature_not_available_msg", "This feature is not available for selected server.");
     TextStrings.Add("msgbox_fix_subtitles_1_msg", "This will attempt to fix CG subtitles. Make sure you have already downloaded all CGs in the game.\nContinue?");
     TextStrings.Add("msgbox_fix_subtitles_2_msg", "Unpacking subtitle file {0}/{1}...");
     TextStrings.Add("msgbox_fix_subtitles_3_msg", "Checking subtitle file {0}/{1}...");
     TextStrings.Add("msgbox_fix_subtitles_4_msg", "Unpacked subtitles for {0} CGs.");
     TextStrings.Add("msgbox_fix_subtitles_5_msg", "Fixed {0} subtitle files.");
     TextStrings.Add("msgbox_fix_subtitles_6_msg", "No subtitle files were fixed. They are either not downloaded yet or already fixed.");
     TextStrings.Add("msgbox_game_download_error_msg", "An error occurred while downloading game files.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_game_download_error_title", "Error downloading game files");
     TextStrings.Add("msgbox_game_download_mirror_error_msg", "An error occurred while downloading from the mirror.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_game_download_mirror_old_msg", "It seems like the game version on miHoYo servers is newer than the one on the mirror.\nThere is no reason to download an outdated version, ask the mirror maintainer to upload a new version.");
     TextStrings.Add("msgbox_game_download_paused_msg", "The game is not downloaded entirely yet. Changing server or mirror will reset the download progress.\nContinue?");
     TextStrings.Add("msgbox_generic_error_msg", "An error occurred.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_generic_error_title", "Error");
     TextStrings.Add("msgbox_install_dir_error_msg", "An error occurred while selecting game installation directory.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_install_dir_error_title", "Invalid directory");
     TextStrings.Add("msgbox_install_error_msg", "An error occurred while installing game files.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_install_error_title", "Installation error");
     TextStrings.Add("msgbox_install_existing_dir_msg", "The game appears to have already been installed to:\n{0}\nUse this directory?");
     TextStrings.Add("msgbox_install_existing_no_local_version_msg", "Local version could not be determined.\nIs your game updated already? Please choose wisely!\nSelecting \"Yes\" will make you be able to launch the game.\nSelecting \"No\" will make you have to download the game.");
     TextStrings.Add("msgbox_install_little_space_msg", "There is potentially not enough free space on selected device, it is recommended to free up some space or installation may result in failure.\nContinue?");
     TextStrings.Add("msgbox_install_1_msg", "Select where would you like to install the game.");
     TextStrings.Add("msgbox_install_2_msg", "Download size: {0}.");
     TextStrings.Add("msgbox_install_3_msg", "Installation size: {0}.");
     TextStrings.Add("msgbox_install_4_msg", "The game is going to be installed to:\n{0}\nContinue?");
     TextStrings.Add("msgbox_install_title", "Install");
     TextStrings.Add("msgbox_install_wrong_drive_type_msg", "Cannot install on selected device.");
     TextStrings.Add("msgbox_language_msg", "Language is going to be changed to {0} and launcher will be restarted.\nContinue?");
     TextStrings.Add("msgbox_launcher_download_error_msg", "An error occurred while downloading the launcher.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_mirror_error_msg", "There is an error with the mirror. Ask the mirror maintainer to get to the bottom of this.\nMessage: {0}");
     TextStrings.Add("msgbox_mirror_info_msg", "Use this mirror only if you cannot download the game via official miHoYo servers.\nPlease note that it is updated manually.\nContinue?");
     TextStrings.Add("msgbox_move_1_msg", "Select where would you like to move the game.");
     TextStrings.Add("msgbox_move_2_msg", "The game is going to be moved to:\n{0}\nContinue?");
     TextStrings.Add("msgbox_move_3_msg", "Cannot move the game inside the current game directory.");
     TextStrings.Add("msgbox_move_4_msg", "Cannot move the game while the launcher is inside game directory. Move launcher outside the directory and try again.");
     TextStrings.Add("msgbox_move_error_title", "Move error");
     TextStrings.Add("msgbox_move_little_space_msg", "There is potentially not enough free space on selected device, it is recommended to free up some space or move operation may result in failure.\nContinue?");
     TextStrings.Add("msgbox_move_title", "Move");
     TextStrings.Add("msgbox_move_wrong_drive_type_msg", "Cannot move to selected device.");
     TextStrings.Add("msgbox_net_error_msg", "An error occurred while connecting to server:\n{0}");
     TextStrings.Add("msgbox_net_error_title", "Network error");
     TextStrings.Add("msgbox_net_version_old_msg", "This launcher requires .NET Framework 4.6.1 or newer to be installed.");
     TextStrings.Add("msgbox_no_game_dir_msg", "Game directory cannot be found.\nTry reinstalling the game.");
     TextStrings.Add("msgbox_no_game_dir_title", "No game directory");
     TextStrings.Add("msgbox_no_game_exe_msg", "Game executable cannot be found.\nWould you like to reset the installation information?");
     TextStrings.Add("msgbox_no_game_exe_title", "No game executable");
     TextStrings.Add("msgbox_no_video_dir_msg", "Video directory cannot be found.\nTry reinstalling the game.");
     TextStrings.Add("msgbox_notice_title", "Notice");
     TextStrings.Add("msgbox_pre_install_msg", "You can still enter the game when pre-installing. Are you sure you want to download?\nYou can only download from the miHoYo servers.");
     TextStrings.Add("msgbox_process_start_error_msg", "An error occurred while starting the process.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_registry_empty_1_msg", "No value to be tweaked in registry exists.");
     TextStrings.Add("msgbox_registry_empty_2_msg", "Have you run the game yet?");
     TextStrings.Add("msgbox_registry_empty_3_msg", "Try changing video settings in-game first (disabling fullscreen, changing video preset, etc).");
     TextStrings.Add("msgbox_registry_error_msg", "An error occurred while accessing registry.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_registry_error_title", "Registry error");
     TextStrings.Add("msgbox_repair_1_msg", "The version of the game installed differs from repair information on the server. Due to us having to update this information manually, it may not be available for some time.\nPlease try again later.");
     TextStrings.Add("msgbox_repair_2_msg", "No files need any repairs.");
     TextStrings.Add("msgbox_repair_3_msg", "Found {0} corrupted/missing file(s). They need to be repaired by downloading them again.\nBecause technology is awesome, only the required files will be downloaded.\nDownload size: {1}.\nContinue?");
     TextStrings.Add("msgbox_repair_4_msg", "{0} file(s) successfully repaired.");
     TextStrings.Add("msgbox_repair_5_msg", "{0} file(s) failed to be repaired.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_repair_6_msg", "Going to generate a JSON file containing the list of game files and their hashes, then create a ZIP archive with those files.\nContinue?");
     TextStrings.Add("msgbox_repair_7_msg", "Continue to create ZIP file? It definitely takes a while.");
     TextStrings.Add("msgbox_repair_8_msg", "Repair data from the server has a different game version.\nAre you sure you want to run the check?");
     TextStrings.Add("msgbox_start_error_msg", "An error occurred while starting the launcher:\n{0}");
     TextStrings.Add("msgbox_start_error_title", "Startup error");
     TextStrings.Add("msgbox_translations_download_error_msg", "An error occurred while downloading translations.\nOnly English language will be available.");
     TextStrings.Add("msgbox_unhandled_exception_msg", "Oops, something very bad has happened and the launcher must close. But you can help!\nThere is a log file you can send to help diagnose the error.\nDo you want to open the log file now?");
     TextStrings.Add("msgbox_uninstall_1_msg", "Select what would you like to uninstall.");
     TextStrings.Add("msgbox_uninstall_2_msg", "Are you sure you want to uninstall the following?");
     TextStrings.Add("msgbox_uninstall_3_msg", "Are you really sure you want to uninstall the following? :^(");
     TextStrings.Add("msgbox_uninstall_4_msg", "This action is irreversible.\nOnly do this if you are having problems with the game!\nAre you sure you want to continue?");
     TextStrings.Add("msgbox_uninstall_5_msg", "Cannot uninstall the game while the launcher is inside game directory. Move launcher outside the directory and try again.");
     TextStrings.Add("msgbox_uninstall_6_msg", "Sucessfully uninstalled the following:");
     TextStrings.Add("msgbox_uninstall_error_msg", "An error occurred while uninstalling the game.\nFor more information take a look at the log.");
     TextStrings.Add("msgbox_uninstall_error_title", "Uninstallation error");
     TextStrings.Add("msgbox_uninstall_game_files", "Game Files");
     TextStrings.Add("msgbox_uninstall_game_cache", "Game Cache");
     TextStrings.Add("msgbox_uninstall_game_settings", "Game Settings");
     TextStrings.Add("msgbox_uninstall_title", "Uninstall");
     TextStrings.Add("msgbox_update_check_error_msg", "An error occurred while checking for update.\nFor more information take a look at the log.\nRetry?");
     TextStrings.Add("msgbox_update_check_error_title", "Update check error");
     TextStrings.Add("msgbox_update_title", "Update notice");
     TextStrings.Add("msgbox_verify_error_1_msg", "An error occurred while downloading. Please try again.");
     TextStrings.Add("msgbox_verify_error_2_msg", "An error occurred while downloading. File may be corrupt.\nContinue regardless?");
     TextStrings.Add("msgbox_verify_error_title", "File validation error");
 }
Пример #15
0
    protected void MyActionComplete()
    {
        string str = TextStrings.GetString("done") + ": " + Description();

        library.taskHelper.ShowWinTask(str);
    }
Пример #16
0
 // Use this for initialization
 public void Start()
 {
     libraryMenu      = GameObject.FindObjectOfType <LibraryMenu>();
     lastDateTime     = PreferencesSaver.GetBoosterActivateTime(boosterNum);
     description.text = TextStrings.GetString("booster_" + boosterNum + "_description");
 }
Пример #17
0
 void SetDescription()
 {
     description.text = TextStrings.GetString("secret_box");
 }
Пример #18
0
 void SetNumDay(int numDay)
 {
     this.numDay.text = numDay + " " + TextStrings.GetString("day");
 }