-
Notifications
You must be signed in to change notification settings - Fork 74
Add Native Subsplit Support #934
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
Open
CryZe
wants to merge
23
commits into
LiveSplit:master
Choose a base branch
from
CryZe:native-subsplits
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
69be0b9
Add Native Subsplits
CryZe 81ab1f7
Fix Subsplit Blank Row State
CryZe f0da092
Fix Hierarchical Blank Row Alternation
CryZe c66c93f
Simplify Subsplit Render State
CryZe c992711
Use Indentation in Split Render State
CryZe 8d7b9e2
Add Subsplit Display Mode Setting Value
CryZe a76aaf4
Localize Subsplit Display Mode Setting
CryZe d710ccc
Add Subsplit Group Scroll Cursor
CryZe a11119d
Improve Subsplit Group Editing
CryZe fb8a5d1
Fix Whole Subsplit Group Movement
CryZe faf201b
Allow Single-Segment Subsplit Groups
CryZe fec2a02
Simplify Subsplit Group Name Bindings
CryZe b4c24f1
Test Subsplit Group Rename Selection
CryZe 96bac4f
Refine Subsplit Group Display
CryZe d73153e
Update Splits Render Hashes
CryZe 0e0884c
Fix Subsplit Name Ellipsis and C API Doc Comment
CryZe 943d916
Move Subsplit Column Calculations to Analysis
CryZe fb6cbd0
Color Collapsed Subsplits as Best Segments
CryZe d56e512
Fix no_std Subsplit Analysis Build
CryZe fd46651
Avoid Heap Allocation for Subsplit Best Segments
CryZe 09cd4e6
Simplify Subsplit Editor State
CryZe b98eac3
Fix Collapsed Subsplit Delta Coloring
CryZe 684db0e
Tighten Segment Group Mutation APIs
CryZe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -776,6 +776,7 @@ export type SettingsDescriptionValueJson = | |
| { ColumnStartWith: ColumnStartWith } | | ||
| { ColumnUpdateWith: ColumnUpdateWith } | | ||
| { ColumnUpdateTrigger: ColumnUpdateTrigger } | | ||
| { SubsplitDisplayMode: SubsplitDisplayMode } | | ||
| { Hotkey: string } | | ||
| { LayoutDirection: LayoutDirection } | | ||
| { Font: Font | null } | | ||
|
|
@@ -832,6 +833,12 @@ export type ColumnUpdateTrigger = | |
| "Contextual" | | ||
| "OnEndingSegment"; | ||
|
|
||
| /** Describes how native subsplits are displayed. */ | ||
| export type SubsplitDisplayMode = | ||
| "Flat" | | ||
| "AllGroupsExpanded" | | ||
| "CurrentGroupExpanded"; | ||
|
|
||
| /** | ||
| * The Accuracy describes how many digits to show for the fractional part of a | ||
| * time. | ||
|
|
@@ -888,6 +895,8 @@ export interface RunEditorStateJson { | |
| timing_method: TimingMethodJson, | ||
| /** The state of all the segments. */ | ||
| segments: RunEditorRowJson[], | ||
| /** The segment groups of the run. */ | ||
| segment_groups: RunEditorSegmentGroupJson[], | ||
| /** The names of all the custom comparisons that exist for this Run. */ | ||
| comparison_names: string[], | ||
| /** Describes which actions are currently available. */ | ||
|
|
@@ -986,6 +995,16 @@ export interface RunEditorButtonsJson { | |
| * moved. | ||
| */ | ||
| can_move_down: boolean, | ||
| /** | ||
| * Describes whether the currently selected segments can be turned into a | ||
| * segment group. | ||
| */ | ||
| can_create_segment_group: boolean, | ||
| /** | ||
| * Describes whether the currently selected segments are exactly one or more | ||
| * segment groups that can be removed. | ||
| */ | ||
| can_remove_segment_group: boolean, | ||
| } | ||
|
|
||
| /** Describes the current state of a segment. */ | ||
|
|
@@ -1012,6 +1031,28 @@ export interface RunEditorRowJson { | |
| comparison_times: string[], | ||
| /** Describes the segment's selection state. */ | ||
| selected: "NotSelected" | "Selected" | "Active", | ||
| /** The index of the group this segment belongs to, if any. */ | ||
| segment_group_index: number | null, | ||
| } | ||
|
|
||
| /** Describes a segment group. */ | ||
| export interface RunEditorSegmentGroupJson { | ||
| /** The first segment in the group. */ | ||
| start: number, | ||
| /** The segment after the last segment in the group. */ | ||
| end: number, | ||
| /** | ||
| * The explicit group name. If this is `null`, the major split name is the | ||
| * display name of the group. | ||
| */ | ||
| name: string | null, | ||
| /** | ||
| * The group display icon. This falls back to the major split icon if no | ||
| * explicit group icon is set. | ||
| */ | ||
| icon: ImageId, | ||
| /** Whether the group icon is explicitly set instead of inherited. */ | ||
| has_explicit_icon: boolean, | ||
|
Comment on lines
+1053
to
+1055
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels redundant, we don't do this for the segment icons either. |
||
| } | ||
|
|
||
| /** | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about removing multiple groups?