mirror of
https://github.com/brunoherbelin/vimix.git
synced 2026-06-16 04:27:23 +02:00
Mask Paint!! New MaskShader for mouse paiting of masks and associated changes.
UI for pain mask, load & save of FrameBuffer Image.
This commit is contained in:
@@ -179,7 +179,6 @@ bool UserInterface::Init()
|
||||
IMGUI_CHECKVERSION();
|
||||
ImGui::CreateContext();
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
||||
io.FontGlobalScale = Settings::application.scale;
|
||||
|
||||
// Setup Platform/Renderer bindings
|
||||
@@ -447,10 +446,18 @@ void UserInterface::handleMouse()
|
||||
if (ImGui::IsMouseClicked(ImGuiMouseButton_Right) /*|| ImGui::IsMouseClicked(ImGuiMouseButton_Middle)*/)
|
||||
ImGui::FocusWindow(NULL);
|
||||
|
||||
//
|
||||
// Mouse over
|
||||
//
|
||||
{
|
||||
View::Cursor c = Mixer::manager().view()->over(mousepos);
|
||||
if (c.type > 0)
|
||||
setMouseCursor(io.MousePos, c);
|
||||
}
|
||||
|
||||
// if not on any window
|
||||
if ( !ImGui::IsAnyWindowHovered() && !ImGui::IsAnyWindowFocused() )
|
||||
{
|
||||
|
||||
//
|
||||
// Mouse wheel over background
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user