Giter Site home page Giter Site logo

fracturalnodevars's Introduction

Fractural Node Vars ๐Ÿ“ฆ

Deploy Unit Tests

Inspector editable variables for nodes in Godot.

Dependencies

  • FracturalCommons

NodeVars

Node variables or NodeVar for short are improved inspector variables. These variables are stored as Godot dictionary which, with some custom inspector plugins, become editable varaiables in the inspector.

NodeVars features:

  • Can fetch it's value from a NodeVar on another node, allowing painless dependency injection directly within the inspector. This is possible only through publically settable NodeVars.
    • ContainerPath - Path to NodeVarContainer
    • ContainerVarName - Name of the source NodeVar in the NodeVarContainer
  • Visibilitiy modifiers to specify what operations are allowing on the NodeVar
    • Get - The NodeVar is readable from outside and writable inside of the node.
    • Set - The NodeVar is writable from outside and readable inside of the node.
    • Get/Set - The NodeVar is writable and readable from inside/outside of the node.
    • Private - The NodeVar is readable and writable from inside of the node
  • Can be exported as a dictionary of NodeVars, that is editable within the Inspector.

NodeVarContainer

NodeVarContainer is a collection of NodeVars. This node can be inherited.

Variables

  • Node Vars - An editable dictionary of Node Vars. Inherited Node Vars cannot be deleted.
  • Mode - The behaviour of the container
    • Local - User can add or remove NodeVars from the container.
    • Attributes - Container only displays properties on the container with the NodeVar attribute. Containers that inherit from NodeVarContainer can declare properties that use the NodeVar attribute.
    • LocalAttributes - User can add or remove NodeVars, and properties on the container with NodeVar attribute are also added to the container.

You can also implement your own version of a container by creating a Node that implements the INodeVarContainer interface.

NOTE:

NodeVarContainer does not work with inherited scenes. This is due to a Godot limitation of not exposing the inhertance of a scene at all to tool scripts.

fracturalnodevars's People

Contributors

atlinx avatar

Stargazers

 avatar  avatar

Forkers

boyquotes

fracturalnodevars's Issues

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.