Commit Graph

40 Commits

Author SHA1 Message Date
Kah Wei 7d7ffc56fd Disabled script undo and redo temporarily 2023-02-18 12:35:47 +08:00
Kah Wei 5bef209189 Modified ScriptAddAction to use serialization 2023-02-03 19:17:20 +08:00
Kah Wei 72c8a504c5 Fixed crash from adding an element to a list of strings in the script inspector 2022-11-24 23:22:02 +08:00
Kah Wei 67db744856 Uninitialized List<> will no longer cause crashes with the script inspector 2022-11-23 10:08:48 +08:00
Kah Wei fb25d2b714 Fixed compilation error in Editor.h++ 2022-11-22 19:44:07 +08:00
Kah Wei 4478b6db62 Added editor support for FontAsset, MeshAsset and MaterialAsset. 2022-11-22 17:48:01 +08:00
Kah Wei e3c573baa7 Added support for enabling and disabling scripts
OnEnable and OnDisable are not called on GameObject active toggling for now but will be added in future
2022-11-21 17:16:16 +08:00
Kah Wei 23320863e3 Added support for undo-redo of adding/removing scripts 2022-11-13 14:49:32 +08:00
Kah Wei 635d999c2c Fixed redo not working correctly 2022-11-13 13:16:36 +08:00
Kah Wei 889d3dac4c Split serialization code into SerialisationUtilities, refactored serialisation code and implemented list serialisation 2022-11-12 23:14:25 +08:00
Kah Wei 24dcd77f32 Added tooltip and range attribute support for lists in scripts 2022-11-12 12:17:11 +08:00
Kah Wei 6dbda12f30 Adjusted design of list on scripts and all numbers now use sliders 2022-11-12 03:53:30 +08:00
Kah Wei d6764b4551 Added support for adding and removing elements from a list 2022-11-12 03:25:46 +08:00
Kah Wei 543c199b03 Fixed lists undo not working 2022-11-12 02:33:00 +08:00
Kah Wei 2d2cc532a5 Fixed editing intermdiate list values not working 2022-11-11 22:59:45 +08:00
Kah Wei dfc03839db Renamed functions for clarity 2022-11-11 22:18:32 +08:00
Kah Wei d98d00b916 Wonky solution for array editor that doesn't work for elements outside of the first 2022-11-11 15:20:14 +08:00
Kah Wei 5d2aae3561 Made enum editor template specializations instead 2022-11-11 13:41:58 +08:00
Kah Wei fdc8965b62 Made String and GameObject editor template specializations instead 2022-11-11 12:07:26 +08:00
Kah Wei 85cc97ca27 Added implementation for ListElementAddCommand and ListElementRemoveCommand 2022-11-11 12:07:05 +08:00
Kah Wei 80db641b6f Added ListElementChangeCommand 2022-11-11 00:49:20 +08:00
Kah Wei cf5cc41a3f Reworked Undo-Redo system to be more flexible and stable 2022-11-10 18:10:15 +08:00
Kah Wei bdc7297937 Converted macros for script field inspectors to use templates 2022-11-10 16:20:04 +08:00
Kah Wei e8d2179d76 Added test support for List<int> display in editor 2022-11-10 11:01:17 +08:00
Kah Wei bbe8622d1e De-plushied SHADE_Managed comments 2022-11-09 14:45:08 +08:00
Kah Wei a3fe98317d Fixed performance issue in scripts editor when multiple attributes are applied onto script fields 2022-11-09 10:31:30 +08:00
Kah Wei ddd93a85f4 Added support for null GameObjects (loading is buggy) 2022-11-08 00:53:47 +08:00
Kah Wei 8afe8c1a79 GameObjects on scripts can now be edited in the inspector and are serialized 2022-11-01 17:24:20 +08:00
Kah Wei 3bdc48260f Improved CallbackEvent inspector 2022-10-25 16:55:50 +08:00
Kah Wei f6cbb18143 Added display of WIP CallbackEvents on the inspector 2022-10-25 01:34:46 +08:00
Kah Wei 51c79d33d6 Added C-style versions of SHLog functions and P/Invoke versions in SHADE_CSharp 2022-10-24 02:04:12 +08:00
Kah Wei 7df24e7a66 Fixed RangeAttribute not working correctly 2022-10-19 10:12:56 +08:00
Kah Wei ceb4c6c4ca Added Range Attribute 2022-10-18 22:34:46 +08:00
Kah Wei 87cf3ffa61 Added script inspector tooltips support via Tooltip attribute 2022-10-18 20:09:50 +08:00
Kah Wei 15c39d7028 Removed mixed tabs and spaces 2022-10-01 22:58:19 +08:00
Kah Wei f717b61c88 Added undo and redo support for script changes in the inspector 2022-10-01 22:56:15 +08:00
Kah Wei b3d15b6a39 Added WIP UndoRedoStack 2022-10-01 20:34:23 +08:00
Kah Wei 94a7258eb3 Context menu for the script inspector will now work even when collapsed 2022-09-28 15:33:32 +08:00
Kah Wei 7010e1b688 Added initial implementation of script inspector 2022-09-28 00:06:47 +08:00
Kah Wei a57c4d0d73 WIP Script Inspector 2022-09-27 19:17:53 +08:00