-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CinematicGui 'gui' class to Player
This makes it easier to change individual elements while keeping others persistent across a session
- Loading branch information
Showing
6 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
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
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
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,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace MCGalaxy { | ||
public class CinematicGui { | ||
public void HideHand(Player p, bool hidden) { hideHand = hidden; p.Session.SendCinematicGui(this); } | ||
public bool hideHand; | ||
|
||
public void HideHotbar(Player p, bool hidden) { hideHotbar = hidden; p.Session.SendCinematicGui(this); } | ||
public bool hideHotbar; | ||
|
||
public void SetBarColor(Player p, ColorDesc color) { barColor = color; p.Session.SendCinematicGui(this); } | ||
public ColorDesc barColor; | ||
|
||
/// <summary> | ||
/// From 0 to 1 where 0 is not visible and 1 is screen fully covered | ||
/// </summary> | ||
public void SetBarSize(Player p, float size) { barSize = size; p.Session.SendCinematicGui(this); } | ||
public float barSize; | ||
} | ||
} |
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