Commit Graph

1467 Commits

Author SHA1 Message Date
XiaoQiDigipen 57182f9715
Merge pull request #197 from SHADE-DP/SP3-6-c-scripting
Modified how scripts are added and updated to support runtime adding of scripts
2022-11-13 16:38:32 +08:00
Kah Wei 4dc8527395 Reworked scripts to no longer need definition of constructors 2022-11-13 16:29:25 +08:00
Kah Wei 39e26f1b6e Merge branch 'main' into SP3-6-c-scripting 2022-11-13 16:07:40 +08:00
Kah Wei af361062e7 Modified how scripts are added and updated to support runtime adding of scripts 2022-11-13 16:07:14 +08:00
Diren D Bharwani 6fd6ee61a6 Merge remote-tracking branch 'origin/SP3-2-Physics' into SP3-2-Physics 2022-11-13 16:02:18 +08:00
Diren D Bharwani 3512ed3397 AHHHHHH
i want to pull my hair out
2022-11-13 15:50:03 +08:00
Diren D Bharwani 6fc08f21ed AHHHHHH 2022-11-13 15:49:35 +08:00
XiaoQiDigipen f62ce2297d
Merge pull request #195 from SHADE-DP/SP3-6-c-scripting
Fixed crash on launch due to script rebuilds and support undo-ing add/remove of scripts

Also restricted access to internal types that SHADE_Scripting should not be accessing.
Redo wonkiness has also been fixed
2022-11-13 14:52:33 +08:00
Diren D Bharwani 86ca047c88 Merge remote-tracking branch 'origin/main' into SP3-2-Physics 2022-11-13 14:49:44 +08:00
Kah Wei 23320863e3 Added support for undo-redo of adding/removing scripts 2022-11-13 14:49:32 +08:00
Sri Sham Haran 66dbd7df93 Merge branch 'main' into SP3-4-Editor 2022-11-13 13:55:57 +08:00
Sri Sham Haran 276e0806fa Can now undo/redo entity deletion (working afaik) 2022-11-13 13:55:30 +08:00
Kah Wei 635d999c2c Fixed redo not working correctly 2022-11-13 13:16:36 +08:00
Kah Wei a83a38eba8 Fixed bin and obj folders respawning and causing engine crashes 2022-11-13 13:07:49 +08:00
Kah Wei 4b6ede88e2 Merge branch 'main' into SP3-6-c-scripting 2022-11-13 12:44:50 +08:00
Kah Wei fd7a47b4c0 Added changes to hide internal types and constructors that should not be available to SHADE_Scripting 2022-11-13 12:44:23 +08:00
XiaoQiDigipen 897294426f
Merge pull request #194 from SHADE-DP/SP3-141-Camera-System
Sp3 141 camera system
Added EditorCameraArm functionality
Added helper functions in SceneManager to help check scene node and component actives
2022-11-13 11:58:50 +08:00
XiaoQiDigipen 2d8dc8c44e
Merge pull request #193 from SHADE-DP/SP3-6-ArraySerialization
List Serialization and Editor for Scripts
Also improved editor fields for single value numbers
Reworked Undo-Redo system for scripts which should be more stable
[Known Issue] Editor for List<Vector2/Vector3> looks a bit off but works for now
2022-11-13 11:58:06 +08:00
Sri Sham Haran 19f0c0ea70 Copy/Paste of entities can now be undone
Fixed bug where Shift Select would reset in a duplicate entity selection
Moved editor window manager to its own file.
2022-11-13 11:43:08 +08:00
maverickdgg efed33ce94 Added code to test EditorCameraArm. 2022-11-13 05:45:43 +08:00
maverickdgg 922d5b0996 Merge branch 'main' into SP3-141-Camera-System 2022-11-13 05:31:34 +08:00
maverickdgg 258c07e857 Added helper functions to check if Scene nodes are active 2022-11-13 05:31:18 +08:00
maverickdgg 4d0598a7f5 Added Editor Camera Arm function 2022-11-13 05:19:46 +08:00
Kah Wei 26e0e72b25 Fixed lists not deserialising correctly 2022-11-13 04:57:10 +08:00
Kah Wei cf60210b4a Merge branch 'main' into SP3-6-ArraySerialization 2022-11-13 02:43:12 +08:00
Kah Wei d98deda63d Implemented deserialization of lists 2022-11-13 02:42:47 +08:00
XiaoQiDigipen f0d7ee655d
Merge pull request #192 from SHADE-DP/SP3-4-Editor
Editor Tweaks
Play/Pause/Stop bound to F5/F6/F7
Gizmo does not render on play now
Command Manager uses separate stack for undo/redo when editor state is in play
2022-11-13 01:05:32 +08:00
Sri Sham Haran e2bcb0bbbb play pause stop bound to F5 F6 F7 2022-11-12 23:57:12 +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
Sri Sham Haran 69ac074926 change entity active to scene node active 2022-11-12 18:38:57 +08:00
Sri Sham Haran 78ca464c65 Editor now uses separate stacks; 1 set of stacks when in play and another set of stacks otherwise.
CommandStack now uses SHDeque
2022-11-12 18:22:45 +08:00
Sri Sham Haran 3402992189 dont draw gizmos on play 2022-11-12 18:09:55 +08:00
Diren D Bharwani f8bbcdd909 Small fixes 2022-11-12 17:28:49 +08:00
Diren D Bharwani 4ad23a605f Fixed compilation issues from merge 2022-11-12 17:04:09 +08:00
Diren D Bharwani 3faf3804aa Merge remote-tracking branch 'origin/main' into SP3-2-Physics 2022-11-12 16:57:45 +08:00
Diren D Bharwani 45e549f9f1 .....small restructure.... 2022-11-12 16:56:58 +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 4c01d68f95 Added list editor tests 2022-11-12 02:33:12 +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
Sri Sham Haran 7c7589ce8e idk why creation of new material is not working here send help. Change to popup for asset creation 2022-11-11 21:12:08 +08:00
Sri Sham Haran e96db99ee3 Merge branch 'main' into SP3-4-Editor 2022-11-11 20:41:14 +08:00
Sri Sham Haran 153f040c40 Refresh 2022-11-11 20:41:05 +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
Glence fbec2bf866 Auto stash before merge of "main" and "origin/main" 2022-11-11 14:17:47 +08:00
Sri Sham Haran c9db3b283d asset browser 2022-11-11 14:00:51 +08:00
Kah Wei 5d2aae3561 Made enum editor template specializations instead 2022-11-11 13:41:58 +08:00