Giter Site home page Giter Site logo

gilzoide / godot-dockable-container Goto Github PK

View Code? Open in Web Editor NEW
175.0 9.0 17.0 15.93 MB

Dockable/tiling UI panels Container addon for Godot

License: Creative Commons Zero v1.0 Universal

GDScript 100.00%
godot godot-addon docking-layout gui tiling-layout tiling

godot-dockable-container's Introduction

Dockable Container

Warning

This branch is only usable with Godot 4.X. For Godot 3.X support, check out the godot-3 branch.

Docking/tiling UI panels Container addon for Godot.

It is composed of a Container script and layout Resources in a binary tree structure that store panels division direction and size as well as tab names and what tab index is currently selected. As layout information are Resources, it's easy to save/load them.

Child Controls are only moved visually and have their NodePaths and position in parent maintained.

Available at the Asset Library.

Live preview a sample scene here.

Plugin

Enable Dockable Container plugin at Project -> Project Settings -> Plugin to edit the layout directly in the inspector! It also registers the DockableContainer node type.

Theming

Panels are actual TabContainer instances, split handles use VSplitContainer and HSplitContainer theme configurations, drop preview uses TooltipPanel/panel StyleBox. Tabs alignment and rearrange group are exported in DockableContainer.

TODO

  • Add way to specify icon and custom name for tabs, based on a property or method on children
  • Document better how to use

Credits

Node icon made by Nif-kun. Licensed under CC0.

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.