mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
feat(ui): add label and image support to slider
- Add `set_text()`, `set_track_image()`, `set_thumb_image()` methods. - Include label rendering and auto-scaling based on slider dimensions. - Replace static `THUMB_WIDTH` with dynamic thumb sizing. - Add slider thumb and track texture assets.
This commit is contained in:
BIN
assets/texture/ui/slider_thumb001.png
Normal file
BIN
assets/texture/ui/slider_thumb001.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
BIN
assets/texture/ui/slider_track001.png
Normal file
BIN
assets/texture/ui/slider_track001.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 174 B |
Reference in New Issue
Block a user