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

New checkbox widget #73

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

ZookaOnGit
Copy link

Basic checkbox widget.
isChecked() function to see current state
TODO: customization of size, location, colour, etc..

Basic checkbox widget.
isChecked() function to see current state
TODO: customization of size, location, colour, etc..
height = 25,
color = "white",
downColor = "white",
downStyle = [[ background-color: white; border-image: url(/home/kirk/mudlet-data/profiles/Development/checkbox-25px.png); ]],
Copy link
Owner

Choose a reason for hiding this comment

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

should use self.checkboxFile and self.uncheckedFile instead of hardcoding them


function checkbox:createDisplay()

self:set_constraints({x = "30%", y = "60%", width = 200, height = 25})
Copy link
Owner

Choose a reason for hiding this comment

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

these should be set via the cons values in the checkbox:new function. We just then let inheritance handle the rest.

- add setChecked(boolean) function
- remove set_constraints
- remove hard coded file location
- made initial checkbox table local
- set label name on initialization,
- new echo() function
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.

None yet

2 participants