mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: key pressed event interception & 'owner' input.add_callback third argument
This commit is contained in:
parent
7fce735ca1
commit
b9ff1db086
17 changed files with 192 additions and 63 deletions
|
|
@ -44,7 +44,7 @@ void EngineController::deleteWorld(const std::string& name) {
|
|||
return;
|
||||
}
|
||||
guiutil::confirm(
|
||||
engine.getGUI()->getMenu(),
|
||||
engine,
|
||||
langs::get(L"delete-confirm", L"world") + L" (" +
|
||||
util::str2wstr_utf8(folder.u8string()) + L")",
|
||||
deletion
|
||||
|
|
@ -119,7 +119,7 @@ static void show_convert_request(
|
|||
return;
|
||||
}
|
||||
guiutil::confirm(
|
||||
engine.getGUI()->getMenu(),
|
||||
engine,
|
||||
langs::get(message),
|
||||
on_confirm,
|
||||
nullptr,
|
||||
|
|
@ -358,7 +358,7 @@ void EngineController::reconfigPacks(
|
|||
|
||||
if (hasIndices && !engine.isHeadless()) {
|
||||
guiutil::confirm(
|
||||
engine.getGUI()->getMenu(),
|
||||
engine,
|
||||
langs::get(L"remove-confirm", L"pack") + L" (" +
|
||||
util::str2wstr_utf8(ss.str()) + L")",
|
||||
[=]() { removeFunc(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue