-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [animgraph] Begin * [animgraph] Created GenericGraphEditor to serve as a base for full screen graph editors * [animgraph] First poc * [animgraph] testblend workgin * [animgraph] cleanup * [animgraph] avoid crash when nodes get renamed * [animgraph] Cleanup, now use decomposed matrices exclusively inside of anim graph * [animgraph] blend node * [animgraph] Begin work on parameters * [animgraph] Refactored node storage * [animgraph] Parameters somewhat working * [animgraph] Param working * [animgraph] Added preview button prototype * [animgraph] Play/preview graph from a certain point * [animgraph] Rename parameters * [animgraph] Can drag&drop parameters in the graph now * [animgraph] Parameter styling * [animgraph] Default pose node * [animgraph] Unlinked AnimNode inputs default to a global DefaultPose now * [animgraph] Fix default animNode input for inputs after the last * [animgraph] Param ux tweaks * [animgraph] Style * [animgraph] param tweaks * [hide] Allow clickables submenus in context menu * [animgraph] Improved bone picked for Blend per bone node * [animgraph] Started working on blend spaces * [animgraph] Blendspace somewhat working prototype * [animgraph] Blendspaces almost working * [hide] fix bug with extreme position values * [animgraph] Begin working on BlendSpace2D ui * [animgraph] Refactored BlendSpace2D so each animation instance is unique inside of a node * [animgraph] More work on BlendSpace tool * [animgraph] Save blendSpace2D * [animgraph] More BlendSpace Editor tweaks * [animgraph] Refactored AnimGraphInstance to be independant of the AnimGraph prefab * [blendspace] Implemented animation preview * [animgraph] UI tweaks * [animgraph] Tweaks, bugfix and ux improvement * [animgraph] Added ranges to preview values * [animgraph] Restore runtime value when recompiling graph * [animgraph] Parameter reordering and deletion * [animgraph] Fix bugs, added input box to float params * [animgraph] Better focus of preview mesh on init * [animgraph] Refactored node param default value overrides * [animgraph] Root Folder selection, choose preview model * [animgraph] Refactored previews into ScenePreview, fixed many issues in the BlendSpaceEditor * [animgraph] Refactored genericGraphEditor to use a ScenePreview * [hide] Add support for directory path in scene.listAnims * [animgraph] Anim list component * [animgraph] Added AnimList to AnimGraphEditor * [animgraph] Fix crash when object.defaultTransform was null * [animgraph] Bugfixes - prevent animgraph Output from being removed - Style tweaks - Editor crash fixes - Ui improvements * [scene] Auto load a render props in ScenePreview * [animgraph] ScenePreview mesh picker * [animgraph] Fix crash with null matrix * [hide] Fix context menu not closing on enter * [animgraph] Compile in game * [animgraph] Fix animation translations in animgraph, added setParam api to Instance * [animgraph] Added animgraph.Resource, fixed compilation * [animgraph] Code review cleanup
- Loading branch information
1 parent
ea9c548
commit 9aba39e
Showing
32 changed files
with
4,523 additions
and
106 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package hide.comp; | ||
|
||
|
||
typedef Options = { | ||
?hasDropdown: Bool, | ||
} | ||
|
||
/** | ||
Dropdown that uses a ContextMenu for it's dropdown element | ||
**/ | ||
class Button extends hide.comp.Component { | ||
public var label(default, set) : String; | ||
|
||
var labelElem : hide.Element; | ||
function set_label(newLabel: String) : String { | ||
label = newLabel; | ||
labelElem.text(label); | ||
return label; | ||
} | ||
|
||
public function new(parent: hide.Element = null, element: hide.Element = null, ?label: String, ?options: Options) { | ||
options ??= {}; | ||
if (element != null) { | ||
if (element.get(0).nodeName != "BUTTON-2") | ||
throw "button to wrap must be a <button-2> element"; | ||
} else { | ||
element = new Element("<button-2></button-2>"); | ||
} | ||
|
||
super(parent, element); | ||
labelElem = new Element("<value></value>").appendTo(element); | ||
|
||
this.label = label; | ||
|
||
if (options.hasDropdown) { | ||
new Element('<div class="ico ico-chevron-down"></div>').appendTo(element); | ||
} | ||
|
||
element.click((e) -> onClick()); | ||
} | ||
|
||
public dynamic function onClick() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.