Commit Graph

1337 Commits

Author SHA1 Message Date
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
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
Xiao Qi 3b22f95e29 Added font identifiers 2022-11-11 13:21:22 +08:00
Kah Wei ed3694bde1 Merge branch 'main' into SP3-6-ArraySerialization 2022-11-11 12:07:40 +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
XiaoQiDigipen 34dcc98a41
Merge pull request #191 from SHADE-DP/SP3-13-Assets-Manager
Filesystem directory features and bugfix
Fixed type from extension bug that results in null meta

Added compiled check for SHFiles
2022-11-11 10:56:44 +08:00
Xiao Qi 94b64e92dd Initialise files to not compiled 2022-11-11 10:55:19 +08:00
Xiao Qi 9fe5dc385b Implemented check for raw asset if compiled 2022-11-11 10:52:57 +08:00
Xiao Qi 6df3f3d417 Fixed get type from extension bug in asset handler 2022-11-11 10:47:03 +08:00
XiaoQiDigipen 6e98776165
Merge pull request #190 from SHADE-DP/SP3-13-Assets-Manager
Assets bugfix

Fixed asset type conversion bug when loading from meta files
Removed compile all function
Set parent id to 0 for non sub assets
2022-11-11 10:07:19 +08:00
Xiao Qi e824c17405 Fixed asset type conversion bug when loading from meta files
Removed compile all function
Set parent id to 0 for non sub assets
2022-11-11 10:06:26 +08:00
XiaoQiDigipen 6fc9f804b5
Merge pull request #189 from SHADE-DP/SP3-6-c-scripting
GameObjects now provide access to children
2022-11-11 01:14:48 +08:00
Kah Wei 80db641b6f Added ListElementChangeCommand 2022-11-11 00:49:20 +08:00
Kah Wei 5875107ce2 Merge branch 'main' into SP3-6-ArraySerialization 2022-11-10 23:44:07 +08:00
Kah Wei d93ea8e49b Child caches are now updated when scene hierarchy changes 2022-11-10 23:34:53 +08:00
Sri Sham Haran aad83d9e32 Revert "Asset browser is wonky now"
This reverts commit 2fdff77420.
2022-11-10 23:02:29 +08:00
Sri Sham Haran 57941cd2dc Merge remote-tracking branch 'origin/main' into main 2022-11-10 23:02:17 +08:00
Sri Sham Haran 3d848118b2 Revert "Asset browser is wonky now"
This reverts commit 2fdff77420.
2022-11-10 23:02:01 +08:00
Sri Sham Haran 2fdff77420 Asset browser is wonky now
Refresh asset browser
Compile asset
2022-11-10 23:01:09 +08:00
Kah Wei 8670b419d0 Merge branch 'main' into SP3-6-c-scripting 2022-11-10 22:25:58 +08:00
Kah Wei cf5cc41a3f Reworked Undo-Redo system to be more flexible and stable 2022-11-10 18:10:15 +08:00
Xiao Qi c95a6a2492 Added open modes for ofstream when building csharp project 2022-11-10 17:37:59 +08:00
Xiao Qi ed1bc7c62d Changed scripting project relative path to managed and csharp dlls 2022-11-10 17:34:33 +08:00
XiaoQiDigipen 7da61f4a22
Merge pull request #188 from SHADE-DP/SP3-13-Assets-Manager
SP3-13 Assets Management
Added data member to SHFile to indicate whether file can be compiled
Added asset directory refresh (rebuilds asset collection and directory)

Fixed File link to meta
Fixed extension to type conversion
2022-11-10 17:11:27 +08:00
Xiao Qi 03f9c593b6 Function to call to refresh asset directory 2022-11-10 17:09:55 +08:00
Xiao Qi 0e5609995f Added data member to signal whether asset file can be compiled
Properly linked meta file to file in directory

Fixed extension to type conversion bug
2022-11-10 16:44:16 +08:00
Kah Wei bdc7297937 Converted macros for script field inspectors to use templates 2022-11-10 16:20:04 +08:00