Post
Topic
Board Announcements (Altcoins)
Re: [ANN][FLAP] FlappyCoin ★ 0 Premined ★ TRADED ON CRYPTSY ★ GAME INSIDE WALLET
by
danfred
on 18/03/2014, 21:10:51 UTC
He wants to implement a exchange in the wallet, which would be really sick!

No offence to either you or the dev... but the dev is having problems adding a tab to the wallet that simply launches a URL (http://flappycoin.info/game.html).

Here's the source for that tab:

flappycoin/src/qt/gamepage.cpp

#include "gamepage.h"
#include "ui_gamepage.h"

GamePage::GamePage(QWidget *parent) :
  QWidget(parent),
  ui(new Ui::GamePage)
{
  ui->setupUi(this);
  QWebView *webView = ui->webView;
  webView->settings()->setAttribute(QWebSettings::JavascriptEnabled, true);
  webView->settings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true);
  webView->settings()->setAttribute(QWebSettings::LocalStorageEnabled, true);
  // webView->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
  webView->setContentsMargins(0, 0, 0, 0);
  webView->setFixedSize(430, 580);
  webView->load(QUrl("http://flappycoin.info/game.html"));
}

GamePage::~GamePage()
{
  delete ui;
}


not too complicated... can you really expect the dev to build a full-blown exchange integrated with the blockchain when he's struggling to add and compile a simple link to a website?