Пример #1
0
 /** Loads the variables saved in saveSettings() to make this animation match how it was before */
 protected void loadSettings(SectionSettings settings) {
   color = Saver.loadColor(settings.get("color"), this);
 }
Пример #2
0
 /**
  * Saves the variables to a file so we can reconstruct this Animation object the next time we
  * restart the software
  */
 protected void saveSettings(SectionSettings settings) {
   settings.put("color", Saver.saveColor(color));
 }