Skip to content

base_flow

mzki edited this page Jul 15, 2019 · 1 revision
graph TB
    %% -- Common Template --

    %% nodes
    start(("Start"))
    next_scene_from_common(("Next scene"))
    scene_start_common["goto: scene_start_common()"]

    %% styles
    classDef class_script_call fill:#CAF
    classDef class_routine_call fill:#EE9
 
    %% apply styles
        class scene_start_common class_routine_call

    %% flow
    start --> scene_start_common
    scene_start_common --> |next scene| next_scene_from_common

    %% -- scene specific --

    %% nodes
    next_scene(("Next scene"))
    
    next_scene_exist{"next scene?"}
    base_user_show_menu("script: base_user_show_menu()")
    base_user_menu_selected("script: handled = base_user_menu_selected(input_number)")

    user_input_number["wait: user input number"]
    menu_select_handled{"return value?"}
    
    %% apply styles
    class base_user_show_menu,base_user_menu_selected class_script_call
    
    %% flows
    scene_start_common --> |continue current scene| next_scene_exist
    
    next_scene_exist --> |exist| next_scene
    next_scene_exist --> |NOT exist| base_user_show_menu

    base_user_show_menu --> user_input_number

    user_input_number --> base_user_menu_selected
    base_user_menu_selected --> menu_select_handled

    menu_select_handled --> |false| user_input_number
    menu_select_handled --> |true| next_scene_exist
    
Loading
Clone this wiki locally