package ui

import "../core"

App_Screen :: enum {
	Story,
	Script,
	Characters,
	Panels,
	Layout,
	Bubbles,
	Export,
	Community,
}

screen_from_workflow :: proc(step: core.Workflow_Step) -> App_Screen {
	switch step {
	case .Story_Input, .Generating_Script:
		return .Story
	case .Script_Review:
		return .Script
	case .Character_Setup:
		return .Characters
	case .Generating_Panels:
		return .Panels
	case .Layout:
		return .Layout
	case .Speech_Bubbles:
		return .Bubbles
	case .Complete:
		return .Export
	}
	return .Story
}

screen_name :: proc(s: App_Screen) -> string {
	switch s {
	case .Story: return "Story"
	case .Script: return "Script"
	case .Characters: return "Characters"
	case .Panels: return "Panels"
	case .Layout: return "Layout"
	case .Bubbles: return "Speech"
	case .Export: return "Export"
	case .Community: return "Community"
	}
	return "Unknown"
}
