예제 #1
0
파일: ui.py 프로젝트: btdevel/bt
    def __init__(self):
        EventHandler.__init__(self)
        self.add_key_event((pygame.K_q, pygame.KMOD_LCTRL), self.request_exit)

        self.image_path = app.config.main.image_path()

        self.message_view = view.View(pygame.Rect(340, 30, 264, 198), config=app.config.message_view)
        self.world_view = view.View(pygame.Rect(34, 30, 222, 176), config=app.config.world_view)
        self.location_view = view.View(pygame.Rect(34, 207, 222, 25), config=app.config.location_view)

        self.use_own_headings = app.config.character_view.use_own_headings(default=True, type=bool)
        if self.use_own_headings:
            char_rect = pygame.Rect(30, 242, 578, 110)
        else:
            char_rect = pygame.Rect(30, 266, 578, 110)
        self.char_view = charview.CharacterView(char_rect, config=app.config.character_view)
예제 #2
0
파일: buildings.py 프로젝트: btdevel/bt
 def __init__(self, filename, message, location=""):
     EventHandler.__init__(self, location=location)
     self.add_key_event("lL", action.turn_back())
     self.add_key_event("aA", action.compose(action.enter_city(), action.message("The statue gives up...")))
     self.filename = filename
     self.message = message
예제 #3
0
파일: charview.py 프로젝트: btdevel/bt
 def __init__(self):
     EventHandler.__init__(self)