This commit is contained in:
Mausham
2026-05-28 13:38:23 +05:45
parent e5b63e158c
commit 84fea79158
13 changed files with 269 additions and 24 deletions

View File

@@ -0,0 +1,5 @@
using Darkmatter.App.LifetimeScopes;
public class ColorBookLifetimeScope : BaseLifetimeScope
{
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8bbdb0f5cdf25c34086f816c59836c9d

View File

@@ -0,0 +1,6 @@
using UnityEngine;
namespace Darkmatter.Core
{
public record struct OpenArtBookSignal;
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: cf8582ced90151445a9fa7b610f59ce9

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4c7aea1194f557e4db070c12db7d3ce6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,9 @@
using UnityEngine;
namespace Darkmatter.Features.Colorbook
{
public class ColorBookPresenter
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 123e872ebf17096499bb4ff6f3a23e39

View File

@@ -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()
{
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 34c79bc9b38a2f546950cba13d598af1

View File

@@ -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);

View File

@@ -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)
{