Beispiel #1
0
def init():
    global frame, image
    frame = Frame(frame_name, x, y, width, height, 1)
    frame.closeable = True
    frame.pages = True
    frame.background = pygame.image.load(imagePath("frame_bg.jpg"))

    image = pygame.image.load(imagePath("skilltree.png"))
    image = image.convert_alpha()
    ui.trigger("menu_bar", "addTrigger", "skill_tree", image, toggle, tooltip, description)
    renderSkills()
Beispiel #2
0
def init():
    global config, background, logger, surface, debug_background
    config = loadConfig("ui")
    logger = outputLogger("  UI   ")
    logger.info("Initializing.")
    rect = pygame.Rect(0, game.resolution[1] - height,
                       game.resolution[0], 220)
    background = game.stage.subsurface(rect)
    debug_background = pygame.surface.Surface((960, 140))
    debug_background.fill(colors.BLACK)
    image = pygame.image.load(imagePath("ui_bg.jpg"))
    background.blit(image, (0, 0))
    loadTypography()
    loadModules()