def __init__(self, frame): EditMode.__init__(self, frame) self._state = State.NONE self._highlight_camera = False self._highlight_player = False self._move_offset = None
def __init__(self, frame): EditMode.__init__(self, frame) self._state = State.NONE self._select_start = None self._select_end = None self._select_type = SelectType.NONE self._selection = None
def __init__(self, frame): EditMode.__init__(self, frame) self._state = State.NONE self._select_start = None self._select_end = None self._selection = [] self._template = None self._entity_hover = None self._entities_moving = None self._entities_moving_start = None self._entity_moved = False
def open_project(self, args): #if no arguments were given, don't execute if not args: utils.print_missing_arg("project name") return #if there were more than one additional argument, don't execute if len(args) > 1: utils.print_invalid_arg(args[1]) return project_name = args[0] project_path = utils.get_project_path(project_name) if not project_path.exists(): print(f"Could not find project {project_name}") return editmode = EditMode(project_path) print("Opening project " + project_name + "... ") editmode.enter() # is drawing scene a sane thing to do here? self.draw() return