Skip to content

Add searchbox, add it to mod panel and dynos panel#1129

Draft
EmeraldLoc wants to merge 6 commits intocoop-deluxe:devfrom
EmeraldLoc:search
Draft

Add searchbox, add it to mod panel and dynos panel#1129
EmeraldLoc wants to merge 6 commits intocoop-deluxe:devfrom
EmeraldLoc:search

Conversation

@EmeraldLoc
Copy link
Copy Markdown
Contributor

Pretty much title, here's a pic of what it looks like
Screenshot 2026-02-28 at 9 35 58 PM
Something to note though is I had to redo some of the input box stuff relating to theming. This means the chatbox now looks like this
Screenshot 2026-02-28 at 9 36 43 PM
Screenshot 2026-02-28 at 9 37 11 PM
If need be, and depending on feedback, I can revert the theming changes for the chatbox specifically.

Screenshot 2026-02-28 at 9 38 14 PM

Other input boxes related to theming have been changed aswell by side effect, but these look nice so I don't see a reason to revert it. It's proper now.

@EmeraldLoc EmeraldLoc marked this pull request as draft March 9, 2026 00:19
@EmeraldLoc
Copy link
Copy Markdown
Contributor Author

I need translations for this item, then this pr will be ready to merge

SEARCH = "Search..."

@DM-kun
Copy link
Copy Markdown
Contributor

DM-kun commented Mar 9, 2026

German:

SEARCH = "Suche..."

@EmeraldLoc EmeraldLoc marked this pull request as ready for review March 10, 2026 23:36
@EmeraldLoc
Copy link
Copy Markdown
Contributor Author

I added in translations via the other search text. If there are any issues, lmk, but this should be good to merge

Comment thread src/pc/djui/djui_chat_message.c Outdated
Comment thread src/pc/djui/djui_panel_dynos.c Outdated
if (!dynos_pack_get_exists(i)) continue;
bool tmp = dynos_pack_get_enabled(i);
const char* pack = dynos_pack_get_name(i);
if (sSearchInputbox != NULL && sSearchInputbox->buffer != NULL && !strcasestr(djui_text_get_uncolored_string(NULL, strlen(pack) + 1, pack), sSearchInputbox->buffer)) continue;
Copy link
Copy Markdown
Contributor

@Isaac0-dev Isaac0-dev Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some reformatting and a comment.

Suggested change
if (sSearchInputbox != NULL && sSearchInputbox->buffer != NULL && !strcasestr(djui_text_get_uncolored_string(NULL, strlen(pack) + 1, pack), sSearchInputbox->buffer)) continue;
// Filter results
if (sSearchInputbox != NULL &&
sSearchInputbox->buffer != NULL &&
!strcasestr(djui_text_get_uncolored_string(NULL, strlen(pack) + 1, pack), sSearchInputbox->buffer)
) {
continue;
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there really be a space for pointers?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary

Comment thread src/pc/djui/djui_panel_host_mods.c Outdated
Comment on lines +161 to +163
if (sSearchInputbox != NULL && sSearchInputbox->buffer != NULL && !strcasestr(djui_text_get_uncolored_string(NULL, strlen(mod->name) + 1, mod->name), sSearchInputbox->buffer)) {
continue;
}
Copy link
Copy Markdown
Contributor

@Isaac0-dev Isaac0-dev Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (sSearchInputbox != NULL && sSearchInputbox->buffer != NULL && !strcasestr(djui_text_get_uncolored_string(NULL, strlen(mod->name) + 1, mod->name), sSearchInputbox->buffer)) {
continue;
}
if (sSearchInputbox != NULL &&
sSearchInputbox->buffer != NULL &&
!strcasestr(djui_text_get_uncolored_string(NULL, strlen(mod->name) + 1, mod->name), sSearchInputbox->buffer)
) {
continue;
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there really be a space for pointers?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary

@EmeraldLoc
Copy link
Copy Markdown
Contributor Author

My new plan is to have all of the pr's merged, then update this one to add the searchbar to all of them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants