# kyonkoyuuki/yabacorganizer architecture

> Architecture diagram of the GitHub repository kyonkoyuuki/yabacorganizer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kyonkoyuuki/yabacorganizer
- Repository: https://github.com/kyonkoyuuki/yabacorganizer

## Overview

YaBAC Organizer is a desktop editor for Xenoverse 2 BAC moveset and skill data. The main workflow is opening a BAC, selecting entries in the main panel’s tree, editing type-specific fields in the side panel, then saving. The README also documents entry copy/paste and add/delete, smart index pasting, find/replace, cross-instance clipboard, and conversion for XV2 Skill Creator. The excerpts show the GUI and panel wiring, but not the complete file I/O or clipboard implementation; those details are not expanded here.

Main entry points: [`yabac/panels/side.py`](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/side.py) (Side Panel), [`yabac/panels/types/__init__.py`](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/__init__.py) (Panel Framework), [`YaBAC Organizer.py`](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/YaBAC%20Organizer.py) (Main Window), [`yabac/panels/main.py`](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/main.py) (Entry Tree)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Organizer UI"]
  node_window["Main Window<br/>[YaBAC Organizer.py]"]
  node_tree["Entry Tree<br/>[main.py]"]
  node_side_panel["Side Panel<br/>[side.py]"]
end

subgraph group_editing["Entry Editing"]
  node_base_panel["Panel Framework<br/>[__init__.py]"]
end

subgraph group_operations["Entry Operations"]
  node_find["Find Dialog<br/>[find.py]"]
  node_replace["Replace Dialog<br/>[replace.py]"]
  node_paste["Smart Paste Dialog<br/>[paste.py]"]
  node_convert["Skill Conversion<br/>[convert.py]"]
end

subgraph group_bac_types["BAC Type Editors"]
  node_animation["Animation Editor<br/>[animation_panel.py]"]
  node_camera["Camera Editor<br/>[camera_panel.py]"]
  node_dual_skill["Dual Skill Editor"]
  node_effects["Effect Editors<br/>[effect_panel.py]"]
  node_hitbox["Hitbox Editor<br/>[hitbox_panel.py]"]
  node_homing["Homing Editor"]
  node_projectile["Projectile Editor"]
  node_system["System Editor<br/>[system_panel.py]"]
  node_throw["Throw Editor"]
  node_transparency["Transparency Editor"]
  node_type29["Type 29 Editor<br/>[type29_panel.py]"]
end

node_user(("Editor User"))
node_bac_file["BAC File"]
node_skill_creator["XV2 Skill Creator"]

node_user -->|"uses"| node_window
node_window -->|"creates"| node_tree
node_window -->|"creates"| node_side_panel
node_window -->|"opens and saves"| node_bac_file
node_tree -->|"selects entry"| node_side_panel
node_side_panel -->|"dispatches to"| node_animation
node_side_panel -->|"dispatches to"| node_camera
node_side_panel -->|"dispatches to"| node_dual_skill
node_side_panel -->|"dispatches to"| node_effects
node_side_panel -->|"dispatches to"| node_hitbox
node_side_panel -->|"dispatches to"| node_homing
node_side_panel -->|"dispatches to"| node_projectile
node_side_panel -->|"dispatches to"| node_system
node_side_panel -->|"dispatches to"| node_throw
node_side_panel -->|"dispatches to"| node_transparency
node_side_panel -->|"dispatches to"| node_type29
node_animation -->|"inherits framework"| node_base_panel
node_camera -->|"inherits framework"| node_base_panel
node_dual_skill -->|"inherits framework"| node_base_panel
node_effects -->|"inherits framework"| node_base_panel
node_hitbox -->|"inherits framework"| node_base_panel
node_homing -->|"inherits framework"| node_base_panel
node_projectile -->|"inherits framework"| node_base_panel
node_system -->|"inherits framework"| node_base_panel
node_throw -->|"inherits framework"| node_base_panel
node_transparency -->|"inherits framework"| node_base_panel
node_type29 -->|"inherits framework"| node_base_panel
node_window -->|"opens dialog"| node_find
node_window -->|"opens dialog"| node_replace
node_replace -->|"extends"| node_find
node_tree -->|"uses for smart paste"| node_paste
node_window -->|"dispatches conversion"| node_convert
node_convert -->|"prepares skill data"| node_skill_creator
node_user -->|"edits entries"| node_tree
node_tree -->|"adds deletes copies"| node_bac_file
node_user -->|"searches values"| node_find
node_user -->|"replaces values"| node_replace
node_user -->|"pastes entries"| node_paste
node_paste -->|"remaps indexes"| node_bac_file

click node_window "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/YaBAC%20Organizer.py"
click node_tree "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/main.py"
click node_side_panel "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/side.py"
click node_base_panel "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/__init__.py"
click node_animation "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/animation_panel.py"
click node_camera "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/camera_panel.py"
click node_dual_skill "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/dual_skill_handler_panel.py"
click node_effects "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/effect_panel.py"
click node_hitbox "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/hitbox_panel.py"
click node_homing "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/homing_movement_panel.py"
click node_projectile "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/projectile_panel.py"
click node_system "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/system_panel.py"
click node_throw "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/throw_handler_panel.py"
click node_transparency "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/transparency_effect_panel.py"
click node_type29 "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/type29_panel.py"
click node_find "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/dlg/find.py"
click node_replace "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/dlg/replace.py"
click node_paste "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/dlg/paste.py"
click node_convert "https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/dlg/convert.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_window,node_tree,node_side_panel,node_user toneBlue
class node_base_panel toneAmber
class node_find,node_replace,node_paste,node_convert toneMint
class node_animation,node_camera,node_dual_skill,node_effects,node_hitbox,node_homing,node_projectile,node_system,node_throw,node_transparency,node_type29 toneRose
class node_bac_file,node_skill_creator toneIndigo
```

## Components

### Organizer UI

- [Main Window](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/YaBAC%20Organizer.py): `YaBAC Organizer.py`
- [Entry Tree](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/main.py): `yabac/panels/main.py`
- [Side Panel](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/side.py): `yabac/panels/side.py`

### Entry Editing

- [Panel Framework](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/__init__.py): `yabac/panels/types/__init__.py`

### Entry Operations

- [Find Dialog](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/dlg/find.py): `yabac/dlg/find.py`
- [Replace Dialog](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/dlg/replace.py): `yabac/dlg/replace.py`
- [Smart Paste Dialog](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/dlg/paste.py): `yabac/dlg/paste.py`
- [Skill Conversion](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/dlg/convert.py): `yabac/dlg/convert.py`

### BAC Type Editors

- [Animation Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/animation_panel.py): `yabac/panels/types/animation_panel.py`
- [Camera Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/camera_panel.py): `yabac/panels/types/camera_panel.py`
- [Dual Skill Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/dual_skill_handler_panel.py): `yabac/panels/types/dual_skill_handler_panel.py`
- [Effect Editors](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/effect_panel.py): `yabac/panels/types/effect_panel.py`
- [Hitbox Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/hitbox_panel.py): `yabac/panels/types/hitbox_panel.py`
- [Homing Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/homing_movement_panel.py): `yabac/panels/types/homing_movement_panel.py`
- [Projectile Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/projectile_panel.py): `yabac/panels/types/projectile_panel.py`
- [System Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/system_panel.py): `yabac/panels/types/system_panel.py`
- [Throw Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/throw_handler_panel.py): `yabac/panels/types/throw_handler_panel.py`
- [Transparency Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/transparency_effect_panel.py): `yabac/panels/types/transparency_effect_panel.py`
- [Type 29 Editor](https://github.com/kyonkoyuuki/yabacorganizer/blob/master/yabac/panels/types/type29_panel.py): `yabac/panels/types/type29_panel.py`

### Other components

- **Editor User**
- **BAC File**
- **XV2 Skill Creator**

## Connections

- Editor User → Main Window: uses (evidence: `YaBAC Organizer.py`)
- Main Window → Entry Tree: creates (evidence: `YaBAC Organizer.py`)
- Main Window → Side Panel: creates (evidence: `YaBAC Organizer.py`)
- Main Window → BAC File: opens and saves
- Entry Tree → Side Panel: selects entry (evidence: `yabac/panels/side.py`)
- Side Panel → Animation Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → Camera Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → Dual Skill Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → Effect Editors: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → Hitbox Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → Homing Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → Projectile Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → System Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → Throw Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → Transparency Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Side Panel → Type 29 Editor: dispatches to (evidence: `yabac/panels/side.py`)
- Animation Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/animation_panel.py`)
- Camera Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/camera_panel.py`)
- Dual Skill Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/dual_skill_handler_panel.py`)
- Effect Editors → Panel Framework: inherits framework (evidence: `yabac/panels/types/effect_panel.py`)
- Hitbox Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/hitbox_panel.py`)
- Homing Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/homing_movement_panel.py`)
- Projectile Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/projectile_panel.py`)
- System Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/system_panel.py`)
- Throw Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/throw_handler_panel.py`)
- Transparency Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/transparency_effect_panel.py`)
- Type 29 Editor → Panel Framework: inherits framework (evidence: `yabac/panels/types/type29_panel.py`)
- Main Window → Find Dialog: opens dialog (evidence: `YaBAC Organizer.py`)
- Main Window → Replace Dialog: opens dialog (evidence: `YaBAC Organizer.py`)
- Replace Dialog → Find Dialog: extends (evidence: `yabac/dlg/replace.py`)
- Entry Tree → Smart Paste Dialog: uses for smart paste (evidence: `yabac/panels/main.py`)
- Main Window → Skill Conversion: dispatches conversion (evidence: `YaBAC Organizer.py`)
- Skill Conversion → XV2 Skill Creator: prepares skill data
- Editor User → Entry Tree: edits entries
- Entry Tree → BAC File: adds deletes copies
- Editor User → Find Dialog: searches values
- Editor User → Replace Dialog: replaces values
- Editor User → Smart Paste Dialog: pastes entries
- Smart Paste Dialog → BAC File: remaps indexes
