commit
This commit is contained in:
8
Assets/Darkmatter/Code/Features/ColorbookFlow/UI.meta
Normal file
8
Assets/Darkmatter/Code/Features/ColorbookFlow/UI.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c7aea1194f557e4db070c12db7d3ce6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Features.Colorbook
|
||||
{
|
||||
public class ColorBookPresenter
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 123e872ebf17096499bb4ff6f3a23e39
|
||||
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Features.Colorbook
|
||||
{
|
||||
public class ColorBookView : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 34c79bc9b38a2f546950cba13d598af1
|
||||
@@ -26,9 +26,22 @@ namespace Darkmatter.Features.DrawingCatalog
|
||||
public void Start()
|
||||
{
|
||||
_view.OnItemClicked += OnItemClicked;
|
||||
_view.OnBackClicked += OnBackBtnClicked;
|
||||
_view.OnArtBookClicked += OnArtBookBtnClicked;
|
||||
|
||||
_controller.ListChanged += OnListChanged;
|
||||
}
|
||||
|
||||
private void OnArtBookBtnClicked()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void OnBackBtnClicked()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
private void OnItemClicked(string id) =>
|
||||
_controller.OnTemplateSelected(id);
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Darkmatter.Libs.Observer;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Pool;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Darkmatter.Features.DrawingCatalog
|
||||
{
|
||||
@@ -9,9 +11,21 @@ namespace Darkmatter.Features.DrawingCatalog
|
||||
{
|
||||
[SerializeField] private RectTransform content;
|
||||
[SerializeField] private DrawingCatalogButton buttonPrefab;
|
||||
|
||||
[Header("Buttons")]
|
||||
[SerializeField] private Button backButton;
|
||||
[SerializeField] private Button artBookButton;
|
||||
private readonly List<DrawingCatalogButton> _buttons = new();
|
||||
|
||||
public event Action<string> OnItemClicked;
|
||||
public event Action OnBackClicked;
|
||||
public event Action OnArtBookClicked;
|
||||
|
||||
public void Start()
|
||||
{
|
||||
backButton.onClick.AddListener(() => OnBackClicked?.Invoke());
|
||||
artBookButton.onClick.AddListener(() => OnArtBookClicked?.Invoke());
|
||||
}
|
||||
|
||||
public void SetItems(IReadOnlyList<CatalogItemVM> items)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user