mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-19 20:53:23 +00:00
Updated example
This commit is contained in:
parent
d51d6a4650
commit
5e913c31a4
@ -84,7 +84,7 @@ int main()
|
|||||||
btnNextInColor = PURPLE;
|
btnNextInColor = PURPLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON))
|
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))
|
||||||
{
|
{
|
||||||
framesCounter = 20; // Frames button is 'active'
|
framesCounter = 20; // Frames button is 'active'
|
||||||
btnNextOutColor = MAROON;
|
btnNextOutColor = MAROON;
|
||||||
@ -98,7 +98,7 @@ int main()
|
|||||||
btnNextInColor = SKYBLUE;
|
btnNextInColor = SKYBLUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON) && (framesCounter > 0)) framesCounter--;
|
if (framesCounter > 0) framesCounter--;
|
||||||
|
|
||||||
if (framesCounter == 1) // We change font on frame 1
|
if (framesCounter == 1) // We change font on frame 1
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user