mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
50 lines
2.1 KiB
Python
50 lines
2.1 KiB
Python
from resources.common import RadialOptions
|
|
from services.sui.SUIService import InputBoxType
|
|
from java.util import Vector
|
|
from main import NGECore
|
|
import sys
|
|
|
|
def createRadial(core, owner, target, radials):
|
|
|
|
#radials.clear()
|
|
|
|
if owner.getGuildId() != 0:
|
|
guild = core.guildService.getGuildById(owner.getGuildId())
|
|
|
|
if guild is None:
|
|
return
|
|
|
|
radials.add(RadialOptions(0, RadialOptions.serverGuildGuildManagement, 3, '@guild:menu_guild_management'))
|
|
radials.add(RadialOptions(0, RadialOptions.serverGuildMemberManagement, 3, '@guild:menu_member_management'))
|
|
|
|
#Guild Management
|
|
radials.add(RadialOptions(0, RadialOptions.serverGuildInfo, 3, '@guild:menu_info'))
|
|
|
|
#Member Management
|
|
|
|
# Leader options
|
|
#if guild.getLeader() == owner.getObjectID():
|
|
#Guild Management
|
|
#radials.add(RadialOptions(3, RadialOptions.serverGuildDisband, 3, '@guild:menu_disband'))
|
|
#radials.add(RadialOptions(3, 69, 3, '@guild:menu_leader_change'))
|
|
|
|
# Sponsor options
|
|
#if guild.getSponsors().contains(owner.getObjectID()):
|
|
|
|
return
|
|
|
|
def handleSelection(core, owner, target, option):
|
|
if option == RadialOptions.serverGuildInfo:
|
|
guild = core.guildService.getGuildById(owner.getGuildId())
|
|
|
|
guildInfoPrompt = "Guild Name: " + guild.getName() + "\n" + \
|
|
"(neutral)\n" + \
|
|
"Guild Abbreviation: " + guild.getAbbreviation() + "\n" + \
|
|
"Guild Leader: " + guild.getLeaderName() + "\n" + \
|
|
"GCW Region Defender: None\n" + \
|
|
"GCW Region Defender Bonus: 0%\n" + \
|
|
"Guild Members: " + str(guild.getMembers().size())
|
|
wndGuildInfo = core.suiService.createMessageBox(core.suiService.MessageBoxType.MESSAGE_BOX_OK, '@guild:info_title', guildInfoPrompt, owner, target, 10)
|
|
core.suiService.openSUIWindow(wndGuildInfo)
|
|
return
|
|
return |