summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-16 13:05:27 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-16 13:05:27 -0300
commit15777a938d38e7f9e46c347395a1a313953c2031 (patch)
tree19cfee436187adba84a5cb9048e15d780a960f1b /client
parentaa120b650afc2fa9ccabdbf32d79fcbea76d4996 (diff)
downloadtools-15777a938d38e7f9e46c347395a1a313953c2031.tar.gz
tools-15777a938d38e7f9e46c347395a1a313953c2031.tar.bz2
tools-15777a938d38e7f9e46c347395a1a313953c2031.tar.xz
tools-15777a938d38e7f9e46c347395a1a313953c2031.zip
Aurora Events Framework
Diffstat (limited to 'client')
-rwxr-xr-xclient/aurora.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/client/aurora.py b/client/aurora.py
new file mode 100755
index 0000000..95f356b
--- /dev/null
+++ b/client/aurora.py
@@ -0,0 +1,33 @@
+#!/usr/bin/python2.7
+
+# Setup
+events=["Expo", "Fishing", "Kamelot", "Regnum"]
+
+# Functions
+def headers(val):
+ return '\n\t<dialog name="aurora_%s" hideText="true">\n\t\t<menu>\n' % val
+
+def navigation():
+ return '\t\t\t<button x="300" y="20" name="Close" value="Ok" />\n'
+
+def tail():
+ return '\n\t\t</menu>\n\t</dialog>\n'
+
+def data(val):
+ bf='\t\t\t<image x="0" y="0" image="graphics/images/aurora/%s.png" />' % val
+ return bf
+
+# Begin
+f=open("aurora.tmp", "w")
+
+f.write('<?xml version="1.0" encoding="utf-8"?>\n<!-- This file is generated automatically, editing it will have no effect.\n Aurora Event Framework\n (C) Jesusalva, 2020 -->\n<dialogs>')
+
+for evtc in sorted(events):
+ f.write(headers(evtc))
+ f.write(data(evtc))
+ f.write(navigation())
+ f.write(tail())
+
+f.write('\n</dialogs>')
+f.close()
+