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
zeromus
42c0b62261
fix some lua currdir bugs, but its all broken, dont pay any attention to it
2016-01-31 03:18:34 -06:00
zeromus
da865e28b8
try sandboxing currenty directory harder
2016-01-31 02:40:48 -06:00
adelikat
0013646db5
Rip out obsolete notion of a WatchList domain, change ram watch menu item to Default Domain, who's functionality is simply to decide the default domain used when adding a new watch, also add some Visual Studio designer shenanigans for a previous commit I made that broke it
2016-01-30 22:17:31 -05:00
adelikat
894a9c2318
Rework ToolHelpers from a static object to ToolFormBase that inherits form and have a lot of tools inherit it, in hopes of moving a lot of copy pasta into a base class, move a few functions that show up a lot there
2016-01-30 20:24:53 -05:00
zeromus
0da6e745e5
move EnvironmentSandbox and LuaSandbox to Client.Common
2016-01-30 18:37:30 -06:00
adelikat
1e57a0a221
Lua Console - remember column widths
2016-01-30 19:20:52 -05:00
adelikat
fdae465089
Lua - refresh the lua console when a script exits
2016-01-30 18:50:05 -05:00
feos
7409a32658
lua: attempt to use sandbox in callbacks.
2016-01-30 23:26:27 +03:00
adelikat
b6406fe523
lua - client.displaymessages()
2016-01-30 12:08:37 -05:00
pjgat09
e4a4a9606c
Lua forms: Added a scrollbars argument for creating a textbox.
2016-01-15 21:19:25 -05:00
feos
23b3784123
lua: gui.defaultTextBackground()
2015-12-20 14:28:31 +03:00
pjgat09
84428afc58
Lua forms textbox: Ctrl+A now selects all text
2015-12-19 22:16:29 -05:00
zeromus
260ad45a88
fix lua's reboot_core function... maybe
2015-12-19 21:14:13 -06:00
pjgat09
d54e53d329
Lua forms.setproperty: Convert the passed value to an enum if applicable
2015-12-19 00:01:06 -05:00
pgrimsrud
bb327261ae
Add a return value to the main function for various purposes.
...
Add Lua function ExitCode to allow script writers to terminate the client with an exit code.
2015-12-15 22:39:42 -07:00
Connor Olding
a7dd0b2386
Adjust Registered Functions window: anchors, minimum size
2015-12-10 03:35:12 -08:00
feos
eb41e8a8e0
lua: remove registered functions on toggle option.
2015-11-29 22:56:28 +03:00
feos
0be8f8c564
lua: another pixelFont tweak.
2015-11-29 22:56:26 +03:00
feos
fbd1d6d8e2
Lua: autoload recent scripts too (unless there's a recent session to autoload).
...
pixelText bg tweak.
2015-11-29 13:29:48 +03:00
feos
128c09e7b4
progress with lua:
...
- added fceux and gens/snes9x pixelated fonts
- added gui.pixelFont() function for them (no resizing, so perfectly scalable)
- added background to drawText and pixelText (halo was painfully slow, so just a box)
- reordered fore and back colors for gui.text (no need to specify back every time we want to change fore). thought its back color was shadow, that is obsoleted by halo now, whose color we can't change. anyway, it's way slower than simple text functions, so they should be used mostly.
- option to toggle all scripts if none is selected. greatly reduces routine when heavily tweaking a script, and is just generally pretty.
2015-11-28 22:19:15 +03:00
feos
2ce108e310
lua: ability to SetBranchText.
...
doesn't make much sense to add text to existing branches from lua, but highly useful to set some text to a new branch.
and we also have a default branch text variable now.
2015-11-26 00:12:25 +03:00
zeromus
283cb4ae50
fix loading of roms from commandline
2015-11-12 17:47:39 -06:00
Isotarge
02c04d0088
Fix forms.destroyall() and call it when lua console closes
...
Fixes #454
2015-11-07 01:38:44 +10:30
zeromus
93e7c91ee9
clean up lua console pause/stop behaviour a little bit and add listview icons to make it more clear what's going on
2015-10-22 16:28:52 -05:00
zeromus
c3ff70b864
fix gameExtraPadding coordinate translation and revise lua autodoc for the concerned functions. Presently the entire assortment of functions is confusing, but at least it does something that works.
2015-10-16 19:17:23 -05:00
zeromus
9b222653f5
fix some lua autodoc
2015-10-16 18:28:23 -05:00
zeromus
9410a6cb9d
lua console - tweak output behaviour for script evaluation textbox
2015-10-15 18:32:59 -05:00
zeromus
169f36ee85
code formatting
2015-10-15 18:32:59 -05:00
zeromus
3592d1418d
lua - add client.SetSoundOn and client.GetSoundOn
2015-10-13 18:54:05 -05:00
zeromus
21579c1c86
lua - add client.SetClientExtraPadding
2015-10-12 20:30:09 -05:00
zeromus
cf1c53f3fb
fix quicknes lua rendering being offset incorrectly sometimes. fixes #498
2015-09-16 14:02:45 -05:00
adelikat
98bc140a84
Issue #385 - Lua - add memorysavestate library for making and loading savestates in memory, with save, load, remove, and clearall methods
2015-09-09 20:47:56 -04:00
zeromus
d0f56ac98d
lua - add client.SetGameExtraPadding(left,top,right,bottom)
2015-08-09 13:57:45 -05:00
adelikat
64126fbad3
issue #469 - lua - forms.newform() - add an onclosed callback optional parameter
2015-08-04 20:17:04 -04:00
adelikat
ad821c90d5
lua - implement client.exit()
2015-07-31 18:44:53 -04:00
zeromus
50aaa61d2c
case insensitive lua functions library docs search
2015-07-22 12:13:30 -05:00
adelikat
a8bf7f1828
oops
2015-07-10 10:26:51 -04:00
adelikat
7ecf96772c
tastudio/lua - implement tastudio.setlag()
2015-07-09 13:16:55 -04:00
adelikat
9455aec767
Tastudio/lua - implement tastudio.onqueryitemicon()
2015-07-09 12:47:59 -04:00
adelikat
19423092cd
Tastudio/lua - implement tastudio.ongreenzoneinvalidated
2015-07-02 14:51:42 -04:00
Tom Rochette
a783ef75f6
Simple Lua sandbox.
...
Uses an EnvironmentSandbox to restore the Environment.CurrentDirectory. Will also catch any script exception and redirect them to the Lua console.
With this change, I've tried to replace all the places where Lua is executed so that if an exception occurs, it is catched, sent to the console and a callback is executed if necessary.
This also fixes a small issue where any callback generating an exception would crash BizHawk.
2015-07-01 22:38:19 -04:00
adelikat
c53cef6cf9
tastudio/lua - implement tastudio.onqueryitemtext
2015-07-01 19:46:14 -04:00
adelikat
f847e905d2
tastudio/lua - add onqueryitembg event to the lua library, this is called during each cell's background color drawing callback, and gives the opportunity for lua to override the color.
2015-07-01 19:01:29 -04:00
Tom Rochette
de98e0ed66
[ #405 ] Set Environment.CurrentDirectory when executing Lua events within a WinForm.
...
Since events are not executed within the LuaConsole.ResumeScripts method, those did not have Environment.CurrentDirectory available for the executing script.
The fix is simple: when a lua script instantiates a LuaWinForm (through forms.newform), we store the current Environment.CurrentDirectory in the LuaWinForm object.
When a button or checkbox is triggered, it calls WinForm.DoLuaEvent which will set up the Environment.CurrentDirectory for the duration of the callback and then set it back to the initial Environment.CurrentDirectory.
2015-06-30 22:35:59 -04:00
Tom Rochette
c03a162bc1
Add a split container to LUA console window.
...
With the split container, resizing the window will properly reformat the output section as well as allow users to resize it.
2015-06-29 00:28:35 -04:00
ConHuevosGuey
d97d94ecbc
Made size nullable...now requires a size input.
2015-06-28 13:25:28 -05:00
ConHuevosGuey
229865c443
Added a 'Draw Axis' function to lua GUI library
2015-06-28 13:23:07 -05:00
pasky1382
703dc33cc0
Small correction.
...
Removed the link to the key names that did not contain correct information, this list of key names is not used in Bizhawk for lua's input.get()
2015-06-22 13:40:22 +00:00
adelikat
6517178e6d
lua - savestate.looad() - if path does not exist put a helpful error message rather than a vague .net error
2015-06-15 01:17:02 +00:00
adelikat
a04a80bfce
add "new" to LuaCanvas.Refresh() because I"m tired of seeing the warning
2015-05-17 20:33:27 +00:00
adelikat
e57d15d85b
oops, remove some debugging code
2015-04-12 17:47:34 +00:00
adelikat
53341ee24a
Lua - add client.CreateInstance() which receives a type name available to EmuHawk and will construct and return the given object, currently it is limited to objects that have a parameterless constructor but we should be able to improve upon that limitation
2015-04-12 17:46:27 +00:00
adelikat
a0d56df06b
Lua - client library - change GetOpenTools() to GetAvailableTools() which returns a list of tools available to the currently loaded core, change GetTool() to receive any avaialble tool, if the tool isn't open, GetTool() opens it
2015-04-12 17:37:06 +00:00
adelikat
8d86ee012e
Lua - implement client.GetOpenTools() to return a list of currently open tools. And client.GetTool(string name) which return an object to lua representing a currently loaded tool, lua then has access to any public methods of that object
2015-04-10 21:56:03 +00:00
scepheo
abf1e55934
A bit of testing with Lua.
2015-04-10 14:11:01 +00:00
pjgat09
57fa633a9e
Lua Forms: Fixed a bug with SetProperty
2015-04-05 04:11:00 +00:00
zeromus
e12c711a0e
try to manage lua memory leak prevention in a way thats safer from re-entrancy during finalization thread
2015-03-28 05:53:03 +00:00
adelikat
6982df8035
Lua console - add a null check on close, LuaImp should never be null unless something went bonkers on load
2015-03-28 01:09:50 +00:00
adelikat
b74e0a3b3d
Lua - apply CrazyTB's patch to fix gui.drawImageRegion()
2015-03-24 22:15:36 +00:00
adelikat
16e9bc7d38
Fix some lua documentation
2015-03-23 22:22:02 +00:00
adelikat
e4b613d9f7
Lua - add gui.drawImageRegion()
2015-03-23 21:27:24 +00:00
adelikat
5a2146bde2
Lua - fix fill behavior in drawBox, drawRectangle, drawEllipse, and drawPie
2015-02-24 00:37:56 +00:00
adelikat
b45d3820be
Lua - gui library - make all colors optional parameters and use defaults if not provided (initially white foreground and transparent background). Add gui.defaultForeground(color) and gui.defaultBackground(color) to change those defaults
2015-02-23 03:10:38 +00:00
adelikat
1514faf300
Move PresentationPanel from GlobalWin to Mainform, since it was primarily used there (and the few other places knew about GlobaWin.MainForm anyway)
2015-02-22 03:53:07 +00:00
scepheo
48a6686f31
Lua Console: Command window gives slightly more sensible output now.
2015-02-08 23:47:15 +00:00
scepheo
152323d891
Lua Console: Console and immediate fields now use Courier New.
2015-02-08 23:09:58 +00:00
adelikat
0ee999dde4
Lua - drawImage - speed up by caching images instead of reading them from disk on every call
2015-02-07 15:39:16 +00:00
adelikat
3ebd9bb2df
Lua functions list - greatly speedup drawing
2015-02-05 00:04:05 +00:00
adelikat
53cda95ca5
Lua Console - don't nag to save a session, unless a session exists
2015-01-31 01:52:29 +00:00
scepheo
860227ee66
LuaConsole: Actually stop and restart script upon tool restart.
2015-01-29 14:50:09 +00:00
adelikat
6f2488aa57
Lua - clear out lua drawing surface on restart
2015-01-29 03:36:19 +00:00
adelikat
307845b3b5
Lua - recover from a locked drawing surface exception and log to the console, rather than crash the emulator
2015-01-29 02:14:39 +00:00
adelikat
24a517d293
Lua - properly re-inject core dependencies on restart
2015-01-28 14:38:06 +00:00
adelikat
09072acb3b
Lua Console - immediate box - in some situations wrap the text in a console.log(), such as if the user simply types a variable name
2015-01-27 23:27:44 +00:00
adelikat
3b13ea4a8f
spaces to tabs, good ol whitespace commit
2015-01-27 23:18:48 +00:00
goyuken
82fcd0bc5e
refactor IVideoProvider into a service. uses in mainform and friends are still hacky
2015-01-14 22:37:37 +00:00
christoph.boehmwalder
99f9d91671
LuaConsole - Fixed tooltip of Duplicate button.
2015-01-03 22:40:11 +00:00
jdpurcell
cf7815adc9
Fix anchoring of new textbox.
2015-01-02 22:02:00 +00:00
christoph.boehmwalder
879302710e
Lua Console - Attempt to fix scaling horror
2015-01-02 20:01:01 +00:00
christoph.boehmwalder
e11811e2f8
Lua - Added an input box to the script console for on-the-fly command input
...
Set ImageScaling to None for all buttons in the toolbar in order to fix scaling issues
2015-01-02 19:36:32 +00:00
adelikat
4e0e5958ed
Lua - Convert Gui library to service injection system
2015-01-01 21:44:49 +00:00
adelikat
a7c91ddcdd
Lua - convert to the Client library to the service injection system
2015-01-01 20:58:57 +00:00