From 116d9808d2028c9493a08d5613b4eee222347eda Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Mon, 16 Dec 2024 20:26:43 -0500 Subject: [PATCH] Document djui_panel_menu.h (65.17%) --- autogen/lua_definitions/functions.lua | 1 + docs/lua/functions-3.md | 3 +++ src/pc/djui/djui_panel_menu.h | 1 + 3 files changed, 5 insertions(+) diff --git a/autogen/lua_definitions/functions.lua b/autogen/lua_definitions/functions.lua index c886059d1..512554779 100644 --- a/autogen/lua_definitions/functions.lua +++ b/autogen/lua_definitions/functions.lua @@ -3946,6 +3946,7 @@ end --- @param color DjuiRainbowColor --- @return string +--- Gets the header hex color code from a `DJUI_RAINBOW_COLOR_*` constant function djui_menu_get_rainbow_string_color(color) -- ... end diff --git a/docs/lua/functions-3.md b/docs/lua/functions-3.md index d144bac8e..6589eb44c 100644 --- a/docs/lua/functions-3.md +++ b/docs/lua/functions-3.md @@ -3368,6 +3368,9 @@ Gets a language `key` from a `section` ## [djui_menu_get_rainbow_string_color](#djui_menu_get_rainbow_string_color) +### Description +Gets the header hex color code from a `DJUI_RAINBOW_COLOR_*` constant + ### Lua Example `local stringValue = djui_menu_get_rainbow_string_color(color)` diff --git a/src/pc/djui/djui_panel_menu.h b/src/pc/djui/djui_panel_menu.h index 1ddfd2e24..09921fdb6 100644 --- a/src/pc/djui/djui_panel_menu.h +++ b/src/pc/djui/djui_panel_menu.h @@ -8,6 +8,7 @@ enum DjuiRainbowColor { DJUI_RAINBOW_COLOR_YELLOW }; +/* |description|Gets the header hex color code from a `DJUI_RAINBOW_COLOR_*` constant|descriptionEnd| */ char* djui_menu_get_rainbow_string_color(enum DjuiRainbowColor color); void djui_panel_menu_back(struct DjuiBase* base); struct DjuiThreePanel* djui_panel_menu_create(char* headerText, bool forcedLeftSide);