2 Commits

Author SHA1 Message Date
Ray
912085c831 Update raygui 2026-07-31 13:48:34 +02:00
7d85ff76a6 Update BINDINGS.md (#6033) 2026-07-31 13:32:45 +02:00
8 changed files with 36 additions and 35 deletions

View File

@ -8,6 +8,7 @@ Some people ported raylib to other languages in the form of bindings or wrappers
| :--------------------------------------------------------------------------------------- | :--------------: | :------------------------------------------------------------------: | :------------------: | | :--------------------------------------------------------------------------------------- | :--------------: | :------------------------------------------------------------------: | :------------------: |
| [raylib](https://github.com/raysan5/raylib) | **6.0** | [C/C++](https://en.wikipedia.org/wiki/C_(programming_language)) | Zlib | | [raylib](https://github.com/raysan5/raylib) | **6.0** | [C/C++](https://en.wikipedia.org/wiki/C_(programming_language)) | Zlib |
| [raylib-ada](https://github.com/Fabien-Chouteau/raylib-ada) | **5.5** | [Ada](https://en.wikipedia.org/wiki/Ada_(programming_language)) | MIT | | [raylib-ada](https://github.com/Fabien-Chouteau/raylib-ada) | **5.5** | [Ada](https://en.wikipedia.org/wiki/Ada_(programming_language)) | MIT |
|[raylib-asm](https://github.com/gAndy50/ASMRay) | **6.0** | Assembly (x86) | Zlib |
| [raylib-beef](https://github.com/Starpelly/raylib-beef) | **5.5** | [Beef](https://www.beeflang.org) | MIT | | [raylib-beef](https://github.com/Starpelly/raylib-beef) | **5.5** | [Beef](https://www.beeflang.org) | MIT |
| [raybit](https://github.com/Alex-Velez/raybit) | **5.0** | [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) | MIT | | [raybit](https://github.com/Alex-Velez/raybit) | **5.0** | [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) | MIT |
| [raylib-c3](https://github.com/c3lang/vendor/tree/main/libraries/raylib6.c3l) | **6** | [C3](https://c3-lang.org) | MIT | | [raylib-c3](https://github.com/c3lang/vendor/tree/main/libraries/raylib6.c3l) | **6** | [C3](https://c3-lang.org) | MIT |

View File

@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
Rectangle textBounds = { 0 }; Rectangle textBounds = { 0 };
if (message != NULL) if (message != NULL)
{ {
int textSize = GuiGetTextWidth(message) + 2; int messageTextSize = GuiGetTextWidth(message) + 2;
textBounds.x = bounds.x + bounds.width/2 - textSize/2; textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2;
textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2;
textBounds.width = (float)textSize; textBounds.width = (float)messageTextSize;
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
} }
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
{ {
case 'v': case 'v':
{ {
sscanf(buffer, "v %d", &version); sscanf(buffer, "v %u", &version);
} } break;
case 'p': case 'p':
{ {
// Style property: p <control_id> <property_id> <property_value> <property_name> // Style property: p <control_id> <property_id> <property_value> <property_name>

View File

@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
Rectangle textBounds = { 0 }; Rectangle textBounds = { 0 };
if (message != NULL) if (message != NULL)
{ {
int textSize = GuiGetTextWidth(message) + 2; int messageTextSize = GuiGetTextWidth(message) + 2;
textBounds.x = bounds.x + bounds.width/2 - textSize/2; textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2;
textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2;
textBounds.width = (float)textSize; textBounds.width = (float)messageTextSize;
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
} }
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
{ {
case 'v': case 'v':
{ {
sscanf(buffer, "v %d", &version); sscanf(buffer, "v %u", &version);
} } break;
case 'p': case 'p':
{ {
// Style property: p <control_id> <property_id> <property_value> <property_name> // Style property: p <control_id> <property_id> <property_value> <property_name>

View File

@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
Rectangle textBounds = { 0 }; Rectangle textBounds = { 0 };
if (message != NULL) if (message != NULL)
{ {
int textSize = GuiGetTextWidth(message) + 2; int messageTextSize = GuiGetTextWidth(message) + 2;
textBounds.x = bounds.x + bounds.width/2 - textSize/2; textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2;
textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2;
textBounds.width = (float)textSize; textBounds.width = (float)messageTextSize;
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
} }
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
{ {
case 'v': case 'v':
{ {
sscanf(buffer, "v %d", &version); sscanf(buffer, "v %u", &version);
} } break;
case 'p': case 'p':
{ {
// Style property: p <control_id> <property_id> <property_value> <property_name> // Style property: p <control_id> <property_id> <property_value> <property_name>

View File

@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
Rectangle textBounds = { 0 }; Rectangle textBounds = { 0 };
if (message != NULL) if (message != NULL)
{ {
int textSize = GuiGetTextWidth(message) + 2; int messageTextSize = GuiGetTextWidth(message) + 2;
textBounds.x = bounds.x + bounds.width/2 - textSize/2; textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2;
textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2;
textBounds.width = (float)textSize; textBounds.width = (float)messageTextSize;
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
} }
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
{ {
case 'v': case 'v':
{ {
sscanf(buffer, "v %d", &version); sscanf(buffer, "v %u", &version);
} } break;
case 'p': case 'p':
{ {
// Style property: p <control_id> <property_id> <property_value> <property_name> // Style property: p <control_id> <property_id> <property_value> <property_name>

View File

@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
Rectangle textBounds = { 0 }; Rectangle textBounds = { 0 };
if (message != NULL) if (message != NULL)
{ {
int textSize = GuiGetTextWidth(message) + 2; int messageTextSize = GuiGetTextWidth(message) + 2;
textBounds.x = bounds.x + bounds.width/2 - textSize/2; textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2;
textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2;
textBounds.width = (float)textSize; textBounds.width = (float)messageTextSize;
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
} }
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
{ {
case 'v': case 'v':
{ {
sscanf(buffer, "v %d", &version); sscanf(buffer, "v %u", &version);
} } break;
case 'p': case 'p':
{ {
// Style property: p <control_id> <property_id> <property_value> <property_name> // Style property: p <control_id> <property_id> <property_value> <property_name>

View File

@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
Rectangle textBounds = { 0 }; Rectangle textBounds = { 0 };
if (message != NULL) if (message != NULL)
{ {
int textSize = GuiGetTextWidth(message) + 2; int messageTextSize = GuiGetTextWidth(message) + 2;
textBounds.x = bounds.x + bounds.width/2 - textSize/2; textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2;
textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2;
textBounds.width = (float)textSize; textBounds.width = (float)messageTextSize;
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
} }
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
{ {
case 'v': case 'v':
{ {
sscanf(buffer, "v %d", &version); sscanf(buffer, "v %u", &version);
} } break;
case 'p': case 'p':
{ {
// Style property: p <control_id> <property_id> <property_value> <property_name> // Style property: p <control_id> <property_id> <property_value> <property_name>

View File

@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
Rectangle textBounds = { 0 }; Rectangle textBounds = { 0 };
if (message != NULL) if (message != NULL)
{ {
int textSize = GuiGetTextWidth(message) + 2; int messageTextSize = GuiGetTextWidth(message) + 2;
textBounds.x = bounds.x + bounds.width/2 - textSize/2; textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2;
textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2;
textBounds.width = (float)textSize; textBounds.width = (float)messageTextSize;
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
} }
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
{ {
case 'v': case 'v':
{ {
sscanf(buffer, "v %d", &version); sscanf(buffer, "v %u", &version);
} } break;
case 'p': case 'p':
{ {
// Style property: p <control_id> <property_id> <property_value> <property_name> // Style property: p <control_id> <property_id> <property_value> <property_name>