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

Support displaying a Custom Variable #10

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

AlexKnauth
Copy link
Contributor

A companion PR to LiveSplit/LiveSplit#2528. Allows a text component to display the value of a Custom Variable, with a checkbox in the settings.

@AlexKnauth AlexKnauth marked this pull request as ready for review October 12, 2024 21:43
this.chkCustomVariable.Name = "chkCustomVariable";
this.chkCustomVariable.Size = new System.Drawing.Size(149, 17);
this.chkCustomVariable.TabIndex = 3;
this.chkCustomVariable.Text = "Custom Variable";
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to add a tooltip to explain this setting?
It's not clear that this is only for the Auto Splitting Runtime for autosplitters that support custom variables, and also that you need to put the variable name where you'd normally put the text

Copy link
Member

Choose a reason for hiding this comment

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

Either that or make the labels clearer ("Autosplitter Custom Variable" for the checkbox, and rename the Text2 label to "Custom Variable Name" if the checkbox is checked)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I've added a ToolTip and made it rename the Text2 label if the checkbox is checked.

@wooferzfg wooferzfg merged commit 777ce34 into LiveSplit:master Jan 28, 2025
@AlexKnauth AlexKnauth deleted the CustomVariable branch January 28, 2025 00:37
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