waozi
2bb8640279
Add retained scene tree foundation and rename UI Sprite to Picture
...
- include/kry_math.h: Vector2 math and KryTransform2D (compose/point/camera)
- include/scene_tree.h + src/scene/scene_tree.c: KryScene/KryNode retained
node tree with array arena, parent/child links, world-transform update,
lifecycle vtable (ready/process/physics_process/draw), KrySceneTick/
PhysicsTick/Draw driver
- include/node2d_props.h: Camera2DProps, Sprite2DProps
- Rename UI Sprite widget to Picture (raylib owns Image as a struct):
ui_sprite.h -> ui_picture.h, SpriteProps -> PictureProps,
UISpriteFit -> UIPictureFit, UI_SPRITE_FIT_* -> UI_PICTURE_FIT_*,
Sprite() -> Picture(); extract shared texture cache to
src/ui/ui_picture_cache.c (KryLoadPictureTexture, KryPictureFitRect)
shared by the Picture widget and the upcoming Sprite2D scene node
- Migrate example, docs, node registry to the Picture name
2026-08-11 03:11:34 -05:00
waozi
92ae0b4786
Allow custom value text on Slider widget
...
Add an optional value_text_override parameter to DrawUISlider, UISliderNode, and Slider. When non-NULL it is rendered instead of the default "%d + suffix" formatting, so callers can display values like "1.8x". Passing NULL preserves the existing behavior.
2026-08-11 02:46:04 -05:00