Beispiel #1
0
 public void Init(OpenAPI api, MenuAPI menuAPI, HUDAPI hudAPI)
 {
     _api     = api;
     _menuAPI = menuAPI;
     InitMenuItems();
     _root.Enabled += OnEnabled;
 }
Beispiel #2
0
 public void Init(OpenAPI api, MenuAPI menuAPI, HUDAPI hudAPI)
 {
     _api                          = api;
     _menuAPI                      = menuAPI;
     _hudAPI                       = hudAPI;
     _userId                       = _api.User.UserId.Value;
     _chatBlock                    = new ChatMessageBlockCtrl(api);
     _chatBlock.MessageSend       += OnMessageSend;
     _recentBlock                  = new RecentBlockCtrl(api);
     _recentBlock.ChatSelected    += OnChatSelected;
     _friendsBlock                 = new FriendsBlockCtrl(api);
     _friendsBlock.FriendSelected += OnFriendSelected;
     InitMenuItems();
     _root.Enabled  += OnEnabled;
     _root.Disabled += OnDisabled;
     RenderFriends();
 }
Beispiel #3
0
 public void Init(OpenAPI api, MenuAPI menuAPI, HUDAPI hudAPI)
 {
     this._menuAPI = menuAPI;
     this._api     = VrLifeCore.GetClosedAPI(_info);
     CreateMenuItems();
 }