-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: main
Are you sure you want to change the base?
Conversation
Basic checkbox widget. isChecked() function to see current state TODO: customization of size, location, colour, etc..
src/resources/checkbox.lua
Outdated
height = 25, | ||
color = "white", | ||
downColor = "white", | ||
downStyle = [[ background-color: white; border-image: url(/home/kirk/mudlet-data/profiles/Development/checkbox-25px.png); ]], |
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.
should use self.checkboxFile and self.uncheckedFile instead of hardcoding them
src/resources/checkbox.lua
Outdated
|
||
function checkbox:createDisplay() | ||
|
||
self:set_constraints({x = "30%", y = "60%", width = 200, height = 25}) |
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.
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
Basic checkbox widget.
isChecked() function to see current state
TODO: customization of size, location, colour, etc..