Coder Social home page Coder Social logo

dialogsystem's Introduction

DialogSystem

A Dialog System for Godot

wiki

Getting Started

Download the newest version under the Releases tab choose between Example(includes an Example Project) or Addon(just the plugin)

if the Icons are not loading wait until it finished Importing them and turn the Plugin/Addon off and on again or reopen the Project. that should fix it.

Create your own Dialog

  1. Go to Dialog Editor (in the top mid of the Screen)
  2. Press on the Left plus symbol
  3. enter a Name and ID and Choose your Node Template
  4. Open your dialog by pressing the Play Button on your Dialog
  5. Go to Graph Editor and add your Nodes

Bake your Dialog

after making a Graph you have to bake the Dialog baking is very easy

  • Press the Dialog Dropdown and select Bake thats all
  • or in the Dialog Manager press the oven symbol

Using your Dialog

for easier use of the Baked Dialogs you can use the Dialog class create one like this

var dialog : Dialog = Dialog.new()

load your dialog from file:

dialog.load_from_file(path_to_file)

or with a Dictionary:

dialog.load_from_dict(Dictionary)

Get the Current Dialog:

dialog.get_current_dialog()

returns a Dictionary with the Dialogs Values,Node ID and the Options

if you only want the values do this:

dialog.get_values()

returns an Array of all the values of the current dialog the values are Structured like this

{ "value_name": "value" }

if you only want the Options you can do this:

dialog.get_options()

this returns an Array of all the Options

progressing the dialog is done by calling next like this:

dialog.next()

more can you find in the Dialog class wiki section or in the Example Projects

dialogsystem's People

Contributors

visual-rock avatar

Stargazers

 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.