mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-15 00:07:39 -04:00
Cleaned up some classes Moved functionalities into more appropriate methods/classes
28 lines
936 B
Python
28 lines
936 B
Python
from resources.common import RadialOptions
|
|
from protocol.swg import ResourceListForSurveyMessage
|
|
from services.sui.SUIService import MessageBoxType
|
|
from services.SurveyService import createSurveyRangeSUIWindow
|
|
from services.sui.SUIWindow import Trigger
|
|
from java.util import Vector
|
|
import sys
|
|
|
|
def createRadial(core, owner, target, radials):
|
|
radials.clear()
|
|
radials.add(RadialOptions(0, 21, 1, 'Use'))
|
|
radials.add(RadialOptions(0, 7, 0, 'Examine'))
|
|
radials.add(RadialOptions(0, 15, 0, 'Destroy'))
|
|
radials.add(RadialOptions(0, 132, 1, 'Tool Options'))
|
|
return
|
|
|
|
def handleSelection(core, owner, target, option):
|
|
if option == 21 and target:
|
|
if owner is not None:
|
|
rlfsm = ResourceListForSurveyMessage(core,target,owner)
|
|
owner.getClient().getSession().write(rlfsm.serialize())
|
|
return
|
|
if option == 132:
|
|
if owner is not None:
|
|
surSvc = core.surveyService
|
|
surSvc.createSurveyRangeSUIWindow(owner, target)
|
|
return
|