Toolverse
All skills

messagebox

by JasonXuDeveloper

MessageBox async modal dialogs for Unity with UniTask. Triggers on: confirmation dialog, modal popup, prompt, alert, user confirmation, yes/no dialog, OK/Cancel, async dialog, await user input, delete confirmation, save confirmation

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Frontend
Views
3

About this skill

MessageBox async modal dialogs for Unity with UniTask. Triggers on: confirmation dialog, modal popup, prompt, alert, user confirmation, yes/no dialog, OK/Cancel, async dialog, await user input, delete confirmation, save confirmation

How to use

  1. Zainstaluj umiejętność MessageBox w swoim projekcie Unity, dodając ją do folderu skills Claude'a.

  2. W skrypcie, gdzie potrzebujesz okna dialogowego, zaimportuj namespace UniTask i użyj słowa kluczowego await przed wywołaniem MessageBox.Show().

  3. Wywołaj MessageBox.Show() z trzema parametrami: tytuł okna, treść wiadomości oraz tekst przycisków (domyślnie "OK" i "Cancel"). Na przykład: bool confirmed = await MessageBox.Show("Usunąć element?", "Czy na pewno chcesz usunąć ten element?", ok: "Usuń", no: "Anuluj");

  4. Sprawdź zwróconą wartość logiczną – true oznacza, że użytkownik potwierdził akcję, false że ją anulował. Umieść logikę wykonania akcji w warunku if (confirmed).

  5. Jeśli przechodzisz do innej sceny, zawsze wywołaj MessageBox.CloseAll() przed załadowaniem sceny, aby zamknąć wszystkie otwarte okna dialogowe.

  6. Przy zamykaniu aplikacji użyj MessageBox.Dispose(), aby zwolnić wszystkie obiekty z puli. Opcjonalnie możesz sprawdzić MessageBox.ActiveCount i MessageBox.PooledCount, aby monitorować liczbę aktywnych i buforowanych okien.

Related skills

better-icons

by better-auth

Use when working with icons in any project. Provides CLI for searching 200+ icon libraries (Iconify) and retrieving SVGs. Commands: `better-icons search u003cqueryu003e` to find icons, `better-icons get u003cidu003e` to get SVG. Also available as MCP server for AI agents.

Frontend
2037

interactive-dashboard-builder

by anthropics

Build self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive reports, or generating shareable HTML files with charts and filters that work without a server.

Frontend
2298

zustand

by lobehub

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

Frontend
36126

theme-factory

by anthropics

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

Frontend
40139

angular

by sickn33

Modern Angular (v20+) expert with deep knowledge of Signals, Standalone Components, Zoneless applications, SSR/Hydration, and reactive patterns. Use PROACTIVELY for Angular development, component architecture, state management, performance optimization, and migration to modern

Frontend
2656

screenshot-to-code

by OneWave-AI

Convert UI screenshots into working HTML/CSS/React/Vue code. Detects design patterns, components, and generates responsive layouts. Use this when users provide screenshots of websites, apps, or UI designs and want code implementation.

Frontend
94209