mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-27 04:21:42 +00:00
added slider updates (value display and fine adjustment) globally
This commit is contained in:
parent
ac3d03f9bc
commit
3e832abc2a
3 changed files with 0 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue