@@ -837,7 +837,7 @@ public class UmaViewerUI : MonoBehaviour
|
||||
pageentry.OnClick = (container) =>
|
||||
{
|
||||
HighlightChildImage(animationList.content, container);
|
||||
(Builder.CurrentUMAContainer as UmaContainerCharacter)?.LoadAnimation(entry);
|
||||
Builder.LoadAsset(entry);
|
||||
LoadedAnimation();
|
||||
};
|
||||
pageentrys.Add(pageentry);
|
||||
@@ -848,7 +848,16 @@ public class UmaViewerUI : MonoBehaviour
|
||||
{
|
||||
foreach (var entry in filteredList.Where(a => a.Name.Contains($"/tail")))
|
||||
{
|
||||
CreateAnimationSelectionPanel(entry, animationList.content);
|
||||
var entryInstance = entry;
|
||||
var container = Instantiate(UmaContainerPrefab, animationList.content).GetComponent<UmaUIContainer>();
|
||||
container.Name = container.name = Path.GetFileName(entry.Name);
|
||||
container.FontSize = 20;
|
||||
container.Button.onClick.AddListener(() =>
|
||||
{
|
||||
HighlightChildImage(animationList.content, container);
|
||||
Builder.LoadAsset(entryInstance);
|
||||
LoadedAnimation();
|
||||
});
|
||||
}
|
||||
pageManager.ResetCtrl();
|
||||
}
|
||||
@@ -856,7 +865,16 @@ public class UmaViewerUI : MonoBehaviour
|
||||
{
|
||||
foreach (var entry in Main.AbMotions.Where(a => a.Name.Contains($"type00_ear") && !a.Name.EndsWith("driven") && !a.Name.Contains("touch")))
|
||||
{
|
||||
CreateAnimationSelectionPanel(entry, animationList.content);
|
||||
var entryInstance = entry;
|
||||
var container = Instantiate(UmaContainerPrefab, animationList.content).GetComponent<UmaUIContainer>();
|
||||
container.Name = container.name = Path.GetFileName(entry.Name);
|
||||
container.FontSize = 20;
|
||||
container.Button.onClick.AddListener(() =>
|
||||
{
|
||||
HighlightChildImage(animationList.content, container);
|
||||
Builder.LoadAsset(entryInstance);
|
||||
LoadedAnimation();
|
||||
});
|
||||
}
|
||||
pageManager.ResetCtrl();
|
||||
}
|
||||
@@ -865,31 +883,36 @@ public class UmaViewerUI : MonoBehaviour
|
||||
//Common animations
|
||||
foreach (var entry in filteredList.Where(a => a.Name.Contains($"chara/chr{umaId}") && !a.Name.Contains("pose")))
|
||||
{
|
||||
CreateAnimationSelectionPanel(entry, animationList.content);
|
||||
var entryInstance = entry;
|
||||
var container = Instantiate(UmaContainerPrefab, animationList.content).GetComponent<UmaUIContainer>();
|
||||
container.Name = container.name = Path.GetFileName(entry.Name);
|
||||
container.FontSize = 20;
|
||||
container.Button.onClick.AddListener(() =>
|
||||
{
|
||||
HighlightChildImage(animationList.content, container);
|
||||
Builder.LoadAsset(entryInstance);
|
||||
LoadedAnimation();
|
||||
});
|
||||
}
|
||||
|
||||
//Skill animations
|
||||
foreach (var entry in filteredList.Where(a => a.Name.Contains($"card/body/crd{umaId}")))
|
||||
{
|
||||
CreateAnimationSelectionPanel(entry, animationList.content);
|
||||
var entryInstance = entry;
|
||||
var container = Instantiate(UmaContainerPrefab, animationList.content).GetComponent<UmaUIContainer>();
|
||||
container.Name = container.name = Path.GetFileName(entry.Name);
|
||||
container.FontSize = 20;
|
||||
container.Button.onClick.AddListener(() =>
|
||||
{
|
||||
HighlightChildImage(animationList.content, container);
|
||||
Builder.LoadAsset(entryInstance);
|
||||
LoadedAnimation();
|
||||
});
|
||||
}
|
||||
pageManager.ResetCtrl();
|
||||
}
|
||||
}
|
||||
|
||||
void CreateAnimationSelectionPanel(UmaDatabaseEntry entry, Transform parent)
|
||||
{
|
||||
var container = Instantiate(UmaContainerPrefab, parent).GetComponent<UmaUIContainer>();
|
||||
container.Name = container.name = Path.GetFileName(entry.Name);
|
||||
container.FontSize = 20;
|
||||
container.Button.onClick.AddListener(() =>
|
||||
{
|
||||
HighlightChildImage(parent, container);
|
||||
(Builder.CurrentUMAContainer as UmaContainerCharacter)?.LoadAnimation(entry);
|
||||
LoadedAnimation();
|
||||
});
|
||||
}
|
||||
|
||||
void ListBackgrounds()
|
||||
{
|
||||
var pageentrys = new List<PageManager.Entry>();
|
||||
|
||||
Reference in New Issue
Block a user