def flush(self): """ Try to flush the overlay with empty lines :return: """ self.display(FLUSH, oc.get_overlay_layout("sub_header_row"), oc.get_overlay_layout("first_col"), oc.get_overlay_color("text")) self.display(FLUSH, oc.get_overlay_layout("detail_row"), oc.get_overlay_layout("first_col"), oc.get_overlay_color("text")) self.display(FLUSH, oc.get_overlay_layout("detail_row"), oc.get_overlay_layout("second_col"), oc.get_overlay_color("text"))
def _display_role(self, text): self.display(text, row=oc.get_overlay_layout("sub_header_row"), col=oc.get_overlay_layout("first_col"), color=oc.get_overlay_color("cmdr_role"))
def display_cmdr_name(self, text): self.display(text, row=oc.get_overlay_layout("header_row"), col=oc.get_overlay_layout("first_col"), color=oc.get_overlay_color("cmdr_name"), size="large")
def display_warning(self, text, col): self.display(text, row=oc.get_overlay_layout("detail_row"), col=col, color=oc.get_overlay_color("warning"), size="large")
def display_error(self, text): self.display(text, row=oc.get_overlay_layout("detail_row"), col=oc.get_overlay_layout("first_col"), color=oc.get_overlay_color("error"), size="large")
def display_notification(self, text): self.display(text, row=oc.get_overlay_layout("header_row"), col=oc.get_overlay_layout("first_col"), color=oc.get_overlay_color("notification"), size="large")
def _display_section(self, text, col): self.display(text, row=oc.get_overlay_layout("detail_row"), col=col, color=oc.get_overlay_color("text"))
def _display_section_header(self, title, col): self.display(title, row=oc.get_overlay_layout("info_row"), col=col, color=oc.get_overlay_color("sect_title"), size="large")