Implement save file dialog functionality across platforms
- Added ShowSaveFileDialog and its platform-specific implementations for Windows and macOS, allowing users to save files with specified names and extensions. - Enhanced the FileDialogWrapper class to support both native and bespoke dialog options based on feature flags. - Updated the editor manager to utilize the new save dialog for ROM and project file saving, improving user experience and file management. - Refactored existing dialog methods to ensure consistency and maintainability across different platforms.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "app/gui/background_renderer.h"
|
||||
#include "core/platform/font_loader.h"
|
||||
#include "gui/color.h"
|
||||
#include "gui/icons.h"
|
||||
#include "imgui/imgui.h"
|
||||
#include "imgui/imgui_internal.h"
|
||||
#include "util/log.h"
|
||||
@@ -438,7 +439,7 @@ void BeginCanvasTableCell(ImVec2 min_size) {
|
||||
|
||||
// Reserve space for the canvas
|
||||
ImGui::Dummy(actual_size);
|
||||
ImGui::SetCursorPos(ImGui::GetCursorPos() - actual_size); // Reset cursor for drawing
|
||||
// ImGui::SetCursorPos(ImGui::GetCursorPos() - actual_size); // Reset cursor for drawing
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user