Renamed some stuff
This commit is contained in:
@@ -105,7 +105,7 @@ namespace DepthsBelow
|
||||
TestMonster.X = 12;
|
||||
TestMonster.Y = 4;
|
||||
|
||||
//frame.Add(text);
|
||||
//frame.AddChild(text);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace DepthsBelow.GUI
|
||||
{
|
||||
public class Frame
|
||||
{
|
||||
public string Name;
|
||||
public int Width
|
||||
{
|
||||
get { return this.Rectangle.Width; }
|
||||
@@ -66,14 +67,14 @@ namespace DepthsBelow.GUI
|
||||
this.Parent = parentFrame;
|
||||
}
|
||||
|
||||
public void Add(Frame childFrame)
|
||||
public void AddChild(Frame childFrame)
|
||||
{
|
||||
childFrame.Parent = this;
|
||||
if (!Children.Contains(childFrame))
|
||||
Children.Add(childFrame);
|
||||
}
|
||||
|
||||
public void Remove(Frame childFrame)
|
||||
public void RemoveChild(Frame childFrame)
|
||||
{
|
||||
if (Children.Contains(childFrame))
|
||||
Children.Remove(childFrame);
|
||||
@@ -82,7 +83,7 @@ namespace DepthsBelow.GUI
|
||||
public void Destroy()
|
||||
{
|
||||
if (Parent != null)
|
||||
Parent.Remove(this);
|
||||
Parent.RemoveChild(this);
|
||||
|
||||
GUIManager.Remove(this);
|
||||
}
|
||||
|
||||
@@ -70,10 +70,6 @@ namespace DepthsBelow
|
||||
tooltip.Y = ms.Y + 15;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("Tooltip is null D:");
|
||||
}
|
||||
|
||||
if (core.PlayerTurn == true)
|
||||
{
|
||||
|
||||
@@ -3,3 +3,4 @@ ToolTip = CreateFrame("Frame")
|
||||
local text = CreateFrame("Text", ToolTip)
|
||||
text:SetFont("Arial")
|
||||
text.Value = "99%"
|
||||
ToolTip.Text = text
|
||||
|
||||
Reference in New Issue
Block a user