New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/racinettee/imgui-fileselector

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/racinettee/imgui-fileselector

  • v0.0.0-20220509001102-4556f6214520
  • Source
  • Go
  • Socket score

Version published
Created
Source

A file chooser for use with imgui in ebiten

To use:

Create the file chooser and implement some callbacks:

fileSelector, _ := imguifileselector.OpenFileSelector("<initial directory>")
fileSelector.OnChoosePressed = func(dir, file string) {
    log.Printf("YOU CHOSE %v\n", filepath.Join(dir, file))
}
fileSelector.OnClosePressed = func() {
    log.Printf("YOU CLOSED THE DIALOG")
}

Between BeginFrame() and EndFrame() call the dialogs update function:

fileSelector.Update()
if imgui.Button("Show Dialog") {
    imgui.OpenPopup(fileSelector.DialogLabel())
}

alt text

FAQs

Package last updated on 09 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc