public void Init(OpenAPI api, MenuAPI menuAPI, HUDAPI hudAPI) { _api = api; _menuAPI = menuAPI; InitMenuItems(); _root.Enabled += OnEnabled; }
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(); }
public void Init(OpenAPI api, MenuAPI menuAPI, HUDAPI hudAPI) { this._menuAPI = menuAPI; this._api = VrLifeCore.GetClosedAPI(_info); CreateMenuItems(); }