修改一下提示的文字和颜色

This commit is contained in:
anod 2023-04-24 17:15:08 +08:00
parent 25cc775230
commit b19f0a16d1

View File

@ -473,12 +473,12 @@ static inline void key_tips( key_remix_t *p, atp_itemcfg_t *cfg )
else if( p->remix_type == REMIX_TYPE_REMAP ) else if( p->remix_type == REMIX_TYPE_REMAP )
{ {
cfg->extra_text = "键位映射"; cfg->extra_text = "键位映射";
cfg->extra_text_color = ATP_COLOR_YELLOW; cfg->extra_text_color = ATP_COLOR_GREEN;
} }
else if( p->remix_type == REMIX_TYPE_HOLD ) else if( p->remix_type == REMIX_TYPE_HOLD )
{ {
cfg->extra_text = "自动蓄力"; cfg->extra_text = "自动蓄力";
cfg->extra_text_color = ATP_COLOR_MAGENTA; cfg->extra_text_color = ATP_COLOR_GREEN;
} }
} }
@ -523,10 +523,15 @@ static atp_error_t select_kcf( atp_callerdata_t p, atp_counter_t index, atp_item
if( key_val[i] == kcfg->device_keys ) if( key_val[i] == kcfg->device_keys )
{ {
cfg->extra_text = key_name[i]; cfg->extra_text = key_name[i];
cfg->extra_text_color = ATP_COLOR_BLUE; cfg->extra_text_color = ATP_COLOR_GREEN;
} }
} }
} }
else
{
cfg->extra_text = "未设置";
cfg->extra_text_color = ATP_COLOR_LIGHT;
}
} }
else if( index == KRFIELD_GAME ) else if( index == KRFIELD_GAME )
{ {
@ -534,7 +539,12 @@ static atp_error_t select_kcf( atp_callerdata_t p, atp_counter_t index, atp_item
if( kcfg->game_keys == 0 ) if( kcfg->game_keys == 0 )
{ {
cfg->extra_text = "未设置"; cfg->extra_text = "未设置";
cfg->extra_text_color = ATP_COLOR_RED; cfg->extra_text_color = ATP_COLOR_LIGHT;
}
else
{
cfg->extra_text = "已设置";
cfg->extra_text_color = ATP_COLOR_GREEN;
} }
} }
cfg->value = index; cfg->value = index;