diff options
author | Pixel <pixel@nobis-crew.org> | 2010-06-10 15:30:25 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2010-06-10 15:30:25 -0700 |
commit | dd86dcc28629225881de61f63394132eb0cb0e2a (patch) | |
tree | 26bcfb8c0e64117e9a4489c308adf9ca7940319f /script-editor/Pointer.cs | |
parent | c07307cb655e8449bb05052ec28993857ac27836 (diff) | |
parent | bb7745a988db1c4be68e4b12b51e16a7e5a21f8e (diff) |
Merge branch 'master' of ssh+git://git.grumpycoder.net/pub/repo.git/VP-hack
Diffstat (limited to 'script-editor/Pointer.cs')
-rw-r--r-- | script-editor/Pointer.cs | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/script-editor/Pointer.cs b/script-editor/Pointer.cs index 73a050c..24aa7d9 100644 --- a/script-editor/Pointer.cs +++ b/script-editor/Pointer.cs @@ -1,9 +1,25 @@ -using System; -using System.Collections.Generic; -using System.Text; +using System.Xml.Serialization; namespace VPScriptEditor { + public enum PointerState { Undefined, Unsure, Done }; + + public class PointerAnnotation + { + [XmlElement("State")] + public PointerState state; + [XmlElement("Comment")] + public string comment; + + public PointerAnnotation() : this(PointerState.Undefined, null) { } + + public PointerAnnotation(PointerState state, string comment) + { + this.state = state; + this.comment = comment; + } + } + public enum WindowType { Normal, Fixed, None }; public class Pointer @@ -11,10 +27,18 @@ namespace VPScriptEditor public string rooms, x, y, width, height, content; public WindowType type; - public Pointer(Pointer p) : this(p.rooms, p.type, p.x, p.y, p.width, p.height, p.content) { } - public Pointer(string rooms, WindowType type, string x, string y, string width, string height, string content) { + setVars(rooms, type, x, y, width, height, content); + } + + public void copyFrom(Pointer p) + { + setVars(p.rooms, p.type, p.x, p.y, p.width, p.height, p.content); + } + + public void setVars(string rooms, WindowType type, string x, string y, string width, string height, string content) + { this.rooms = rooms; this.type = type; |