mirror of
https://github.com/raysan5/raylib.git
synced 2026-08-26 06:08:27 -04:00
Compare commits
2 Commits
3e49c80799
...
912085c831
| Author | SHA1 | Date | |
|---|---|---|---|
| 912085c831 | |||
| 7d85ff76a6 |
@ -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-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 |
|
||||
| [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 |
|
||||
|
||||
@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
|
||||
Rectangle textBounds = { 0 };
|
||||
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.width = (float)textSize;
|
||||
textBounds.width = (float)messageTextSize;
|
||||
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
|
||||
}
|
||||
|
||||
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
|
||||
{
|
||||
case 'v':
|
||||
{
|
||||
sscanf(buffer, "v %d", &version);
|
||||
}
|
||||
sscanf(buffer, "v %u", &version);
|
||||
} break;
|
||||
case 'p':
|
||||
{
|
||||
// Style property: p <control_id> <property_id> <property_value> <property_name>
|
||||
|
||||
@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
|
||||
Rectangle textBounds = { 0 };
|
||||
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.width = (float)textSize;
|
||||
textBounds.width = (float)messageTextSize;
|
||||
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
|
||||
}
|
||||
|
||||
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
|
||||
{
|
||||
case 'v':
|
||||
{
|
||||
sscanf(buffer, "v %d", &version);
|
||||
}
|
||||
sscanf(buffer, "v %u", &version);
|
||||
} break;
|
||||
case 'p':
|
||||
{
|
||||
// Style property: p <control_id> <property_id> <property_value> <property_name>
|
||||
|
||||
@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
|
||||
Rectangle textBounds = { 0 };
|
||||
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.width = (float)textSize;
|
||||
textBounds.width = (float)messageTextSize;
|
||||
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
|
||||
}
|
||||
|
||||
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
|
||||
{
|
||||
case 'v':
|
||||
{
|
||||
sscanf(buffer, "v %d", &version);
|
||||
}
|
||||
sscanf(buffer, "v %u", &version);
|
||||
} break;
|
||||
case 'p':
|
||||
{
|
||||
// Style property: p <control_id> <property_id> <property_value> <property_name>
|
||||
|
||||
@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
|
||||
Rectangle textBounds = { 0 };
|
||||
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.width = (float)textSize;
|
||||
textBounds.width = (float)messageTextSize;
|
||||
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
|
||||
}
|
||||
|
||||
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
|
||||
{
|
||||
case 'v':
|
||||
{
|
||||
sscanf(buffer, "v %d", &version);
|
||||
}
|
||||
sscanf(buffer, "v %u", &version);
|
||||
} break;
|
||||
case 'p':
|
||||
{
|
||||
// Style property: p <control_id> <property_id> <property_value> <property_name>
|
||||
|
||||
@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
|
||||
Rectangle textBounds = { 0 };
|
||||
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.width = (float)textSize;
|
||||
textBounds.width = (float)messageTextSize;
|
||||
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
|
||||
}
|
||||
|
||||
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
|
||||
{
|
||||
case 'v':
|
||||
{
|
||||
sscanf(buffer, "v %d", &version);
|
||||
}
|
||||
sscanf(buffer, "v %u", &version);
|
||||
} break;
|
||||
case 'p':
|
||||
{
|
||||
// Style property: p <control_id> <property_id> <property_value> <property_name>
|
||||
|
||||
@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
|
||||
Rectangle textBounds = { 0 };
|
||||
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.width = (float)textSize;
|
||||
textBounds.width = (float)messageTextSize;
|
||||
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
|
||||
}
|
||||
|
||||
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
|
||||
{
|
||||
case 'v':
|
||||
{
|
||||
sscanf(buffer, "v %d", &version);
|
||||
}
|
||||
sscanf(buffer, "v %u", &version);
|
||||
} break;
|
||||
case 'p':
|
||||
{
|
||||
// Style property: p <control_id> <property_id> <property_value> <property_name>
|
||||
|
||||
@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch
|
||||
Rectangle textBounds = { 0 };
|
||||
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.width = (float)textSize;
|
||||
textBounds.width = (float)messageTextSize;
|
||||
textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
|
||||
}
|
||||
|
||||
@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName)
|
||||
{
|
||||
case 'v':
|
||||
{
|
||||
sscanf(buffer, "v %d", &version);
|
||||
}
|
||||
sscanf(buffer, "v %u", &version);
|
||||
} break;
|
||||
case 'p':
|
||||
{
|
||||
// Style property: p <control_id> <property_id> <property_value> <property_name>
|
||||
|
||||
Reference in New Issue
Block a user