Beispiel #1
0
        public static void OnAddTaskbarApplet(WorldClient client, INetPacketStream packet)
        {
            var addTaskbarAppletPacket    = new AddTaskbarAppletPacket(packet);
            var addTaskbarAppletEventArgs = new AddTaskbarAppletEventArgs(addTaskbarAppletPacket.SlotIndex, addTaskbarAppletPacket.Type, addTaskbarAppletPacket.ObjectId, addTaskbarAppletPacket.ObjectType, addTaskbarAppletPacket.ObjectIndex, addTaskbarAppletPacket.UserId, addTaskbarAppletPacket.ObjectData, addTaskbarAppletPacket.Text);

            client.Player.NotifySystem <TaskbarSystem>(addTaskbarAppletEventArgs);
        }
Beispiel #2
0
 private void HandleAddAppletTaskbarShortcut(IPlayerEntity player, AddTaskbarAppletEventArgs e)
 {
     player.Taskbar.Applets.CreateShortcut(new Shortcut(e.SlotIndex, e.Type, e.ObjId, e.ObjectType, e.ObjIndex, e.UserId, e.ObjData, e.Text));
     Logger.LogDebug("Created Shortcut of type {0} on slot {1} for player {2} on the Applet Taskbar", Enum.GetName(typeof(ShortcutType), e.Type), e.SlotIndex, player.Object.Name);
 }