-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextField.cs
More file actions
37 lines (34 loc) · 818 Bytes
/
TextField.cs
File metadata and controls
37 lines (34 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using UnityEditor;
using UnityEngine;
namespace Emmy.self_ui
{
public class TextField:DisplayObject
{
private string _text;
public string Text
{
get { return this._text; }
set {
if (this._text != value)
{
this._text = value;
this.isModi = true;
}
}
}
public TextField(string text):base()
{
this.Text = text;
this.X = 10;
this.Y = 10;
this.Width = 100;
this.Height = 100;
}
protected override void DoDraw()
{
// GUI.Label(new Rect(0, 0, 10, 10), this._text);
GUI.Label(this._rect, this._text);
}
}
}