Beispiel #1
0
        protected override Boolean LoadInternal()
        {
            String[] strings = EmbadedSentenseLoader.LoadSentense(_embadedPath);

            _setter(strings);
            return(true);
        }
Beispiel #2
0
        protected override TxtEntry[] PrepareEntries()
        {
            String[] commandNames = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.CommandNames);
            String[] commandHelps = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.CommandHelps);

            return(AbilityFormatter.Build(Prefix, commandNames, commandHelps));
        }
Beispiel #3
0
        protected override TxtEntry[] PrepareEntries()
        {
            String[] itemNames  = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.ItemNames);
            String[] itemHelps  = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.ItemHelps);
            String[] itemBattle = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.ItemBattle);

            return(ItemFormatter.Build(Prefix, itemNames, itemHelps, itemBattle));
        }
Beispiel #4
0
        protected override TxtEntry[] PrepareEntries()
        {
            String[] itemNames = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.KeyItemNames);
            String[] itemHelps = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.KeyItemHelps);
            String[] itemDescs = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.KeyItemDescriptions);

            return(KeyItemFormatter.Build(Prefix, itemNames, itemHelps, itemDescs));
        }
Beispiel #5
0
        protected override Boolean LoadInternal()
        {
            String[] commandNames = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.CommandNames);
            String[] commandHelps = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.CommandHelps);

            FF9TextTool.SetCommandName(commandNames);
            FF9TextTool.SetCommandHelpDesc(commandHelps);
            return(true);
        }
Beispiel #6
0
        protected override Boolean LoadInternal()
        {
            String[] skillNames = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.SkillNames);
            String[] skillHelps = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.SkillHelps);

            FF9TextTool.SetActionAbilityName(skillNames);
            FF9TextTool.SetActionAbilityHelpDesc(skillHelps);
            return(true);
        }
Beispiel #7
0
        protected override Boolean LoadInternal()
        {
            String[] abilityNames = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.AbilityNames);
            String[] abilityHelps = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.AbilityHelps);

            FF9TextTool.SetSupportAbilityName(abilityNames);
            FF9TextTool.SetSupportAbilityHelpDesc(abilityHelps);
            return(true);
        }
Beispiel #8
0
        protected override Boolean LoadInternal()
        {
            String[] itemNames = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.KeyItemNames);
            String[] itemHelps = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.KeyItemHelps);
            String[] itemDescs = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.KeyItemDescriptions);

            FF9TextTool.SetImportantItemName(itemNames);
            FF9TextTool.SetImportantItemHelpDesc(itemHelps);
            FF9TextTool.SetImportantSkinDesc(itemDescs);
            return(true);
        }
Beispiel #9
0
        protected override Boolean LoadInternal()
        {
            String[] itemNames  = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.ItemNames);
            String[] itemHelps  = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.ItemHelps);
            String[] itemBattle = EmbadedSentenseLoader.LoadSentense(EmbadedTextResources.ItemBattle);

            FF9TextTool.SetItemName(itemNames);
            FF9TextTool.SetItemHelpDesc(itemHelps);
            FF9TextTool.SetItemBattleDesc(itemBattle);
            return(true);
        }
Beispiel #10
0
        protected override Boolean LoadInternal()
        {
            Int32  battleZoneId = FF9TextTool.BattleZoneId;
            String path         = EmbadedTextResources.GetCurrentPath("/Battle/" + battleZoneId + ".mes");

            String[] text = EmbadedSentenseLoader.LoadSentense(path);
            if (text != null)
            {
                FF9TextTool.SetBattleText(text);
            }
            return(true);
        }
Beispiel #11
0
        private void Initialize()
        {
            Dictionary <String, String> dic;

            if (!TryLoadReplacements(out dic))
            {
                return;
            }

            Log.Message($"[{TypeName}] Loading...");

            foreach (KeyValuePair <String, Int32> pair in FF9BattleDB.SceneData)
            {
                Int32 index = pair.Value;
                if (index == 220 || index == 238) // Junk?
                {
                    continue;
                }

                String   path = EmbadedTextResources.GetCurrentPath("/Battle/" + index + ".mes");
                String[] text = EmbadedSentenseLoader.LoadSentense(path);
                if (text != null)
                {
                    for (Int32 i = 0; i < text.Length; i++)
                    {
                        String key = BattleFormatter.GetKey(text[i]);
                        String value;
                        if (dic.TryGetValue(key, out value))
                        {
                            text[i] = value;
                        }
                    }
                }

                _cache[index] = text;
            }

            _initialized = true;
        }
Beispiel #12
0
        protected override TxtEntry[] PrepareEntries()
        {
            Dictionary <String, String> dic = new Dictionary <String, String>(1024);

            foreach (KeyValuePair <String, Int32> pair in FF9BattleDB.SceneData)
            {
                Int32 index = pair.Value;
                if (index == 220 || index == 238) // Junk?
                {
                    continue;
                }

                String   path = EmbadedTextResources.GetCurrentPath("/Battle/" + index + ".mes");
                String[] text = EmbadedSentenseLoader.LoadSentense(path);
                if (text == null)
                {
                    continue;
                }

                foreach (String line in text)
                {
                    if (String.IsNullOrEmpty(line))
                    {
                        continue;
                    }

                    String key = BattleFormatter.GetKey(line);
                    if (!dic.ContainsKey(key))
                    {
                        dic.Add(key, BattleFormatter.GetValue(line));
                    }
                }
            }

            return(dic.Select(p => new TxtEntry {
                Prefix = p.Key, Value = p.Value
            }).ToArray());
        }
Beispiel #13
0
 protected override TxtEntry[] PrepareEntries()
 {
     String[] itemNames = EmbadedSentenseLoader.LoadSentense(_embadedPath);
     return(EtcFormatter.Build(_prefix, itemNames));
 }