示例#1
0
文件: GuiEvent.cs 项目: Tjomas/Thesis
    public GuiEvent(GuiDisplayObject sender,GuiEventType type, SortedList parameter)
    {
        Sender = sender;
        Type = type;

        _params = parameter;
    }
示例#2
0
    protected void AddChildInternal(GuiDisplayObject displayObject)
    {
        if (_elements == null) _elements = new List<GuiDisplayObject>();

        displayObject.Parent = this.gameObject;
        _elements.Add(displayObject);
    }
示例#3
0
    public PluginComponent()
    {
        _pluginList = new GuiGroup (Tools.List("rect", new Rect (Screen.width + 10, 10, 0, 0)));
        _pluginList.Name = "PluginList";

        GuiManager.AddChild (_pluginList);

        switch (Application.platform) {
        case RuntimePlatform.Android:
            InputManager.I.Subscribe (new GuiKeyEvent.EventHandler (ToggleList), GuiEventType.KEYDOWN, Tools.List ("key", KeyCode.Menu));
            break;
        default:
            InputManager.I.Subscribe (new GuiKeyEvent.EventHandler (ToggleList), GuiEventType.KEYDOWN, Tools.List ("key", KeyCode.F3));
            break;
        }
    }
示例#4
0
 public GuiKeyEvent(GuiDisplayObject sender, GuiEventType type, SortedList paremater)
     : base(sender, type, paremater)
 {
 }
示例#5
0
    public void AddChild(GuiDisplayObject displayObject)
    {
        if (_childs == null) _childs = new List<GuiDisplayObject>();

        displayObject.Parent = _go2D;
        _childs.Add(displayObject);
    }
示例#6
0
 public static void AddChild(GuiDisplayObject displayObject)
 {
     I.AddChildInternal(displayObject);
 }