adelikat
2f8561a81d
Lua - nes library - get/set methods for sprites and background display
2012-09-23 18:57:33 +00:00
goyuken
ce482e24ad
lua: gui.addmessage(string msg)
2012-09-23 14:43:33 +00:00
adelikat
2e19d31d33
lua - add nes.getclipleftandright(), nes.setclipleftandright(), also fix the previous nes library functions to work even if not in NESHawk
2012-09-23 04:26:07 +00:00
adelikat
8f3316e501
Lua - start NES library with nes.setscanlines(), nes.getbottomscanline(), and nes.gettopscanline()
2012-09-23 04:03:04 +00:00
zeromus
23f9b3e3dd
fix that thing i just did
2012-09-20 00:42:50 +00:00
zeromus
e8487b77d8
change lua drawing to use an offset specified by the emulator core, so that drawing in the nes core can have nes-relative coords instead of multiclient-display-relative coords
2012-09-20 00:22:24 +00:00
rolanmen1
f173aee3f4
LuaImplementation: forms.setproperty now works on int, double and bool properties. Added try catch to avoid crashes with these functions.
2012-09-17 19:55:11 +00:00
andres.delikat
0afd4f3c09
Lua - fix gui.drawLine/Pie/Ellipse/Polygon/Pixel/Bezier from commit 2908, the way those were done was causing exceptions after the 1st draw
2012-09-11 14:47:41 +00:00
zeromus
b87af7d429
lua-try caching solidbrushes and pens for faster drawing
2012-09-07 03:34:16 +00:00
adelikat
8f408737da
Movie refactoring - round 2
2012-09-03 19:42:53 +00:00
adelikat
27f4663125
Movies - round 1 of code cleanup (no functional changes)
2012-09-03 15:05:09 +00:00
adelikat
16bc441231
Lua - implement client.screenwidth() and client.screenheight()
2012-09-02 16:49:58 +00:00
pasky1382
df440e97ec
(minor spacing edits in LuaImplementation.cs)
...
Added rondo of blood lua script in scripts folder for PC Engine.
2012-09-02 16:26:43 +00:00
adelikat
63ef0c0832
Lua - implement emu.registerbefore and emu.registerafter. Note that all lua work is done on the beginning of the frame (before) by default. also note that Registerbefore will run before normal lua processing.
2012-09-02 16:23:42 +00:00
pasky1382
bc3e9edb96
Fixed what i previously broke in the Lua bitwise functions.
2012-09-02 14:47:12 +00:00
pasky1382
6a8c87d598
Fixed bitwise operators, all function arguments take object types so they display correctly under the lua function list.
2012-09-02 14:20:08 +00:00
pasky1382
02c447becb
Fixed gui.drawBox. Now draws correctly when width is a negative value.
2012-09-02 02:37:25 +00:00
pasky1382
cd292d7fd2
Added a gui.drawBox() function in the lua engine. Uses four coordinates to draw a box like other emulators rather than a height/width argument.
2012-09-02 01:15:18 +00:00
pasky1382
ff218af117
Added lua bitwise operators, AND, LSHIFT, RSHIFT, OR, XOR, NOT, ROTATE LEFT, ROTATE RIGHT.
2012-09-02 00:56:50 +00:00
rolanmen1
7a9e5d856b
LuaImplementation: Implemented forms.setproperty and forms.getproperty. Kinda buggy though.
2012-08-25 22:45:44 +00:00
rolanmen1
6cec0f0182
LuaConsole: Call UpdateNumberOfScripts after you delete a script.
...
LuaImplementation: Added emu.ispaused(), also added the parameters width and height to forms.label and forms.button
2012-08-25 17:01:13 +00:00
adelikat
0ed2ec1be9
Ram Watch - oops, fixed last commit better
2012-08-15 01:14:25 +00:00
andres.delikat
f7752584c6
Lua - implement input.getmouse()
2012-07-13 22:21:01 +00:00
andres.delikat
f5a7dc2191
Lua - implement client.setwindowsize()
2012-07-12 22:20:48 +00:00
andres.delikat
15371b3cd9
Lua - implement emu.enablerewind(), also add on screen message when rewind is toggled
2012-07-12 19:42:13 +00:00
andres.delikat
fcac19aed9
Lua - implement emu.displayvsync, also add on screen message when limit frame rate is toggled
2012-07-12 19:36:07 +00:00
andres.delikat
2304b2d4e2
Lua - implement emu.limitframerate, also add on screen message when limit frame rate is toggled
2012-07-12 19:23:39 +00:00
andres.delikat
9c947652f5
Lua - implement emu.minimizeframeskip()
2012-07-12 19:02:30 +00:00
andres.delikat
858f133f9e
Lua - Implement emu.speedmode and emu.frameskip
2012-07-12 18:39:24 +00:00
andres.delikat
4aaeabb568
Lua - much improved lua function list including return type and parameters
2012-07-12 00:57:09 +00:00
andres.delikat
3a73f8a427
Lua - backend for more thorough self documenting, lua function list dialog has the same functionality as before but is primed for a better UI
2012-07-11 15:03:51 +00:00
andres.delikat
9da0cd3553
Lua - forms.textbox() add field to optionally set the textbox to signed, unsigned, or hex values
2012-07-10 23:09:06 +00:00
andres.delikat
3f81bc9cdb
Lua - implement forms.addclick() and forms.clearclicks()
2012-07-10 22:52:06 +00:00
andres.delikat
04273ec3ee
Lua - implement forms.settext()
2012-07-10 22:27:05 +00:00
andres.delikat
4542ae12d1
Lua forms library - implement SetLocation(), SetSize(), TextBox(), and Label()
2012-07-10 21:15:30 +00:00
andres.delikat
827e2150d7
Lua - implement forms.button(), and the basic backend for calling lua functions on events from user generated controls
2012-07-10 20:23:19 +00:00
zeromus
3a8fe7c464
lua-fix crashes when scripts terminate
2012-07-10 19:40:35 +00:00
andres.delikat
ec9cf60d6d
Lua - start forms creation library, implement forms.create(), forms.destroy(), and forms.destroyall(). Still TODO: make the forms do something! Also added console.log as an alias to console.output
2012-07-10 19:04:35 +00:00
adelikat
c22ba4da32
Lua - gui.drawpixel - make color optional (and default to black if not specified)
2012-06-13 01:09:21 +00:00
zeromus
fec1ee0958
fix more memory leaks in lua drawing (rectangle, pixel, line, bezier)
2012-06-12 03:24:15 +00:00
zeromus
c7925d986c
delete display manager threading. fix gdi+ leaks in lua code. add abstracted OSD drawing "blitter" system for sysdrawing/d3d dual compatibility and framework for future use for faster lua drawing.
2012-06-10 23:27:30 +00:00
zeromus
18eee77173
kill a bunch of warnings
2012-06-10 22:38:44 +00:00
phillip.grimsrud
cb4c45eb70
1. Upgraded insert and delete functions in tastudio to support multiple selection.
...
2. Fixed issues with the light blue current frame pointer in tastudio
3. Removed a totally useless index that was being kept seperately in the movie log.
4. Moved the tastudio update after the check to see if the rest of the saved state list is valid.
5. Changed some function/variable names related to the movie log for clarity.
2012-06-07 04:47:54 +00:00
adelikat
a9eeac6d64
Lua - fix bug that was causing lua functions to duplicate each time a lua script was toggled or opened, eventually causing crashes.
2012-06-04 02:33:34 +00:00
brandman211
23b3cedf7d
Removed the now redundant TargetZoomFactor scaling for drawRectangle. Drawn shapes now scale nicely. Whether or not text should be drawn this way is a worthwhile discussion IMO, but as zeromus has said, it would require text to be drawn in the same way like shapes.
2012-05-11 21:11:29 +00:00
zeromus
857d0a5b39
voila, "emu" resolution lua drawing, hacked in place of the native resolution drawing because rolanmen1 decided to destroy my surface management paradigms (i can tell because the earth is scorched with spaces instead of tabs)
2012-05-06 07:09:04 +00:00
brandman211
05157997f1
-Added a very basic fix to the graphics scaling issue per adelikat's advice.
...
--Gets worse as the scale increases.
--For x3, the box doesn't increase size, but the box still changes position. I think there might be a difference between the TargetZoomFactor and the actual screen size, so perhaps we should tie this to something else.
-Working on very small optimizations to the NES PPU with CorruptedSyntax...this is more fun, so we'll do this first.
--Eliminated an entire loop.
--Branched to two loops instead of branching for every iteration in one loop.
--Got rid of some redundant instructions using temporary variables.
--This may be completely premature, but I seem to have gained a few FPS from doing this. For me, I get 38-39 FPS where I'd previously get 33-34.
2012-05-06 04:09:28 +00:00
Rolanmen1
2799d55f4a
Now gui.drawNew and gui.drawFinish doesn't need to be invoked via Lua Scripts. However they are invoked every frame. Basically, this means that graphics are drawn and cleaned every frame. So, if you Pause/Stop a script, the graphics gets cleaned right away.
2012-05-01 14:43:17 +00:00
adelikat
54d1c873df
Fix when guitext gets cleared, reduces most of the flickering and inconsistencies with ram watch on screen and lua gui.text, fix punchoutstats lua script
2012-04-30 01:14:23 +00:00
rolanmen1
3bcaa8f2e6
gui.clearGraphics implemented. This will allow the user to clear the graphics whenever he wants. I also created a function ClearDisplaySurface that is used to clear the graphics whenever the user stops a scripts.
2012-04-27 20:15:07 +00:00