aseprite/src/gen
2015-02-19 13:05:39 -03:00
..
CMakeLists.txt Add setting/preference classes/enums generator 2014-12-14 20:19:31 -03:00
common.h Add setting/preference classes/enums generator 2014-12-14 20:19:31 -03:00
gen.cpp Add setting/preference classes/enums generator 2014-12-14 20:19:31 -03:00
LICENSE.txt
pref_types.cpp Add AniDir as a FrameTag property (it's persisted in .ase files) 2015-02-19 13:05:39 -03:00
pref_types.h Add setting/preference classes/enums generator 2014-12-14 20:19:31 -03:00
README.md
ui_class.cpp Add setting/preference classes/enums generator 2014-12-14 20:19:31 -03:00
ui_class.h

Aseprite Code Generator

Copyright (C) 2014 David Capello

Distributed under MIT license

This utility generates source code from XML files. Its aim is to convert XML files (dynamic data) to C++ files (static structures) that can be checked in compile-time. There are three areas of interest:

  1. To create ui::Widgets subclasses from data/widgets/*.xml files. In this way we can create wrappers that can access to each XML file directly in a easier way (e.g. one member for each widget with an id parameter on it).
  2. To create configuration wrappers from a special config-metadata.xml file (so we can replace get/set_config_int/bool/string() function calls). There is an ongoing cfg module to replace the whole reading/writing operations of user's settings/preferences.
  3. To create a wrapper class for theme data access. From data/skins/default/ we can create a C++ class with a member function to access each theme slice, color, style, etc.