Skip to content

Open UnnyNet Window

As UnnyNet has tons of features inside, you need a flexible way of displaying the information. You can have different buttons to open Friends, Leaderboards, Chat, Guild, etc... Thus you need different methods to open the window you want.

Default

Opens Default page or the page, which a player visited the last:

UnnyNet.UnnyNetBase.OpenUnnyNet();
UnnyNet.UnnyNet.openUnnyNet();
unnynet.show();

Leaderboards

Opens Leaderboards Window:

UnnyNet.UnnyNet.OpenLeaderboards();
UnnyNet.UnnyNet.openLeaderboards();
unnynet.openLeaderboards();

Achievements

Open Achievements Window:

UnnyNet.UnnyNet.OpenAchievements();
UnnyNet.UnnyNet.openAchievements();
unnynet.openAchievements();

Friends

Open Friends Window:

UnnyNet.UnnyNet.OpenFriends();
UnnyNet.UnnyNet.openFriends();
unnynet.openFriends();

Chat

Open a specific channel. For example general (channel_id = "1"):

UnnyNet.UnnyNet.OpenChannel("channel_id");
UnnyNet.UnnyNet.openChannel("channel_id");
unnynet.openChannel("channel_id");

Guilds

Open Guilds window, where player can search, create or join guilds:

UnnyNet.UnnyNet.OpenGuilds();
UnnyNet.UnnyNet.openGuilds();
unnynet.openGuilds();

My Guild

Open my Guild window. The Guilds window is opened if the player isn't in a guild:

UnnyNet.UnnyNet.OpenMyGuild();
UnnyNet.UnnyNet.openMyGuild();
unnynet.openMyGuild();