Commit Graph

131 Commits

Author SHA1 Message Date
brandman211 2580489986 Refactored previous parameter in CompareTo and ComparePrevious from strings to enums. 2012-06-09 22:10:39 +00:00
adelikat c0d5437ff4 Ram Watch - revert "fix" to watch count display, make watch list count update in appropriate places, don't count separators in watch count, fix cosmetically be showing "watch" instead of "watches" when there is 1 address 2012-06-09 21:57:00 +00:00
brandman211 376ffd3ba4 -Refactored what zeromus wanted me to and nothing more.
-The number of watches in Ram Watch is now updated in UpdateValues instead of LoadWatchFile, meaning that it's updated every time items are added / removed.
--Also noticed that separators count as watches. Filter these out and exclude them from the count, adelikat?
2012-06-09 21:43:02 +00:00
brandman211 3b54bd268a -Useful refactoring!
--prevList, undoPrevList, and redoPrevList removed. All of the definitions for previous are now stored in separate data items.
---Should yield small speed increases.
---Makes it easier to port these definitions to Ram Watch eventually.
---Auto-aligns data, making it impossible for issues, such as the original values not aligning with the correct values because the prevList wasn't recreated, impossible.
---Makes it possible for the field to automatically update when the definition is changed (Implemented).
--Value/PrevToString() now use the same code.
--Reduces redundancy.
---This was a problem as PrevToString wasn't taking into account the data type, whereas Value was. This is now fixed.
-Watch now stores the data for the "last change" previous definition. Now I just have to set up the option in the GUI.
2012-06-09 01:56:56 +00:00
adelikat c8d07a5078 Ram Watch/Search - add System ID to .wch files 2012-06-07 03:16:25 +00:00
adelikat 8ca6b24614 Cheats, Lua, Ram Search/Watch - flag changes when adding a separator, default to SaveAs if saving a new file, allow Save in menu item in this scenario 2012-06-02 22:06:00 +00:00
adelikat 393dd9dcfe Ram Watch/Search, Hex Editor - set endian based on the endianness of the memory domain by default 2012-06-02 21:48:09 +00:00
adelikat a74fbb84fe Fix Ram Poke for Ram Watch/Search dialogs 2012-06-02 21:07:29 +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 f637f5f400 gui.text now has a line color parameter. 2012-04-24 15:23:56 +00:00
rolanmen1 cefc803425 gui.text now accepts BackgroundColor parameter. I didn't had enough time to check stuff, so i will check more deeply some other time. 2012-04-24 03:57:23 +00:00
adelikat 3bae8da0b6 Adjustment to height settings of osd messages, code clean up in movie.cs 2012-04-16 12:17:25 +00:00
zeromus 35fbe354c1 add threaded display manager to allow heavy OSD/compositing/filtering to happen on another thread. add a lua layer accessible via GDI+ which can be automatically composited and the simplest possible demo of it. add some filtering infrastructure and a hq2x filter set ported to c# but need to work on a minimal selector gui before its usable. separate OSD from RenderPanel so that gdi+ presentation mode now gets full OSD support. the OSD is now a little uglier because its drawn entirely differently and could use some finetuning 2012-04-16 08:18:41 +00:00
adelikat f145d8e655 Cheat Window, Ram Watc, Lua Console - fix exception when clicking Move Up on the first item in the list. 2012-03-26 23:38:29 +00:00
adelikat 7daf318134 gui.text() - add a 5th parameters "anchor" that will anchor the text to top, left, bottom, or right. Same functionality as the message config anchor option. 2012-03-26 02:58:24 +00:00
adelikat 635ae613a4 Ram Watch - when drawing watches on screen, use alert font for frozen addresses 2012-03-11 00:50:06 +00:00
andres.delikat 321a45722e Hex Editor - use Ram Poke dialog for the Poke address function. Ram Watch - Successfully stop/start sound on ram poke 2011-09-17 15:35:39 +00:00
andres.delikat 31a85ab785 Ram Poke - pass in a memory domain and poke addresses in that domain instead of defaulting to main memory. Format address & value numbers in output message appropriately 2011-09-17 15:04:08 +00:00
andres.delikat 94aca60998 Cheat Window/Ram Search/Ram Watch - switch key up events to key down, add Ctrl+A select all to cheat window & ram watch 2011-09-16 23:29:36 +00:00
andres.delikat 0022b60b4f Watch object - update the PeekAddress() function to update the prev and changecount values. Fix Ram Search and Ram Watch UpdateValues() functions based on this change 2011-09-12 23:36:27 +00:00
andres.delikat 368f201dbe Ram Watch - stop & start sound on several functions that call modal dialogs 2011-09-12 23:14:57 +00:00
andres.delikat c8e0043713 Ram Watch - a "Display on Screen" menu option 2011-09-12 23:08:42 +00:00
andres.delikat 73add14d28 Watch object - add ValueToString() and PrevToString() methods and make Ram Watch use these methods and thus simplify the UpdateValues logic. Added an override for ToString() that displays notes + value in preparation for a on screen ram watch option. 2011-09-12 00:17:17 +00:00
andres.delikat 4f98fdb60d Ram Watch - adding a watch from an external dialog flags changes 2011-09-10 21:37:03 +00:00
andres.delikat e3d9706e9e Ram Watch - update values when editing, removing, and duplicating a watch, and whenever a value is added to the watch by an external dialog 2011-09-10 21:16:29 +00:00
andres.delikat b0235e08f0 Ram Watch - fix crash when using the save icon on a new watch file with changes 2011-09-10 18:09:21 +00:00
andres.delikat 5e9f90eea9 Ram Search - big speed up in QueryItemBkColor by only checking for column == 0, apparently it was causing a redraw for each column instead of just once, setting column == 0 still colors the entire row. Also removed the "x addresses would be removed" message when in preview mode as it isn't worth a 1 fps cost imo. Also applied the column == 0 fix to Ram Watch though that will have a significantly smaller speed boost. 2011-08-27 13:56:06 +00:00
andres.delikat c7e8e7ece1 Ram Watch/Ram Search - small speed optimization to the QueryItemText functions 2011-08-27 13:20:02 +00:00
andres.delikat 293b7133c5 Slight Dialog performance tweaks 2011-08-27 04:32:54 +00:00
andres.delikat 550261b831 Hex Editor - Fix Endian display on 2 & 4 byte view, fix freezing of multibyte values, fix adding to ram watch of multibyte values, fix ram watch to run UpdateValues when an external dialog adds a value 2011-08-25 01:22:03 +00:00
andres.delikat 27478a5feb Ram Watch - restart function reloads the existing watch file (if any) else starts a new one. The annoying consequence of this is that restarting a movie will wipe any unsaved changes, but I don't see a way around that currently. 2011-08-20 15:41:33 +00:00
andres.delikat 40512ae558 Ram Watch/Search - refresh on form activate 2011-08-20 15:35:16 +00:00
andres.delikat c5f2d02f68 Ram Watch/Cheat Window/Lua Console - when deleting, clear selected items 2011-08-17 00:26:34 +00:00
andres.delikat c8a4a14021 Ram Search/Watch - context menu will show Unfreeze instead of Freeze if highlighting a frozen address 2011-08-07 04:19:49 +00:00
andres.delikat 15743552e2 Cheat Window / Ram Watch - Select All menu item and Ctrl+A hotkey. Ram Search - add Ctrl+Z hotkey to Undo menu item 2011-08-07 00:56:21 +00:00
andres.delikat c903ff505d Ram Watch/Ram Search/Cheats - Delete key deletes selected items 2011-08-07 00:43:04 +00:00
andres.delikat 9814cc26c9 Ram Search & Ram Watch - Freeze function freezes all selected list items 2011-08-07 00:32:22 +00:00
andres.delikat d69abc909d Cheats - more refactoring by putting code into the CheatList object 2011-08-06 19:30:21 +00:00
andres.delikat c3d08b3b7b Pull the cheat list and some related functions out of the Cheats winform and into a CheatList object. Still some bugs to work out, but at least the cheat window doesn't crash when opened a 2nd time 2011-08-06 02:34:24 +00:00
beirich b27673f26c M-M-M-MONSTER COMMIT! change Game-load api stuff 2011-08-04 03:20:54 +00:00
andres.delikat 933b4a60bc Ram Watch/Search, TASStudio - use of the blazingfast option of virtuallistview only during the updatevalues function yields significantly less flickering without the bad side effects of that option 2011-08-04 02:28:25 +00:00
andres.delikat 11c5dd04ac Cheats Window stores the cheat list while not open, thus is should probably not erase it on load 2011-08-02 02:49:29 +00:00
andres.delikat 16e332a72d Fix so that tool dialogs such as Ram watch update on loadstate, Ram Watch - AddWatch() triggers Changes() function, Separator no longer shows Change Count = 0 2011-07-09 00:26:23 +00:00
andres.delikat ed529b9322 Ram Watch - don't start a new watch file when restarting the dialog, at least for now until I find a happy compromise 2011-06-26 19:35:13 +00:00
andres.delikat 98988e4b49 RamWatch - save window position menu item 2011-06-26 19:13:52 +00:00
andres.delikat c8e8cee822 Ram Watch - when saving a new watch, add it to the recent menu 2011-06-26 19:01:06 +00:00
andres.delikat ec7e4123fd Ram Watch - show "saved" message when doing Save, not just SaveAs 2011-06-26 18:56:56 +00:00
andres.delikat 42e22b63be Oops - reverse sorting for Ram Watch 2011-06-19 19:20:43 +00:00
andres.delikat 5e27953db0 Column sorting (and reverse sorting) for Ram Search & Ram Watch 2011-06-19 19:10:01 +00:00
andres.delikat c6a5c7e9b6 change references of Global.Game.Name to Global.Game.FileSystemSafeName for situations that use it to build paths 2011-06-18 21:39:53 +00:00