My Fishing World
/// 用于设置文本对象的字体、大小、颜色、位置和文本的构造函数。 /// 要使用的文本字体 /// 要使用的文本字符串 /// 要使用的文本大小 /// 文本对象原点的 X 坐标 /// 文本对象原点的 Y 坐标 /// 文本对象的颜色 Text::Text(sf::Font& t_font, std::string t_string, int t_size, float t_x, float t_y, sf::Color t_colour) { m_text.setFont(t_font);