RCInet / LastEpoch_Mods

MelonLoader Mods for LastEpoch
47 stars 17 forks source link

Nice to have, ability to search Prefix/Suffix #5

Open parifuture opened 5 months ago

parifuture commented 5 months ago

Hi first thank you so much for building an awesome plugin. It is allowing me to test so many builds before I can start grinding in the online version.

my nice to have request is the ability to search inprefix/suffix windows. espcially because the name of the affixes are different from how they show up in game. It will be helpful to have full text search capability that allows me to let say for example search for "bleed" and the data in the select box is filtered. Thank you again for listening and for making such a useful mod. Cheers!

parifuture commented 5 months ago

so as shortcut I created a function that is called after you are sorting the affix_list generic list. Thinking I can quickly search for data in text file, but I cannot find the generated file anywhere. I am calling the function inside ForceDrop.cs in the InitList function. Any suggestions?

private static void WriteAffixNamesToFile(System.Collections.Generic.List<string> affixNames)
            {
                try
                {
                    // Specify the file path and name
                    string filePath = "sortedAffixNames.txt";
                    using (System.IO.StreamWriter file = new System.IO.StreamWriter(filePath))
                    {
                        foreach (string name in affixNames)
                        {
                            file.WriteLine(name);
                        }
                    }
                    Main.logger_instance.Msg("Affix names have been written to " + filePath);
                }
                catch (System.IO.IOException e)
                {
                    Main.logger_instance.Msg("An error occurred while writing to the file: " + e.Message);
                }
            }
RCInet commented 5 months ago

If you want to try actual mod, i upload a debug version here : https://www.mediafire.com/file/jiz2v7p3xkkzsy4/LastEpoch_Hud.rar/file

So we can search for affix like we do in normal crafting

parifuture commented 5 months ago

wowza....this is insane update. UI looks much better. Thanks for sharing.

parifuture commented 5 months ago

Oh I noticed 1 thing I wanted to drop Cradle of the Erased and I don't see an legendary option when I pick shield, it just says base item. Something wrong with that if condition :) ![Uploading shield.png…]()

RCInet commented 5 months ago

Hud_Manager.cs line 2340, "Subtype == item_type" should be replace by "unique.baseType == item_type"