Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raidboss: Add Option to Order Timeline Bottom-to-Top #5869

Merged
merged 4 commits into from
Oct 25, 2023

Conversation

quisquous
Copy link
Owner

This is #4811 with conflicts resolved due to refactoring and 3ae3f6c on top. 3ae3f6c moves the keep alive logic from html_timeline_ui to timeline so that it knows about how many bars are still on screen and also knows when a bar has been expired and it should consider adding more to the list.

Closes #4811.

Copy link
Contributor

@panicstevenson panicstevenson left a comment

Choose a reason for hiding this comment

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

Nice! Thank you for bringing this across the finish line.

ui/raidboss/timeline.ts Show resolved Hide resolved

this.activeEvents = durationEvents;
}

private _RemoveExpiredTimers(fightNow: number): void {
let activeEvent = this.activeEvents[0];
while (this.activeEvents.length && activeEvent && activeEvent.time <= fightNow) {
this.ui?.OnRemoveTimer(activeEvent, true);
const event = activeEvent;
if (this.options.KeepExpiredTimerBarsForSeconds > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

(This introduces regression in the user experience where a previously valid negative KeepExpiredTimerBarsForSeconds value was set to the HTML5 minimum of 4ms. /s)

@quisquous quisquous merged commit 35137ba into main Oct 25, 2023
@quisquous quisquous deleted the panicstevenson-reverse-timeline branch October 25, 2023 22:12
github-actions bot pushed a commit that referenced this pull request Oct 25, 2023
…5869)

This is #4811 with conflicts resolved due to refactoring and
3ae3f6c on top.
3ae3f6c moves the keep alive logic from
html_timeline_ui to timeline so that it knows about how many bars are
still on screen and also knows when a bar has been expired and it should
consider adding more to the list.

Closes #4811.

---------

Co-authored-by: Panic Stevenson <[email protected]> 35137ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants