Giter Site home page Giter Site logo

imguidock's Introduction

imguiDock

An addon of imgui for support dock in the window

QQ图片20180106100302

How to use

void setup(){
	// auto-load the imgui.ini settings
	ImGui::InitDock();
}

void update(){
	if(ImGui::Begin("Dock Demo"))
	{
		// dock layout by hard-coded or .ini file
		ImGui::BeginDockspace();

		if(ImGui::BeginDock("Dock 1")){
			ImGui::Text("I'm Wubugui!");
		}
		ImGui::EndDock();

		if(ImGui::BeginDock("Dock 2")){
			ImGui::Text("I'm BentleyBlanks!");
		}
		ImGui::EndDock();

		if(ImGui::BeginDock("Dock 3")){
			ImGui::Text("I'm LonelyWaiting!");
		}
		ImGui::EndDock();

		ImGui::EndDockspace();
	}
	ImGui::End();
	
	// multiple dockspace supported
	if(ImGui::Begin("Dock Demo2"))
	{
		ImGui::BeginDockspace();

		if(ImGui::BeginDock("Dock 2")){
			ImGui::Text("Who's your daddy?");
		}
		ImGui::EndDock();

		ImGui::EndDockspace();
	}
	ImGui::End();
}

Intro

Thx to the nem0, paniq, adcox's distribute of imgui_dock, so the imgui_dock was able to auto save/load to/from the imgui.ini.

It seems the Lumix Engine have done a quite intelligible work just save the dock's property to a Lua file, so I was just save the properties to the imgui.ini.(you can modify the format if your want)

Some complie errors may occured because of the API change of ImGui, pls let me know

Collaborator

  1. LonelyWaiting
  2. BentleyBlanks
  3. Wubugui

imguidock's People

Contributors

bentleyblanks avatar lonelywaiting avatar

Watchers

 avatar

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.