Beispiel #1
0
    def matches(self, data, extension):
        if extension not in ["", "layout"]:
            return False

        # todo: we should be at least a bit more precise
        # (implement XSD based TypeDetector?)
        return ceguihelpers.checkDataVersion("GUILayout", None, data)
Beispiel #2
0
    def matches(self, data, extension):
        if extension not in ["", "scheme"]:
            return False

        # todo: we should be at least a bit more precise
        # (implement XSD based TypeDetector?)
        return ceguihelpers.checkDataVersion("GUIScheme", None, data)
Beispiel #3
0
    def matches(self, data, extension):
        if extension not in ["", "project"]:
            return False

        # should work as a pretty rigorous test for now, tests the root tag name and version
        # CEED project files have a similar version check to CEGUI, that's why we can use
        # the cegui helper function here.
        return ceguihelpers.checkDataVersion("Project", Project1, data)
Beispiel #4
0
    def matches(self, data, extension):
        if extension not in ["", "pmappings"]:
            return False

        # should work as a pretty rigorous test for now, tests the root tag name and version
        # CEED property mapping files have a similar version check to CEGUI, that's why we can use
        # the cegui helper function here.
        return ceguihelpers.checkDataVersion("mappings", PropertyMappings1, data)
Beispiel #5
0
    def matches(self, data, extension):
        if extension not in ["", "scheme"]:
            return False

        return ceguihelpers.checkDataVersion("GUIScheme", "5", data)
Beispiel #6
0
    def matches(self, data, extension):
        if extension not in ["", "layout"]:
            return False

        return ceguihelpers.checkDataVersion("GUILayout", "4", data)
Beispiel #7
0
    def matches(self, data, extension):
        if extension not in ["", "looknfeel"]:
            return False

        return ceguihelpers.checkDataVersion("Falagard", "7", data)
Beispiel #8
0
    def matches(self, data, extension):
        if extension not in ["", "layout"]:
            return False

        return ceguihelpers.checkDataVersion("GUILayout", "4", data)
Beispiel #9
0
    def matches(self, data, extension):
        if extension not in ["", "looknfeel"]:
            return False

        return ceguihelpers.checkDataVersion("Falagard", "7", data)
Beispiel #10
0
    def matches(self, data, extension):
        if extension not in ["", "imageset"]:
            return False

        return ceguihelpers.checkDataVersion("Imageset", "2", data)
Beispiel #11
0
    def matches(self, data, extension):
        if extension not in ["", "imageset"]:
            return False

        return ceguihelpers.checkDataVersion("Imageset", "2", data)
Beispiel #12
0
    def matches(self, data, extension):
        if extension not in ["", "scheme"]:
            return False

        return ceguihelpers.checkDataVersion("GUIScheme", "5", data)
Beispiel #13
0
    def matches(self, data, extension):
        if extension not in ["", "font"]:
            return False

        return ceguihelpers.checkDataVersion("Font", "3", data)
Beispiel #14
0
    def matches(self, data, extension):
        if extension not in ["", "font"]:
            return False

        return ceguihelpers.checkDataVersion("Font", "3", data)