diff --git a/Bindings.xml b/CharacterSheet/Bindings.xml similarity index 100% rename from Bindings.xml rename to CharacterSheet/Bindings.xml diff --git a/CharacterSheet.toc b/CharacterSheet/CharacterSheet.toc similarity index 100% rename from CharacterSheet.toc rename to CharacterSheet/CharacterSheet.toc diff --git a/lib/Ace3.lua b/CharacterSheet/lib/Ace3.lua similarity index 100% rename from lib/Ace3.lua rename to CharacterSheet/lib/Ace3.lua diff --git a/lib/Ace3.toc b/CharacterSheet/lib/Ace3.toc similarity index 100% rename from lib/Ace3.toc rename to CharacterSheet/lib/Ace3.toc diff --git a/lib/AceAddon-3.0/AceAddon-3.0.lua b/CharacterSheet/lib/AceAddon-3.0/AceAddon-3.0.lua similarity index 100% rename from lib/AceAddon-3.0/AceAddon-3.0.lua rename to CharacterSheet/lib/AceAddon-3.0/AceAddon-3.0.lua diff --git a/lib/AceAddon-3.0/AceAddon-3.0.xml b/CharacterSheet/lib/AceAddon-3.0/AceAddon-3.0.xml similarity index 100% rename from lib/AceAddon-3.0/AceAddon-3.0.xml rename to CharacterSheet/lib/AceAddon-3.0/AceAddon-3.0.xml diff --git a/lib/AceConfig-3.0/AceConfig-3.0.lua b/CharacterSheet/lib/AceConfig-3.0/AceConfig-3.0.lua similarity index 100% rename from lib/AceConfig-3.0/AceConfig-3.0.lua rename to CharacterSheet/lib/AceConfig-3.0/AceConfig-3.0.lua diff --git a/lib/AceConfig-3.0/AceConfig-3.0.xml b/CharacterSheet/lib/AceConfig-3.0/AceConfig-3.0.xml similarity index 100% rename from lib/AceConfig-3.0/AceConfig-3.0.xml rename to CharacterSheet/lib/AceConfig-3.0/AceConfig-3.0.xml diff --git a/lib/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua b/CharacterSheet/lib/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua similarity index 100% rename from lib/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua rename to CharacterSheet/lib/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua diff --git a/lib/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.xml b/CharacterSheet/lib/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.xml similarity index 100% rename from lib/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.xml rename to CharacterSheet/lib/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.xml diff --git a/lib/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua b/CharacterSheet/lib/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua similarity index 100% rename from lib/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua rename to CharacterSheet/lib/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua diff --git a/lib/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.xml b/CharacterSheet/lib/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.xml similarity index 100% rename from lib/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.xml rename to CharacterSheet/lib/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.xml diff --git a/lib/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua b/CharacterSheet/lib/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua similarity index 100% rename from lib/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua rename to CharacterSheet/lib/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua diff --git a/lib/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.xml b/CharacterSheet/lib/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.xml similarity index 100% rename from lib/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.xml rename to CharacterSheet/lib/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.xml diff --git a/lib/AceGUI-3.0/AceGUI-3.0.lua b/CharacterSheet/lib/AceGUI-3.0/AceGUI-3.0.lua similarity index 100% rename from lib/AceGUI-3.0/AceGUI-3.0.lua rename to CharacterSheet/lib/AceGUI-3.0/AceGUI-3.0.lua diff --git a/lib/AceGUI-3.0/AceGUI-3.0.xml b/CharacterSheet/lib/AceGUI-3.0/AceGUI-3.0.xml similarity index 100% rename from lib/AceGUI-3.0/AceGUI-3.0.xml rename to CharacterSheet/lib/AceGUI-3.0/AceGUI-3.0.xml diff --git a/lib/AceGUI-3.0/widgets/AceGUIContainer-BlizOptionsGroup.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-BlizOptionsGroup.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIContainer-BlizOptionsGroup.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-BlizOptionsGroup.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIContainer-SimpleGroup.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-SimpleGroup.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIContainer-SimpleGroup.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-SimpleGroup.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIContainer-Window.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-Window.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIContainer-Window.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIContainer-Window.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-Button.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Button.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-Button.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Button.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-InteractiveLabel.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-InteractiveLabel.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-InteractiveLabel.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-InteractiveLabel.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-Label.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Label.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-Label.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Label.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua diff --git a/lib/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua b/CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua similarity index 100% rename from lib/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua rename to CharacterSheet/lib/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua diff --git a/lib/Bindings.xml b/CharacterSheet/lib/Bindings.xml similarity index 100% rename from lib/Bindings.xml rename to CharacterSheet/lib/Bindings.xml diff --git a/lib/CHANGES.txt b/CharacterSheet/lib/CHANGES.txt similarity index 100% rename from lib/CHANGES.txt rename to CharacterSheet/lib/CHANGES.txt diff --git a/lib/CallbackHandler-1.0/CallbackHandler-1.0.lua b/CharacterSheet/lib/CallbackHandler-1.0/CallbackHandler-1.0.lua similarity index 100% rename from lib/CallbackHandler-1.0/CallbackHandler-1.0.lua rename to CharacterSheet/lib/CallbackHandler-1.0/CallbackHandler-1.0.lua diff --git a/lib/CallbackHandler-1.0/CallbackHandler-1.0.xml b/CharacterSheet/lib/CallbackHandler-1.0/CallbackHandler-1.0.xml similarity index 100% rename from lib/CallbackHandler-1.0/CallbackHandler-1.0.xml rename to CharacterSheet/lib/CallbackHandler-1.0/CallbackHandler-1.0.xml diff --git a/lib/LICENSE.txt b/CharacterSheet/lib/LICENSE.txt similarity index 100% rename from lib/LICENSE.txt rename to CharacterSheet/lib/LICENSE.txt diff --git a/lib/LibStub/LibStub.lua b/CharacterSheet/lib/LibStub/LibStub.lua similarity index 100% rename from lib/LibStub/LibStub.lua rename to CharacterSheet/lib/LibStub/LibStub.lua diff --git a/lib/changelog.txt b/CharacterSheet/lib/changelog.txt similarity index 100% rename from lib/changelog.txt rename to CharacterSheet/lib/changelog.txt diff --git a/src/commands.lua b/CharacterSheet/src/commands.lua similarity index 100% rename from src/commands.lua rename to CharacterSheet/src/commands.lua diff --git a/src/event.lua b/CharacterSheet/src/event.lua similarity index 100% rename from src/event.lua rename to CharacterSheet/src/event.lua diff --git a/src/extensions/extensions.lua b/CharacterSheet/src/extensions/extensions.lua similarity index 100% rename from src/extensions/extensions.lua rename to CharacterSheet/src/extensions/extensions.lua diff --git a/src/extensions/totalRP3.lua b/CharacterSheet/src/extensions/totalRP3.lua similarity index 100% rename from src/extensions/totalRP3.lua rename to CharacterSheet/src/extensions/totalRP3.lua diff --git a/src/locale/locale.lua b/CharacterSheet/src/locale/locale.lua similarity index 100% rename from src/locale/locale.lua rename to CharacterSheet/src/locale/locale.lua diff --git a/src/locale/locales/enUS.lua b/CharacterSheet/src/locale/locales/enUS.lua similarity index 100% rename from src/locale/locales/enUS.lua rename to CharacterSheet/src/locale/locales/enUS.lua diff --git a/src/main.lua b/CharacterSheet/src/main.lua similarity index 100% rename from src/main.lua rename to CharacterSheet/src/main.lua diff --git a/src/mechanics/character_sheet.lua b/CharacterSheet/src/mechanics/character_sheet.lua similarity index 100% rename from src/mechanics/character_sheet.lua rename to CharacterSheet/src/mechanics/character_sheet.lua diff --git a/src/mechanics/mechanics.lua b/CharacterSheet/src/mechanics/mechanics.lua similarity index 100% rename from src/mechanics/mechanics.lua rename to CharacterSheet/src/mechanics/mechanics.lua diff --git a/src/mechanics/resource.lua b/CharacterSheet/src/mechanics/resource.lua similarity index 100% rename from src/mechanics/resource.lua rename to CharacterSheet/src/mechanics/resource.lua diff --git a/src/mechanics/roll.lua b/CharacterSheet/src/mechanics/roll.lua similarity index 100% rename from src/mechanics/roll.lua rename to CharacterSheet/src/mechanics/roll.lua diff --git a/src/mechanics/stats.lua b/CharacterSheet/src/mechanics/stats.lua similarity index 100% rename from src/mechanics/stats.lua rename to CharacterSheet/src/mechanics/stats.lua diff --git a/src/output.lua b/CharacterSheet/src/output.lua similarity index 100% rename from src/output.lua rename to CharacterSheet/src/output.lua diff --git a/src/saving/saved_data.lua b/CharacterSheet/src/saving/saved_data.lua similarity index 100% rename from src/saving/saved_data.lua rename to CharacterSheet/src/saving/saved_data.lua diff --git a/src/util/func.lua b/CharacterSheet/src/util/func.lua similarity index 100% rename from src/util/func.lua rename to CharacterSheet/src/util/func.lua diff --git a/src/util/math.lua b/CharacterSheet/src/util/math.lua similarity index 100% rename from src/util/math.lua rename to CharacterSheet/src/util/math.lua diff --git a/src/util/set.lua b/CharacterSheet/src/util/set.lua similarity index 100% rename from src/util/set.lua rename to CharacterSheet/src/util/set.lua diff --git a/src/util/string.lua b/CharacterSheet/src/util/string.lua similarity index 100% rename from src/util/string.lua rename to CharacterSheet/src/util/string.lua diff --git a/src/util/table.lua b/CharacterSheet/src/util/table.lua similarity index 100% rename from src/util/table.lua rename to CharacterSheet/src/util/table.lua diff --git a/src/util/type.lua b/CharacterSheet/src/util/type.lua similarity index 100% rename from src/util/type.lua rename to CharacterSheet/src/util/type.lua diff --git a/src/version.lua b/CharacterSheet/src/version.lua similarity index 100% rename from src/version.lua rename to CharacterSheet/src/version.lua diff --git a/ui/edit_frame.lua b/CharacterSheet/ui/edit_frame.lua similarity index 100% rename from ui/edit_frame.lua rename to CharacterSheet/ui/edit_frame.lua diff --git a/ui/interface.lua b/CharacterSheet/ui/interface.lua similarity index 100% rename from ui/interface.lua rename to CharacterSheet/ui/interface.lua diff --git a/ui/stats_frame.lua b/CharacterSheet/ui/stats_frame.lua similarity index 100% rename from ui/stats_frame.lua rename to CharacterSheet/ui/stats_frame.lua diff --git a/update.py b/update.py new file mode 100644 index 0000000..6d569c7 --- /dev/null +++ b/update.py @@ -0,0 +1,17 @@ +import os +import shutil +import sys + +addon_folder = "CharacterSheet" + +def update(addons_path): + target_path = os.path.join(addons_path, addon_folder) + if os.path.exists(target_path): + shutil.rmtree(target_path) + shutil.copytree(addon_folder, target_path) + +if __name__ == "__main__": + if len(sys.argv) != 2: + print("Specify the path to your addon folder") + exit() + update(sys.argv[1])