Skip to content
This repository was archived by the owner on Apr 16, 2018. It is now read-only.
This repository was archived by the owner on Apr 16, 2018. It is now read-only.

Feature: support for new attribute typies #1

@duangsuse

Description

@duangsuse

TinyAXML now using attribute type data from AxmlPrinter, but it's too old now.

        /** Attribute type enum types */
        static AttributeType[] ATTR_TYPE_TYPES = new AttributeType[] {
            AttributeType.STR, AttributeType.INT, AttributeType.RESOURCE, AttributeType.BOOL, AttributeType.ATTR, AttributeType.DIMEN,
            AttributeType.FRACTION, AttributeType.FLOAT, AttributeType.FLAGS, AttributeType.COLOR1, AttributeType.COLOR2
        };

form AXMLEdit:

public class AttributeType {
    public final static int ATTR_NULL = 0;
    public final static int ATTR_REFERENCE = 1;
    public final static int ATTR_ATTRIBUTE = 2;
    public final static int ATTR_STRING = 3;
    public final static int ATTR_FLOAT = 4;
    public final static int ATTR_DIMENSION = 5;
    public final static int ATTR_FRACTION = 6;
    public final static int ATTR_FIRSTINT = 16;
    public final static int ATTR_HEX = 17;
    public final static int ATTR_BOOLEAN = 18;
    public final static int ATTR_FIRSTCOLOR = 28;
    public final static int ATTR_RGB8 = 29;
    public final static int ATTR_ARGB4 = 30;
    public final static int ATTR_RGB4 = 31;
    public final static int ATTR_LASTCOLOR = 31;
public final static int ATTR_LASTINT = 31;

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions