This commit is contained in:
Seefo
2014-06-04 21:47:50 -04:00
parent 32effd8f6a
commit 79ab29dd68
+8 -6
View File
@@ -2,18 +2,20 @@ from resources.common import RadialOptions
import sys
def createRadial(core, owner, target, radials):
#if not core.mountService.getMount(target):
# radials.add(RadialOptions(0, 21, 3, '@pet_menu:menu_call'))
#else:
# radials.add(RadialOptions(0, 21, 3, '@pet_menu:menu_store'))
radials.add(RadialOptions(0, 61, 1, ''))
if core.mountService.getMount(target) is None:
radials.add(RadialOptions(0, 61, 1, '@pet/pet_menu:menu_call'))
else:
radials.add(RadialOptions(0, 61, 1, '@pet/pet_menu:menu_store'))
radials.add(RadialOptions(0, 7, 1, ''))
radials.add(RadialOptions(0, 15, 1, ''))
return
def handleSelection(core, owner, target, option):
if option == 61 and target:
core.mountService.call(owner, target)
if core.mountService.getMount(target) is None:
core.mountService.call(owner, target)
else:
core.mountService.store(owner, core.mountService.getMount(target))
elif option == 15 and target:
core.mountService.destroy(owner, target)