Example #1
0
    private void DrawXmlElement(IUIPool component)
    {
        BeginPanel("Xml Element");
        var xml = (XmlElement)component;

        GUILayout.Label($"<{xml.Name} />", EditorStyles.boldLabel);
        if (!string.IsNullOrEmpty(xml.Content))
        {
            DrawField("Content", xml.Content);
        }

        foreach (var kv in xml.Attributes)
        {
            DrawField(kv.Key, kv.Value);
        }

        EndPanel();
    }
Example #2
0
    private void DrawProps(IUIPool component)
    {
        BeginPanel("Scope Props");
        {
            var props = (LuaScopeProps)component;
            var table = props.Value;
            if (table == null)
            {
                return;
            }

            foreach (var key in table.GetKeys())
            {
                DrawField(key.ToString(), table[key].ToString());
            }
        }
        EndPanel();
    }
Example #3
0
 private void DrawGeneric(IUIPool component)
 {
     GUILayout.Box(component.GetType().FullName);
 }