Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify outside window #7

Closed
GamebP opened this issue May 15, 2024 · 15 comments · Fixed by #10
Closed

Notify outside window #7

GamebP opened this issue May 15, 2024 · 15 comments · Fixed by #10
Assignees
Labels
enhancement New feature or request

Comments

@GamebP
Copy link

GamebP commented May 15, 2024

No description provided.

@GamebP GamebP added the enhancement New feature or request label May 15, 2024
@GamebP
Copy link
Author

GamebP commented May 15, 2024

@TyomaVader ?

@TyomaVader
Copy link
Owner

@TyomaVader ?

Do you have some problem running the library ?

@GamebP
Copy link
Author

GamebP commented May 15, 2024 via email

@TyomaVader
Copy link
Owner

What library?

Artsiom Chmutau @.***> (šajā datumā: trešd., 2024. g.
15. maijs 16:50) rakstīja:

@TyomaVader https://github.com/TyomaVader ?

Do you have some problem running the library ?


Reply to this email directly, view it on GitHub
#7 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVARP73CAZS475APYYAU4Q3ZCNRZJAVCNFSM6AAAAABHXHOVT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJSGU4TQMZYGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

ImGuiNotify with D3D9

@GamebP
Copy link
Author

GamebP commented May 15, 2024

What DO I need to include a library to make it work?

I currently have

d3d9.lib
winmm.lib
freetype.lib
libcurl_a.lib
Ws2_32.lib
Wldap32.lib
msvcrtd.lib
Advapi32.lib
Crypt32.lib
Normaliz.lib
User32.lib

@TyomaVader
Copy link
Owner

What DO I need to include a library to make it work?

I currently have

d3d9.lib
winmm.lib
freetype.lib
libcurl_a.lib
Ws2_32.lib
Wldap32.lib
msvcrtd.lib
Advapi32.lib
Crypt32.lib
Normaliz.lib
User32.lib

Follow the instructions from the official Dear ImGui repository and then include the ImGuiNotify header

@GamebP GamebP closed this as completed May 15, 2024
@GamebP
Copy link
Author

GamebP commented May 15, 2024

sorry to ask, but how to make the Notification outside imgui?
image

@GamebP GamebP reopened this May 15, 2024
@TyomaVader
Copy link
Owner

sorry to ask, but how to make the Notification outside imgui?
image

You would need to spawn the notification window relative to your screen size instead of the main window size, for this you would require the docking branch of Dear ImGui

@GamebP
Copy link
Author

GamebP commented May 16, 2024

Alright good to know. Will try to change when I have a chance

@GamebP
Copy link
Author

GamebP commented May 16, 2024

I made changes to imgui from normal to Docking
But after rebuilding and testing it's still in the main imgui as picture above .
Could need to change more things to make it work outside.

@TyomaVader
Copy link
Owner

I made changes to imgui from normal to Docking But after rebuilding and testing it's still in the main imgui as picture above . Could need to change more things to make it work outside.

Yes, I believe you would need to change the following lines from the ImGuiNotify.hpp in the RenderNotifications function:

// Set notification window position to bottom right corner of the main window, considering the main window size and location in relation to the display
ImVec2 mainWindowPos = GetMainViewport()->Pos;
SetNextWindowPos(ImVec2(mainWindowPos.x + mainWindowSize.x - NOTIFY_PADDING_X, mainWindowPos.y + mainWindowSize.y - NOTIFY_PADDING_Y - height), ImGuiCond_Always, ImVec2(1.0f, 1.0f));

@GamebP
Copy link
Author

GamebP commented May 18, 2024

Can I invite you to my project and you can have a look? Since it's the same issue as before.,

@TyomaVader
Copy link
Owner

Can I invite you to my project and you can have a look? Since it's the same issue as before.,

Ok, I'll have a look in a few days

@GamebP
Copy link
Author

GamebP commented May 19, 2024

Alright

@TyomaVader TyomaVader self-assigned this May 19, 2024
@TyomaVader TyomaVader mentioned this issue Jul 7, 2024
@GamebP GamebP changed the title Can I use ImGui D3D9 for this? Notify outside window Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants