Do some of isaac's changes

This commit is contained in:
EmeraldLockdown 2026-03-11 11:20:55 -05:00
parent 970416682f
commit cb7530b932
3 changed files with 13 additions and 3 deletions

View file

@ -97,7 +97,7 @@ void djui_chat_message_create(const char* message) {
f32 messageHeight = djui_text_count_lines(chatText, 10) * (chatText->font->lineHeight * chatText->font->defaultFontScale) + 8;
djui_base_set_size(base, 1.0f, messageHeight);
if (gDjuiChatBox->chatFlow->base.height.value == 0) {
gDjuiChatBox->chatFlow->base.height.value += 2;
gDjuiChatBox->chatFlow->base.height.value = 2;
}
gDjuiChatBox->chatFlow->base.height.value += messageHeight + gDjuiChatBox->chatFlow->margin.value;
if (!gDjuiChatBox->scrolling) {

View file

@ -45,7 +45,13 @@ static void djui_panel_dynos_add_packs(struct DjuiBase* base) {
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;
// filter results
if (sSearchInputbox != NULL &&
sSearchInputbox->buffer != NULL &&
!strcasestr(djui_text_get_uncolored_string(NULL, strlen(pack) + 1, pack), sSearchInputbox->buffer)
) {
continue;
}
struct DjuiCheckbox* checkbox1 = djui_checkbox_create(base, pack, &tmp, djui_panel_dynos_apply);
checkbox1->base.tag = i;

View file

@ -158,7 +158,11 @@ void djui_panel_host_mods_add_mods(struct DjuiBase* layoutBase) {
break;
}
}
if (sSearchInputbox != NULL && sSearchInputbox->buffer != NULL && !strcasestr(djui_text_get_uncolored_string(NULL, strlen(mod->name) + 1, mod->name), sSearchInputbox->buffer)) {
// filter results
if (sSearchInputbox != NULL &&
sSearchInputbox->buffer != NULL &&
!strcasestr(djui_text_get_uncolored_string(NULL, strlen(mod->name) + 1, mod->name), sSearchInputbox->buffer)
) {
continue;
}
struct DjuiCheckbox* checkbox = djui_checkbox_create(layoutBase, mod->name, &mod->enabled, djui_mod_checkbox_on_value_change);