adelikat
ec47305e4a
another bot test
2012-10-13 21:53:28 +00:00
goyuken
37a916f779
fix registerbefore\registerafter drawing memory leak??
2012-10-12 15:05:06 +00:00
adelikat
ab761066e9
Lua - rehook up emu.registerbefore() and emu.registerafter(), but they have memory leaks, don't use them yet
2012-10-12 14:33:54 +00:00
adelikat
822c079011
Revert fix to emu.registerbefore/after functions because thee fix was leaking memory
2012-10-06 21:01:21 +00:00
adelikat
f8a962294a
Lua - fix memory leaks
2012-10-06 18:39:38 +00:00
adelikat
b8070bc92f
Lua - fix emu.registerbefore() and emu.registerafter()
2012-10-06 16:13:45 +00:00
adelikat
1c17f8dbed
Lua Drawing - fix so that multiple scripts can draw at once
2012-10-06 14:36:02 +00:00
adelikat
e7112a9a5d
Make the Lua Function List dialog modeless
2012-10-06 13:09:45 +00:00
adelikat
ed832036c1
Lua - Implement mainmemory.readbyterange()
2012-09-29 01:57:25 +00:00
rolanmen1
6cec0f0182
LuaConsole: Call UpdateNumberOfScripts after you delete a script.
...
LuaImplementation: Added emu.ispaused(), also added the parameters width and height to forms.label and forms.button
2012-08-25 17:01:13 +00:00
rolanmen1
8f22c9098b
LuaConsole: The Label that counts the scripts gets updated each time a change has been made to the ListView, also removed all calls of the said function.
2012-08-25 12:17:44 +00:00
andres.delikat
cc82bfbefc
small optimization
2012-08-02 21:46:08 +00:00
adelikat
f93be79a47
LuaConsole: Hides and Disables the new script button on debug mode.
...
LuaWriter: Automatically adds "end" after pressing enter when if the line has "if", "for", "while", or "function". Even though, it creates a new line before the statement
2012-07-25 22:53:11 +00:00
andres.delikat
a5ed71269d
text: LuaConsole. Added a New Script menu item and toolstrip button. It calls the LuaWriter with a null path.
...
LuaWriter. If it is loaded with a null value, it will start the Text with while true do emu.frameadvance() end.
2012-07-25 17:36:26 +00:00
andres.delikat
8214a649c3
Lua console - fix to autoload lua session, if there is no recent session, it will open nothing, rather than cause an exception
2012-07-25 13:55:25 +00:00
adelikat
75bed1f242
Lua Console - open selected file in lua writer dialog, implement drag & drop on lua writer (but fails because it doesn't allow drop on the edit box itself)
2012-07-22 20:25:53 +00:00
adelikat
a380319973
Lua Console - remove hacky lua writer button. Set edit button to open the writer on interim builds only
2012-07-22 19:59:33 +00:00
adelikat
7cb69f4826
Hook up LuaWriter to a new & hacky toolstrip icon for now
2012-07-19 04:19:24 +00:00
zeromus
3a8fe7c464
lua-fix crashes when scripts terminate
2012-07-10 19:40:35 +00:00
andres.delikat
ca9c27113f
"Never be asked to save changes" config menu item
2012-07-10 17:22:23 +00:00
zeromus
34dd2812f6
fix lua memory leak (maybe affected today, but the leak is from may 6) and revert some virtuallistview changes which break more things than they fix. it seems .net's listview just happens to blow up internally constantly when its in virtual mode and recover from the exceptions.
2012-06-11 04:20:13 +00:00
adelikat
93b266838c
Add drag & drop for lua and luases files to main window. Allow multiple lua script drop to console and main window
2012-06-07 03:41:45 +00:00
adelikat
8ca6b24614
Cheats, Lua, Ram Search/Watch - flag changes when adding a separator, default to SaveAs if saving a new file, allow Save in menu item in this scenario
2012-06-02 22:06:00 +00:00
zeromus
857d0a5b39
voila, "emu" resolution lua drawing, hacked in place of the native resolution drawing because rolanmen1 decided to destroy my surface management paradigms (i can tell because the earth is scorched with spaces instead of tabs)
2012-05-06 07:09:04 +00:00
Rolanmen1
9b9a8546a5
Deleted the ClearDisplaySurface functions. If you just need to clear the graphics, call gui_ClearGraphics function in LuaImplementation.
2012-05-01 15:15:19 +00:00
Rolanmen1
2799d55f4a
Now gui.drawNew and gui.drawFinish doesn't need to be invoked via Lua Scripts. However they are invoked every frame. Basically, this means that graphics are drawn and cleaned every frame. So, if you Pause/Stop a script, the graphics gets cleaned right away.
2012-05-01 14:43:17 +00:00
rolanmen1
3bcaa8f2e6
gui.clearGraphics implemented. This will allow the user to clear the graphics whenever he wants. I also created a function ClearDisplaySurface that is used to clear the graphics whenever the user stops a scripts.
2012-04-27 20:15:07 +00:00
zeromus
35fbe354c1
add threaded display manager to allow heavy OSD/compositing/filtering to happen on another thread. add a lua layer accessible via GDI+ which can be automatically composited and the simplest possible demo of it. add some filtering infrastructure and a hq2x filter set ported to c# but need to work on a minimal selector gui before its usable. separate OSD from RenderPanel so that gdi+ presentation mode now gets full OSD support. the OSD is now a little uglier because its drawn entirely differently and could use some finetuning
2012-04-16 08:18:41 +00:00
Rolanmen1
e0d98c8a7f
Fixed: * if a lua script errors it stops, but you can't toggle it back because you can't resume a non-suspended script
2012-03-29 20:22:49 +00:00
andres.delikat
ca7d5d9131
Lua Console - add online documentation link to the Lua Function wiki
2012-03-28 20:49:58 +00:00
rolanmen1
5e25b15100
Lua Console - Save Menu Option Now Enables Even When There's No Session Loaded
...
ListView Refreshes When Loading A Session From Recent
When Clicking On New Lua Session Option, It Now Cleans The CurrentLuaSession String. This Will Prevent Some Unwanted Results When Saving A Session.
2012-03-27 13:54:29 +00:00
rolanmen1
5337fb2213
Lua Console Now Saves And Loads Sessions With Separators
2012-03-27 13:31:30 +00:00
zeromus
46a638ee96
fix bug in lua coroutines which made error propagation get mixed up and possibly result in a bunch of other subtle bugs
2012-03-27 07:25:36 +00:00
rolanmen1
36c4dee7b8
Show Errors On Lua In The Output Box More Accurately
2012-03-27 03:34:21 +00:00
adelikat
f145d8e655
Cheat Window, Ram Watc, Lua Console - fix exception when clicking Move Up on the first item in the list.
2012-03-26 23:38:29 +00:00
adelikat
602ee06ffc
Lua Cosnole - output message at bottom of dialog to show if changes have occured and saved messages (same as other tool dialogs such as ram watch). Better minimize size parameters of dialog.
2012-03-26 23:31:21 +00:00
rolanmen1
908a9a11c5
Lua Console - Save Session Menu Option Should Now Enable/Disable Correctly. Also Added The Condition That There Should Be At Least One Script To Be Able To Save.
2012-03-26 13:46:28 +00:00
rolanmen1
e2e3ee3301
Loading A Script With Errors Via Load Lua File Now Disables And Shows Error In Output Box. Toggling On A Script With Errors Disables Itself Right Away.
2012-03-26 08:52:06 +00:00
rolanmen1
5283b4c06c
Avoid Crashing After Trying To Delete A Script With Errors.
2012-03-25 15:34:09 +00:00
rolanmen1
35f42b94f3
Dragging A Lua Session Now Works. Script Errors From Dragging Sessions Now Appears In The Output Box.
2012-03-25 14:51:35 +00:00
rolanmen1
75c0a9f7d3
Script Errors Now Appears In OutputBox.
2012-03-25 09:47:31 +00:00
Rolanmen1
d0afec182f
Pause/Resuming Scripts Have Been Implemented
2012-03-24 18:59:24 +00:00
rolanmen1
d0995970fc
User Can't Toggle, Edit Nor Pause Or Resume To Separators. Edit Buttons Now Opens Multiple Scripts Instead Of The First Selected.
2012-03-24 13:25:19 +00:00
rolanmen1
87f9ace0d9
Added Resume/Pause Script Option Everwhere It Should Be And Also Added Pause Icon To All Of Them.
2012-03-24 12:43:11 +00:00
rolanmen1
661565cf3e
Added Pause Property To Scripts, Menu Option To Pause/Resume Scripts, Enabled And Paused Scripts Change It's Background To Red (May need to change this). Label Above ListView Shows How Many Scripts Are Paused. Need To Add Pause Icon To The Menu Option.
2012-03-24 10:53:26 +00:00
zeromus
5f39ba5bbd
add emu.yield, which when used allows a script to run while emulation is paused and interact with the gui/main window in realtime
2012-03-23 23:03:39 +00:00
zeromus
aaf92e0e25
how did that happen
2012-03-23 19:48:45 +00:00
zeromus
0372969f13
change lua to use lua coroutines for multiple scripts instead of .net threads
2012-03-23 18:24:29 +00:00
rolanmen1
dcaf724dae
Fixed A Bug When Saving A Session That Prevented Them To Be Loaded Correctly.
2012-03-21 12:51:52 +00:00
andres.delikat
bb7e320f92
Lua Console - when opening a duplicate lua script, don't turn script on if the disable lua script on load option is checked
2012-03-20 21:44:34 +00:00