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
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