def __init__(self, text, signal, align=Align.NONE):
# make a label of the text - but we only want the image
label = GuiLabel(text, (0, 0, 0), (214, 214, 214)).image
# get the contents to render themselves
border = Resources.configs.get(self.border_config)
image = add_border(label, border, Resources.get_image(border.image))
rect = pygame.Rect(0, 0, image.get_width(), image.get_height())
super().__init__(rect, image, align, False)
self.messages = [pygame.MOUSEMOTION, pygame.MOUSEBUTTONUP, pygame.MOUSEBUTTONDOWN]
self.highlight = self.get_highlight()
self.normal_image = self.image
self.signal = signal
self.changed = False
评论列表
文章目录