mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 20:53:40 -04:00
Allow changing default brush and transform
This commit is contained in:
parent
7bd2ad38ea
commit
7d390c59e5
@ -15,6 +15,7 @@
|
|||||||
or implied. See the Licenses for the specific language governing
|
or implied. See the Licenses for the specific language governing
|
||||||
permissions and limitations under the Licenses.
|
permissions and limitations under the Licenses.
|
||||||
*/
|
*/
|
||||||
|
using MCGalaxy.Drawing.Brushes;
|
||||||
using MCGalaxy.Drawing.Transforms;
|
using MCGalaxy.Drawing.Transforms;
|
||||||
|
|
||||||
namespace MCGalaxy.Commands.Building
|
namespace MCGalaxy.Commands.Building
|
||||||
@ -36,9 +37,10 @@ namespace MCGalaxy.Commands.Building
|
|||||||
p.ModeBlock = Block.Invalid;
|
p.ModeBlock = Block.Invalid;
|
||||||
p.onTrain = false;
|
p.onTrain = false;
|
||||||
p.isFlying = false;
|
p.isFlying = false;
|
||||||
p.BrushName = "normal";
|
|
||||||
|
p.BrushName = Brush.DefaultBrush;
|
||||||
|
p.Transform = Transform.DefaultTransform;
|
||||||
p.DefaultBrushArgs = "";
|
p.DefaultBrushArgs = "";
|
||||||
p.Transform = NoTransform.Instance;
|
|
||||||
|
|
||||||
if (p.weapon != null) p.weapon.Disable();
|
if (p.weapon != null) p.weapon.Disable();
|
||||||
p.Message("Every toggle or action was aborted.");
|
p.Message("Every toggle or action was aborted.");
|
||||||
|
@ -23,6 +23,8 @@ namespace MCGalaxy.Drawing.Brushes
|
|||||||
{
|
{
|
||||||
public abstract class Brush
|
public abstract class Brush
|
||||||
{
|
{
|
||||||
|
public static string DefaultBrush = "Normal";
|
||||||
|
|
||||||
public abstract string Name { get; }
|
public abstract string Name { get; }
|
||||||
public virtual void Configure(DrawOp op, Player p) { }
|
public virtual void Configure(DrawOp op, Player p) { }
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@ namespace MCGalaxy.Drawing.Transforms
|
|||||||
{
|
{
|
||||||
public abstract class Transform
|
public abstract class Transform
|
||||||
{
|
{
|
||||||
|
public static Transform DefaultTransform = NoTransform.Instance;
|
||||||
|
|
||||||
public abstract string Name { get; }
|
public abstract string Name { get; }
|
||||||
public virtual void Configure(DrawOp op, Player p) { }
|
public virtual void Configure(DrawOp op, Player p) { }
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using MCGalaxy.Drawing;
|
using MCGalaxy.Drawing;
|
||||||
|
using MCGalaxy.Drawing.Brushes;
|
||||||
using MCGalaxy.Drawing.Transforms;
|
using MCGalaxy.Drawing.Transforms;
|
||||||
using MCGalaxy.Events.PlayerEvents;
|
using MCGalaxy.Events.PlayerEvents;
|
||||||
using MCGalaxy.Games;
|
using MCGalaxy.Games;
|
||||||
@ -50,10 +51,12 @@ namespace MCGalaxy {
|
|||||||
public bool IsAfk, AutoAfk;
|
public bool IsAfk, AutoAfk;
|
||||||
public bool cmdTimer;
|
public bool cmdTimer;
|
||||||
public bool UsingWom;
|
public bool UsingWom;
|
||||||
public string BrushName = "Normal", DefaultBrushArgs = "";
|
|
||||||
public Transform Transform = NoTransform.Instance;
|
|
||||||
public string afkMessage;
|
public string afkMessage;
|
||||||
public bool ClickToMark = true;
|
public bool ClickToMark = true;
|
||||||
|
|
||||||
|
public string BrushName = Brush.DefaultBrush;
|
||||||
|
public Transform Transform = Transform.DefaultTransform;
|
||||||
|
public string DefaultBrushArgs = "";
|
||||||
|
|
||||||
/// <summary> Account name of the user, plus a trailing '+' if ClassiCubeAccountPlus is enabled </summary>
|
/// <summary> Account name of the user, plus a trailing '+' if ClassiCubeAccountPlus is enabled </summary>
|
||||||
/// <remarks> Use 'truename' for displaying/logging, use 'name' for storing data </remarks>
|
/// <remarks> Use 'truename' for displaying/logging, use 'name' for storing data </remarks>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user