feat: Adds [Spawn command & Gump Grids (#917)

Adds `[spawn` command
<img width="1018" alt="Screen Shot 2022-06-30 at 10 13 15 PM" src="https://user-images.githubusercontent.com/3953314/176828843-eda4da40-b7f5-494b-a0bc-667aba3293bb.png">
This commit is contained in:
nullptr-w8 2022-07-01 10:22:51 +05:00 • committed by GitHub
parent 6601101e2e
commit 31fb29cf0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1248 additions and 3 deletions

View file

@ -2,10 +2,11 @@ using System;
using System.Collections.Generic;
using Server.Network;
using Server.Text;
using Server.Utilities;
namespace Server.Gumps;
public class Gump
public partial class Gump
{
private static Serial _nextSerial = (Serial)1;
@ -165,6 +166,11 @@ public class Gump
Add(new GumpLabel(x, y, hue, text));
}
public void AddLabelHtml(int x, int y, int width, int height, string text, string hue, int size = 4, bool center = true)
{
AddHtml(x, y, width, height, center ? text.Center(hue, size) : text.Color(hue, size));
}
public void AddLabelCropped(int x, int y, int width, int height, int hue, string text)
{
Add(new GumpLabelCropped(x, y, width, height, hue, text));