jberg
70b9e98aea
Fix emitter export ( #890 )
2019-08-26 11:56:48 -07:00
jberg
34a68ae64f
Remove script loading from initialize ( #889 )
2019-08-26 09:13:35 -07:00
Jordan Eldredge
cee3c14bd5
Improve types
2019-08-26 09:11:19 -07:00
Jordan Eldredge
3f7590817f
Decompose findParentNodeOfType
2019-08-26 09:11:19 -07:00
Jordan Eldredge
10a722f613
Letters are cheap
2019-08-26 09:11:19 -07:00
jberg
3a8f8055e8
Set opacity and ghost at GuiObject ( #885 )
...
* Set opacity and ghost at GuiObject
* add parseInt radix param
* move style calculations into GuiObjectEvents
* fixes after rebasing
* add alpha range in comment
* simplify alpha condition
2019-08-25 15:24:42 -07:00
Jordan Eldredge
8dbf348dba
Add some generic methods for dealing with selectors ( #888 )
2019-08-24 23:49:21 -07:00
Jordan Eldredge
98bcf9f682
Stub Out Missing Methods ( #887 )
...
* Add fixable rule to report missing Maki methods
* Stub out missing methods
These were auto-generated with the ESLint rule
* Don't lint on too many params, when the params are defined by Maki
* Improve objects tests now that all maki methods are stubbed out
Now we can assume all methods exist and we can also start a list of unimplemented methods
2019-08-24 23:04:50 -07:00
Jordan Eldredge
83d9443328
Fix lints
2019-08-24 22:30:48 -07:00
Jordan Eldredge
948c96dc64
Allow private methods in objects test
2019-08-24 22:17:28 -07:00
Jordan Eldredge
b67ebc2ca2
[WIP] Give Maki objects access to Redux state ( #882 )
...
* Share uids between maki objects and state tree
* Start to add xml tree
2019-08-24 21:10:00 -07:00
Jordan Eldredge
3af4d703d6
Avoid messagebox logs in our tests ( #884 )
...
This was a fun one
2019-08-23 08:19:32 -07:00
Jordan Eldredge
e7637b3b3c
Test method arity in standard library
2019-08-23 08:18:24 -07:00
Jordan Eldredge
dac6585675
Add modern integration tests ( #881 )
...
* add 2 test skins
* Add simple integration tests
* Simplify test skins
2019-08-21 21:42:07 -07:00
Jordan Eldredge
66e5091811
Persist skin URL to query param
2019-08-21 21:41:41 -07:00
jberg
d17333d428
Add missing config classes ( #874 )
...
* Add missing config classes
* fix test
2019-08-21 21:04:13 -07:00
Jordan Eldredge
1a7be6bce7
Add flag to state indicating when skin is loaded
2019-08-21 20:15:11 -07:00
Jordan Eldredge
e3b5031f29
Extract browser-only functions into Utils
...
This will make it easier to mock out these methods in tests to use Node apporaches to these problems
2019-08-21 20:06:11 -07:00
jberg
bae6a56458
Fix filename slashes ( #880 )
...
* Fix windows filename slashes
* add comment
* readXml will already convert the slashes
2019-08-21 16:30:21 -07:00
jberg
0fc4aacbbc
Fix script group finding ( #877 )
2019-08-21 14:35:59 -07:00
jberg
533d7f3f8f
add button left/rightclick functions ( #878 )
2019-08-20 07:40:45 -07:00
jberg
ceb85fa4be
Add delete opcode ( #869 )
2019-08-19 14:43:06 -07:00
jberg
59689fa827
Add some unimplemented methods to classes ( #872 )
...
* Add some unimplemented methods to classes
* fix test
2019-08-19 10:25:27 -07:00
jberg
378c9c595b
Pass store into skin loading ( #875 )
2019-08-19 10:22:44 -07:00
jberg
39c3a25c0a
Add more nodes to initialize ( #873 )
2019-08-19 10:22:18 -07:00
jberg
8ab2990f20
Add some more methods to classes ( #871 )
...
* Add some more methods to classes
* fix test
2019-08-19 10:21:31 -07:00
jberg
eda8d028c2
First check object type for subclass ( #870 )
2019-08-19 10:20:51 -07:00
jberg
b32520a122
Convert null MAKI objects to global NULL value ( #866 )
...
* Coerce null MAKI objects to 0
* use global NULL value
2019-08-19 09:10:46 -07:00
Jordan Eldredge
0ea8cc6561
Add a simple way to change skins
2019-08-19 06:34:43 -07:00
jberg
51f06c8e4c
Add more modern skins that partially render ( #867 )
...
* Add more modern skins that partially render
* Use skinUrls from archive instead of including skin zips
* add a few more skins from archive
2019-08-19 06:29:04 -07:00
Jordan Eldredge
52dfa6801a
Custom ESLint rule to validate Maki classes ( #868 )
2019-08-19 06:27:47 -07:00
Jordan Eldredge
0deca6f156
Add unique ID to each node in the state tree
2019-08-19 06:26:26 -07:00
Jordan Eldredge
287f226d32
Add glob dependency and allow rules that only warn
2019-08-18 14:26:31 -07:00
Jordan Eldredge
0f7bf53868
no-else-return
2019-08-18 14:23:01 -07:00
Jordan Eldredge
995e16143d
eqeqeq
2019-08-18 14:22:07 -07:00
Jordan Eldredge
2b4c2dca97
Don't return await from async func
2019-08-18 14:21:24 -07:00
Jordan Eldredge
95208d173b
Don't ignore undefined variables
2019-08-18 14:20:17 -07:00
Jordan Eldredge
a8d98ee432
Prefer const in modern
2019-08-18 14:19:16 -07:00
Jordan Eldredge
fd4b301427
Clean up unused variables
2019-08-18 14:15:29 -07:00
Jordan Eldredge
e35c85af3c
Remove dupes
2019-08-18 14:07:47 -07:00
Jordan Eldredge
2365732a71
Turn back on linting for modern
2019-08-18 14:06:43 -07:00
jberg
0a8a30d5ce
Remove xml schema and warn instead of error for missing parsers ( #865 )
2019-08-18 13:46:58 -07:00
jberg
11441c306c
fix container after inheritance change ( #859 )
...
* fix container after inheritance change
* fix missing method test
2019-08-18 13:01:26 -07:00
jberg
7744404dc2
Dont need to render certain MAKI nodes ( #864 )
2019-08-18 13:00:23 -07:00
jberg
1b9fd878a4
handle Layout where we dont have background images or dont draw them ( #862 )
2019-08-18 12:46:59 -07:00
jberg
9b21ed4d6b
Render text nodes ( #863 )
...
* Render text nodes
* add TODO about displaying text node info
2019-08-18 12:16:35 -07:00
Jordan Eldredge
fe68c78fcc
Ensure we have no extra methods ( #861 )
2019-08-18 10:18:29 -07:00
Jordan Eldredge
a45397cf72
Track all missing methods
2019-08-17 21:22:16 -07:00
jberg
449b4acb38
MakiObject classname really should be Object ( #860 )
2019-08-17 17:21:33 -07:00
jberg
067d4c1fef
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-08-17 16:44:15 -07:00