Skip to content

Layout parser Custom Variables from LiveSplit layouts #874

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
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

AlexKnauth
Copy link
Contributor

A companion PR to LiveSplit/LiveSplit.Splits#27 and LiveSplit/LiveSplit.Subsplits#21, allowing livesplit-core's layout parser to import .lsl LiveSplit layout files containing Custom Variables in Splits, Subsplits, and Text components.

@CryZe CryZe requested a review from Copilot May 27, 2025 20:36
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR extends the livesplit-core layout parser to support LiveSplit layout files with custom variable definitions in Splits, Subsplits, and Text components. Key changes include adding tests for custom variables in layout files, updating layout file examples to include custom variable scenarios, and modifying the parser logic in both Text and Splits modules to properly handle "CustomVariable" types.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

File Description
tests/layout_parsing.rs New tests added for custom variable splits and subsplits
tests/layout_files/*.lsl & *.ls1l Added layout examples with custom variable configurations
src/layout/parser/text.rs Updated parsing to support custom variables in Text components
src/layout/parser/splits.rs Modified column type parsing to support custom variable columns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant