Exemplo n.º 1
0
def input_name_func():
    """
    请求玩家输入姓名流程
    输入0:进入请求玩家输入昵称流程(玩家姓名为默认或输入姓名流程结果)
    输入1:进入输入姓名流程
    输入2:返回标题菜单
    """
    game_time.init_time()
    cache_contorl.character_data["character_id"] = 0
    cache_contorl.character_data["character"][0] = character.Character()
    flow_return = 0
    while 1:
        flow_return = creator_character_panel.input_name_panel()
        if flow_return == 0:
            py_cmd.clr_cmd()
            break
        elif flow_return == 1:
            py_cmd.clr_cmd()
            creator_character_panel.start_input_name_panel()
            py_cmd.clr_cmd()
        else:
            break
    if flow_return == 0:
        input_nick_name_func()
    else:
        era_print.next_screen_print()
        cache_contorl.now_flow_id = "title_frame"
Exemplo n.º 2
0
import sys
from types import FunctionType
from Script.Config import normal_config
from Script.Core import game_type, cache_control

cache_control.cache = game_type.Cache()
normal_config.init_normal_config()

from Script.Core import get_text
from Script.Config import game_config, map_config, name_config

_: FunctionType = get_text._
""" 翻译api """

if sys.version_info < (3, 9, 0):
    print(_("python3版本过旧(低于python3.9.0),请升级"))
    exit(0)

game_config.init()
map_config.init_map_data()
name_config.init_name_data()

from Script.Design import start_flow, handle_premise, game_time
from Script.Core import game_init
import Script.Settle
import Script.StateMachine
import Script.UI.Flow

game_time.init_time()
game_init.run(start_flow.start_frame)