Commit Graph

2829 Commits

Author SHA1 Message Date
adelikat 96119b7734 Lua console - use smaller stop icon that does not bleed into other rows 2020-05-01 15:50:19 -05:00
adelikat 345ae3b872 fix #1957 2020-05-01 15:32:44 -05:00
adelikat 3e8bad74a2 ensure that Tastudio is fully updated when doing cut/paste operations, should really fix #1956 this time 2020-05-01 15:14:49 -05:00
adelikat 83e685cfa1 Tastudio - remove unnecesary updates in GoToFrame(), since tastudio and other tools are already updated by other methods it calls 2020-05-01 14:26:48 -05:00
adelikat d1cb8d53ad Tastudio a few simplifications 2020-05-01 09:52:25 -05:00
adelikat a1c8c4ed3a Tastudio - create a FullRefresh() method that guarantees RowCount will be updated and all drawing will occur, but is slower, and use it in non-perormance situations such as copy/paste methods. Fixes #1956 2020-04-29 19:46:11 -05:00
adelikat 92db6b8b64 Tastudio - try to sort out when to fully redraw tastudio vs update row count 2020-04-29 19:39:18 -05:00
adelikat 9203f56eca tastudio - consolidate logic and always draw column emphasis (to show sticky state) when setting up columns, rather than only on load 2020-04-29 19:17:44 -05:00
adelikat 5252598aef tastudio - remove unnecessary setting of DialogResult 2020-04-29 19:10:57 -05:00
feos eec3cf44f2 fix #1837
while the project is open, the menu still doesn't update to account for this, but at least it can be saved properly now
2020-04-29 23:00:07 +03:00
adelikat 68251cdc55 tastudio - simplify a bit, move some methods and fields around, improve comemnts 2020-04-28 12:42:27 -05:00
feos a8472a77f3 cycle count: how low can we go? 2020-04-28 19:53:12 +03:00
adelikat c8ae659b19 Tastudio - simplify some redundant code 2020-04-27 20:26:51 -05:00
adelikat 80eacf88eb a few nitpick cleanups in Tastudio code 2020-04-27 16:51:42 -05:00
adelikat 8a6868be4a fix an unnecesary use of Global 2020-04-26 14:32:01 -05:00
adelikat 8ace823682 "fix" inability to open tastudio if default.tasproj was saved with a different system, the unnecessary save on load was necessary afterall, this code is bad. Fixes #1937 2020-04-26 14:21:14 -05:00
adelikat 7484fc1ad2 Revert "Tastudio - fix regression where default.tasproj is loaded if the file exists, fixes #1937"
This reverts commit 49395b435f.
2020-04-24 18:47:49 -05:00
adelikat 49395b435f Tastudio - fix regression where default.tasproj is loaded if the file exists, fixes #1937 2020-04-24 17:07:32 -05:00
adelikat e3682dca05 oops 2020-04-24 13:48:05 -05:00
adelikat d4c8615e95 remove unused usings and other redundancies 2020-04-23 20:33:18 -05:00
adelikat 70633419ac
Refactor TasMovie and add interface (#1940)
* create ITasMovie interface, still lots of todos

* interface for TasMovie.ChangeLog

* rename method

* interface more TasMovie things

* file rename

* interface more ITasMovie things

* make Bk2Movie and TasMovie internal, rely on interfaces for behavior and MovieService for instantiation

* MovieService cleanup

* cleanup TasBranch handling and simplify ITasMovie api

* more branch logic cleanup and ITasMovie simplificaiton

* more cleanup of branch handling

* more ITasMovie simplification

* nitpick cleanup

* Use IMovie.GetInputLogEntry instead of GetLogEntries

* more ITasMovie cleanup

* move come ITasMovie properties to TasBranchCollection

* TasMovie cleanup

* simplify ITasMovie more

* cleanup
2020-04-19 13:38:45 -05:00
adelikat 918fbe6367 fix Tastudio .tasproj loading broken in previous commits (this code is a mess), MovieSession - remove setter on Movie property 2020-04-18 15:37:43 -05:00
adelikat 56cc1fefff Tastudio - simplify movie loading stuff 2020-04-18 15:28:31 -05:00
adelikat 4e3aa0eb15 move Bk2 -> TasMovie conversion logic from Tastudio to MovieSession, fix crashing when loading .bk2 movies from the tastudio menu 2020-04-18 14:50:25 -05:00
adelikat d946aa6145 tastudio - cleanups 2020-04-18 14:50:25 -05:00
adelikat 7a77861896 Conisstently use MovieSession.StopMovie instead of stopping the movie directly, derefrence the movie on stopping instead of letting it hang around in memory 2020-04-18 14:50:25 -05:00
adelikat b2208d714c Tastudio cleanups 2020-04-18 14:50:25 -05:00
adelikat dc9fa1acf3 movie code cleanup 2020-04-18 11:54:49 -05:00
adelikat 9494243eef add an IStatable extension method that can load a state directly from a byte array, reduces the stream creation boiler plate in a number of palces 2020-04-18 10:26:08 -05:00
adelikat a460846ff8 Tastudio - account for an unlikely edge case NRE where right button held is true but mouse is outside of the control 2020-04-18 10:23:10 -05:00
adelikat 3f1ef8dd4d add a IMovieSession property to ToolFormBase and use it 2020-04-16 12:25:42 -05:00
adelikat c0fde42a0c don't expose Bk2Controller, clients need to depend on an interface and rely on the Movie (well, MovieSession currently) to generate an IMovieController instance, since different implementations of IMovie need to be able to create their own controller implementations 2020-04-14 21:35:44 -05:00
adelikat f2e52988c1 simplify some IMovieSession stuff 2020-04-14 21:23:47 -05:00
adelikat ab7225c955 remove MovieSession convenience property that isn't that convenient anyway 2020-04-14 20:58:02 -05:00
adelikat 0d2f014621 refactor Bk2LogEntryGenerator to be stateless, refactor some IMovieSession shenangians 2020-04-14 20:50:21 -05:00
adelikat cdfeda8b71 rename IMovieController methods and classes to better describe what they are 2020-04-14 20:10:50 -05:00
adelikat aa80c3a0d6 majorly refactor Bk2Controller more 2020-04-14 19:33:49 -05:00
adelikat 13e58cbac5 refactor IMovieController 2020-04-14 19:05:17 -05:00
adelikat 03a7ea8438 IMovie.PopulateWithDefaultHeaderValues() - pass in dependencies instead of using Globals 2020-04-14 17:30:32 -05:00
adelikat 2b17c6d310 simplify some LogGenerator code 2020-04-14 16:44:37 -05:00
adelikat 831621b864 remove some unused code 2020-04-14 16:25:28 -05:00
adelikat ade678487a Lua console - account for separators when doing Duplicate Script 2020-04-13 19:29:25 -05:00
YoshiRulz 7cce81a880
Move LuaLibraries.GuiLibrary to inheritors, fix related NREs on Unix 2020-04-14 05:11:20 +10:00
YoshiRulz 3d532078a5
Rename PlatformEmuLuaLibrary and implementations
EmuLuaLibrary was too close to EmulationLuaLibrary. These classes are
containers, they're not in the LuaLibraryBase inheritance heirarchy.
2020-04-13 19:49:21 +10:00
YoshiRulz e514dfd117
Move/rename Lua library classes 2020-04-13 19:42:14 +10:00
YoshiRulz e226ff102b
Replace dynamic type with Object in API
Using the dynamic type here is no better than object because the values are
primitive types -- more likely to be cast/typechecked than used as a receiver
param for a method call.
2020-04-13 17:05:38 +10:00
adelikat ff029968f3 fix compile error, some nitpick cleanups 2020-04-12 15:30:40 -05:00
adelikat e0df266cb7 remove remaining globals in LuaFunctionList 2020-04-12 14:17:16 -05:00
adelikat 42c6168c7e LuaFunctionList - remove global usage, make an IEnumerable instead of List since add/remove needs to be carefully controlled 2020-04-12 13:29:58 -05:00
adelikat 6e40c46aa1 some nitpick cleanups 2020-04-12 13:29:58 -05:00