Textfield time

This commit is contained in:
2024-10-20 00:46:44 +02:00
parent 3d98ba0023
commit 89c95c0656
6 changed files with 253 additions and 77 deletions

View File

@@ -36,6 +36,8 @@ Interaction_State :: struct {
left_mouse_pressed: bool;
right_mouse_pressed: bool;
editing: bool;
normalized_local_mouse_coordinates: Vector2; // Coordinates inside the rect in the range [0,1]
}
@@ -71,6 +73,8 @@ UI_Box :: struct {
interaction : Interaction_State;
_number_text: Static_Array(u8, 8);
style : struct {
texture: Texture_Handle;
background_color: Color;
@@ -971,4 +975,5 @@ padding_top : float;
padding_bottom : float;
#load "../core/stack.jai";
#load "../core/static_array.jai";