mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Update controls_test_suite.c
This commit is contained in:
@ -120,6 +120,8 @@ int main()
|
|||||||
|
|
||||||
char textInputFileName[256] = { 0 };
|
char textInputFileName[256] = { 0 };
|
||||||
|
|
||||||
|
float alpha = 1.0f;
|
||||||
|
|
||||||
SetTargetFPS(60);
|
SetTargetFPS(60);
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -143,9 +145,17 @@ int main()
|
|||||||
UnloadDroppedFiles(droppedFiles); // Clear internal buffers
|
UnloadDroppedFiles(droppedFiles); // Clear internal buffers
|
||||||
}
|
}
|
||||||
|
|
||||||
progressValue += 0.002f;
|
//alpha -= 0.002f;
|
||||||
//if (progressValue >= 1.0f) progressValue = 0.0f;
|
if (alpha < 0.0f) alpha = 0.0f;
|
||||||
if (IsKeyPressed(KEY_SPACE)) progressValue = 0.2f;
|
if (IsKeyPressed(KEY_SPACE)) alpha = 1.0f;
|
||||||
|
|
||||||
|
GuiSetAlpha(alpha);
|
||||||
|
|
||||||
|
//progressValue += 0.002f;
|
||||||
|
if (IsKeyPressed(KEY_LEFT)) progressValue -= 0.1f;
|
||||||
|
else if (IsKeyPressed(KEY_RIGHT)) progressValue += 0.1f;
|
||||||
|
if (progressValue > 1.0f) progressValue = 1.0f;
|
||||||
|
else if (progressValue < 0.0f) progressValue = 0.0f;
|
||||||
|
|
||||||
if (visualStyleActive != prevVisualStyleActive)
|
if (visualStyleActive != prevVisualStyleActive)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user