Ejemplo n.º 1
0
def plugin_start():
    """
    Start up our EDMC Plugin
    :return:
    """
    global _overlay
    _overlay = edmcoverlay.Overlay()
    time.sleep(2)
    notify("ED:Target Bounty Plugin Loaded")

    if not OVERLAY_MESSAGE_DURATION.get():
        OVERLAY_MESSAGE_DURATION.set(str(DEFAULT_OVERLAY_MESSAGE_DURATION))
        config.set(PREFNAME_OVERLAY_DURATION,
                   str(DEFAULT_OVERLAY_MESSAGE_DURATION))
Ejemplo n.º 2
0
 def display_overlay(self, message, timeout_seconds=15):
     if self.overlay is None:
         self.overlay = edmcoverlay.Overlay()
     try:
         self.overlay.send_message("Neutron",
                                   message,
                                   "#aaf9ff",
                                   x=520,
                                   y=120,
                                   ttl=timeout_seconds,
                                   size="large")
         self.globals.logger.debug(
             "Neutron -> displayed overlay message: {}".format(message))
     except Exception as err:
         self.globals.logger.debug(
             "Neutron -> failed to connect to overlay: {}".format(err))
Ejemplo n.º 3
0
def plugin_start():
    """
    Start up our EDMC Plugin
    :return:
    """
    LOG.write("Loading HITS {}".format(HITS_VERSION))
    global _overlay
    _overlay = edmcoverlay.Overlay()
    notify("ED:HITS Plugin Loaded")

    if not OVERLAY_MESSAGE_DURATION.get():
        OVERLAY_MESSAGE_DURATION.set(str(DEFAULT_OVERLAY_MESSAGE_DURATION))
        config.set(PREFNAME_OVERLAY_DURATION,
                   str(DEFAULT_OVERLAY_MESSAGE_DURATION))
    try:
        OVERLAY_HITS_MODE.get()
    except:
        OVERLAY_HITS_MODE.set("on")

    LOG.write("HITS Overlay mode '{}'".format(OVERLAY_HITS_MODE.get()))
Ejemplo n.º 4
0
def plugin_start():
    """
    Start up our EDMC Plugin
    :return:
    """
    global _overlay
    global SERVER
    _overlay = edmcoverlay.Overlay()
    time.sleep(2)
    notify("ED:HITS Plugin Loaded")

    if not SERVER.get():
        SERVER.set(DEFAULT_SERVER)
        config.set(PREFNAME_SERVER, DEFAULT_SERVER)
    if not OVERLAY_MESSAGE_DURATION.get():
        OVERLAY_MESSAGE_DURATION.set(str(DEFAULT_OVERLAY_MESSAGE_DURATION))
        config.set(PREFNAME_OVERLAY_DURATION,
                   str(DEFAULT_OVERLAY_MESSAGE_DURATION))

    try:
        OVERLAY_HITS_MODE.get()
    except:
        OVERLAY_HITS_MODE.set("on")