Hello Community
I'm having a problem with this simple code I have no idea why the application crash with it
class ChatUser
{
TextLine username; Text user;
Button button ;
TextStyle *ts;
public:
void create()
{
ts.scale = Vec2(1.0, 1.0);
Gui += username.create(Rect_U(0, 0, 2.0, 0.1));
Gui += user.create(Rect_U(-0.2, 0.5, 2.0, 0.7),"Please Add Your username", ts);
Gui += button.create(Rect_U(0, -.5, 0.5, 0.1), "Start Chat").func(saveUser, T);
}
ChatUser()
{
}
void static saveUser(ChatUser &chatuser)
{
LogN(S+chatuser.username());
}
}
After some debugging minutes I found that the problem is here ts.scale = Vec2(1.0, 1.0);
this vector is not read by the engine I have no idea
some help would be great thank you