Giter Club home page Giter Club logo

ingamehelp's Introduction

InGameHelp

This module adds a simple in-game help systems for items and other things. It allows for minor categorization of these items.

===

In order to add an item to the help system. follow the following instructions:

  • Open up the item's prefab file.
  • Make sure the item in question has a DisplayName component.
  • An ItemComponent is optional. But without it, a question-mark icon will be displayed.
  • Add the ItemHelp into the prefab. ** "title" sets the title of the help subsection for this item. Leave it as the default unless you want to change up the UI. ** "category" sets what section this help item will be located in. If not specific, it will default to "Items". If you specify it, make sure that the item category actually exists. ** "paragraphText" sets the description lines of this help item subsection.

In order to add a new category to the help system, follow the following instructions:

  • Clone the ItemsCategory.java file in this module, to your own module.
  • Rename the file to " Category".
  • Change the constant string "name" to
  • Under a (registered) system in your module, send a new OnAddNewCategoryEvent (through a dummy entity) that has a new instance of your created category contained in it (passed in as a creation parameter). Make sure that this is sent once during update. The event WILL NOT reach InGameHelp's receiver if the event is sent during initialise or preBegin.
  • Now, in your desired item prefabs, in the ItemHelpComponent, set the "category" variable to the name of your new category.
  • Start up Terasology, create a new game, open up the help system, and your new category should show up as a tab.

ingamehelp's People

Contributors

josharias avatar skaldarnar avatar xrtariq2594 avatar darkweird avatar cervator avatar keturn avatar jdrueckert avatar jwong101 avatar msteiger avatar pollend avatar pamtdoh 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.