Example #1
0
 private void bApply_onLeftClick(object sender, EventArgs e)
 {
     HEROsModNetwork.Group group = new HEROsModNetwork.Group(dropdown.GetItem(dropdown.SelectedItem));
     group.ID = HEROsModNetwork.Network.Groups[dropdown.SelectedItem].ID;
     group.ImportPermissions(ExportPermissions());
     HEROsModNetwork.LoginService.RequestSetGroupPermissions(group);
 }
Example #2
0
 void dropdown_selectedChanged(object sender, EventArgs e)
 {
     if (player == null)
     {
         HEROsModNetwork.Group playersNewGroup = HEROsModNetwork.Network.GetGroupByName(dropdown.GetItem(dropdown.SelectedItem));
         HEROsModNetwork.LoginService.RequestSetOfflinePlayerGroup(playerIndex, playersNewGroup);
     }
     else
     {
         //send new group to servera
         HEROsModNetwork.Group playersNewGroup = HEROsModNetwork.Network.GetGroupByName(dropdown.GetItem(dropdown.SelectedItem));
         HEROsModNetwork.LoginService.RequestSetPlayerGroup(playerIndex, playersNewGroup);
     }
 }