added slider updates (value display and fine adjustment) globally

This commit is contained in:
iZePlayz 2025-11-22 21:36:47 +01:00
parent ac3d03f9bc
commit 3e832abc2a
3 changed files with 0 additions and 7 deletions

View file

@ -427,7 +427,6 @@ void djui_panel_chat_create(struct DjuiBase* caller) {
};
(void)chatSizeChoices;
// Checkbox- / Selection-Basis und -Track an Sliderbreite anpassen
if (sCheckboxUseStdChat != NULL) {
djui_base_set_size(&sCheckboxUseStdChat->base, 0.94f, 32.0f);
}

View file

@ -8,7 +8,6 @@ static void djui_slider_default_format_value(struct DjuiSlider* slider, char* bu
if (slider == NULL || slider->value == NULL || bufSize <= 0) {
return;
}
// Standard: roher Wert ohne Einheit
snprintf(buf, bufSize, "%u", *slider->value);
}
@ -193,7 +192,6 @@ struct DjuiSlider* djui_slider_create(struct DjuiBase* parent, const char* messa
djui_base_set_size_type(&rectValue->base, DJUI_SVT_RELATIVE, DJUI_SVT_RELATIVE);
slider->rectValue = rectValue;
// zentrales Value-Label im Slider
struct DjuiText* valueText = djui_text_create(&rect->base, "");
djui_base_set_alignment(&valueText->base, DJUI_HALIGN_CENTER, DJUI_VALIGN_CENTER);
djui_base_set_size_type(&valueText->base, DJUI_SVT_RELATIVE, DJUI_SVT_RELATIVE);

View file

@ -20,9 +20,5 @@ struct DjuiSlider {
struct DjuiSlider* djui_slider_create(struct DjuiBase* parent, const char* message, unsigned int* value, unsigned int min, unsigned int max, void (*on_value_change)(struct DjuiBase*));
void djui_slider_update_value(struct DjuiBase* base);
// Optional: eigenes Format für den Wert (z.B. "100%", "10s").
void djui_slider_set_format_callback(struct DjuiSlider* slider, DjuiSliderFormatCallback cb);
// Zugriff auf das mittige Value-Label, um z.B. Farben anzupassen.
struct DjuiText* djui_slider_get_value_text(struct DjuiSlider* slider);