def execute(self, editing, instant): Debug.log( f"Executing bg load bg={self.bg} " f"load_path={self.load_path}", self) if self.bg == self.TOP: self.bg_top.set_bg("data_lt2/bg/" + self.load_path) else: self.bg_btm.set_bg("data_lt2/bg/" + self.load_path)
def execute(self, editing, instant): Debug.log( f"Executing dialogue character={self.character} anim={self.anim} text={self.text} " f"voice={self.voice}", self) self.dialogue.start_dialogue(self.character, self.anim, self.text, self.voice) if instant: self.dialogue.end_dialogue()
def change_to_file(self, file_path): Debug.log(f"Changing to file: {file_path}", self) if file_path.endswith(".arc"): try: load_animation(file_path, self.preview_sprite) if self.preview_sprite.frame_count > 0: self.preview_sprite.set_frame(1) except: load_bg(file_path, self.preview_sprite) self.preview_sprite.add(self.preview_group)
def execute(self, editing, instant): Debug.log( f"Executing load characters={self.characters} anims={self.characters_anim}", self) self.setup_characters() self.bg_top.set_bg(f"data_lt2/bg/event/sub{self.top_id}.arc") self.bg_btm.set_bg(f"data_lt2/bg/map/main{self.btm_id}.arc") self.bg_top.set_opacity(0) self.bg_btm.set_opacity(120) if editing: self.bg_top.set_fade_max_opacity(180) self.bg_btm.set_fade_max_opacity(180) else: self.bg_top.set_fade_max_opacity(255) self.bg_btm.set_fade_max_opacity(255)
def execute(self, editing, instant): Debug.log( f"Executing fade screen={self.fade_screen} " f"type={self.fade_type} time={self.fade_frames}", self) if self.fade_screen & self.FADE_TOP: self.bg_top.fade(self.fade_type, self.fade_frames, instant) if editing: self.bg_top.set_fade_max_opacity(180) else: self.bg_top.set_fade_max_opacity(255) if self.fade_screen & self.FADE_BTM: self.bg_btm.fade(self.fade_type, self.fade_frames, instant) if editing: self.bg_btm.set_fade_max_opacity(180) else: self.bg_btm.set_fade_max_opacity(255)
def change_to_folder(self, folder_path): Debug.log(f"Changing to folder: {folder_path}", self) self.open_folder(folder_path + "/")
def execute(self, editing, instant): Debug.log(f"Executing wait frames={self.wait_frames}", self) if not instant: self.waiter.wait(self.wait_frames)
def execute(self, editing, instant): Debug.log(f"Executing sad sfx sad_id={self.sad_id}", self) if not instant: self.player.play( f"data_lt2/stream/ST_{str(self.sad_id).zfill(3)}.SAD")
def execute(self, editing, instant): Debug.log( f"Executing chr anim character={self.character} " f"anim={self.next_anim}", self) self.character.set_anim(self.next_anim)
def execute(self, editing, instant): Debug.log( f"Executing chr slot character={self.character} " f"slot={self.next_slot}", self) self.character.set_slot(self.next_slot)
def execute(self, editing, instant): Debug.log( f"Executing chr visibility character={self.character} " f"visibility={self.visibility}", self) if self.character: self.character.set_visibility(self.visibility)
def execute(self, editing, instant): Debug.log(f"Executing chr hide character={self.character}", self) self.character.hide()
def execute(self, editing, instant): Debug.log(f"Executing chr show character={self.character}", self) self.character.show()
def execute(self, editing, instant): Debug.log(f"Executing unknown", self)
def execute(self, editing, instant): Debug.log(f"Executing bg shake bg={self.bg}", self) self.bg.shake()
def execute(self, editing, instant): Debug.log(f"Executing bg opacity bg={self.bg} opacity={self.opacity}", self) self.bg.set_opacity(self.opacity)