From 81eb79662e914a6f1863996d3499b99c9bb34140 Mon Sep 17 00:00:00 2001 From: Crisel Date: Mon, 2 Dec 2024 14:59:47 -0600 Subject: [PATCH] 3rd ui --- src/main.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 3d1dd86..9ce0d76 100644 --- a/src/main.c +++ b/src/main.c @@ -58,6 +58,7 @@ int main(void) id_t shader, texture, shader_plain; mesh_t m_surface, m_axis; window_t window; + mlog("[VENTANA] Inicializando...\n"); { @@ -177,9 +178,22 @@ int main(void) { nk_glfw3_new_frame(&glfw); - if (nk_begin(context, "Nuklear Window", nk_rect(0, 0, 500, 500), + if (nk_begin(context, "MANIGRAPH", nk_rect(0, 0, 500, 500), NK_WINDOW_BORDER | NK_WINDOW_TITLE | NK_WINDOW_MINIMIZABLE | NK_WINDOW_MOVABLE | NK_WINDOW_SCALABLE)) { - + + nk_label(context, "MANIGRAPH", NK_TEXT_ALIGN_CENTERED); + nk_layout_row_dynamic(context, 30, 1); + nk_label(context, "No sé que poner aki", NK_TEXT_ALIGN_LEFT); + + // Botón estilizado + nk_layout_row_static(context, 40, 200, 1); + if (nk_button_label(context, "Botón")) { + printf("Botón Azul presionado\n"); + } + + // Texto con colores personalizados + nk_label_colored(context, "Texto en rojo", NK_TEXT_ALIGN_LEFT, nk_rgb(255, 0, 0)); + // Color Picker nk_layout_row_dynamic(context, 120, 1); // Crear espacio para el selector de color picked_color = nk_color_picker(context, picked_color, NK_RGBA);