Skip to content

Commit

Permalink
Icon追加
Browse files Browse the repository at this point in the history
close  #38
  • Loading branch information
pandrabox committed Sep 15, 2024
1 parent 85c2730 commit a01d925
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/Ico.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Ico/EmotePrefab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 116 additions & 0 deletions Assets/Ico/EmotePrefab.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Editor/ExpressionCreater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public ExpressionCreater()
var menu = _emoteObjRoot.AddComponent<ModularAvatarMenuItem>();
menu.Control.type = VRC.SDK3.Avatars.ScriptableObjects.VRCExpressionsMenu.Control.ControlType.SubMenu;
menu.MenuSource = SubmenuSource.Children;
menu.Control.icon = AssetDatabase.LoadAssetAtPath<Texture2D>(Config.EmotePrefabIcon);

for (int i = 0; i < EmoteManager.Length; i++)
{
Expand Down
5 changes: 5 additions & 0 deletions Runtime/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public static class Config
/// </summary>
public static readonly string BackupAFKClip = $@"{TemplateDir}proxy_afk.anim";

/// <summary>
/// Iconのパス
/// </summary>
public static readonly string EmotePrefabIcon = $@"{TemplateDir}Ico/EmotePrefab.png";

/// <summary>
/// EmotePrefabObjectの前置詞
/// </summary>
Expand Down

0 comments on commit a01d925

Please sign in to comment.