Commit Graph

9 Commits

Author SHA1 Message Date
Hersi 6749cb2a1c introduced PageManager
which made it pretty to get page instances (ewww '.__name')
from now page implementations use the PageManager to get page instances
SplashPage fading improvements
TitlePage implementation
replace viewHandler calls from page implementations with 'self:onInvalidation()'
fixed ListField focus implementation
fixed SelfTestField crash
MainMenuPage and subpages implementation
2022-06-29 00:35:52 +02:00
Hersi e68fcd5bfe code cleanup
instead of implementing __tostring, set __name
use variable name 'params' instead of 'o'
use 'self' for indicating instance instead of 'this'
move private members under self instead of params
set doc type of 'params' as the object created (helps IDE autocomplete)
2022-05-06 01:02:30 +02:00
Hersi 9937f56a4d new() doesn't need to be a class method 2022-04-27 02:40:22 +02:00
Hersi 3ea1429eab refactor class.lua (because Local is a bulli) 2022-04-27 00:06:42 +02:00
Hersi 5e5c00272f implemented ListField
added refreshFields() to ContainerFields
added a message object parameter to Field:activate(), focus() and deactivate() methods
added anti-stupidity measures to InputButtonField and InputKnobField
fixed some multi-inheritance order mixup (yay! lua hacks)
replaced unnecessary importing of the common.dimensions module
removed unnecessary stop_processing variable from handleButtonInput() methods
fixed MainMenuPage
added PAGE_PADDING static member to ServicePage
wrote in-code documentation for members and methods
2022-04-12 23:45:28 +02:00
Hersi 556bb9048d help me, god, why have you forsaken me
renamed linkfield to servicelinkdfield to differentiate between the two
modified Inherit() to accept multiple base classes
applied code format (oh god, oh f*ck, all the changed lines)
handleScreenResponse now doesn't crash when nil is passed
added boot screen module to titlescreen.lua
added a utility function to cycle indexes
added a containerfield (biggest brain addition)
refactored how class construction is implemented (declare it a class at the end of the constructor, this way the default values are correctly imparted)
added init() to the Field class
added a getParentPage() to the Field class, for easy nav handling
added offsets and bounding box size variables to the Field class
the Field class will now scissor itself into it's bounding box
LinkField now has clearer logs
added init() to the Page class
added skeleton field classes for boot page
2022-04-11 18:47:26 +02:00
Hersi df66b1592b add __tostring fields to classes 2022-04-05 23:53:19 +02:00
Hersi d3853485f8 fix module paths 2022-04-05 17:31:02 +02:00
Hersi c366753c36 refactored directory structure 2022-04-05 17:17:25 +02:00