Connect to default server on click of gennesis link

This commit is contained in:
Tristan B. Kildaire 2020-10-23 16:10:01 +02:00
parent 0f6aabb311
commit 77575c6ff1
1 changed files with 21 additions and 3 deletions

View File

@ -105,13 +105,31 @@ public class GUI : Thread
tagline.setMarkup("<span size=\"30000\">GTK+ graphical DNET client</span>");
welcomeBox.add(tagline);
Label server = new Label("<a href=\"\">fok</a>");
server.setMarkup("<a href=\"\">Find some servers</a>");
welcomeBox.add(server);
Label findServersLabel = new Label("<a href=\"\">fok</a>");
findServersLabel.setMarkup("<a href=\"\">Find some servers</a>");
welcomeBox.add(findServersLabel);
Label configureConnectionsLabel = new Label("<a href=\"\">Configure connections</a>");
configureConnectionsLabel.setMarkup("<a href=\"\">Configure connections</a>");
welcomeBox.add(configureConnectionsLabel);
Label connectGenesisLabel = new Label("<a href=\"\">Connect to the genesis server</a>");
connectGenesisLabel.setMarkup("<span size=\"12000\"> <a href=\"\">Connect to the genesis server</a></span>");
connectGenesisLabel.addOnActivateLink(&welcomeGenesisLabelClick);
welcomeBox.add(connectGenesisLabel);
return welcomeBox;
}
private bool welcomeGenesisLabelClick(string, Label)
{
connectServer("0.0.0.0", 7777);
return 1;
}
/**
* Initializes the main home screen window
*/