-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change: MA Info is now a normal editor window (#850)
- Loading branch information
1 parent
61a70fe
commit bc12e3a
Showing
23 changed files
with
239 additions
and
472 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#region | ||
|
||
using UnityEngine.UIElements; | ||
|
||
#endregion | ||
|
||
namespace nadena.dev.modular_avatar.core.editor | ||
{ | ||
public class LogoImage : VisualElement | ||
{ | ||
VisualElement _inner; | ||
|
||
public new class UxmlFactory : UxmlFactory<LogoImage, UxmlTraits> | ||
{ | ||
} | ||
|
||
public new class UxmlTraits : VisualElement.UxmlTraits | ||
{ | ||
} | ||
|
||
public LogoImage() | ||
{ | ||
_inner = new VisualElement(); | ||
|
||
_inner.style.flexDirection = FlexDirection.Row; | ||
_inner.style.alignItems = Align.Center; | ||
_inner.style.justifyContent = Justify.Center; | ||
|
||
var image = new Image(); | ||
image.image = LogoDisplay.LOGO_ASSET; | ||
image.style.width = new Length(LogoDisplay.ImageWidth(LogoDisplay.TARGET_HEIGHT), LengthUnit.Pixel); | ||
image.style.height = new Length(LogoDisplay.TARGET_HEIGHT, LengthUnit.Pixel); | ||
|
||
_inner.Add(image); | ||
Add(_inner); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.