【优化】将类ButtonState类中定义常量整合到类Button