mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Modifications to Game Launcher to fixup the display of names / status.
Added Date check to DHT Server File, so we don't download each restart. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@378 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d05ef8d797
commit
7eeb4420fe
10 changed files with 139 additions and 20 deletions
|
@ -139,8 +139,9 @@ void GamesDialog::updateGameList()
|
|||
{
|
||||
/* make a widget per game */
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||
std::string serverName = rsPeers->getPeerName(it->serverId);
|
||||
item -> setText(GAME_LIST_TYPE, QString::fromStdString(it->gameType));
|
||||
item -> setText(GAME_LIST_SERVER, QString::fromStdString(it->serverName));
|
||||
item -> setText(GAME_LIST_SERVER, QString::fromStdString(serverName));
|
||||
item -> setText(GAME_LIST_NAME, QString::fromStdString(it->gameName));
|
||||
item -> setText(GAME_LIST_STATUS, QString::fromStdString(it->status));
|
||||
item -> setText(GAME_LIST_ID, QString::fromStdString(it->gameId));
|
||||
|
@ -236,7 +237,14 @@ void GamesDialog::updateGameDetails()
|
|||
if (showPeer)
|
||||
{
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||
item -> setText(GAME_PEER_PLAYER, QString::fromStdString(it->second.name));
|
||||
std::string name = rsPeers->getPeerName(it->second.id);
|
||||
if (it->second.id == rsPeers->getOwnId())
|
||||
{
|
||||
name = "Yourself";
|
||||
}
|
||||
|
||||
item -> setText(GAME_PEER_PLAYER, QString::fromStdString(name));
|
||||
|
||||
if (it->second.invite)
|
||||
item -> setText(GAME_PEER_INVITE, "Yes");
|
||||
else
|
||||
|
@ -254,7 +262,7 @@ void GamesDialog::updateGameDetails()
|
|||
|
||||
/* add a checkItem here */
|
||||
//item -> setText(GAME_PEER_PLAY, "Maybe");
|
||||
item -> setText(GAME_PEER_ID, QString::fromStdString(it->first));
|
||||
item -> setText(GAME_PEER_ID, QString::fromStdString(it->second.id));
|
||||
|
||||
if ((oldSelect) && (oldId == it->first))
|
||||
{
|
||||
|
|
|
@ -58,7 +58,7 @@ class RsGameInfo
|
|||
class RsGamePeer
|
||||
{
|
||||
public:
|
||||
std::string name;
|
||||
std::string id;
|
||||
bool invite;
|
||||
bool interested;
|
||||
bool play;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue