예제 #1
0
    def ToggleBubbleHint(self, *args):
        sel = self.sr.node.scroll.GetSelectedNodes(self.sr.node)
        showhint = not self.sr.node.showhint
        wantedHints = maputils.GetHintsOnSolarsystemBrackets()[:]
        for node in sel:
            node.showhint = showhint
            if node.groupID not in wantedHints and showhint:
                wantedHints.append(node.groupID)
            elif node.groupID in wantedHints and not showhint:
                wantedHints.remove(node.groupID)
            if node.panel:
                node.panel.Load(node)

        settings.user.ui.Set('hintsInSolarsystemMap', wantedHints)
        sm.ScatterEvent('OnSolarsystemMapSettingsChange', 'brackets')
예제 #2
0
파일: palette.py 프로젝트: R4M80MrX/eve-1
    def GetSolarSystemOptions(self):
        validGroups = maputils.GetValidSolarsystemGroups()
        wantedGroups = maputils.GetVisibleSolarsystemBrackets()
        wantedHints = maputils.GetHintsOnSolarsystemBrackets()
        scrolllist = []
        for groupID in validGroups:
            data = util.KeyVal()
            data.visible = groupID in wantedGroups
            data.showhint = groupID in wantedHints
            data.groupID = groupID
            if type(groupID) in types.StringTypes:
                cerbString = {'bookmark': 'UI/Map/MapPallet/cbSolarSystem_bookmark',
                 'scanresult': 'UI/Map/MapPallet/cbSolarSystem_scanresult'}[groupID]
                data.label = localization.GetByLabel(cerbString)
            else:
                data.label = cfg.invgroups.Get(groupID).name
            scrolllist.append((data.label, listentry.Get('BracketSelectorEntry', data=data)))

        if scrolllist:
            scrolllist = uiutil.SortListOfTuples(scrolllist)
        return scrolllist