From 0bb4b12a7ed47619dff6fd748dc0d57d0b67f79c Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 16 Feb 2018 19:06:14 +0100 Subject: Add resources xml templates, call Scene::click on mouseclick --- src/main/cpp/Subconscious.cpp | 1 + src/main/resources/effects/effects_template.xml | 11 +++++ src/main/resources/items/items_template.xml | 55 +++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 src/main/resources/effects/effects_template.xml create mode 100644 src/main/resources/items/items_template.xml (limited to 'src/main') diff --git a/src/main/cpp/Subconscious.cpp b/src/main/cpp/Subconscious.cpp index 5d04e5c..f1d4e79 100644 --- a/src/main/cpp/Subconscious.cpp +++ b/src/main/cpp/Subconscious.cpp @@ -67,6 +67,7 @@ void Subconscious::run() /*** Mouse Events ***/ case sf::Event::MouseButtonPressed: + _currentScene->click(event.mouseButton); break; case sf::Event::MouseButtonReleased: diff --git a/src/main/resources/effects/effects_template.xml b/src/main/resources/effects/effects_template.xml new file mode 100644 index 0000000..fe577b0 --- /dev/null +++ b/src/main/resources/effects/effects_template.xml @@ -0,0 +1,11 @@ + + + + + + + diff --git a/src/main/resources/items/items_template.xml b/src/main/resources/items/items_template.xml new file mode 100644 index 0000000..0810f45 --- /dev/null +++ b/src/main/resources/items/items_template.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + Wizard + + + + + + + + + + + + + + + + + + + + + +<\item> + + + + + + + + + + + -- cgit v1.2.1