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
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
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
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
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
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
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
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
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
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
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
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
adelikat
72893a10f3
EmuLuaLibrary - remove some commented code that should have been deleted
2015-01-01 19:19:51 +00:00
goyuken
cfaf59f887
lua: internal infrsatructure changes to nes library
2014-12-17 23:03:58 +00:00
goyuken
ecf8728de6
factor out serviceinjector to emulation.common
2014-12-17 18:17:16 +00:00
adelikat
685756ea8e
Remove LoadTraceLogger() from ToolManager since it was simply a wrapper to manage availability logic, most of those types of properties should be removed now
2014-12-14 01:39:15 +00:00
adelikat
d7596684c2
Lua - Expose tastudio library in non-developer builds
2014-11-19 16:17:40 +00:00
adelikat
5c92adcaaa
Wire up the Log callback into lua libraries, this got lost in the last refactor I did, and so errors were not getting reported
2014-11-08 14:54:00 +00:00
adelikat
d0aee55059
Tastudio - a bit of simplifying some code
2014-10-20 19:04:59 +00:00
scepheo
bad2bda4f4
Added Lua functions to work with the letterboxing of the emulator, and for transforming emulator space points to client space.
2014-10-10 11:02:18 +00:00
zeromus
1358294a5c
ladies and gentlemen, it is my extreme pleasure to you, for tonight's entertainment to present, the lua DrawText without cleartype. May you all enjoy it as much as I have.
2014-10-04 02:09:25 +00:00
adelikat
7a1fe8d51d
lua/tastudio - implement tastudio.islag() and tastudio.hasstate()
2014-09-22 21:58:45 +00:00
adelikat
8b212da594
tastudio/lua - implement tastudio.getmarker(), tastudio.setmarker(), and tastudio.removemarker()
2014-09-21 15:17:29 +00:00
adelikat
538c4632af
Add a LuaLibraryAttributes attribute to lua libraries with a Released property, only register libraries that are released except in Developer Builds, set tastudio library Released flag to false
2014-09-20 01:00:50 +00:00
adelikat
ad16be7712
Start a tastudio lua library
2014-09-19 21:43:16 +00:00
adelikat
afdfe11c7e
lua - forms.label - add an optional fixedwidth font param
2014-09-07 02:42:44 +00:00
adelikat
bcd78cc4b8
Round 1 of Movie loading system overhaul, this fixes the problem of loading sram when a movie is loaded. Still todo: some cleanup of some hacks that are no longer needed, and restoring the ability to open the play movie dialog and other things, while a movie is active
2014-08-02 15:32:48 +00:00
adelikat
43d9f77fd6
this is mostly a hack, but fixes loading a rom when a movie is still running
2014-08-01 01:34:40 +00:00
adelikat
5f1df3224c
fix some dangling references to BizHawk.Multiclient mostly in comments, but also in some client facing tooltip and lua documentation
2014-07-27 01:19:33 +00:00
adelikat
7e768eacb1
When rewinding show << and <<<< symbols (not sure when those ever got removed). Tastudio - disable rewind on load, and restore it (if it was on) when closed
2014-07-11 17:14:45 +00:00
zeromus
0fe74f95e7
fix LuaConsole PWD-related bugs
2014-06-03 02:39:15 +00:00
adelikat
0649d1c77e
Lua - add some more documentation, add a method that generates tasvideos wiki markup of the documentation and outputs to a file (method not wired to anything, there to save me tons of time when releasing)
2014-06-03 02:19:13 +00:00
adelikat
d037c6ed60
Oops
2014-06-03 01:21:49 +00:00
adelikat
ba4e7d620b
Refactor the LuaDocumentation class to remove a bunch of unnecessary stuff
2014-06-03 00:34:41 +00:00
adelikat
5d79072a38
Lua - Finish strongly typing the Color params in the gui library, Lua Functions List - cleanup display of Color params and some other things
2014-06-02 01:04:13 +00:00
adelikat
58b5163715
Lua Interface - support Strongly typing System.Drawing.Color, and strongly type the color parameters of gui.drawEllipse()
2014-06-02 00:43:25 +00:00
adelikat
83ada011e8
Lua - Refactor how lua libraries are registered by searching assemblies and finding implementations and building a list of these
2014-06-01 22:02:59 +00:00
adelikat
0782c9820d
Lua - implement event.onexit() - fires when the calling script stops execution, supports multiple callbacks per script
2014-05-26 03:08:16 +00:00
adelikat
e88b7cc93e
one more tweak to make lua library constructors unified
2014-05-21 01:15:52 +00:00
adelikat
17568997bf
Lua - unify constructors and have all libraries receive a lua context and an output callback, simplify some convolved registration code
2014-05-21 00:17:35 +00:00
adelikat
6401e6d719
Refactor LuaLibraryBase to have a Lua context rather than misc libraries being in charge of that when needed. Still todo: clean up the inconsistent constructor logic, vs setting these as public properties
2014-05-20 20:34:51 +00:00
adelikat
f19d15d1ed
Lua - add a Log callback to the LuaLibraryBase class instead of having misc libraries have to build out this behavior when they need it
2014-05-20 20:25:18 +00:00
adelikat
4ee4088c4c
read/write byte range functions - range check, and log warnings if user attempts to access outside the domain range, rather than throw a vague lua exception and crash
2014-05-19 01:42:41 +00:00
adelikat
059952f0a4
Change memory.getmemorydomainlist() to return a lua table instead of a string
2014-05-19 01:06:44 +00:00
adelikat
3d10d67fea
Implement bizstring.split()
2014-05-18 21:06:16 +00:00
adelikat
55b4dcd53c
gui.text - remove hacks that attempt use window size. Better logic is to be pure client space, and let gui.drawText do anything else
2014-05-14 23:44:46 +00:00
gochaism
0a9039fc60
Set SystemIcons.Application to Lua form icon.
2014-05-02 00:44:14 +00:00
gochaism
3fd9113f0d
Disable maximize/resize of Lua forms, since user cannot do anything on resize anyway.
2014-05-02 00:38:48 +00:00
gochaism
a84b4126f2
Lua: Make console.log(...) a little more prettier.
2014-05-01 00:25:14 +00:00
adelikat
9d7c92fb6e
Oops
2014-04-29 21:25:17 +00:00
gochaism
38a0a3593e
Lua: Update print and console.log to take variable arguments.
2014-04-29 05:07:43 +00:00
adelikat
8c1c034090
Lua - make Print() be an alias of console.log()
2014-04-29 01:24:06 +00:00
adelikat
bbf7c43b6d
Rip out the Alert font from OSD Manager since it wasn't being used for anything useful anymore, Ram Watch on screen display - show frozen addresses in a cyan color instead of red to be consistent with the rest of the system
2014-04-27 13:01:10 +00:00
adelikat
603fd81066
Lua - implement movie.fps() and add MovieTimer.lua script that shows the clock time for a given movie (updates while recording)
2014-04-22 21:27:08 +00:00
zeromus
7adc15d97e
work on opengl display manager: optimized codepaths, user retroshader selection, support for importing a textureID from another core; add erase button to lua console;
2014-04-15 21:46:18 +00:00
adelikat
6adde23553
Lua - also fix client.frameskip()
2014-04-13 18:39:46 +00:00
adelikat
f589a91479
Lua - fix client.setwindowsize() and client.speedmode()
2014-04-13 18:35:27 +00:00
adelikat
9c3a7fec37
Lua - add a gameinfo lua library with getromname(), getromhash(), getdisplaytype(), getindatabase(), getstatus(), getisstatusbad(), getboardtype(), and getoptions() methods
2014-04-13 14:22:13 +00:00
adelikat
5559024757
Lua - Rip out gui.alert() and refactor/simplify things as a result
2014-03-23 17:39:07 +00:00
adelikat
54363e4da1
Lua - fix gui.drawText() (and gui.drawString)
2014-03-23 17:24:06 +00:00
adelikat
1226603697
Lua - Fix gui.Alert() to at least work. However, in trunk the alert font was gimped into regular font with the opengl change, and this is probably for the best. Will remove this lua feature and alert font code in a later commit
2014-03-23 17:12:25 +00:00
adelikat
33fdf03af6
Lua - fix forms.newForm()
2014-02-23 22:47:45 +00:00