修改提示内容

This commit is contained in:
anod 2023-04-25 11:20:04 +08:00
parent ba0901a3ba
commit b7b72cf31f

View File

@ -458,7 +458,7 @@ static atp_error_t select_keys( atp_callerdata_t data, atp_counter_t index, atp_
return ATP_SUCCESS;
}
static inline void key_tips( key_remix_t *p, atp_itemcfg_t *cfg )
static inline void key_tips( key_remix_t *p, atp_boolean_t checking, atp_itemcfg_t *cfg )
{
if( p->remix_type == REMIX_TYPE_NONE )
{
@ -467,30 +467,57 @@ static inline void key_tips( key_remix_t *p, atp_itemcfg_t *cfg )
}
else
{
if( p->game_keys==0 || p->device_keys==0 )
if( p->remix_type == REMIX_TYPE_CHEAT )
{
cfg->extra_text = "配置不齐";
cfg->extra_text_color = ATP_COLOR_RED;
}
else if( p->remix_type == REMIX_TYPE_CHEAT )
{
cfg->extra_text = "金手指键";
cfg->extra_text_color = ATP_COLOR_GREEN;
if( checking && p->game_keys == 0)
{
cfg->extra_text = "配置不齐";
cfg->extra_text_color = ATP_COLOR_RED;
}
else
{
cfg->extra_text = "金手指键";
cfg->extra_text_color = ATP_COLOR_GREEN;
}
}
else if( p->remix_type == REMIX_TYPE_REMAP )
{
cfg->extra_text = "键位映射";
cfg->extra_text_color = ATP_COLOR_GREEN;
if( checking && (p->game_keys==0 || p->device_keys==0) )
{
cfg->extra_text = "配置不齐";
cfg->extra_text_color = ATP_COLOR_RED;
}
else
{
cfg->extra_text = "键位映射";
cfg->extra_text_color = ATP_COLOR_GREEN;
}
}
else if( p->remix_type == REMIX_TYPE_UNLINK )
{
cfg->extra_text = "禁用原键位";
cfg->extra_text_color = ATP_COLOR_GREEN;
if( checking && p->device_keys == 0 )
{
cfg->extra_text = "配置不齐";
cfg->extra_text_color = ATP_COLOR_RED;
}
else
{
cfg->extra_text = "禁用原键位";
cfg->extra_text_color = ATP_COLOR_GREEN;
}
}
else if( p->remix_type == REMIX_TYPE_HOLD )
{
cfg->extra_text = "自动蓄力";
cfg->extra_text_color = ATP_COLOR_GREEN;
if( checking && (p->game_keys==0 || p->device_keys==0) )
{
cfg->extra_text = "配置不齐";
cfg->extra_text_color = ATP_COLOR_RED;
}
else
{
cfg->extra_text = "自动蓄力";
cfg->extra_text_color = ATP_COLOR_GREEN;
}
}
}
}