-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from mills88812/altoids-whiskers
Gives Nomad their face back, plus a buncha whiskers
- Loading branch information
Showing
24 changed files
with
194 additions
and
88 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Deadlands; | ||
|
||
/// <summary> | ||
/// Overrides any element modification to use the Nomad sprites instead of the normal ones. <br/> | ||
/// This is used to (for example) replace the normal slugcat head with Nomad's head, etc etc | ||
/// </summary> | ||
public class FSpriteNomad : FSprite | ||
{ | ||
public FSpriteNomad(string elementName) | ||
: base(elementName) | ||
{ | ||
} | ||
|
||
public override void HandleElementChanged() | ||
{ | ||
if (!_element.name.StartsWith("nomad_")) | ||
{ | ||
Debug.Log("Element name was altered to be '" + element.name + "'!"); | ||
_element = Futile.atlasManager.GetElementWithName("nomad_" + _element.name); | ||
_atlas = _element.atlas; | ||
} | ||
base.HandleElementChanged(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.