Giter Club home page Giter Club logo

Comments (11)

AllenDang avatar AllenDang commented on June 7, 2024 1

@millerlogic Thanks for your advice. I'm wrapping more widgets right now. After that I will try to implement this.

from gimu.

AllenDang avatar AllenDang commented on June 7, 2024 1

@Nicify I implemented it in imgui version, and it works like magic!!!!
The cpu usage is decreased from 10% to 0.4%. Amazing!!!!

from gimu.

Rel1cx avatar Rel1cx commented on June 7, 2024

@AllenDang There is a PR in imgui main repo ocornut/imgui#2749

from gimu.

AllenDang avatar AllenDang commented on June 7, 2024

@Nicify Thanks for the information!
I'm currently working on change the backend from nuklear to imgui.
Because the auto generated nuklear binding has random crash issue on MacOS, and since cgo cannot provide necessary information it's nearly impossible to fix at this point.

from gimu.

Rel1cx avatar Rel1cx commented on June 7, 2024

@AllenDang Wow, great job!

from gimu.

l0v3R0bber avatar l0v3R0bber commented on June 7, 2024

I like this project very much, especially the UI style. At present, this project is just in its infancy. I would like to support this project with bitcoin😊

from gimu.

AllenDang avatar AllenDang commented on June 7, 2024

@l0v3R0bber Thanks! But gimu has a very big issue on the auto-generated cgo wrapper side which will cause random crash. It's nearly unable to fix at this moment unless I manually wrap all nuklear API in future.
That's why I created a new project called giu based on imgui which has a very solid and stable wrapper.

from gimu.

sndnvaps avatar sndnvaps commented on June 7, 2024

hi @AllenDang ,i have got some problem.
how to SetString for EditBox
and Menu cannot support PopUp func, can it be fix .

from gimu.

sndnvaps avatar sndnvaps commented on June 7, 2024
func AboutMsgBox(w *gimu.Window) {
	gimu.SetFont(w.MasterWindow().GetContext(), customFont)

	opened := w.Popup("关于本程序", nk.PopupStatic, nk.WindowTitle|nk.WindowNoScrollbar|nk.WindowClosable, nk.NkRect(30, 10, 300, 100), func(w *gimu.Window) {
		w.Row(25).Dynamic(1)
		// Custom font

		w.Label("本程序由 sndnvaps<[email protected]>开发", "LC")
		buttonState := w.Button("关闭")
		if buttonState {
			showAboutPopup = false
			w.ClosePopup()
		}
		gimu.SetFont(w.MasterWindow().GetContext(), w.MasterWindow().GetDefaultFont())

	})
	if !opened {
		showAboutPopup = false
	}
}
		// Menu 3
		w.Menu("Help", "CC", 100, 100, func(w *gimu.Window) {
			w.Row(25).Dynamic(1)
			state := w.Button("关于")
			if state {
				showAboutPopup = true
			}
			
				if showAboutPopup {
					AboutMsgBox(w)
				}
			
		})

this code will cause app crash

from gimu.

AllenDang avatar AllenDang commented on June 7, 2024

@sndnvaps I strongly suggest to use github.com/AllenDang/giu instead of gimu. Because gimu has random crash issue that I cannot fix at the moment.

from gimu.

sndnvaps avatar sndnvaps commented on June 7, 2024

@sndnvaps I strongly suggest to use github.com/AllenDang/giu instead of gimu. Because gimu has random crash issue that I cannot fix at the moment.

ok,thanks.
i will try it As soon as possible.

from gimu.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.