Line 327: |
Line 327: |
| </source></li> | | </source></li> |
| | | |
− | <li>Load an asset from game's content folder: | + | <li>Load a custom tilesheet for a map from your mod folder: |
| <source lang="c#"> | | <source lang="c#"> |
− | var data = helper.Content.Load<Dictionary<int, string>>(@"Data\ObjectInformation.xnb", ContentSource.GameContent);
| + | tilesheet.ImageSource = helper.Content.GetActualAssetKey(@"assets\tilesheet.png", ContentSource.ModFolder); |
| </source></li> | | </source></li> |
| | | |
− | <li>Load a custom tilesheet for a map: | + | <li>Load an asset from game's content folder: |
| <source lang="c#"> | | <source lang="c#"> |
− | tilesheet.ImageSource = helper.Content.GetActualAssetKey(@"assets\tilesheet.png");
| + | var data = helper.Content.Load<Dictionary<int, string>>(@"Data\ObjectInformation.xnb", ContentSource.GameContent); |
| </source></li> | | </source></li> |
| </ul> | | </ul> |