Jump to content

chinchi37

Recommended Posts

Hey guys!

 

What is this topic about, what kind of mod was I aiming (and failing) to create?

 

I use mules in single player, I have a lot of those. Choosing which one to use is a major hassle since I have to scroll down a lot.

The normal character select shows you your last played character at the top, followed by those you played before under that. One muling later and all your main (fun) chars are somewhere deep down.

 

 

Imagine you had a text field where you could enter some letters to filter through those character names.

 

 

Enter "Charms" or even just "ch" and your select screen shows a list of all characters containing "Charms" (or ch) like "Charms_FRW", "Charms_Skiller", "Charms_Sunder" (, "Witch").

 

 

 

The technical part

 

1. Using Cask Viewer I can see that in order to add such a button for the text field I'll have to go to data\global\ui\layouts\characterselectpanelhd.json and add it there. I can think of a way of adding another ButtonWidget here between the delete and expansion button, but a preffered access would be like next to the tabs (online/offline) without destroying/resizing the background of the character select.

 

2. as written in nr. 2; "ButtonWidget". This should be a "TextBoxWidget", but those you can not write into I think? They seem only able to display text (as shown in that same file). Is it necessary to create a whole new widget for that?

 

3. giving it insanely basic graphics (contrasting white I guess) to just make it work.

 

4. Adding the code into the correct part to make the changes in the .json viable. Where and how does this work, what kind of variable do you have to sort and select for? Do you need a confirm button to enter your search or even more? The code would be pretty simple with if else. But what do I know -.-

  1. Text field = empty -> default sorting and default setting
  2. "ch" -> all characters containing "ch" in
  3. Alternative to 2. "chad" -> case sensitive, only showing your character named "chad", not "CHADz" or "watched"
  4. Sorting; shown search results at the top alphabetically (or sorted) and those not mentioned either out or default after the search result.

 

I have tried myself on this for far too long, and my limited coding knowledge does not get me far either (I can program a calculator in C and work with micro controllers)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...