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

Added new slider widget to devel/hello-world #1363

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

realSquidCoder
Copy link
Contributor

@realSquidCoder realSquidCoder commented Jan 1, 2025

Created devel/helloSlider.lua (a prototype for a new single-slider widget)

Created helloSlider.lua (a prototype for a new single-slider widget)
@realSquidCoder realSquidCoder marked this pull request as ready for review January 1, 2025 17:38
devel/helloSlider.lua Outdated Show resolved Hide resolved
devel/helloSlider.lua Outdated Show resolved Hide resolved
Move Slider example into the hello world
move the Slider widget away to its proper place (DFHack Repo).
@realSquidCoder realSquidCoder changed the title Add prototype for a new slider widget with only one slider. Added new slider widget to devel/hello-world Jan 20, 2025
devel/hello-world.lua Show resolved Hide resolved
devel/hello-world.lua Outdated Show resolved Hide resolved
devel/hello-world.lua Outdated Show resolved Hide resolved
devel/hello-world.lua Outdated Show resolved Hide resolved
@myk002
Copy link
Member

myk002 commented Jan 20, 2025

also needs a changelog entry

Comment on lines +59 to +61
on_change=function(val)
self.callback{Slider.on_change(val)}
end,
Copy link
Member

Choose a reason for hiding this comment

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

this on_change handler isn't necessary. it also appears to have a syntax error

view_id='level',
frame={l=0, w=20},
label='Level:',
label_below=false,
Copy link
Member

Choose a reason for hiding this comment

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

you can remove the label_below attribute

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

Successfully merging this pull request may close these issues.

2 participants