Skip to content

Latest commit

 

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mds - Msun's Dialog System (yet another) for Godot

Attempt at creating small dialog system. Currently linear and doesn't have GUI editor. To create dialog files you should see how it's done in the tests file. Project is currently kinda on hiatus since have some difficulties rn.

Installing:

  • Git clone addon: git clone https://github.com/msun-dev/msuns_dialog_system
  • Put cloned folder in the addons directory of your project. Rename if needed
  • Add MDSManager to the Globals in the project settings
  • Create dialog player to fit your liking, explained in the block below
  • Add dialog player scene you've just created to the MDSManager

Setting up dialog player:

Since I didn't want to complicate things you should create your own instance of the dialog player.

  • Use Scene > New Inherited Scene in the editors GUI to create new dialog player
  • Change background, proceed texture, sizes, default font size, etc.
  • Put this scene in the MDSManager from the Globals in the project menu

Controls:

Using gdscript you should call MDSManager with the available methods:

  • .load_data(filepath: String): Loads json data from the file and parses it into the proper MDSData object for dialog player to use. Also calls for dialog player to parse files and instance appropriate resources (avatar, fonts, voice).
  • .set_dialog(id: int): Set dialog from the dialog file (check id of the dialog in the dialog file!).
  • .play_dialog(): Play selected dialog. Sit back and enjoy reading!
  • .set_and_play_dialog(id: int): Combines 2 previous methods into one.
  • .clear_dialog(): Clears dialog data from the dialog player. Kinda useless.
  • .dialog_pause(): Pauses dialog processing.
  • .dialog_resume(): Resumes dialog processing.
  • .dialog_skip(): Skips dialog.

Examples:

Existing example in the examples directory will not work since it expects subviewport to be changed to fit the screen (just resize it to the screen you have). Plus some paths could be broken after install so check them out.

Branches:

Branches are named after Godot version (gX.X) and after mds version (vX.X)

  • master - for the latest engine (4.5) with the latest changes.
  • g4.5-v0.1 - checkpoint branch with the MWP.

About

Yet another dialog system for Godot

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages