Commit graph

21 commits

Author SHA1 Message Date
jberg
e9950e83ce Add some unimplemented methods to classes (#872)
* Add some unimplemented methods to classes

* fix test
2019-11-30 13:42:53 -08:00
jberg
b732613826 Add some more methods to classes (#871)
* Add some more methods to classes

* fix test
2019-11-30 13:42:53 -08:00
Jordan Eldredge
a85baef757 Custom ESLint rule to validate Maki classes (#868) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
5e048bc4f0 Clean up unused variables 2019-11-30 13:42:53 -08:00
jberg
a762dea981 fix container after inheritance change (#859)
* fix container after inheritance change

* fix missing method test
2019-11-30 13:42:53 -08:00
jberg
ba338543b1 handle Layout where we dont have background images or dont draw them (#862) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
563e9cbb64 Ensure we have no extra methods (#861) 2019-11-30 13:42:53 -08:00
jberg
8eb1549983 MakiObject classname really should be Object (#860) 2019-11-30 13:42:53 -08:00
jberg
7a27248626 Handle MAKI functions that need input, implement popupmenu (#854)
* initial test for generator class functions

* return promise from functions that need async

* move null check into isPromise and fix condition

* implementing popmenu

* fix dynamic node creation in prod build

* remove unnecessary async/await

* rename function with js_ prefix

* TODO to fix styles
2019-11-30 13:42:53 -08:00
Jordan Eldredge
3b6cc77db5 Test that our runtime implementaiton matches the object definitions we got from the decompiler (#857)
Eventually it would be nice to test against std.mi
2019-11-30 13:42:53 -08:00
jberg
d77d7a92b6 Add all the remaining MAKI classes (#855) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
31ac65eb18 Use a Set for checking if a value exists in a collection 2019-11-30 13:42:53 -08:00
Jordan Eldredge
bdd54d51ce Move volume into Redux 2019-11-30 13:42:53 -08:00
jberg
d13ff4d302 Fix event x/y by finding container node (#849)
* Fix event x/y by finding relativeParent

* use a tree search to find the container instead of event target hacks
2019-11-30 13:42:53 -08:00
jberg
126fade049 Fix hook eventNames to be case insensitive (#852) 2019-11-30 13:42:53 -08:00
jberg
3db63bd7c3 Setup update listeners to rerender react components (#848)
* Setup update listeners to rerender react components

* setupUpdates -> useJsUpdates
2019-11-30 13:42:53 -08:00
jberg
61c0afb165 Fix hook variable passing and initial stack setup (#844) 2019-11-30 13:42:53 -08:00
jberg
5411a444e7 Fix event x/y and add a few more methods (#842)
* Fix event x/y and add a few more methods

* ensure attributes exist and simplify

* simplify with ternary
2019-11-30 13:42:53 -08:00
jberg
0ac85b422e Remove xmlNode from MAKI objects (#829)
* Remove xmlNode from MAKI objects

* fix missed in rebase
2019-11-30 13:42:53 -08:00
Jordan Eldredge
d9a911f46b Fix auto-fixable lint errors in modern (#840) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
79ac60f1f1 Modern integration (#833)
* Make modern part of the code base

`yarn modern` will now start a dev server with the modern app running.

The debugger is not yet setup

`yarn test` will run all the tests, both Webamp and "modern".

* Let debug work

* Prettier

* Ignore lint errors for now

* Point test at the now skin location
2019-11-30 13:42:53 -08:00