adelikat
20d2a7d198
Lua - tastudio onquery callbacks - attempt to better clarify the expected lua function that is taken as a parameter
2017-04-30 12:05:27 -05:00
adelikat
1184e8ed05
lua - implement tastudio.getselection(), tastudio.insertframes(), tastudio.deleteframes()
2017-04-22 20:50:03 -05:00
J.D. Purcell
b53502eed8
Spaces -> tabs.
2017-04-15 16:37:30 -04:00
adelikat
e23dc983f0
Merge pull request #826 from lenalia/master
...
Added horizalign and vertalign to DrawText
2017-04-11 16:43:20 -05:00
lenalia
117ce07aaf
Added horizalign and vertalign to DrawText
2017-04-04 21:20:33 -04:00
shanehoman
58e1b52369
expose MainForm.SaveRam() method to lua
2017-04-02 23:12:38 -07:00
feos
853432da26
tastudio lua: add recording mode functions
...
finally fixes #793
2017-03-08 19:56:44 +03:00
adelikat
5d4c8020c2
Delete more stuff
2017-02-22 10:12:14 -06:00
adelikat
f35717aae2
Remove yet more unused code
2017-02-22 10:11:08 -06:00
adelikat
7653b86f44
Remove some unused code
2017-02-22 10:09:44 -06:00
feos
b5730bda3a
clarify lua doc
2017-02-19 11:56:17 +03:00
zeromus
ea2188dc46
make tastudio.setplayback correctly restore the recording flag after it finishes seeking from the greenzone to the target frame
2017-02-07 00:01:14 -06:00
zeromus
d87a2b27a2
make lua's new tastudio.setplayback re-enable the record flag if it was set (the existing logic leaves it disabled I think as security against the GUI use case where users might stomp their video seeking while playing in record mode). future work: add lua control for the record mode flag
2017-02-05 04:20:07 -06:00
zeromus
539cdc29f3
add SetPlayback to tastudio lua library. Can't be 100% sure it works, but it seems to be working OK. it may hang everything up if you seek through a really long redzone.....
2017-02-04 21:40:29 -06:00
zeromus
a70e6e2fc4
fix #790 (Scroll wheel missing from input.getMouse())
2017-02-04 20:52:32 -06:00
adelikat
0480ea3f44
when toggling a script on, update on screen lua drawing stuff. On gui.clearGraphics() immediate update the screen
2017-02-04 15:54:04 -06:00
adelikat
3b197b8fdf
lua console - roll back commit that disposes scripts when closing the window, apparnetly luainterface doesn't want you to dispose of disposable things
2017-02-04 15:30:13 -06:00
adelikat
0c7cedd2ac
lua - tastudio.setmarker() - make marker message optional
2017-02-04 15:11:43 -06:00
adelikat
3d805a3541
null check for previous commit
2017-02-04 10:45:32 -06:00
adelikat
923565c350
Lua console - dispose of scripts when closing the console window
2017-02-04 10:32:36 -06:00
adelikat
c050eaa8c7
lua console - fix the edit button to account for relative vs absolute pathing
2017-02-02 17:48:32 -06:00
zeromus
f7638e8352
"fix" client.bufferwidth and client.bufferheight .... I dont understand why they were doing what they were doing. It seems like such a simple thing, just return the dimensions of the core's videoprovider. Someone should rethink all these (and the surface names, and the padding names) and craft a complete, new design.
2017-01-26 00:54:44 -06:00
Isotarge
ab1b1877e8
Lua: Implement forms.setdropdownitems()
2016-12-26 12:13:19 +10:30
adelikat
3bfce81eae
LuaConsole - have a RequiredService of IEmulator and pass it into the lua implementation instead of using Global.Emulator
2016-12-06 10:35:11 -06:00
adelikat
e99bc9ba41
use the Emulator property instead of Global.Emulator in some lua library files
2016-12-04 12:37:29 -06:00
adelikat
b7a6542fb6
Lua - gui.drawImage(), gui.drawImageRegion() - log an error if image can not be found, instead of throwing an exception
2016-11-19 14:10:17 -06:00
adelikat
889feeeeba
fix #414 by idiot-proofing the lua console command window, if emu.frameadvance() is called, log a warning instead of blowing up
2016-11-13 11:26:09 -06:00
adelikat
ddf23e4c3a
Lua console - use string.IsNullOrWhiteSpace when checking the command line box
2016-11-13 11:15:30 -06:00
adelikat
c27355169f
lua forms - run a checkbox click callback after the event not before, fixes #545
2016-11-11 10:03:13 -06:00
adelikat
ec502acd1d
Lua - make a call to DrawFinish() when closing the lua console. Fixes endless locked emu surface errors when opening it back up and loading a script that draws
2016-11-08 10:37:59 -06:00
adelikat
e281950902
Close a lua instance before creating a new one, fixes #455
2016-10-06 15:17:05 -05:00
feos
fc66ec1b02
Lua docs: fix #703
2016-09-29 18:09:58 +03:00
adelikat
11b4f5a5b1
Lua - fix #691 - When calling client.reboot_core we still want to re-inject dependencies to the lua libraries
2016-08-28 12:07:26 -04:00
zeromus
a7d2b8d7f7
* add a new IToolForm update mechanism which has extensible update points (so a tool can both pre- and post- update)
...
* make trace logging "core-pushes" model, to a sink installed by the frontend. This sink can go straight to the disk without wasting memory if that's what the Trace Logger tool has selected; or the Trace Logger will buffer it if it needs to. Formerly, we had a "core-pushes-to-buffer" and "client-pulls-once-per-frame" which necessarily caused huge buffers no matter what was going on.
2016-08-13 15:31:26 -05:00
feos
1e6b3bfbee
lua text: display trailing spaces
2016-08-06 15:45:07 +03:00
Isotarge
5a20a520bd
Tools: Ram -> RAM #669
2016-07-22 01:32:54 +09:30
zeromus
676b5791f6
lua: add gui.DrawFinish() which will let you choose when to finish drawing; and add optional argument to gui.DrawNew which when set to false lets you keep it from being cleared.
2016-04-21 16:43:37 -05:00
zeromus
1a1a688b96
remove NeedsToPaint; client now repaints ~100fps while paused all the time. as it already did when input display was enabled. fixes #615.. probably
2016-04-20 12:17:41 -05:00
feos
fcbf4adbec
lua: remove bg color from gui.text function, since it's always a black halo.
2016-04-18 19:39:24 +03:00
zeromus
66683b16ed
replace "Ok" with "OK"
2016-03-26 21:50:33 -05:00
adelikat
47d9432ad4
Lua - set file watchers on lua session autoload
2016-02-14 21:51:12 -05:00
feos
435323489e
lua: gui.defaultPixelFont()
2016-02-10 20:06:45 +03:00
zeromus
1a123fa491
allow "#aarrggbb" as Color parameter to forms.setproperty. fixes #547
2016-02-08 02:33:58 -06:00
adelikat
36b82c3563
Lua Console - add a button that installs auto-complete for all bizhawk's lua library to Sublime Text 2's lua syntax, still todo - notepad++
2016-02-07 08:27:57 -05:00
adelikat
907850ce02
Lua - fix exception when reloading a lua script with registered functions while the registered functions dialog is open
2016-02-06 14:22:56 -05:00
adelikat
487fce328b
Lua - add option to detect changes in scripts and automatically reload them. Have this option off by default for now. Also fix reloading of scripts which was recently broken.
2016-02-06 13:50:02 -05:00
adelikat
8168031bed
Make TargetZoomFactor a per systemId setting
2016-01-31 21:05:08 -05:00
zeromus
5e89e563d0
overhaul lua sandboxing so that each lua script has its own sandbox. elaborate tracking of winform/event ownership to ensure that lua doesnt receive calls without going through the owner's sandbox. add win32-specific speed hacks for currdir set/get at higher speed. There may be bugs in this commit, but I think we're on the right track now.
2016-01-31 19:54:55 -06:00
adelikat
30c7b32bc1
Lua Console - when a lua exception occurs we also want to update the script status icons
2016-01-31 19:02:02 -05:00
adelikat
0ff2db5c8d
Lua - ResumeScripts - loop through only running scripts, to avoid sandbox calls for non-running scripts
2016-01-31 14:31:29 -05:00