示例#1
0
        public new static void Parse(XNode node, DefinitionFile file)
        {
            UiButton.Parse(node, file);

            var parser = new DefinitionParser(node);

            file["Checked"] = parser.ParseBoolean("Checked");
        }
示例#2
0
        public new static void Parse(XNode node, DefinitionFile file)
        {
            UiButton.Parse(node, file);

            var parser = new DefinitionParser(node);

            file["Value"]         = parser.ParseInt("Value");
            file["SelectedValue"] = parser.ParseInt("SelectedValue");
        }
示例#3
0
        public new static void Parse(XNode node, DefinitionFile file)
        {
            UiButton.Parse(node, file);

            var parser = new DefinitionParser(node);

            file["Context"] = parser.ParseString("Context");

            file["Spacing"] = parser.ParseLength("Spacing");

            file["ElementWidth"]  = parser.ParseLength("ElementWidth");
            file["ElementHeight"] = parser.ParseLength("ElementHeight");
            file["Mode"]          = parser.ParseEnum <Mode>("Mode");

            file["HorizontalContentAlignment"] = parser.ParseEnum <HorizontalContentAlignment>("HorizontalContentAlignment");
            file["VerticalContentAlignment"]   = parser.ParseEnum <VerticalContentAlignment>("VerticalContentAlignment");
        }
示例#4
0
        public new static void Parse(XNode node, DefinitionFile file)
        {
            UiButton.Parse(node, file);

            var parser = new DefinitionParser(node);

            file["Hint"] = parser.ParseString("Hint");

            file["InputType"]         = parser.ParseEnum <TextInputType>("InputType");
            file["CancelOnLostFocus"] = parser.ParseBoolean("CancelOnLostFocus");

            file["TextApply"]   = parser.ParseDelegate("TextApply");
            file["TextCancel"]  = parser.ParseDelegate("TextCancel");
            file["TextChanged"] = parser.ParseDelegate("TextChanged");

            file["LostFocus"] = parser.ParseDelegate("LostFocus");
            file["Return"]    = parser.ParseDelegate("Return");
            file["MaxLength"] = parser.ParseInt("MaxLength");

            file["IsFocused"] = parser.ParseBoolean("IsFocused");
        }