1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-11 20:41:10 +00:00

Moved tutorials, added startNavTab

This commit is contained in:
Harley White 2021-05-27 00:54:58 -04:00
parent c6f0dd9c48
commit 3a7cd62bcc
10 changed files with 17 additions and 7 deletions

View file

@ -1,6 +1,6 @@
# The-Modding-Tree
Making a game in The Modding Tree mostly involves defining parameters or functions on objects. If you aren't following the [getting started guide](getting-started.md), you should start by [setting up your basic mod info](main-mod-info.md) in [mod.js](/js/mod.js). It's important to set a mod id to ensure saving works properly.
Making a game in The Modding Tree mostly involves defining parameters or functions on objects. If you aren't following the [getting started guide](tutorials/getting-started.md), you should start by [setting up your basic mod info](main-mod-info.md) in [mod.js](/js/mod.js). It's important to set a mod id to ensure saving works properly.
Beyond that, the main way to add content is through creating layers, often in [layers.js](/js/layers.js). You can add new layers by calling `addLayer(layername, layerdata)`. There is an example of a basic layer in [layers.js](/js/layers.js) showing the recommended method. It is just an example and can be freely deleted. You can also use it as a reference or a base for your own layers.
@ -24,16 +24,19 @@ While reading this documentation, the following key will be used when describing
## Table of Contents
### General
- [Getting Started](getting-started.md): Getting your own copy of the code set up with Github Desktop.
- [Getting Started](tutorial/getting-started.md): A guide to getting your own copy of the code set up with Github Desktop.
- [Making a Mod](tutorial/making-a-mod.md): A guide to using TMT to make a basic mod.
- [Main mod info](main-mod-info.md): How to set up general things for your mod in [mod.js](/js/mod.js).
- [Basic layer breakdown](basic-layer-breakdown.md): Breaking down the components of a layer with minimal features.
- [Layer features](layer-features.md): Explanations of all of the different properties that you can give a layer.
- [Custom Tab Layouts](custom-tab-layouts.md): An optional way to give your tabs a different layout. You can even create entirely new components to use.
- [Custom game layouts](trees-and-tree-customization.md): You can get rid of the tree tab, add buttons and other things to the tree,
or even customize the tab's layout like a layer tab.
- [Updating TMT](updating-tmt.md): Using Github Desktop to update your mod's version of TMT.
- [Updating TMT](tutorials/updating-tmt.md): Using Github Desktop to update your mod's version of TMT.
### Common components

View file

@ -6,7 +6,9 @@ This also introduces the "tree" component, which can be used in your layers as w
## layoutInfo
The most important part is layoutInfo, containing:
- startTab: The id of the default tab to show on the left at the start.
- startTab: The id of the default tab to show on the right at the start.
- startNavTab: The id of the default tab to show on the left at the start.
- showTree: True if the tree tab should be shown at the start of the game. (The other tab will fill the whole page)
- treeLayout: If present, overrides the tree layout and places nodes as you describe instead (explained in the next section).

View file

@ -45,4 +45,4 @@ The benefits of using Github:
8. You can view your project on line, or share it with others, by going to https://raw.githack.com/[YOUR-GITHUB-USERNAME]/The-Modding-Tree/master/index.html. **You do NOT need to do this to test your mod locally.**
And now, you have successfully used Github! You can look at the [documentation](!general-info.md) to see how The Modding Tree's system works and to make your mod a reality.
And now, you have successfully used Github! You can look at the next tutorial on [making a mod](tutorials/making-a-mod.md), or look at the [documentation](!general-info.md) to see how The Modding Tree's system works and to make your mod a reality.