Skip to content

Conversation

@jjustns
Copy link
Contributor

@jjustns jjustns commented Aug 27, 2024

Just practicing and this is something I thought of, surprised it's not already implemented.

bool pauseTimer(timer theTimer, bool paused)
bool setTimerPaused(timer theTimer, bool paused) -- Setting paused to true pauses the timer, while false resumes it.
bool isTimerPaused(timer theTimer) -- returns true if paused

@tederis
Copy link
Member

tederis commented Aug 27, 2024

setTimerPaused is the better name I think.

@tederis tederis added the enhancement New feature or request label Aug 27, 2024
@jjustns
Copy link
Contributor Author

jjustns commented Aug 27, 2024

setTimerPaused is the better name I think.

I thought so too, but i thought other people would think that sounded too weird. I'll change it later when im doing all of the other changes

@tederis
Copy link
Member

tederis commented Aug 27, 2024

paused

If you wish to use pauseTimer then there have to be resumeTimer. pauseTimer means an action and it cannot contain paused(state) argument. So let's just stick to setTimerPaused.

@jjustns jjustns requested a review from TracerDS August 27, 2024 16:03
@jjustns jjustns requested a review from tederis August 27, 2024 16:03
Copy link
Member

@tederis tederis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. And since it overcome several reviews ready to merge.

@tederis tederis merged commit 69aa420 into multitheftauto:master Aug 28, 2024
MTABot pushed a commit that referenced this pull request Aug 28, 2024
@jjustns jjustns deleted the Implement/NewTimerFuncs branch August 28, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants