mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): brush size presets/hotkeys, export dialog update
- Brush size presets: S(15)/M(50)/L(100)/XL(180) buttons in sculpt panel - [ / ] bracket keys adjust brush radius by 10 units (clamped 5-200) - Export dialog now lists all output formats (ADT+WDT, WOT+WHM, WOM, WOB, PNG, JSON) instead of just ADT/WDT - Document bracket keys in help panel
This commit is contained in:
parent
97da4c38f0
commit
28d63addc4
2 changed files with 17 additions and 2 deletions
|
|
@ -268,6 +268,15 @@ void EditorApp::processEvents() {
|
|||
if (sc == SDL_SCANCODE_4) setMode(EditorMode::Water);
|
||||
if (sc == SDL_SCANCODE_5) setMode(EditorMode::NPC);
|
||||
if (sc == SDL_SCANCODE_6) setMode(EditorMode::Quest);
|
||||
// Bracket keys adjust brush size
|
||||
if (sc == SDL_SCANCODE_LEFTBRACKET) {
|
||||
auto& bs = terrainEditor_.brush().settings();
|
||||
bs.radius = std::max(5.0f, bs.radius - 10.0f);
|
||||
}
|
||||
if (sc == SDL_SCANCODE_RIGHTBRACKET) {
|
||||
auto& bs = terrainEditor_.brush().settings();
|
||||
bs.radius = std::min(200.0f, bs.radius + 10.0f);
|
||||
}
|
||||
}
|
||||
// F1 handled by UI (showHelp_ toggle)
|
||||
// F1 = toggle help
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue