How easylive2d/live2dmascot works
This repository is a Python desktop Live2D mascot with interactive mouse input, model rendering, settings, and chat. The documented user flow is to launch the app, select/load a Cubism model, then interact with the on-screen mascot; the application also exposes tray controls and chat. The graph preserves the documented v2/v3 model support and chat capability. Some orchestration and UI wiring are represented only at enclosing-module level because their source was not sampled; uncertain call edges are omitted.
Main entry points: model_impl.py Model adapter · input_manager.py Mouse input · model_manager.py Model selection · setting_manager_impl.py System tray
Components 20
Application Runtime
- Launch entry
main.py - Application lifecycle
framework/runtime/drive/application_impl.py - Event looper
framework/runtime/drive/looper/looper_impl_qt.py - Mascot scene
framework/runtime/scene.py
Interaction and Chat
- Mouse input
framework/runtime/core/input_manager.py - Clickable UI
framework/ui/clickable.py - Chat behavior
framework/runtime/drive/kizuna/kizuna_impl.py - Chat domain
framework/runtime/core/kizuna/kizuna.py
Model and Rendering
- Model selection
framework/runtime/core/model/model_manager.py - Model adapter
framework/runtime/drive/model/model_impl.py - Cubism v2 engine
live2d/v2/lapp_model.py - Cubism v3 engine
live2d/v3/__init__.py - Drawing manager
framework/runtime/drive/draw_manager_impl.py
Window and Settings
- Mascot window
framework/runtime/drive/window_manager_impl.py - Window UI
framework/ui/window.py - Settings manager
framework/runtime/core/setting_manager.py - Settings screens
framework/runtime/drive/window/settings/settings.py - System tray
framework/runtime/drive/setting_manager_impl.py
Other components
- Desktop user
- Model resources
Connections 16
- Desktop user → Launch entry: launches
- Launch entry → Application lifecycle: starts
- Model selection → Model adapter: creates model
- Model selection → Mascot scene: changes scene model
- Model adapter → Cubism v2 engine: wraps v2
- Model adapter → Cubism v3 engine: wraps v3
- Model resources → Model selection: model files
- Mouse input → Event looper: posts events
- Mouse input → Clickable UI: dispatches input
- Desktop user → Mouse input: mouse actions
- Chat domain → Chat behavior: behavior implementation
- Drawing manager → Mascot scene: renders scene
- Mascot window → Window UI: provides window
- Settings manager → Settings screens: opens settings
- System tray → Settings manager: handles tray options
- System tray → Event looper: posts setting action