Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Release][GUI] ImGui-SFML  (Read 94747 times)

0 Members and 1 Guest are viewing this topic.

Elias Daler

  • Hero Member
  • *****
  • Posts: 599
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #30 on: April 08, 2018, 11:35:46 am »
ImGui 1.60 is released! It has cool keyboard/gamepad navigation feature which I want to implement in ImGui-SFML soon.

Please check this out: https://github.com/eliasdaler/imgui-sfml/issues/51
There are lots of things which need to be discussed about implementing it and your opinion will help.
Tomb Painter, Re:creation dev (abandoned, doing other things) | edw.is | @EliasDaler

DJuego

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: [Release][GUI] ImGui-SFML
« Reply #31 on: April 08, 2018, 01:01:17 pm »
Elias. Thank you for your ImGui-SFML! It is a must for me! Happy that you want to improve it more and more. ;-)

DJuego

Elias Daler

  • Hero Member
  • *****
  • Posts: 599
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #32 on: April 08, 2018, 02:00:52 pm »
Elias. Thank you for your ImGui-SFML! It is a must for me! Happy that you want to improve it more and more. ;-)

DJuego

You're welcome. Glad that you enjoy using it. :)
Tomb Painter, Re:creation dev (abandoned, doing other things) | edw.is | @EliasDaler

Elias Daler

  • Hero Member
  • *****
  • Posts: 599
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #33 on: April 22, 2018, 03:56:43 pm »

ImGui 1.60 brought us awesome gamepad and keyboard nagivation support! Please test it and see how it works for you.

The navigation branch that you need to checkout to is here: https://github.com/eliasdaler/imgui-sfml/tree/navigation
See the default controls here: https://github.com/ocornut/imgui/issues/1599
Tomb Painter, Re:creation dev (abandoned, doing other things) | edw.is | @EliasDaler

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: [Release][GUI] ImGui-SFML
« Reply #34 on: April 27, 2018, 04:29:47 am »
check out 3:17 of this video

https://www.youtube.com/watch?v=LSRJ1jZq90k

Mysphyt

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Release][GUI] ImGui-SFML
« Reply #35 on: April 27, 2018, 04:59:37 am »
Wow this library looks awesome. I'll definitely look into using it for my project (https://en.sfml-dev.org/forums/index.php?topic=23947.0), as I still need an options menu and various tool interfaces. I'm still pretty new to C++ and to SFML so reading these libraries has really helped me learn.

Elias Daler

  • Hero Member
  • *****
  • Posts: 599
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #36 on: April 27, 2018, 11:16:17 am »
check out 3:17 of this video
He-he, yeah, I've seen it. Was pretty glad to be featured there. :)

Wow this library looks awesome. I'll definitely look into using it for my project (https://en.sfml-dev.org/forums/index.php?topic=23947.0), as I still need an options menu and various tool interfaces. I'm still pretty new to C++ and to SFML so reading these libraries has really helped me learn.
Hope you enjoy using it. :)
Tomb Painter, Re:creation dev (abandoned, doing other things) | edw.is | @EliasDaler

Cpl.Bator

  • Hero Member
  • *****
  • Posts: 540
    • View Profile
Re: [Release][GUI] ImGui-SFML
« Reply #37 on: May 11, 2018, 06:40:55 pm »
Thanks Elias, i have integrated your code with my program, all work fine.
But, i have a question, for sure, you have resolved it before, i need to create a small tile editor, i need to ignore
the mouse click when i am inside an imgui window, when i choose some options in my window, some tile will be pasted on the map...

i try this code, but that's doesnt work :

if (sf::Mouse::isButtonPressed(sf::Mouse::Left) && mSelectedTile != -1 && !ImGui::IsWindowHovered())
...

what is the trick ?

thanks.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #38 on: May 11, 2018, 07:32:21 pm »
I did it like this (ignore the project, it's abandoned): https://github.com/FRex/editor/blob/master/src/Gui.cpp#L61
Back to C++ gamedev with SFML in May 2023

Cpl.Bator

  • Hero Member
  • *****
  • Posts: 540
    • View Profile
Re: [Release][GUI] ImGui-SFML
« Reply #39 on: May 11, 2018, 07:53:23 pm »
thanks, just "ImGui::GetIO().WantCaptureMouse" solved my problem.

Elias Daler

  • Hero Member
  • *****
  • Posts: 599
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #40 on: May 16, 2018, 11:46:34 pm »
ImGui-SFML gets two new cool features along with SFML 2.5.0 release!

📋 Clipboard support
🐁 Native (system) mouse cursor support

They are implemented here: https://github.com/eliasdaler/imgui-sfml/tree/sfml-2.5.0
Tomb Painter, Re:creation dev (abandoned, doing other things) | edw.is | @EliasDaler

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11044
    • View Profile
    • development blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #41 on: May 17, 2018, 08:47:54 am »
Nice! Good job adapting it already! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Elias Daler

  • Hero Member
  • *****
  • Posts: 599
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #42 on: May 17, 2018, 11:55:38 am »
Nice! Good job adapting it already! :)
Thanks. :D
Tomb Painter, Re:creation dev (abandoned, doing other things) | edw.is | @EliasDaler

JonathanFerro

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: [Release][GUI] SFML + ImGui lib
« Reply #43 on: June 16, 2018, 11:08:01 am »
Default font is loaded if you don't pass false in ImGui::SFML::Init. Call ImGui::SFML::Init(window, false); if you don't want default font to be loaded.
Thanks Elias, i have read integrated your code with my program, all work fine.
But, i have a , for sure, you have resolved it before, i need over the counter phentermine37.5 to create a small tile editor, i need to ignore
the mouse click when i am inside an imgui window, when i choose some options in my window, some tile will be pasted on the map...


Thank you so much for this information regarding font as I want to load another font but was unable to do so. I was getting frustrated but your post saved me.
« Last Edit: October 29, 2022, 12:17:28 am by JonathanFerro »

poww10s

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [Release][GUI] ImGui-SFML
« Reply #44 on: November 11, 2018, 07:52:48 am »
Hi, I keep getting these errors, I've done all the recommended solutions but I'm unsure how to proceed.

Quote
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:38: undefined reference to `ImGui::SFML::Init(sf::RenderWindow&, bool)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:50: undefined reference to `ImGui::SFML::ProcessEvent(sf::Event const&)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:60: undefined reference to `ImGui::SFML::Update(sf::RenderWindow&, sf::Time)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:61: undefined reference to `ImGui::Begin(char const*, bool*, int)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:63: undefined reference to `ImGui::End()'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:66: undefined reference to `ImGui::SFML::Render(sf::RenderTarget&)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:72: undefined reference to `ImGui::SFML::Shutdown()'
collect2.exe: error: ld returned 1 exit status

This should just be a simple fix right? I feel like this is an obvious fix.

 

anything