zeromus
0a18040aff
remove pointless redundant function name from LuaMethodExampleAttributes
2018-03-13 21:05:30 -04:00
Azreal
6032063518
Now looks good :)
2018-03-10 03:00:44 -08:00
Xadrophonix
d91bd35a95
Second pool of examples.
2018-03-04 14:07:06 -08:00
Trivial-Man
7b8818c35b
Resolve issues with Master
...
- Uses NLua instead of LuaInterface
- Uses LuaMethod instead of LuaMethodAttribute
- All LuaCanvas Lua calls now begin with lowercase
- Also allows LuaPictureBoxes added through forms to be compatible with addClick
2017-07-13 22:32:27 -06:00
zeromus
d54fee4d91
Merge branch 'master' into master
2017-07-13 19:17:09 -05:00
adelikat
9581ce6a93
rename LuaMethodAttributes to LuaMethodAttribute so as not to be a bad person
2017-07-10 14:02:08 -05:00
zeromus
3417453b43
use NLua+KopiLua instead of LuaInterface
2017-07-09 23:51:02 -05:00
Trivial-Man
1a1ae98a2e
EmuLuaLibrary.Gui: update createcanvas
...
createcanvas now takes additional parameters that specify where the canvas window should be created
2017-06-29 20:03:18 -06:00
adelikat
3c7707a6a0
lua - add gui.clearImageCache, also add a param to drawImage that can force it to not be cached if desired
2017-05-29 11:09:19 -05:00
adelikat
31e68a38f9
Cleanup EmuHawk lua library code
2017-05-19 09:47:18 -05:00
adelikat
7f269d25df
Make lua library dependent services private
2017-05-19 08:58:23 -05:00
J.D. Purcell
b53502eed8
Spaces -> tabs.
2017-04-15 16:37:30 -04:00
lenalia
117ce07aaf
Added horizalign and vertalign to DrawText
2017-04-04 21:20:33 -04: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
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
feos
fc66ec1b02
Lua docs: fix #703
2016-09-29 18:09:58 +03:00
feos
1e6b3bfbee
lua text: display trailing spaces
2016-08-06 15:45:07 +03:00
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
feos
435323489e
lua: gui.defaultPixelFont()
2016-02-10 20:06:45 +03:00
feos
23b3784123
lua: gui.defaultTextBackground()
2015-12-20 14:28:31 +03: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
zeromus
9b222653f5
fix some lua autodoc
2015-10-16 18:28:23 -05:00
zeromus
cf1c53f3fb
fix quicknes lua rendering being offset incorrectly sometimes. fixes #498
2015-09-16 14:02:45 -05: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
scepheo
abf1e55934
A bit of testing with Lua.
2015-04-10 14:11:01 +00:00
adelikat
b74e0a3b3d
Lua - apply CrazyTB's patch to fix gui.drawImageRegion()
2015-03-24 22:15:36 +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
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
adelikat
4e0e5958ed
Lua - Convert Gui library to service injection system
2015-01-01 21:44:49 +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
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
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
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
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
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