blob: 95f356bf7d0cee738021c963cc8db6346f10b2f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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()
|