Code Monkey home page Code Monkey logo

godot-simple-dialog's Introduction

Simple Dialog Addon v0.2

A simple Godot dialog addon to use in any kind of project.

Screenshot

How to use:

You first need to create a global.gd and a characters.gd script for storing variables.

Inside your global.gd add a dictionary variable called custom_variables.
var custom_variables = {}.

On your characters.gd you need to define your custom characters. If you want to run the example you can copy and paste this values:

extends Node

var Zas = {
	'name': 'Zas',
	'image': "res://addons/dialogs/Images/portraits/df-1.png",
	'color': Color(0.304688, 0.445923, 1)
}

var Kubuk = {
	'name': 'Kubuk',
	'image': "res://addons/dialogs/Images/portraits/df-2.png",
	'color': Color(0.632689, 0.157166, 0.804688)
}

var Iteb = {
	'name': 'Iteb',
	'image': "res://addons/dialogs/Images/portraits/df-3.png",
	'color': Color(0.253906, 1, 0.44043)
}

Then go to: Project>Project Settings...>AutoLoad and add the script global.gd with name global, the script characters.gd with name characters and enable the Singleton option.

Screenshot

Now you can add the node addons/dialogs/Dialog.tscn to your scenes and use it on your projects.

You can set the dialog script (.json) on the inspector variable "External File" or by setting the dialog content by changing the variable dialog_script of the node.

Changelog

v0.2:

  • Changed text speed to fixed per character instead of total time span
  • New character support
  • Added portrait to characters
  • Created the fade-in effect
  • Curly brackets introduced for character names.

v0.1 - Release


Credits

Code made by Emilio Coppola.

Placeholder images are from Toen's YouTube DF series:

Thank you to all my Patreons for making this possible!

  • Mike King
  • Allyson Ota
  • Buskmann12
  • David T. Baptiste
  • Francisco Lepe
  • Problematic Dave
  • Rienk Kroese
  • Tyler Dean Osborne

Support me at Patreon https://www.patreon.com/coppolaemilio

MIT License

godot-simple-dialog's People

Contributors

coppolaemilio 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.