Created
March 19, 2017 21:54
-
-
Save Brian1KB/9694cd2113efa2d6a81fe12365baa49a to your computer and use it in GitHub Desktop.
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
public enum TitleType | |
{ | |
Clear = 0, | |
Reset = 1, | |
Title = 2, | |
SubTitle = 3, | |
ActionBar = 4, | |
AnimationTimes = 5 | |
} | |
public virtual void SendTitle(string text, TitleType type = TitleType.Title, int fadeIn = 300, int fadeOut = 300, | |
int stayTime = 1000) | |
{ | |
var mcpeSetTitle = McpeSetTitle.CreateObject(); | |
mcpeSetTitle.fadeInTime = fadeIn; | |
mcpeSetTitle.stayTime = stayTime; | |
mcpeSetTitle.fadeOutTime = fadeOut; | |
mcpeSetTitle.type = (int) type; | |
mcpeSetTitle.text = text; | |
SendPackage(mcpeSetTitle); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment