Updated example
This commit is contained in:
parent
d51d6a4650
commit
5e913c31a4
1 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ int main()
|
|||
btnNextInColor = PURPLE;
|
||||
}
|
||||
|
||||
if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON))
|
||||
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))
|
||||
{
|
||||
framesCounter = 20; // Frames button is 'active'
|
||||
btnNextOutColor = MAROON;
|
||||
|
@ -98,7 +98,7 @@ int main()
|
|||
btnNextInColor = SKYBLUE;
|
||||
}
|
||||
|
||||
if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON) && (framesCounter > 0)) framesCounter--;
|
||||
if (framesCounter > 0) framesCounter--;
|
||||
|
||||
if (framesCounter == 1) // We change font on frame 1
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue