Updated -WIP-

This commit is contained in:
Ray 2018-04-27 14:14:04 +02:00
parent 24db91855f
commit 29c37e1435
2 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ int main(int argc, char *argv[0])
char fileNameText[32] = "Untitled";
//int dropdownSelected = 0;
SetConfigFlags(0x11100000);
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "image exporter");
SetTargetFPS(60);
@ -73,7 +73,7 @@ int main(int argc, char *argv[0])
if (GuiButton((Rectangle){ 20, 20, 150, 30 }, "Show Export Window")) windowBoxActive = true;
// Draw window box
// Draw window box: windowBoxName
//-----------------------------------------------------------------------------
if (windowBoxActive)
{
@ -96,7 +96,7 @@ int main(int argc, char *argv[0])
//Draw file name options
GuiLabel((Rectangle){ windowBoxRec.x + 10, windowBoxRec.y + 20 + 140, 0, 0 }, FormatText("File name"));
GuiTextBox((Rectangle){ windowBoxRec.x + 10 + 90, windowBoxRec.y + 20 + 130, 150, 30 }, fileNameText, 32);
GuiTextBox((Rectangle){ windowBoxRec.x + 10 + 90, windowBoxRec.y + 20 + 130, 150, 30 }, fileNameText, 32, false);
// Draw export image button
if (GuiButton((Rectangle){ windowBoxRec.x + 10, windowBoxRec.y + 20 + 170, 150 + 90, 30 }, "Export Image")) { /* Call function */ }

View File

@ -149,7 +149,7 @@ int main(int argc, char *argv[0])
//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(GuiBackgroundColor());
ClearBackground(GuiGetBackgroundColor());
DrawRectangleLines(10, 10, SCREEN_WIDTH - 20, SCREEN_HEIGHT - 20, GuiLinesColor());