Pastebin

New pastes are no longer accepted · Stats

Latest Pastes

void login(void *data)
{
    View *view = static_cast<View *>(data);

    Window *main_window = static_cast<Window *>(view->gui.GetChild("main_window"));
    Window *login_box = static_cast<Window *>(main_window->GetChild("login_box"));

    std::string username = static_cast<TextBox *>(login_box->GetChild("username"))->Text();
    std::string password = static_cast<TextBox *>(login_box->GetChild("password"))->Text();

    printf("%s : %s\n", username.c_str(), password.c_str());

    //view->game.network_client.Login(username, password);
}