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:
parent
6601101e2e
commit
31fb29cf0b
7 changed files with 1248 additions and 3 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue