Commit Graph

41 Commits

Author SHA1 Message Date
Thimo
4912480957
#67 [FEATURE] Set event name suggestion on Variable Changed event creation (#317)
* [Added] Feature for #67 event name suggestion initial version

* [Refactored] Cleaned naming code to its own class

* [Fixed] c# range is not supported in 2019.4 LTS

* * Simplified logic for suggested name in AtomDrawer
* Simplified CleanPropertyName - first if-block was catched by second block
* Replaced FilterLastIndexOf with typeof(T).Name

---------

Co-authored-by: Thimo de Ram <tdram@esites.local>
Co-authored-by: Adam Ramberg <adam@mambojambostudios.com>
2023-07-22 18:54:35 +02:00
Soraphis
1d498090e3
prevent null reference exceptions in editor when using not-serializab… (#371)
* prevent null reference exceptions in editor when using not-serializable types

* - Draw warning helpbox only once in AtomVariableEditor.cs
- Minor clean up

* Revert unintended removed line

Co-authored-by: Adam Ramberg <adam@mambojambostudios.com>
2022-10-24 00:22:30 +02:00
Soraphis
b2e302498d
fix: #353 "Vector2/3 reference not properly showing" (#359)
* fix: #353 while keeping #289 fixed

* Fix height of popup (was covering click area of expanded type's properties)

Co-authored-by: Adam Ramberg <adam@mambojambostudios.com>
2022-10-22 23:53:10 +02:00
CaseyDeCoder
aecaa73ad0 Fix hasChildren display in AtomReferences
The display of an AtomReference would act a bit weird if the Atom was of e.g. a serializable class.
2021-12-28 16:14:11 +01:00
Casey Hofland
2f31db4e0a Create button ease of use (#229)
* Add auto focus on textfield
* Prevent PrefixLabel showing up in AtomReferences
* Add Keyboard shortcuts to confirm/deny create
* Add Focused Control Check
2021-03-07 21:49:39 +01:00
IceTrooper
47286f40a9
Creating new atom in current directory improvement (#184)
* small improvement for creating new atoms in inspector window

* fixed getting directory path instead of full file path
2020-08-04 01:09:52 +02:00
Adam Ramberg
0540add7b8 #179 - Fixes to AtomDrawer + FSM editor 2020-08-04 00:59:22 +02:00
Oliver Biwer
3ae6200b8a
Update AtomBaseReferenceDrawer.cs (#174)
* Update AtomBaseReferenceDrawer.cs

* Update AtomBaseReferenceDrawer.cs
2020-07-01 08:23:41 +02:00
Adam Ramberg
4278f71c9e #164 - Does not work in Unity 2018.3 2020-06-20 00:49:40 +02:00
AdamRamberg
27959b9dd4 Fix bug where usage popup sometimes were hidden 2020-05-16 17:30:26 +02:00
Bastien Guyl
4aa1f4a4d7
Fixing drawer for generated reference of complex struct type (#155)
* Adding proposals to fix #153

FIx custom reference doesn't appear properly

* Fix #153

Fix custom reference doesn't appear properly

* Fix #153

Fix custom reference doesn't appear properly

Co-authored-by: Bastien Guyl <bguyl@smart-tale.com>
2020-05-11 20:07:56 +02:00
Adam Ramberg
4ba6beee59 Added some more docs 2020-03-21 22:45:39 +01:00
Adam Ramberg
9fd64a12f3 Move AtomListAttribute to core 2020-03-21 21:58:41 +01:00
Adam Ramberg
5d6e94af63 WIP 2020-03-09 00:16:40 +01:00
Adam Ramberg
06d89697f3 Example WIP 2020-03-05 00:48:39 +01:00
Adam Ramberg
c3bc59259f More WIP 2020-03-02 02:26:06 +01:00
Adam Ramberg
5d9f8dca71 WIP 2020-03-01 21:32:52 +01:00
Adam Ramberg
8a6b8a97a6
Added Variable Instancer, Event Reference, Atom Collection and Atom List (old Atom List renamed to Atom Value List) (#110)
AtomVariableInstancer
- Added AtomVariableInstancer as an option to AtomReference.
- Added AtomVariableInstancer to generator.
- Added editor icon for AtomVariableInstancer.

AtomEventReference
- Added an AtomEventReference class (and AtomEventX2Reference). It’s similar to an AtomReference, but for Events. Let’s you pick between an Event, Variable (will select the Changed event) and a VariableInstancer (see above).
- Added AtomEventReference and AtomEventX2Reference to generator.
- Added a drawer for AtomEventReference.
- Listeners are now using AtomEventReference instead of AtomEvent.
- Refactoring of VoidHooks since Listeners are now using AtomEventReference.

AtomCollection
- Created an AtomCollection - a collection of Atoms associated with key strings (AtomReferences).
- Added new editor icon for collections.
- Created a SerializableDictionary class, which AtomCollection is using.
- Custom property drawer for SerializableDictionary.
- SerializableDictionary supports nested structures meaning that a AtomCollection can have a KVP that is pointing to another AtomCollection.
- AtomCollections have 3 events: Added, Removed, Cleared.
- Added an option to sync an InstanceVariable to collection - adding it to the collection when created (using gameObject’s instance id as key) and removing it from the collection when destroyed.

AtomList
- Renamed old AtomList to AtomValueList
- Added AtomList, like Collection, but a list
- Added new icon for AtomList
- Created a AtomBaseVariableList class, which AtomList is using.
- Custom property drawer for AtomBaseVariableList.
- AtomLists have 3 events: Added, Removed, Cleared.
- Added an option to sync an InstanceVariable to list - adding it to the list when created and removing it from the list when destroyed.
2020-02-23 02:39:43 +01:00
Adam Ramberg
ed856beb11
Fix indentation bug in variable drawer (#109) 2020-02-18 22:20:29 +01:00
Low Jiahao
d619146076 Unity v2018.4 Support (#98)
* - Fixed MonoHooks asmdef reference to Core asmdef was broken.
- Fixed dependancy issue for Package Manager.
- Removed Generator function in version 2018.4.

* Updated to include 2018.4 define directive.
2020-01-23 20:01:31 +01:00
Oliver Biwer
a5641f6514 Variable and Constant Drawers show a preview value (#89)
* Drawers of Variables and Constants show value field

* #89 Adjust preview width for Vector2 and Vector3
2019-11-14 22:46:58 +01:00
Ice_trooper
789c39d39c #87 bug fixed 2019-11-12 00:03:12 +01:00
AdamRamberg
b8c3dc668f #68 - render default drawer when multi editing 2019-10-22 22:11:21 +02:00
AdamRamberg
9cb9a0de20 #68 Temporarily dissalow multiobject editing 2019-10-22 08:03:14 +02:00
AdamRamberg
0ad40a67d4 #65 - Fix indent and ui state issues of drawer 2019-10-20 21:48:52 +02:00
AdamRamberg
299dc195e2 - Added a top menu bar option to regenerate all existing Atoms. Nifty when developing the library.
- Added the option to use a Constant in Atom References. Related to #58
2019-10-16 18:02:08 +02:00
AdamRamberg
14931be3e6 Regenerate docs for Void Atoms 2019-10-15 22:37:15 +02:00
AdamRamberg
b5f4753a12 Regenerate docs for Vector3 Atoms 2019-10-15 22:34:48 +02:00
AdamRamberg
c82730e598 Regenreate docs for Vector2 Atoms 2019-10-15 22:34:08 +02:00
AdamRamberg
f100e80929 Regenerate docs for string Atoms 2019-10-15 22:33:06 +02:00
AdamRamberg
aea55bbbc6 Regenerate docs for int Atoms 2019-10-15 22:32:06 +02:00
AdamRamberg
f64145039b Regenerate docs for GameObject Atoms 2019-10-15 22:30:18 +02:00
AdamRamberg
7c12660c78 Regenerate docs for float Atoms 2019-10-15 22:29:05 +02:00
AdamRamberg
57734a1a3a Regenerate docs for Collider2D Atoms 2019-10-15 22:27:22 +02:00
AdamRamberg
aa8c1f4d3e Regenerate docs for Collider Atoms 2019-10-15 22:26:14 +02:00
AdamRamberg
2c30f5959e Regenerate docs for Color Atoms 2019-10-15 22:24:44 +02:00
AdamRamberg
d2470de405 Regenerate docs for bool Atoms 2019-10-15 22:23:46 +02:00
AdamRamberg
6a2212bfc2 Use compiler flag UNITY_2019_1_OR_NEWER - docs gen 2019-10-15 21:08:49 +02:00
AdamRamberg
1c7eecb985 Create documentation WIP 2019-10-15 19:19:44 +02:00
AdamRamberg
235728fdf4 Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
AdamRamberg
416426f026 New repo structure 2019-10-01 17:27:22 +02:00