Method, apparatus, electronic device, and computer program for transferring virtual items

The method and device facilitate efficient batch transfer and retrieval of virtual items in survival construction games by utilizing drag-and-drop operations with storage container tags, addressing the complexity of manual item management.

JP2025521078AActive Publication Date: 2025-07-08TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024564505
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-08-05
Filing Date
2023-05-29
Publication Date
2025-07-08
Estimated Expiration
2043-05-29

AI Technical Summary

Technical Problem

Current survival construction games require players to manually transfer and classify large numbers of virtual items, leading to cumbersome operations and low man-machine interaction efficiency.

Method used

A method and device for transferring virtual items by displaying storage spaces with container tags, allowing items to be batch transferred or retrieved with one click based on the release position of a drag-and-drop operation, reducing the need for repetitive manual actions.

Benefits of technology

Improves item transfer efficiency and man-machine interaction by enabling quick batch transfer and retrieval of similar items, simplifying operations and enhancing user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025521078000001_ABST
    Figure 2025521078000001_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, electronic device, and storage medium for transferring virtual items. The method includes: a step (201) of displaying a first storage space and a second storage space; a step (202) of determining a release position of a first drag-and-drop operation in response to the first drag-and-drop operation; a step (203) of transferring a target virtual item from the first storage space to the first item storage area when the release position is located in the first item storage area; and a step (204) of transferring at least one first type of virtual item in the first storage space to the first item storage area when the release position is located on the target storage container tag.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] [Cross - Reference to Related Applications] This application claims the priority of a Chinese patent application with the application number 202210944071.1 and the invention title "Method, Apparatus, Electronic Device and Storage Medium for Transferring Virtual Items", which was filed on August 5, 2022, and incorporates all of its content by reference herein.

[0002] This application relates to the technical field of computers, and more particularly to a method, apparatus, electronic device and storage medium for transferring virtual items.

Background Art

[0003] With the development of computer technology, the types of games that can be played on terminals are becoming increasingly rich. Survival and construction games are relatively popular games. Survival and construction games take survival and construction as the main themes of the game and play methods. Players can collect various virtual items as survival supplies in the game scene and control virtual objects to build the territory of virtual objects.

Summary of the Invention

Problems to be Solved by the Invention

[0004] Embodiments of this application provide a method, apparatus, electronic device and storage medium for transferring virtual items, which can reduce the complexity of batch item transfer operations and improve the man - machine interaction efficiency. The technical solution is as follows.

Means for Solving the Problems

[0005] According to one aspect, a method for transferring virtual items applied to a terminal is provided. The method includes: A step of displaying a first storage space and a second storage space, wherein a plurality of virtual items are displayed in the first storage space, a plurality of storage container tags are displayed in the second storage space, and each storage container tag corresponds to one item storage area. A step of determining a release position of the first drag-and-drop operation in response to the first drag-and-drop operation, wherein the first drag-and-drop operation is used to drag and drop a target virtual item in the first storage space to the second storage space, and the target virtual item is any one of the virtual items in the first storage space. When the release position is located in the first item storage area, a step of transferring the target virtual item from the first storage space to the first item storage area, wherein the first item storage area is an item storage area corresponding to a target storage container tag among the plurality of storage container tags, and the target storage container tag is any one of the plurality of storage container tags. When the release position is located on the target storage container tag, a step of transferring at least one first type virtual item in the first storage space to the first item storage area, wherein the first type virtual item is a virtual item of the same type as the target virtual item.

[0006] According to one aspect, a virtual item transfer device is provided, and the device includes: A display module for displaying a first storage space and a second storage space, wherein a plurality of virtual items are displayed in the first storage space, a plurality of storage container tags are displayed in the second storage space, and each storage container tag corresponds to one item storage area. A determination module for determining a release position of the first drag-and-drop operation in response to the first drag-and-drop operation, wherein the first drag-and-drop operation is used to drag and drop a target virtual item in the first storage space to the second storage space, and the determination module; When the release position is located in the first item storage area, an item transfer module for transferring the target virtual item from the first storage space to the first item storage area, wherein the first item storage area is an item storage area corresponding to a target storage container tag among the plurality of storage container tags, and the target storage container tag is any one of the plurality of storage container tags, and the item transfer module; When the release position is located on the target storage container tag, the item transfer module is further used to transfer at least one first type virtual item in the first storage space to the first item storage area, and the first type virtual item is a virtual item of the same type as the target virtual item.

[0007] According to one aspect, an electronic device disposed in a terminal is provided. The electronic device includes one or more processors and one or more memories. At least one computer program is stored in the one or more memories. When the at least one computer program is loaded and executed by the one or more processors, the method for transferring virtual items as described above is realized.

[0008] According to one aspect, a storage medium is provided. At least one computer program is stored in the storage medium. When the at least one computer program is loaded and executed by a processor, the method for transferring virtual items as described above is realized.

[0009] According to one aspect, a computer program product is provided, the computer program product including one or more computer programs, the one or more computer programs being stored in a computer-readable storage medium. One or more processors of an electronic device can read the one or more computer programs from the computer-readable storage medium, and by executing the one or more computer programs, the one or more processors can cause the electronic device to execute the above virtual item transfer method.

[0010] Details of one or more embodiments of the present application are presented in the following drawings and description. Other features, objectives, and advantages of the present application will become apparent from the specification, drawings, and claims.

Brief Description of the Drawings

[0011] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings necessary for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. Those skilled in the art can obtain other drawings according to these drawings without creative efforts.

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Figure 8

Figure 9

Figure 10

Figure 11

Figure 12

Figure 13

Figure 14

Embodiments for Carrying Out the Invention

[0012] The following shows the interpretation of the terms related to the present application.

[0013] Virtual scene: It is a virtual environment that is displayed (or provided) when an application program is executed on a terminal. The virtual scene may be a simulation environment of the real world, a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene, and the embodiments of the present application do not limit the dimension of the virtual scene. For example, the virtual scene may include sky, land, ocean, etc., and the land may include environmental elements such as deserts, cities, etc., and the user can control virtual objects to move in the virtual scene. Optionally, the virtual scene may further be used for virtual scene confrontation between at least two virtual objects, and there are virtual resources available for at least two virtual objects in the virtual scene.

[0014] Virtual object: It means a movable object in a virtual scene. The movable object may be a virtual character, a virtual animal, an anime character, etc. For example, it may be a person, an animal, a plant, an oil barrel, a wall, a stone, etc. displayed in the virtual scene. The virtual object may be a virtual avatar representing a user in the virtual scene. The virtual scene may include a plurality of virtual objects, and each virtual object has its own shape and volume in the virtual scene and occupies a part of the space of the virtual scene. Optionally, when the virtual scene is a three-dimensional virtual scene, optionally, the virtual object may be a three-dimensional solid model, and the three-dimensional solid model may be a three-dimensional character constructed based on three-dimensional human skeleton technology. The same virtual object can display (present) different appearances by wearing different skins. In some embodiments, the virtual object may be realized by adopting a 2.5D or 2D model, and the embodiments of the present application do not limit this.

[0015] Optionally, the virtual object may be a player character controlled by an operation on the client, or a non-player character (NPC) that can be installed in the virtual scene and perform interactions, or a neutral virtual object (for example, a field monster that can provide buffs, experience values, virtual treasure boxes, etc.), or a game robot (for example, a companion robot) installed in the virtual scene. Exemplarily, the virtual object is a virtual character competing in the virtual scene. Optionally, the number of virtual objects participating in the interaction of the virtual scene may be pre-set, or may be dynamically determined according to the number of clients participating in the interaction.

[0016] Virtual item: It refers to an object in a virtual scene that can perform interaction actions by virtual objects. The virtual item may be virtual materials, virtual props, virtual plants, virtual animals, virtual clothes, etc. For example, it may be seeds, food ingredients, desks, chairs, tiles, etc. displayed in the virtual scene. The virtual scene may contain a large number of virtual items. Each virtual item has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. Optionally, when the virtual scene is a three-dimensional virtual scene, optionally, the virtual item may be a three-dimensional solid model. In some embodiments, the virtual item may be realized by adopting a 2.5D or 2D model, and the embodiments of the present application do not limit this.

[0017] Survival construction game: A game with survival construction as the game theme and play method. Players can collect various virtual items as survival materials in the game scene, establish their own territories, and also support synthesizing their own living items with the collected raw materials. Survival construction games have diverse play methods and high degrees of freedom. Players can freely explore in the game scene and can also build, create, or combine new items necessary for survival with any item in the game scene. For example, depending on the differences in the game background settings, survival construction games include space survival construction games, sandbox survival construction games, etc.

[0018] In current survival construction games, due to the needs of survival and construction, players always need to control virtual objects to collect a large number of virtual items in the virtual scene. Usually, virtual items are preferentially placed in the backpack of the virtual object. Since the capacity of the backpack is limited, when the backpack is full, in order to continue collecting new virtual items, players need to transfer the virtual items in the backpack to the cabinet.

[0019] In the process of transferring the above virtual items from the backpack to the cabinet, the player always has to manually transfer a large number of virtual items in the backpack to the cabinet frequently, and furthermore, the player has to manually classify the items transferred to the cabinet. For example, in the case of item transfer, the player opens the cabinet interface, selects the virtual item to be transferred in the backpack, drags and drops the selected virtual item from the backpack to the item storage area of the locker where the cabinet is located, and then releases the hand to complete the transfer of one item. Until all similar items are transferred to the cabinet, the above drag-and-drop operation needs to be repeated multiple times, and then the cabinet installation button is clicked to open a pop-up window to rename (re-rename) the cabinet or select the cabinet icon. As can be seen from this, the operation of the above batch item transfer is cumbersome and the operation link is long, so the item transfer efficiency is low, the man-machine interaction efficiency is low, and the user experience is poor.

[0020] In view of this, the embodiments of the present application provide a method for transferring virtual items, and provide an interaction method for quickly transferring similar items from one type of storage space to another type of storage space to meet the frequent needs of players for batch item transfer in survival construction games. For example, similar items can be batch transferred from the backpack to the cabinet with one click, and similar items can also be batch retrieved from the cabinet to the backpack with one click, realizing fast batch item transfer, improving the item transfer efficiency and man-machine interaction efficiency, and optimizing the user experience.

[0021] The system architecture of the embodiments of the present application will be described below.

[0022] FIG. 1 is a schematic diagram of an implementation environment of a method for transferring virtual items provided by an embodiment of the present application. Referring to FIG. 1, the implementation environment includes a first terminal 120, a server 140, and a second terminal 160.

[0023] An application program that supports a virtual scene is installed and executed on the first terminal 120. Optionally, the application program includes any one of a survival construction game, an open-world game, a management construction game, an exploration game, a sandbox game, an FPS (First-Person Shooting) game, a TPS (Third-Personal Shooting) game, an MOBA (Multiplayer Online Battle Arena) game, a virtual reality application program, a 3D map program, or a multiplayer equipment-based survival game.

[0024] In some embodiments, the first terminal 120 is a terminal used by a first user. When the application program is executed on the first terminal 120, a user interface of the application program is displayed on the screen of the first terminal 120, and based on an opening operation in the user interface by the first user, the application program loads and displays a virtual scene. The first user operates and activates a first virtual object located in the virtual scene using the first terminal 120. The activity includes at least one of, but is not limited to, adjusting body posture, crawling, walking, running, cycling, jumping, driving, picking up, shooting, attacking, throwing, and confrontation. Exemplarily, the first virtual object may be a virtual character, such as a simulation character or an anime character. The first terminal 120 can control the first virtual object to pick up or collect virtual items in the virtual scene.

[0025] The first terminal 120 and the second terminal 160 are directly or indirectly communicatively connected to the server 140 via a wireless network or a wired network.

[0026] The server 140 includes at least one of a single server, multiple servers, a cloud computing platform, or a virtualization center. The server 140 provides backend services to an application program that supports a virtual scene. Optionally, the server 140 is responsible for the main computing operations, and the first terminal 120 and the second terminal 160 are responsible for secondary computing operations, or the server 140 is responsible for secondary computing operations, and the first terminal 120 and the second terminal 160 are responsible for the main computing operations, or collaborative computing is performed using a distributed computing architecture among the server 140, the first terminal 120, and the second terminal 160.

[0027] Optionally, the server 140 is an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0028] An application program that supports a virtual scene is installed and executed on the second terminal 160. Optionally, the application program includes any one of a survival construction game, an open world game, a management construction game, an exploration game, a sandbox game, a first-person shooter (FPS) game, a third-person shooter (TPS) game, a multiplayer online battle arena (MOBA) game, a virtual reality application program, a 3D map program, or a multiplayer survival game with tools.

[0029] In some embodiments, the second terminal 160 is a terminal used by a second user. When the application program is executed on the second terminal 160, a user interface of the application program is displayed on the screen of the second terminal 160, and based on an opening operation in the user interface by the second user, a virtual scene is loaded and displayed in the application program. The second user operates and activates a second virtual object located in the virtual scene using the second terminal 160. The activity includes, but is not limited to, at least one of adjustment of body posture, crawling, walking, running, cycling, jumping, driving, picking up, shooting, attacking, throwing, and confrontation. Exemplarily, the second virtual object may be another type of virtual character different from the first virtual object, such as a simulated character or an anime character. The second terminal 160 can control the second virtual object to pick up or collect virtual items in the virtual scene.

[0030] In some embodiments, the first virtual object controlled by the first terminal 120 is in the same virtual scene as the second virtual object controlled by the second terminal 160. In this case, the first virtual object can interact with the second virtual object in the virtual scene.

[0031] Optionally, the first virtual object and the second virtual object are in an adversarial relationship. For example, the first virtual object and the second virtual object belong to different camps or teams, or the first virtual object and the second virtual object are in a teammate relationship. For example, the first virtual object and the second virtual object belong to the same camp, the same team, have a friendship relationship, or have temporary communication permissions.

[0032] In some embodiments, the first terminal 120 or the second terminal 160 displays a first storage space and a second storage space, and a plurality of storage container tags are displayed in the second storage space, and each storage container tag corresponds to one item storage area. According to the virtual item transfer method according to the embodiments of the present application, when a drag-and-drop operation of dragging a target virtual item from the first storage space to the second storage space is detected, the release position of the drag-and-drop operation is determined. When the release position is located in the item storage area corresponding to the target storage container tag, the target virtual item is directly transferred from the first storage space to the item storage area corresponding to the target storage container tag. When the release position is located on the target storage container tag, all virtual items of the same type as the target virtual item are batch transferred to the item storage area corresponding to the target storage container tag. For example, the first storage space is a portable storage space such as a backpack or a luggage of virtual objects. The second storage space is a non-portable storage space such as a cabinet, a warehouse, a house, a home, a base, etc. of virtual objects. In this way, it is possible to realize batch transfer of virtual items and similar items with one click, and greatly improve the item transfer efficiency and the man-machine interaction efficiency.

[0033] Optionally, the application programs installed on the first terminal 120 and the second terminal 160 are the same, or the application programs installed on the two terminals are the same type of application programs on different operating system platforms. The first terminal 120 and the second terminal 160 both refer to one of a plurality of terminals, and the embodiments of the present application are described by taking only the first terminal 120 and the second terminal 160 as examples.

[0034] The device types of the first terminal 120 and the second terminal 160 are the same or different. The device types include, but are not limited to, at least one of smartphones, tablet computers, smart speakers, smartwatches, smart personal computers, portable game devices, in-vehicle terminals, laptop computers, and desktop computers. For example, both the first terminal 120 and the second terminal 160 are smartphones, or other portable game devices. In the following embodiments, the example where the terminal includes a smartphone will be used for explanation.

[0035] As will be understood by those skilled in the art, the number of the above terminals may be more or less. For example, there may be only one of the above terminals, or there may be dozens or hundreds of the above terminals, or even more. The embodiments of the present application do not limit the number and device type of the terminals.

[0036] Hereinafter, the transfer flow of the batch items in the embodiments of the present application will be briefly introduced.

[0037] FIG. 2 is a flowchart of the method for transferring virtual items provided by the embodiment of the present application. Referring to FIG. 2, the embodiment is executed by an electronic device, taking the example that the electronic device is a terminal, and the embodiment includes steps 201 to 204. 201. The terminal displays a first storage space and a second storage space. A plurality of virtual items are displayed in the first storage space, and a plurality of storage container tags are displayed in the second storage space. Each storage container tag corresponds to one item storage area.

[0038] The terminal according to the embodiment of the present application refers to any electronic device used by a user that supports transferring virtual items between different storage spaces. An application program that supports a virtual scene is installed and executed on the terminal. Optionally, the application program includes a survival construction game, an open-world game, a management construction game, an exploration game, a sandbox game, a first-person shooter (FPS) game, a third-person shooter (TPS) game, a multiplayer online battle arena (MOBA) game, a virtual reality application program, a three-dimensional map program, or a multiplayer survival game of the equipment type, etc.

[0039] The virtual item according to the embodiment of the present application refers to an object that can be collected by a virtual object in a virtual scene and stored in a storage space. Optionally, the virtual item includes virtual supplies, virtual props, virtual plants, virtual animals, or virtual clothing, etc.

[0040] The storage space according to the embodiment of the present application refers to a virtual space where virtual items can be stored temporarily or permanently. For example, the storage space may be divided into a portable storage space and a non-portable storage space. The portable storage space refers to a storage space that can move following the actions of a virtual object, such as the backpack, luggage, parcel, supply bag, etc. of the virtual object. The non-portable storage space refers to a storage space that cannot move following the actions of a virtual object, such as the cabinet, safe, warehouse, house, family, base, etc. of the virtual object.

[0041] Optionally, the virtual object can be bound to the storage space, and in that case, the storage space opens relevant operation permissions only for the already bound virtual object. For example, the operation permissions include item storage permission, item retrieval permission, item usage permission, item discard permission, etc. In this way, the security of the virtual items stored in the storage space can be guaranteed, and it is possible to avoid the virtual object losing the virtual items it owns.

[0042] Exemplarily, the first storage space and the second storage space according to the embodiments of the present application mean two different storage spaces bound to the same virtual object. For example, the first storage space is the portable storage space A, and the second storage space is the non-portable storage space B. Further, for example, the first storage space is the portable storage space A1, and the second storage space is the portable storage space A2. Further, for example, the first storage space is the non-portable storage space B1, and the second storage space is the non-portable storage space B2. The embodiments of the present application do not specifically limit this.

[0043] In some embodiments, the user can start a game application on the terminal, load and display a virtual scene through the game application, and control a virtual object in the virtual scene to collect or pick up a virtual item. When the user has a need to transfer a virtual item from one storage space to another storage space, the user can open the first storage space where the virtual item to be transferred is stored, and further open the second storage space to which the virtual item is to be transferred, whereby the terminal displays the first storage space and the second storage space. In the embodiments of the present application, an example will be described by taking the first storage space as a portable storage space and the second storage space as a storage space different from the first storage space. That is, the second storage space may be a portable storage space or a non-portable storage space.

[0044] In some embodiments, the user opens the first storage space through the UI (User Interface) control of the first storage space. For example, if the first storage space is a backpack of virtual objects, the UI control of the first storage space means a backpack control. Similarly, the user opens the second storage space through the UI control of the second storage space. For example, if the second storage space is a cabinet of virtual objects, the UI control of the second storage space means a cabinet control. Optionally, when there is a need for the user to transfer virtual items from the backpack to the cabinet, the user can open the backpack interface through the front and back backpack controls and open the cabinet interface through the cabinet control. As a result, both the backpack interface (i.e., the first storage space) and the cabinet interface (i.e., the second storage space) are displayed on the terminal.

[0045] In some other embodiments, the user enters the item transfer interface through the item management control. The item management control may be a UI control directly displayed in the virtual scene, or the item management control may be an interaction option that is expanded and displayed after the user clicks on the menu control in the virtual scene, or the item management control may be an installation option that is displayed after the user enters the backpack interface through the backpack control. The embodiments of the present application do not specifically limit the item management control. The item transfer interface displayed by the game application includes the first storage space and the second storage space bound to the virtual object.

[0046] In some embodiments, a plurality of virtual items to be transferred are displayed in the first storage space. All of the plurality of virtual items are stored in the first storage space. The plurality of virtual items can include virtual items of one or more different item types. For example, the plurality of virtual items can include 10 sets of cotton (each set contains 20 pieces of cotton), 6 sets of ore (each set contains 20 pieces of ore), 4 sets of crabs (each set contains 20 crabs), etc. The embodiments of the present application do not specifically limit the item types included in the plurality of virtual items.

[0047] In some embodiments, a plurality of storage container tags are displayed in the second storage space, and each storage container tag corresponds to one item storage area. Exemplarily, the plurality of storage container tags are displayed in the second storage space in the form of a storage container list, or the plurality of storage container tags are displayed in the second storage space in a tile or other arrangement manner. The embodiments of the present application do not specifically limit the display manner of the storage container tags. Each storage container tag corresponds to one storage container in the second storage space, and each storage container has its own item storage area. For example, when the second storage space is a "cabinet", the storage container tag "Locker No. 1" corresponds to the first locker in the cabinet, and the storage space of the first locker is the item storage area corresponding to the storage container tag.

[0048] In some embodiments, each storage container tag displayed in the second storage space is an interaction-enabled UI control. When the user selects any storage container tag, the UI control corresponding to the storage container tag is set to the selected state, whereby the item storage area corresponding to the selected storage container tag is displayed in the second storage space. By the above method, the user can conveniently check at any time which virtual items are stored in the item storage area corresponding to the selected storage container tag, improving the management efficiency of virtual items.

[0049] In response to the first drag-and-drop operation, the terminal determines the release position of the first drag-and-drop operation, and the first drag-and-drop operation is used to drag and drop the target virtual item in the first storage space to the second storage space.

[0050] When the terminal detects an operation of dragging and dropping the target virtual item in the first storage space to the second storage space, it confirms that the first drag-and-drop operation has been detected.

[0051] In some embodiments, for the target virtual item among the plurality of virtual items stored in the first storage space, when the user performs a drag-and-drop operation of dragging and dropping the target virtual item to the second storage space, the terminal determines the release position of the drag-and-drop operation in response to the drag-and-drop operation of dragging and dropping the target virtual item to the second storage space. For the sake of convenience of description, dragging and dropping the target virtual item in the first storage space to the second storage space is referred to as the first drag-and-drop operation. For the target virtual item in the first storage space, when the user performs the first drag-and-drop operation, the terminal determines the release position of the first drag-and-drop operation. The release position means the position where the user releases the hand after dragging and dropping the target virtual item to the second storage space, that is, it corresponds to the operation end point of the drag-and-drop trajectory of the drag-and-drop operation. Note that the target virtual item is any virtual item in the first storage space.

[0052] In some embodiments, the second storage space includes both an area for displaying storage container tags and an item storage area corresponding to the storage container tags. When the release position is located in the item storage area corresponding to the target storage container tag, step 203 below is executed. When the release position is located on the target storage container tag, step 204 below is executed. The target storage container tag may be any one of the plurality of storage container tags displayed in the second storage space, and the embodiments of the present application do not specifically limit this.

[0053] 203. When the release position is located in the first item storage area, the terminal transfers the target virtual item from the first storage space to the first item storage area. The first item storage area is the item storage area corresponding to the target storage container tag among the plurality of storage container tags, and the target storage container tag is any one of the plurality of storage container tags.

[0054] In some embodiments, when the terminal detects that the release position determined in step 202 is located in the first item storage area, that is, the item storage area corresponding to the target storage container tag in the second storage space, it means that the user has dragged and dropped the target virtual item from the first storage space to the item storage area displayed in the second storage space. In this case, a transfer operation for a single set of virtual items is triggered. That is, the terminal determines the target virtual item selected at the start position of the first drag-and-drop operation, further determines the first item storage area where the release position of the first drag-and-drop operation is located, and further transfers the target virtual item from the first storage space to the first item storage area in the second storage space. The target virtual item means any set of virtual items stored in the first storage space selected at the start position of the first drag-and-drop operation, and the target storage container tag means the storage container tag corresponding to the item storage area where the release position of the drag-and-drop operation is located.

[0055] In step 203, an interaction method is provided that performs an item transfer operation only on the selected target virtual item. Note that a set of target virtual items selected by a drag-and-drop operation may include one or more target virtual items. This is because when the target virtual items are stored in the first storage space, they may be merged / stacked so as to merge a plurality of target virtual items into a set of target virtual items for management and storage, thereby saving the storage resources of the first storage space. For example, a set of cottons displayed in the first storage space includes 20 cottons. In this case, when the user performs an item transfer operation, a set of virtual items is used as the operation unit. That is, transferring a set of cottons at once is equivalent to transferring 20 cottons included in a set of cottons at once.

[0056] Note that a set of target virtual items may include one or more target virtual items, but the terminal responds to the drag-and-drop operation and performs an item transfer only on the target virtual items selected by the drag-and-drop operation. If only one target virtual item is included in the target virtual items selected by the drag-and-drop operation, one target virtual item will be transferred at once. If a plurality of target virtual items are included in the target virtual items selected by the drag-and-drop operation, a plurality of target virtual items will be transferred at once. However, the terminal does not perform a transfer operation on items other than the target virtual items selected by the current drag-and-drop operation.

[0057] 204. When the release position is located on the target storage container tag, the terminal transfers at least one first type virtual item in the first storage space to the first item storage area, and the first type virtual item is a virtual item of the same type as the target virtual item.

[0058] In some embodiments, when the terminal detects that the release position determined in step 202 is located at the target storage container tag (not the item storage area) in the second storage space, it means that the user has dragged and dropped the target virtual item from the first storage space onto the target storage container tag displayed in the second storage space. In this case, a batch transfer operation for all virtual items of the same type is triggered. That is, the terminal determines the target virtual item selected at the start position of the drag-and-drop operation, further determines the target storage container tag where the release position of the drag-and-drop operation is located, further determines all virtual items of the same type as the target virtual item from the first storage space, and finally transfers all virtual items of the same type as the target virtual item from the first storage space to the item storage area corresponding to the target storage container tag in the second storage space. The target virtual item means any set of virtual items stored in the first storage space selected at the start position of the drag-and-drop operation, and the target storage container tag means the storage container tag where the release position of the drag-and-drop operation is located. Optionally, all virtual items of the same type as the above target virtual item include the target virtual item itself and virtual items of the same type having the same item type as the target virtual item in the first storage space.

[0059] In some embodiments, after the user drags and drops the target virtual item displayed in the first storage space onto the target storage container tag displayed in the second storage space and then releases the hand (i.e., the finger leaves the terminal screen), the terminal detects the first drag-and-drop operation, that is, the drag-and-drop operation of dragging the target virtual item in the first storage space to the second storage space, and the release position of the first drag-and-drop operation is located on the target storage container tag in the second storage space. In this case, the terminal determines the target virtual item associated with the start position of the drag-and-drop operation (representing the target virtual item selected by this drag-and-drop operation), and determines at least one first type of virtual item from the plurality of virtual items stored in the first storage space, that is, all virtual items of the same type as the target virtual item. For example, the terminal determines the item type of the target virtual item and obtains all virtual items having the item type from the plurality of virtual items stored in the first storage space. All virtual items include the target virtual item itself and the same type of virtual items having the same item type as the target virtual item in the first storage space. Next, the terminal transfers all virtual items of the same type as the target virtual item in the first storage space to the item storage area corresponding to the target storage container tag in a batch.

[0060] Optionally, the start position of the drag-and-drop operation means the starting point of the drag-and-drop trajectory of the drag-and-drop operation, and the virtual item associated with the start position means which virtual item's display area the start position is located in. Usually, in the first storage space, each virtual item has one display area, and according to which virtual item's display area the start position is located in, it can be determined which virtual item the virtual item associated with the start position is.

[0061] Optionally, after the determination of the target virtual item selected by a drag-and-drop operation is completed, the terminal uses the item identifier of the target virtual item as the item type of the target virtual item. For example, if the target virtual item selected by a drag-and-drop operation is "cotton", the item identifier 031 of "cotton" is used as the item type of the target virtual item. Optionally, after the determination of the target virtual item selected by a drag-and-drop operation is completed, the terminal can further use the type identifier associated with the target virtual item selected by the drag-and-drop operation as the item type of the target virtual item. For example, if the virtual item selected by a drag-and-drop operation is "cotton", after determining the type identifier 001 associated with "cotton" (for example, the type identifier 001 represents "crop"), the type identifier 001 is used as the item type of the target virtual item. The embodiments of the present application do not specifically limit the acquisition method of the item type.

[0062] In the above process, when the terminal detects a drag-and-drop operation and the release position of the drag-and-drop operation is located on a storage container tag (not an item storage area) displayed in the second storage space, it indicates to the user that there is a need for batch item transfer for the selected virtual item and its similar items. Further, the terminal determines the target virtual item selected by the drag-and-drop operation, and according to the item type of the target virtual item, acquires all virtual items similar to the target virtual item from the plurality of virtual items stored in the first storage space. All virtual items similar to the target virtual item include the target virtual item itself and similar virtual items having the same item type as the target virtual item in the first storage space. In other words, similar virtual items mean other virtual items in the first storage space that are not selected by the drag-and-drop operation and have the same item type as the target virtual item, and similar virtual items can be referred to as similar items. Next, the terminal automatically transfers all virtual items similar to the above target virtual item in batches from the first storage space to the item storage area corresponding to the target storage container tag in the second storage space.

[0063] Note that the above target virtual item means a set of virtual items selected by a drag-and-drop operation, and a set of target virtual items may include one or more target virtual items. For example, a set of cotton is selected by a drag-and-drop operation, and a set of cotton contains 20 cottons. Similarly, the above similar virtual items mean one set or multiple sets of virtual items that are not selected by a drag-and-drop operation but have the same item type as the target virtual items. In other words, the similar virtual items may be one set or multiple sets, and each set of similar virtual items may contain one or more similar virtual items. For example, a set of cotton is selected by a drag-and-drop operation, and a total of 8 sets of cotton are stored in the first storage space. In addition to the set of cotton selected by the drag-and-drop operation, the remaining 7 sets of similar cotton can be obtained, and each of the 7 sets of cotton contains 20 cottons. Finally, all the virtual items of the same kind as the target virtual item "cotton" obtained by the terminal need to be transferred from the first storage space to the item storage area corresponding to the target storage container tag, including one set of target virtual items (a set of cotton selected by the drag-and-drop operation) and 7 sets of similar virtual items (7 sets of similar cotton in the first storage space), that is, a total of 8 sets of cotton, namely 160 cottons.

[0064] In some embodiments, during the process of item transfer, the terminal removes all the virtual items of the same kind as the target virtual item from the first storage space and displays them in the item storage area corresponding to the target storage container tag in the second storage space, so as to realize batch item transfer for all the virtual items of the same kind as the target virtual item, and intuitively display to the user that the item transfer is completed.

[0065] In some embodiments, during the process of item transfer, the terminal sends a batch item transfer request to the server. The batch item transfer request includes the respective item numbers of all virtual items of the same type as the target virtual item. It should be noted that the item number is used to indicate the specific number of the virtual item, while the item identifier is used to indicate the type of the virtual item. The item numbers of different virtual items are different and unique, and the item identifiers of virtual items of the same type are the same. For example, the item identifier of a certain virtual item is 031, indicating that the virtual item is "cotton", and the item number of the virtual item is 000010, indicating that the virtual item is the 10th virtual item collected from virtual objects.

[0066] In some embodiments, the terminal stores the respective item numbers of all virtual items of the same type as the target virtual item in an item number queue, and packages the item number queue into the batch item transfer request. In response to the batch item transfer request, the server obtains it by analyzing the item number queue. The server removes each item number in the item number queue from the storage metadata of the first storage space, and adds each item number to the storage metadata associated with the target storage container tag of the second storage space, thereby realizing the batch dump of all virtual items indicated by each item number.

[0067] In some other embodiments, after determining the target virtual item selected by a drag-and-drop operation, the terminal packages the item number and item type of the target virtual item into the batch item transfer request and sends the batch item transfer request to the server. In response to the batch item transfer request, the server obtains the item number and item type of the target virtual item by analysis. Next, the server queries the storage metadata of the first storage space to determine the respective item numbers of all virtual items of the same type as the target virtual item stored in the first storage space. The server deletes all the respective item numbers of all virtual items of the same type as the target virtual item in the request from the storage metadata of the first storage space. Next, the server adds all the respective item numbers of all virtual items of the same type as the target virtual item to the storage metadata associated with the target storage container tag of the second storage space, thereby realizing a batch dump for all virtual items of the same type as the target virtual item.

[0068] All the above selectable technical solutions can form selectable embodiments of the present disclosure by using any combination, which will not be elaborated (explained again) here.

[0069] When a drag-and-drop operation from one storage space to another is detected, the method provided by the embodiment of the present application provides a single transfer operation for the currently selected virtual item and a batch transfer operation for all virtual items of the same type respectively based on the difference in the release position of the drag-and-drop operation. That is, when the release position is located in the item storage area, only the currently selected virtual item is transferred. When the release position is located in the storage container tag, all virtual items of the same type are transferred in batch. By controlling the release position of the drag-and-drop operation, the user can flexibly control which virtual items to transfer this time. Moreover, with only one drag-and-drop operation, the user can control the batch transfer of items of the same type, avoiding repeatedly performing the item transfer operation manually multiple times by the user, reducing the complexity of the user's operation, and improving the item transfer efficiency and the man-machine interaction efficiency.

[0070] Hereinafter, the transfer process of the batch items in the embodiment of the present application will be described in detail.

[0071] FIG. 3 is a flowchart of the virtual item transfer method provided by the embodiment of the present application. Referring to FIG. 3, the embodiment is executed by an electronic device. Taking the electronic device as a terminal as an example, the embodiment includes steps 301 to 307. 301. The terminal displays a first storage space and a second storage space. A plurality of virtual items are displayed in the first storage space, and a plurality of storage container tags are displayed in the second storage space. Each storage container tag corresponds to one item storage area.

[0072] Note that a plurality of storage container tags are displayed in the second storage space, and each storage container tag corresponds to one item storage area. Exemplarily, in the second storage space, a plurality of storage container tags are displayed in the form of a storage container list, or in the second storage space, the plurality of storage container tags are displayed in a tile or other arrangement manner. The embodiments of the present application do not specifically limit the display manner of the storage container tags. Each storage container tag corresponds to one storage container in the second storage space, and each storage container has its own item storage area. For example, when the second storage space is a "cabinet", the storage container tag "Locker No. 1" corresponds to the first locker in the cabinet, and the storage space of the first locker is the item storage area corresponding to the storage container tag.

[0073] In some embodiments, each storage container tag displayed in the second storage space is an interaction-capable UI (User Interface) control. When the user selects any storage container tag, the UI control corresponding to the storage container tag is set to the selected state, and thereby, in the second storage space, the item storage area corresponding to the selected storage container tag is displayed. By the above method, the user can conveniently check at any time which virtual items are stored in the item storage area corresponding to the selected storage container tag, and improve the management efficiency of the virtual items.

[0074] In some embodiments, the user can start a game application on the terminal, load and display a virtual scene through the game application, and control a virtual object to collect or pick up virtual items in the virtual scene. When the user has a need to transfer a virtual item from one storage space to another storage space, the user can open the first storage space where the virtual item to be transferred is stored, and further open the second storage space to which the virtual item is to be transferred, whereby the terminal displays the first storage space and the second storage space.

[0075] In the embodiments of the present application, an example will be described in which the first storage space is a portable storage space and the second storage space is a storage space different from the first storage space. That is, the second storage space may be a portable storage space or a non-portable storage space. Exemplarily, the first storage space is a portable storage space such as a backpack, a piece of luggage, a parcel, a supply bag, etc. of virtual objects controlled by the terminal. The second storage space is a non-portable storage space such as a cabinet, a safe, a warehouse, a house, a home, a base, etc. that does not move following the virtual object.

[0076] In some embodiments, the user opens the first storage space through the UI control of the first storage space. For example, when the first storage space is a backpack of a virtual object, the UI control of the first storage space means a backpack control. Similarly, the user opens the second storage space through the UI control of the second storage space. For example, when the second storage space is a cabinet of a virtual object, the UI control of the second storage space means a cabinet control. Optionally, when there is a need for the user to transfer a virtual item from the backpack to the cabinet, the user can open the backpack interface through the front and back backpack controls and open the cabinet interface through the cabinet control, whereby both the backpack interface (i.e., the first storage space) and the cabinet interface (i.e., the second storage space) are displayed on the terminal.

[0077] In some other embodiments, the user enters the item transfer interface through the item management control, which may be a UI control directly displayed in the virtual scene. Or, the item management control is an interaction option that is expanded and displayed after the user clicks on the menu control in the virtual scene. Or, the item management control is an installation option that is displayed after the user enters the backpack interface through the backpack control. The embodiments of the present application do not specifically limit the item management control. The item transfer interface displayed by the game application includes a first storage space and a second storage space bound to the virtual object.

[0078] In some embodiments, a plurality of virtual items to be transferred are displayed in the first storage space. All of the plurality of virtual items are stored in the first storage space. The plurality of virtual items can include virtual items of one or more different item types. For example, the plurality of virtual items include 10 sets of cotton (each set contains 20 pieces of cotton), 6 sets of ore (each set contains 20 pieces of ore), 4 sets of crabs (each set contains 20 crabs), etc. The embodiments of the present application do not specifically limit the item types included in the plurality of virtual items.

[0079] In some embodiments, a list of storage containers is displayed in the second storage space. The list of storage containers includes a plurality of storage container tags. Each storage container tag is an interaction-enabled UI control. At the same time, in the second storage space, an item storage area corresponding to the storage container tag to which the currently selected interaction-enabled UI control belongs is further displayed.

[0080] Exemplarily, when the user selects any storage container tag, the interaction-enabled UI control of the storage container tag is set to the selected state, whereby in the second storage space, an item storage area corresponding to the selected storage container tag is displayed. Or, when the user does not select any storage container tag, by default, the interaction-enabled UI control of the first storage container tag in the storage container list is set to the selected state, and in the second storage space, an item storage area corresponding to the selected storage container tag is displayed. By the above method, the user can conveniently check at any time which virtual items are stored in the item storage area corresponding to the selected storage container tag, and improve the management efficiency of virtual items.

[0081] Exemplarily, in the storage container list, when there is no interaction-enabled UI control for the selected storage container tag, only the folded storage container list is displayed in the second storage space, and the item storage area is not displayed. When the interaction-enabled UI control of any storage container tag in the storage container list is in the selected state, the storage container tag to which the interaction-enabled UI control in the selected state in the storage container list in the second storage space belongs is highlighted and displayed, and at the same time, the item storage area corresponding to this storage container tag is also displayed in the second storage space.

[0082] In the storage container list, only the selection of one type of storage container tag is supported. Thus, whenever the user selects a new storage container tag, the interaction-enabled UI control for the selected new storage container tag is set to the selected state, and at the same time, the interaction-enabled UI control for the previously selected storage container tag is automatically switched from the selected state to the unselected state. Alternatively, in the storage container list, it may also be supported to select multiple types of storage container tags simultaneously. Thus, whenever the user selects a new storage container tag, the interaction-enabled UI control for the selected new storage container tag is set to the selected state, and at the same time, the interaction-enabled UI control for the storage container tags in the originally selected state remains unchanged. This corresponds to the display of the item storage areas corresponding to the storage container tags to which each of the interaction-enabled UI controls in the selected state belongs in the second storage space.

[0083] In some other embodiments, in the second storage space, by default, the storage container list and the item storage areas corresponding to each of the storage container tags in the storage container list are displayed. That is, it corresponds to displaying the item storage areas corresponding to each of all the storage container tags by default without distinguishing the interaction-enabled UI controls for the storage container tags between the selected state and the unselected state. With the above implementation method, it is convenient for the user to check which virtual items are currently stored in the item storage areas corresponding to each storage container tag, contributing to intuitively displaying the storage status of the second storage space. Thereby, it facilitates the user to create a batch item transfer strategy and improves the item management efficiency.

[0084] FIG. 4 is a schematic diagram of a storage space display interface provided by an embodiment of the present application. As shown in FIG. 4, in a virtual scene 400, a first storage space 410 and a second storage space 420 are displayed. The first storage space 410 includes three different types of virtual items 411-413. Six storage container tags 421-426 are displayed in the second storage space 420. Currently, all the interaction-enabled UI controls of the storage container tags 422-426 are in an unselected state, but the interaction-enabled UI control of the storage container tag 421 is in a selected state. Therefore, an item storage area 4211 corresponding to the selected storage container tag 421 is further displayed in the second storage space 420. As can be seen from this, since only the interaction-enabled UI control of the storage container tag 421 is in a selected state, the storage container tag 421 is prominently displayed in the second storage space 420. Exemplarily, the item storage area corresponding to the storage container tag 421 is empty, that is, no virtual item is stored in the item storage area corresponding to the storage container tag 421.

[0085] 302. In response to the first drag-and-drop operation, the terminal determines the release position of the first drag-and-drop operation. The first drag-and-drop operation is used to drag and drop a target virtual item in the first storage space to the second storage space, and the target virtual item is any virtual item in the first storage space.

[0086] The target virtual item means any set of virtual items selected by the first drag-and-drop operation. For example, the target virtual item means that, according to the position of the start position of the drag-and-drop operation in the display area of any virtual item in the first storage space, the virtual item corresponding to the start position is determined as the target virtual item.

[0087] In some embodiments, the user's finger first touches and presses a target virtual item in the first storage space. After the touch sensor of the terminal detects the pressure signal applied to the terminal screen from the user's finger, it determines the touch point associated with the pressure signal as the starting position of the drag-and-drop operation. Next, the terminal continuously senses the pressure signal applied from the user's finger through the touch sensor. Since the user's finger swipes dynamically, the terminal can determine the drag-and-drop trajectory of the user's finger based on a series of touch points sensed in real time. Next, when the touch sensor does not sense the pressure signal even after exceeding a preset time duration, it indicates that the user's finger has left the terminal screen (i.e., the drag-and-drop operation has stopped and the drag-and-drop operation has ended). In this case, the release position of the drag-and-drop trajectory is determined. The preset time duration is any numerical value greater than 0.

[0088] In some embodiments, after the starting position and the release position of the drag-and-drop trajectory are determined by the above method, when the screen coordinates of the starting position are located in the display area of any virtual item in the first storage space, and the screen coordinates of the release position are located in the second storage space, it is determined that the first drag-and-drop operation according to step 302 above, that is, the drag-and-drop operation of dragging and dropping the target virtual item in the first storage space to the second storage space, has been detected.

[0089] In some embodiments, in response to the first drag-and-drop operation, the terminal determines the virtual item associated with the starting position as the target virtual item selected by the first drag-and-drop operation. At the same time, the terminal obtains the release position of the first drag-and-drop operation and determines which area of the second storage space the release position is located in. Optionally, the virtual item associated with the starting position above means which virtual item's display area in the first storage space the screen coordinates of the starting position are located in.

[0090] Since the second storage space includes both the area for displaying the storage container tag and the item storage area corresponding to the storage container tag, when the release position is located in the item storage area, the following step 303 is executed, and when the release position is located on the storage container tag, the following step 304 is executed.

[0091] 303. When the release position is located in the first item storage area, the terminal transfers the target virtual item from the first storage space to the first item storage area. The first item storage area is the item storage area corresponding to the target storage container tag among the plurality of storage container tags, and the target storage container tag is any one of the plurality of storage container tags.

[0092] The target storage container means that the release position of the drag-and-drop operation is at any of the storage container tags indicated in the second storage space. For example, when the release position is located in the item storage area, the target storage container tag means the storage container tag corresponding to the item storage area where the release position is located. When the release position is located on the storage container tag, the target storage container tag is the storage container tag where the release position is located.

[0093] The embodiment of the above step 303 is the same as step 203 of the previous embodiment, and thus will not be elaborated here.

[0094] 304. When the release position is located on the target storage container tag, the terminal determines at least one first type virtual item from the plurality of virtual items stored in the first storage space based on the item type of the target virtual item. The first type virtual item is a virtual item having the item type.

[0095] At least one first type virtual item is a virtual item of the same type as the target virtual item.

[0096] In some embodiments, when the terminal detects that the release position determined in step 302 above is located on the target storage container tag (not the item storage area) in the second storage space, it indicates that the user has dragged and dropped the target virtual item from the first storage space onto the target storage container tag displayed in the second storage space. In this case, a batch transfer operation for all virtual items of the same type is triggered, that is, the terminal determines all virtual items of the same type as the target virtual item from the first storage space, that is, all first-type virtual items. Then, the terminal transfers all first-type virtual items from the first storage space to the first item storage area.

[0097] In some embodiments, if the user releases their hand (i.e., the finger leaves the terminal screen) after dragging and dropping the target virtual item displayed in the first storage space onto the target storage container tag displayed in the second storage space, the terminal detects the drag-and-drop operation of dragging and dropping the target virtual item in the first storage space to the second storage space, and the release position of the drag-and-drop operation is located on the target storage container tag in the second storage space. In this case, the terminal determines the item type of the target virtual item and obtains all virtual items having the item type from the plurality of virtual items stored in the first storage space. Note that all virtual items include the target virtual item itself and the virtual items of the same type having the same item type as the target virtual item in the first storage space.

[0098] FIG. 5 is a schematic diagram of the principle of the drag-and-drop operation provided by the embodiment of the present application. As shown in FIG. 5, in the virtual scene 500, a first storage space 510 and a second storage space 520 are displayed. In addition, six storage container tags 521-526 are displayed in the second storage space 520. Currently, the interaction-enabled UI control of the storage container tag 521 is in a selected state. Therefore, an item storage area 5211 corresponding to the selected storage container tag 521 is further displayed in the second storage space 520. Furthermore, if the user drags and drops the virtual item 511 located in the upper left corner of the first storage space 510 onto the storage container tag 521 displayed in the second storage space 520 and then releases the hand, the terminal determines that it has detected a drag-and-drop operation of dragging the target virtual item in the first storage space to the second storage space. Furthermore, the terminal determines that the virtual item 511 is the target virtual item selected by the drag-and-drop operation and that the storage container tag 521 is the target storage container tag selected by the drag-and-drop operation. Furthermore, by determining that the release position of the drag-and-drop operation is located on the target storage container tag (i.e., the storage container tag 521), the terminal triggers all virtual items 511-518 of the same type as the target virtual item (i.e., the virtual item 511) in the first storage space 510. Thereby, it is realized to batch-transfer to the item storage area 5211 corresponding to the target storage container tag (i.e., the storage container tag 521) in the second storage space 520. Note that each set of virtual items among the above virtual items 511-518 all includes 20 virtual items.

[0099] In the above process, when the user drags and drops a virtual item with a first storage space onto a storage container tag in a second storage space, one possible implementation of the transfer flow of batch items for all virtual items of the same type as the virtual item is shown to start. Through such an implementation, the user triggers the transfer flow of batch items only when dragging and dropping a virtual item onto a storage container tag through a drag-and-drop operation. When the user drags and drops a virtual item into an item storage area through a drag-and-drop operation, the transfer flow of a single set of items is still triggered. In other words, in the transfer flow of a single set of items, the drag-and-drop operation only triggers the transfer of the currently selected target virtual item(s), and does not transfer unselected virtual items of the same type. In the transfer flow of batch items, all virtual items of the same type as the target virtual item are transferred in batch by the drag-and-drop operation. By providing different triggering methods to start different item transfer flows, the user can perform corresponding triggering operations according to their item transfer needs, and has higher flexibility and operability.

[0100] In some embodiments, after the user drags and drops the target virtual item in the first storage space onto the target storage container tag in the second storage space and then releases the hand, this can trigger the drag-and-drop operation. In some other embodiments, even if the user does not release the hand after dragging and dropping the target storage container tag in the second storage space, as long as the terminal detects that the starting position of the drag-and-drop trajectory is located in the display area of the target virtual item in the first storage space and the latest touch point of the drag-and-drop trajectory (since the user may continuously hold the touch state, that is, the user may not release the hand, so it is not necessarily the release position) is located in the display area of the target storage container tag in the second storage space, the above drag-and-drop operation is regarded as detected. The embodiments of the present application do not specifically limit whether the user needs to release the hand to trigger the drag-and-drop operation.

[0101] In some other embodiments, along with the operation of the user dragging and dropping the target virtual item, the terminal may further display that the target virtual item moves along the drag-and-drop trajectory following the user's finger until the target virtual item is dragged onto the target storage container tag. In this case, since the release position is located on the target storage container tag, the terminal determines the target virtual item and the target storage container tag selected by the drag-and-drop operation, and starts the transfer flow of the batch items for all virtual items of the same type as the target virtual item. Or, along with the operation of the user dragging and dropping the target virtual item, the terminal may not display that the target virtual item moves along the drag-and-drop trajectory following the user's finger, and the embodiments of the present application do not specifically limit this.

[0102] In some other embodiments, the transfer flow of batch items is further initiated through an interaction method in which the user long-presses the target virtual item in the first storage space until the pressing threshold is exceeded, and then clicks on the target storage container tag in the second storage space. The pressing threshold is any numerical value greater than 0. That is, after the user long-presses the target virtual item in the first storage space until the pressing threshold is exceeded, clickable areas such as storage container tags and item storage areas are presented in the second storage space. When it is detected that the user has clicked on the target storage container tag, it indicates that a batch transfer operation needs to be performed on all virtual items of the same type as the target virtual item, and further transfers all virtual items of the same type as the target virtual item together to the item storage area corresponding to the target storage container tag. Conversely, when it is detected that the user has clicked on the item storage area in the second storage space, this item storage area must correspond to a certain storage container tag, indicating that only the target virtual item needs to be transferred and there is no need to transfer virtual items of the same type. In this case, the long-pressed target virtual item is transferred to the clicked item storage area.

[0103] In one exemplary scenario, as shown in FIG. 4, when it is detected that the user performs a drag-and-drop operation of dragging and dropping the target virtual item in the first storage space 410 to the second storage space 420, the terminal determines the release position of the drag-and-drop operation. If the release position is located at any of the target storage container tags 421-426 of the storage container tags, it indicates that the user has a need to transfer batch items. Further, the terminal transfers all virtual items of the same type as the target virtual item together to the item storage area corresponding to the target storage container tag. If the release position is located in the item storage area 4211, it indicates that the user has a need to transfer a single set of items. Further, the terminal transfers the target virtual item selected by this drag-and-drop operation to the item storage area 4211, and there is no need to transfer virtual items of the same type.

[0104] In the above process, since various different drag-and-drop operations are provided, the server side can support one or more drag-and-drop operations, and any of them can trigger a batch item transfer operation for all virtual items of the same type as the target virtual item, contributing to increasing the success rate of the batch item transfer operation. Moreover, the user can further arrange the drag-and-drop operations supported by their terminal according to their personalized operation habits, improving the matching between the drag-and-drop operations and the user. Furthermore, based on the interaction method that supports the one-click batch item transfer operation, since the interaction method for performing the transfer operation on the selected single set of items this time is still reserved, the user can flexibly select an appropriate interaction method according to their item transfer needs, greatly improving the user's operation convenience and enhancing the man-machine interaction efficiency.

[0105] In some embodiments, after the determination of the target virtual item selected by the drag-and-drop operation is completed, the terminal uses the item identifier of the target virtual item as the item type of the target virtual item. For example, if the target virtual item selected by the drag-and-drop operation is "cotton", the item identifier 031 of "cotton" is used as the item type of the target virtual item. Moreover, the terminal queries and obtains all virtual items having the item identifier (i.e., all virtual items of the same type as the target virtual item) from the multiple virtual items stored in the first storage space.

[0106] In one example, as shown in FIG. 5, the user performs a drag-and-drop operation of dragging and dropping a target virtual item 511 located at the upper left corner of the first storage space 510 onto a target storage container tag 521 and then releasing the hand. In this case, the terminal determines that the item identifier 031 of the target virtual item 511, which is "cotton", is the item type of the target virtual item. Then, in this step 304, the terminal queries all "cotton" items 511 to 518 having the item identifier 031 in the first storage space 510. That is, these queried "cotton" items 511 to 518 are all virtual items of the same type as the target virtual item 511.

[0107] In some other embodiments, on the terminal side, a mapping relationship between virtual items and type identifiers may be further stored. Further, after the terminal determines the target virtual item selected by the drag-and-drop operation, the terminal queries and obtains the type identifier associated with the target virtual item based on the above mapping relationship. Further, the terminal sets the type identifier obtained by the query as the item type of the target virtual item. For example, the target virtual item selected by the drag-and-drop operation is "cotton". Then, from the mapping relationship, it is queried and obtained that the type identifier associated with "cotton" is "crop" 001, and further, the above type identifier 001 is set as the item type of the target virtual item. The embodiments of the present application do not specifically limit the acquisition method of the item type. Further, the terminal queries and obtains all virtual items associated with the type identifier (that is, all virtual items of the same type as the target virtual item) from the plurality of virtual items stored in the first storage space.

[0108] In another example, as shown in FIG. 5, the user performs a drag-and-drop operation of dragging and dropping a target virtual item 511 located at the upper left corner of the first storage space 510 onto the target storage container tag 521 and then releasing the hand. In this case, the terminal determines that the type identifier "crop" 001 associated with the target virtual item 511 is the item type of the target virtual item. Then, in this step 304, the terminal queries all virtual items in the first storage space 510 that are related to the type identifier "crop" 001, and obtains, for example, virtual items such as "cotton" 511-518 and "wheat" 531-535, that is, these queried "cotton" 511-518 and "wheat" 531-535 are all virtual items of the same type as the target virtual item 511.

[0109] In the above process, through the drag-and-drop operation, a batch transfer operation for all virtual items of the same type as the target virtual item can be started with one click. In this way, it is not necessary for the user to manually repeat multiple times to transfer a single set of virtual items, and all virtual items of the same type as the target virtual item can be transferred together to the item storage area corresponding to the target storage container tag in the second storage space, thereby improving the item transfer efficiency and the man-machine interaction efficiency.

[0110] 305. The terminal transfers at least one first type virtual item from the first storage space to all the first item storage areas.

[0111] That at least one first type virtual item is all virtual items having the above item type means all virtual items of the same type as the target virtual item.

[0112] In some embodiments, the terminal removes all virtual items of the same type as the target virtual item from the first storage space and displays all virtual items of the same type as the target virtual item in the item storage area corresponding to the target storage container tag in the second storage space. In other words, the terminal removes at least one first-type virtual item from the first storage space and displays at least one first-type virtual item in the first item storage area. For example, when each storage container tag is displayed in the form of a storage container list in the second storage space, then all virtual items of the same type as the target virtual item can be used as the drop-down list items of the target storage container tag. By the above method, it is embodied that all virtual items of the same type as the target virtual item have already been transferred from the first storage space to the item storage area corresponding to the target storage container tag, realizing a visualization display of the item transfer result, improving the intuitiveness of the item transfer result, and increasing the user's information acquisition efficiency.

[0113] In some embodiments, when the terminal detects that the release position of the drag-and-drop operation is located on the target storage container tag, the terminal can set the interaction-enabled UI control of the target storage container tag to a selected state, and display an item storage area corresponding to the target storage container tag in the second storage space. Therefore, in such a situation, when realizing batch transfer for all virtual items of the same type as the target virtual item, the terminal can remove all virtual items of the same type as the target virtual item from the first storage space. That is, all virtual items of the same type as the target virtual item are no longer displayed in the first storage space. Moreover, the terminal displaying all virtual items of the same type as the target virtual item in the item storage area corresponding to the target storage container tag is equivalent to realizing the transfer of all virtual items of the same type as the target virtual item from the first storage space to the second storage space in the virtual scene. Moreover, the user can transfer all virtual items of the same type as the target virtual item at once by performing only one drag-and-drop operation, improving the man-machine interaction efficiency.

[0114] FIG. 6 is a schematic interface diagram of the item transfer result provided by the embodiment of the present application. As shown in FIG. 6, if the user executes a drag-and-drop operation on the virtual scene 500 shown in FIG. 5, that is, after dragging the target virtual item 511 located at the upper left corner of the first storage space 510 to the target storage container tag 521 in the second storage space 520 and then releasing the hand, the terminal is triggered to determine the item type of the target virtual item 511. If the item type is "cotton" with the item identifier 031, in this case, the terminal acquires all the "cotton" 511-518 having the item identifier 031 in the first storage space 510 as all virtual items of the same type as the target virtual item 511. Further, all the "cotton" 511-518 originally located in the first storage space 510 in FIG. 5 are removed from the first storage space 510. At the same time, as shown in FIG. 6, the terminal displays all the above-mentioned "cotton" 511-518 (that is, all virtual items of the same type as the target virtual item 511) in the item storage area 5211 corresponding to the target storage container tag 521 in the second storage space 520.

[0115] In the above process, by transferring all virtual items similar to the target virtual item in the virtual scene from the first storage space to the item storage area corresponding to the target storage container tag in an intuitive manner, the batch transfer effect of all virtual items similar to the target virtual item can be more intuitively demonstrated. Automatically switch to the state where the interaction-enabled UI control of the target storage container tag is selected, expand the item storage area corresponding to the target storage container tag, and display all virtual items similar to the target virtual item in the item storage area corresponding to the target storage container tag. In this way, there is no need for the user to manually switch and select the target storage container tag, reducing the complexity of the user's operation, facilitating the user to quickly know which virtual items similar to the current target virtual item have been batch transferred and to which item storage area corresponding to which storage container tag all virtual items similar to the target virtual item have been batch transferred, thereby improving the user's information acquisition efficiency.

[0116] In some embodiments, the terminal determines the currently selected target virtual item through a drag-and-drop operation. After determining all virtual items similar to the target virtual item in the first storage space, the terminal stores the respective item numbers of all virtual items similar to the target virtual item in an item number queue. Next, the terminal packages the item number queue into a batch item transfer request and sends the batch item transfer request to the server. The server responds to the batch item transfer request, analyzes the item number queue to obtain it, removes each item number in the item number queue from the storage metadata of the first storage space, and adds each item number to the storage metadata associated with the target storage container tag in the second storage space. Through the above method, batch dumping of all virtual items similar to the target virtual item can be realized. The storage metadata of each storage space is used to record the item numbers of all virtual items stored in this storage space.

[0117] The item number is used to characterize which specific number the virtual item is, and the item identifier is used to characterize what type of item the virtual item is. For example, the item identifier of a certain virtual item is 031, indicating that the virtual item is "cotton", and the item number of the virtual item is 000010, indicating that the virtual item is the 10th virtual item collected by the virtual object.

[0118] In some other embodiments, the terminal packages the item number and item type of the target virtual item into a batch item transfer request and sends the batch item transfer request to the server. The server responds to the batch item transfer request and obtains the item number and item type of the target virtual item by analysis. Next, the server queries the storage metadata of the first storage space to determine all virtual items of the same type as the target virtual item stored in the first storage space, and deletes all the respective item numbers of the virtual items of the same type as the target virtual item obtained by the query from the storage metadata of the first storage space. Next, the server realizes the batch dump of all virtual items of the same type as the target virtual item by adding all the respective item numbers of the virtual items of the same type as the target virtual item to the storage metadata associated with the target storage container tag of the second storage space. In this way, it is not necessary for the terminal to execute the operation of determining all virtual items of the same type as the target virtual item. This operation is realized by transferring it to the service end, and the processing resources of the terminal can be saved.

[0119] In some embodiments, after the server deletes the respective item numbers of all virtual items of the same type as the target virtual item from the storage metadata of the first storage space and adds them to the storage metadata associated with the target storage container tag of the second storage space, the server returns a response to the terminal indicating that the batch transfer has succeeded. In response to this response indicating that the batch transfer has succeeded, the terminal removes all virtual items of the same type as the target virtual item from the first storage space in the virtual scene and displays them in the item storage area corresponding to the target storage container tag of the second storage space. Optionally, the response indicating that the batch transfer has succeeded may be an ACK (Acknowledge Character) message.

[0120] In steps 304 to 305 above, a possible implementation is provided in which all virtual items of the same type as the target virtual item in the first storage space are transferred to the item storage area corresponding to the target storage container tag. That is, first, the item type of the target virtual item is obtained, and then all virtual items having the item type are determined from the plurality of virtual items stored in the first storage space. By the above method, it is guaranteed to traverse all items of the same type in the first storage space, avoiding omission of items of the same type. Furthermore, the user only needs to perform a single drag-and-drop operation on the target virtual item to transfer all virtual items of the same type as the target virtual item to the item storage area corresponding to the target storage container tag at once, without the need for the user to repeatedly perform the drag-and-drop operation multiple times for each set of items of the same type. In this way, the item transfer efficiency and the man-machine interaction efficiency are greatly improved.

[0121] Furthermore, through the interaction between the terminal and the server, after the correction of the stored metadata on the server side is completed, the terminal realizes the display of UI changes in the virtual scene. In this way, the local processing resources of the terminal can be saved. In some other embodiments, after the terminal corrects the stored metadata locally, the corrected stored metadata or the control information corrected this time may be synchronized to the server, so that the response efficiency of batch item transfer can be improved.

[0122] 306. The terminal corrects the tag name of the target storage container tag so that the tag name matches the item name of the target virtual item.

[0123] In some embodiments, the terminal can further determine the item name of the target virtual item. For example, the item name of the target virtual item is "cotton", and the further determined item name "cotton" is set as the tag name of the target storage container tag. That is, the name of the target virtual item is set as the tag name of the target storage container tag. As shown in FIG. 6, it can be seen that the tag name of the target storage container tag has been automatically changed from the initial "Locker No. 1" to "cotton". In this way, there is no need for the user to manually set the tag name of the target storage container tag. After the user executes the drag-and-drop operation, the terminal automatically completes the setting operation for the tag name of the target storage container tag, improving the man-machine interaction efficiency.

[0124] In some other embodiments, the terminal sets the item name of the target virtual item as the tag name of the target storage container tag only when it detects that the tag name of the target storage container tag is the initial name. For example, if before the user executes a drag-and-drop operation, the tag name of the target storage container tag is the initial name "Locker No. 1", after the user executes the drag-and-drop operation, all virtual items of the same type as the target virtual item are batch-transferred to the item storage area corresponding to the target storage container tag, and the tag name of the target storage container tag is corrected to the item name of the target virtual item, for example, "Cotton". Further, for example, if before the user executes a drag-and-drop operation, the tag name of the target storage container tag is not the initial name. For example, the user has previously corrected the target storage container tag from the initial name "Locker No. 1" to "Crops". Then, since it is detected that the tag name of the target storage container tag is not the initial name after the user executes the drag-and-drop operation, in this case, the terminal does not automatically correct the tag name of the target storage container tag. That is, the tag name of the target storage container tag remains the original name "Crops".

[0125] In some other embodiments, after performing batch item transfer, the terminal sets the item name of the target virtual item as the tag name of the target storage container tag only when it detects that the virtual item of the same item type is included in the item storage area corresponding to the target storage container tag. For example, if there are originally 10 sets of "cotton" already stored in the item storage area corresponding to the target storage container tag, and 8 more sets of "cotton" are transferred in batch through a drag-and-drop operation. After the batch item transfer, since only the virtual item of the same type "cotton" is still included in the item storage area corresponding to the target storage container tag, the item name of the target virtual item is automatically set as the tag name of the target storage container tag. Further, for example, if there are originally 10 sets of "wheat" already stored in the item storage area corresponding to the target storage container tag, and 8 more sets of "cotton" are transferred in batch through a drag-and-drop operation. After the batch item transfer, since the virtual items of two or more item types are included in the item storage area corresponding to the target storage container tag, the terminal does not automatically correct the tag name of the target storage container tag.

[0126] In some other embodiments, after performing batch item transfer, if the terminal detects that the item storage area corresponding to the target storage container tag contains virtual items of two or more item types, it can count the storage numbers of the virtual items of each item type and automatically set the item name of the virtual item with the largest storage number as the tag name of the target storage container tag. For example, if there are originally 10 sets of "wheat" already stored in the item storage area corresponding to the target storage container tag, and 8 sets of "cotton" are further transferred in batch through a drag-and-drop operation. In this case, the virtual item with the largest storage number is "wheat", and "wheat" is automatically set as the tag name of the target storage container tag. In some other embodiments, the terminal can further set the tag name of the target storage container tag as the item names of the virtual items of two or more item types stored in the item storage area corresponding to the target storage container tag. For example, if there are originally 10 sets of "wheat" already stored in the item storage area corresponding to the target storage container tag, and 8 sets of "cotton" are further transferred in batch through a drag-and-drop operation. The tag name of the target storage container tag is set to "wheat & cotton". The embodiments of the present application do not specifically limit the setting method of the tag name of the target storage container tag.

[0127] 307. The terminal corrects the tag icon of the target storage container tag so that the tag icon matches the item icon of the target virtual item.

[0128] In some embodiments, the terminal can further determine the item icon of the target virtual item. For example, the item icon of the target virtual item is a cotton pattern, and the determined cotton pattern is set as the tag icon of the target storage container tag. As shown in FIG. 6, it can be seen that the tag icon of the target storage container tag has been automatically changed from the initial "empty" to the "cotton pattern". By the above method, the user does not need to manually set the tag icon of the target storage container tag. After the user executes a drag-and-drop operation, the terminal automatically completes the setting operation for the tag icon of the target storage container tag, improving the man-machine interaction efficiency.

[0129] In some other embodiments, the terminal sets the item icon of the target virtual item as the tag icon of the target storage container tag only when it detects that the tag icon of the target storage container tag is the initial icon. For example, if before the user executes a drag-and-drop operation, the tag icon of the target storage container tag is the initial icon "empty". Then, after the user executes a drag-and-drop operation, all virtual items of the same type as the target virtual item are transferred in batch to the item storage area corresponding to the target storage container tag, and the tag icon of the target storage container tag is corrected to the item icon of the target virtual item, for example, a cotton pattern. Further, for example, if before the user executes a drag-and-drop operation, the tag icon of the target storage container tag is not the initial icon. For example, the user has previously corrected the target storage container tag from the initial icon "empty" to a plant pattern. Then, after the user executes a drag-and-drop operation, since it is detected that the tag icon of the target storage container tag is not the initial icon, in this case, the terminal does not automatically correct the tag icon of the target storage container tag. That is, the tag icon of the target storage container tag remains the original plant pattern.

[0130] In some other embodiments, after performing batch item transfer, the terminal installs the item icon of the target virtual item as the tag icon of the target storage container tag only when it detects that the virtual item of the same item type is included in the item storage area corresponding to the target storage container tag. For example, if there are originally 10 sets of "cotton" already stored in the item storage area corresponding to the target storage container tag, and 8 more sets of "cotton" are transferred in batch through a drag-and-drop operation. After the batch item transfer, since only the virtual item of the same type, "cotton", is still included in the item storage area corresponding to the target storage container tag, the item icon of the target virtual item, that is, the cotton pattern, is automatically installed as the tag icon of the target storage container tag. Further, for example, if there are originally 10 sets of "wheat" already stored in the item storage area corresponding to the target storage container tag, and 8 more sets of "cotton" are transferred in batch through a drag-and-drop operation. After the batch item transfer, since the virtual items of two or more item types are included in the item storage area corresponding to the target storage container tag, the terminal does not automatically correct the tag icon of the target storage container tag.

[0131] In some other embodiments, after performing batch item transfer, if the terminal detects that the item storage area corresponding to the target storage container tag contains virtual items of two or more item types, the terminal can count the storage numbers of the virtual items of each item type, and automatically set the item icon of the virtual item with the largest storage number as the tag icon of the target storage container tag. For example, if there are originally 10 sets of "wheat" already stored in the item storage area corresponding to the target storage container tag, and 8 sets of "cotton" are further transferred in batch through a drag-and-drop operation. In this case, the virtual item with the largest storage number is "wheat", and the wheat pattern is automatically set as the tag icon of the target storage container tag. The embodiments of the present application do not specifically limit the setting method of the tag icon of the target storage container tag.

[0132] In the embodiments of the present application, by controlling the release position of the drag-and-drop operation, when the release position is not in the item storage area but on the storage container tag, the user can quickly complete the batch transfer of all virtual items of the same type as the target virtual item from the first storage space to the second storage space. As shown in FIG. 5, for example, after the user drags and drops the target virtual item 511 onto the target storage container tag 521 and then releases the hand, it is regarded as transferring all virtual items 511-518 of the same type as the target virtual item 511 together to the item storage area 5211 corresponding to the target storage container tag 521. As shown in FIG. 6, as can be seen from this, all virtual items 511-518 of the same type as the target virtual item 511 are already displayed in the item storage area 5211 corresponding to the target storage container tag 521, and the item name "cotton" of the target virtual item is used as the tag name of the target storage container tag 521, and the cotton pattern, which is the item icon of the target virtual item, is used as the tag icon of the target storage container tag 521.

[0133] All of the above selectable technical solutions can form selectable embodiments of the present disclosure using any combination, which will not be elaborated here.

[0134] The method provided by the embodiments of this application is that when a drag-and-drop operation from one storage space to another storage space is detected, based on the difference in the release position of the drag-and-drop operation, a single transfer operation for the currently selected virtual item and a batch transfer operation for all virtual items of the same type are provided respectively. That is, when the release position is located in the item storage area, only the currently selected virtual item is transferred; when the release position is located on the storage container tag, all virtual items of the same type are transferred in batch. By controlling the release position of the drag-and-drop operation, the user can flexibly control which virtual items to transfer this time, and thereby control the batch transfer of items of the same type with only one drag-and-drop operation, avoiding the user from manually repeating the item transfer operation multiple times, reducing the complexity of the user's operation, and improving the item transfer efficiency and man-machine interaction efficiency.

[0135] In the previous embodiment, the operation method for the user to quickly transfer all items of the same type was introduced in detail. By controlling the release position of the drag-and-drop operation to be located on the storage container tag, the user can quickly complete the batch transfer of all virtual items of the same type as the target virtual item from the first storage space to the second storage space. In the embodiments of this application, the operation flow for batch retrieving all virtual items having the same type of item type from the second storage space to the first storage space is presented and will be described below.

[0136] Figure 7 is a flowchart of the virtual item transfer method provided by the embodiments of this application. Referring to Figure 7, this embodiment is executed by an electronic device, taking the electronic device as a terminal as an example for description. This embodiment includes steps 701 to 705. 701. The terminal displays a first storage space and a second storage space, and a plurality of storage container tags are displayed in the second storage space. Each storage container tag corresponds to one item storage area.

[0137] The display method of the storage space in step 701 is the same as that of the storage space in step 301 in the previous embodiment, and details are not elaborated here.

[0138] 702. In response to the second drag-and-drop operation, the terminal determines the target item type associated with the first storage container tag. The second drag-and-drop operation drags and drops the first storage container tag among the plurality of storage container tags into the first storage space.

[0139] In some embodiments, the user's finger first touches and presses the first storage container tag displayed in the second storage space. The first storage container tag may be any of the storage container tags in the second storage space. For example, it may be the target storage container tag related to the batch item transfer operation in the previous embodiment, or it may be other storage container tags. Next, after the touch sensor of the terminal detects the pressure signal applied from the user's finger to the terminal screen, it determines the touch point associated with the pressure signal as the start position of the drag-and-drop operation. Next, the terminal continuously senses the pressure signal applied from the user's finger through the touch sensor. Since the user's finger swipes dynamically, the terminal can determine the drag-and-drop trajectory of the user's finger based on a series of touch points sensed in real time. Next, when the touch sensor does not sense the pressure signal even after exceeding a preset time length, it indicates that the user's finger has left the terminal screen (i.e., the drag-and-drop operation stops and the drag-and-drop operation ends). In this case, the release position of the drag-and-drop trajectory is determined. The preset time length is any value greater than 0.

[0140] In some embodiments, after the start position and release position of the drag-and-drop trajectory are determined by the above method, if the screen coordinates satisfying the start position are located on the first storage container tag in the second storage space, and the screen coordinates of the release position are located in the first storage space, it is determined that a drag-and-drop operation of dragging the first storage container tag to the first storage space, that is, a second drag-and-drop operation, is detected. In response to the second drag-and-drop operation, the terminal determines the storage container tag associated with the start position as the first storage container tag selected by the second drag-and-drop operation. The storage container tag associated with the start position means which storage container tag in the second storage space the screen coordinates of the start position are located within the display area of the interaction-enabled UI control.

[0141] FIG. 8 is a schematic diagram of the principle of the drag-and-drop operation provided by the embodiments of the present application. As shown in FIG. 8, in the virtual scene 800, a first storage space 810 and a second storage space 820 are displayed. Further, in the second storage space 820, six storage container tags 821-826 are displayed. Currently, the interaction-enabled UI control of the storage container tag 821 is in a selected state. Therefore, in the second storage space 820, an item storage area 8211 of the selected storage container tag 821 is further displayed. Furthermore, taking the storage container tag 821 as the first storage container tag as an example for explanation. If the user performs an operation of releasing the hand after dragging the first storage container tag 821 in the second storage space 820 to any position in the first storage space 810, the terminal, in response to the drag-and-drop operation, obtains the target item type associated with the first storage container tag 821, and batches and retrieves all virtual items having the target item type in the item storage area corresponding to the first storage container tag 821 to the first storage space 810.

[0142] In the above process, one possible embodiment is shown where the user drags and drops a storage container tag with a second storage space to any position in the first storage space, triggering a drag-and-drop operation to start the subsequent batch item retrieval process. With such an embodiment, the user triggers the batch item retrieval process only when dragging and dropping the storage container tag to the first storage space through a drag-and-drop operation. When the user drags and drops a single set of virtual items in the item storage area corresponding to a certain storage container tag to the first storage space, the retrieval process of a single set of items can still be supported. In other words, only the drag-and-drop operation of dragging and dropping the storage container tag to the first storage space triggers the batch retrieval of all virtual items having the target item type associated therewith in the item storage area corresponding to the first storage container tag. However, for the drag-and-drop operation of dragging and dropping a certain virtual item in the item storage area to the first storage space, it only triggers the retrieval of the single set of virtual items that have been dragged and dropped this time (a set of virtual items can be one or more). By providing different triggering methods to start different item retrieval processes, the user can perform corresponding triggering operations according to their own item retrieval needs, which has higher flexibility and operability.

[0143] In some embodiments, after the user drags and drops the first storage container tag of the second storage space to any position in the first storage space and then releases the hand, it can trigger the drag-and-drop operation of dragging and dropping the first storage container tag to the first storage space. In some other embodiments, even if the user does not release the hand after dragging and dropping the first storage container tag to the first storage space, as long as the terminal detects that the starting position of the drag-and-drop trajectory is within the display area of the interaction-enabled UI control of the first storage container tag in the second storage space, and the latest touch point of the drag-and-drop trajectory (since the user may continuously hold the touch state, that is, the user may not release the hand, so it is not necessarily the release position) is located in the first storage space, it is regarded as detecting the drag-and-drop operation of dragging and dropping the first storage container tag to the first storage space. The embodiments of the present application do not specifically limit whether the user needs to release the hand to trigger the drag-and-drop operation.

[0144] In some other embodiments, along with the operation of the user dragging and dropping the first storage container tag, the terminal may further display that the first storage container tag moves along the drag-and-drop trajectory following the user's finger until the first storage container tag is dragged to the first storage space. In this case, the terminal starts the batch item recall process for all virtual items having the target item type of the item storage area corresponding to the first storage container tag. Or, along with the operation of the user dragging and dropping the first storage container tag, the terminal may not display that the first storage container tag moves along the drag-and-drop trajectory following the user's finger. The embodiments of the present application do not specifically limit this.

[0145] In some other embodiments, the batch item retrieval process is further initiated through an interaction method where the user long-presses an interaction-enabled UI control of the first storage container tag in the second storage space until a pressure threshold is exceeded, and then clicks on any position in the first storage space. The pressure threshold is any numerical value greater than 0. That is, after the user long-presses the interaction-enabled UI control of the first storage container tag until the pressure threshold is exceeded, the terminal screen presents the first storage space as a clickable area. When it is detected that the user has clicked on any position in the first storage space, it indicates that it is necessary to perform a batch retrieval operation on all virtual items having the target item type of the item storage area corresponding to the first storage container tag. Further, the storage container tag corresponding to the interaction-enabled UI control that the user long-pressed is set as the first storage container tag selected by a drag-and-drop operation, and the subsequent batch item retrieval process is executed.

[0146] In the above process, since drag-and-drop operations of various different embodiments are provided, the server side can support one or more drag-and-drop operations, and can trigger a batch item recall operation for all virtual items having the target item type in the item storage area corresponding to the first storage container tag, contributing to increasing the success rate of the batch item recall operation. Moreover, the user can further arrange the drag-and-drop operations supported by their terminal according to their personalized operation habits, improving the matching between the drag-and-drop operations and the user. Furthermore, based on the interaction method that supports a one-click batch item recall operation, for a single set of items selected from the item storage area, an interaction method for performing a recall operation, for example, a drag-and-drop operation of dragging the virtual items displayed in the item storage area to the first storage space, and the process of recalling a single set of virtual items from the second storage space to the first storage space still remains pending. Therefore, the user can flexibly select an appropriate interaction method according to their item recall needs, greatly improving the user's operation convenience and enhancing the man-machine interaction efficiency.

[0147] In some embodiments, after determining the first storage container tag selected by the drag-and-drop operation, the terminal can determine the item type of the virtual item associated with the tag name of the first storage container tag as the target item type. That is, when the user performs a drag-and-drop operation on the first storage container tag, they may want to recall all similar virtual items associated with the tag name in batch. By determining the item type of the virtual item associated with the tag name as the target item type, the accuracy rate of obtaining the target item type can be increased. For example, the tag name of the first storage container tag is "cotton", then the item type associated with "cotton", that is, item identifier 031, is used as the target item type.

[0148] In some other embodiments, the terminal can further determine the item type of the virtual item associated with the tag icon of the first storage container tag as the target item type. That is, when the user performs a drag-and-drop operation on the first storage container tag, the user may want to retrieve all similar virtual items associated with the tag icon in batches. By determining the item type of the virtual item associated with the tag icon as the target item type, the accuracy rate of obtaining the target item type can also be increased. For example, the tag icon of the first storage container tag is a cotton pattern. In this case, the item type associated with the cotton pattern, that is, item identifier 031, is used as the target item type.

[0149] In some other embodiments, the terminal can further determine the item type of the virtual item with the largest storage quantity in the item storage area corresponding to the first storage container tag as the target item type. That is, when the item storage area corresponding to the first storage container tag contains virtual items of two or more item types, the terminal determines the item type of the virtual item with the largest storage quantity as the target item type. For example, the item storage area corresponding to the first storage container tag contains 20 sets of "cotton" and 10 sets of "wheat". In this case, when a drag-and-drop operation of dragging the first storage container tag to the first storage space is detected, the item type of the virtual item "cotton" with the largest storage quantity, that is, item identifier 031, is used as the target item type. In this way, when the item storage area corresponding to the first storage container tag contains virtual items of two or more item types, a possible implementation form for determining the target item type is provided, the application scenario for retrieving items in batches is expanded, and the embodiments of the present application do not specifically limit the acquisition method of the target item type.

[0150] In the above step 702, by means of a drag-and-drop operation of dragging and dropping the first storage container tag into the first storage space, a batch rollback operation for all virtual items having the target item type of the item storage area corresponding to the first storage container tag can be started with one click. In this way, it is not necessary for the user to manually repeat the operation multiple times to roll back each set of virtual items having the above target item type, and all virtual items having the target item type associated with the selected first storage container tag can be collectively rolled back to the first storage space at once. Thereby, the item rollback efficiency and the man-machine interaction efficiency can be improved.

[0151] 703. The terminal transfers at least one second type of virtual item in the second item storage area to the first storage space. The second item storage area is the item storage area corresponding to the first storage container tag, and the second type of virtual item is a virtual item having the target item type.

[0152] In some embodiments, after detecting a drag-and-drop operation in which the first storage container tag is dragged and dropped into the first storage space, the terminal can determine to obtain the first storage container tag selected by the drag-and-drop operation. Through step 702 above, the terminal determines the target item type associated with the first storage container tag. Next, the terminal acquires all virtual items having the target item type from all the virtual items stored in the item storage area corresponding to the first storage container tag. Thereafter, the terminal can remove all virtual items having the target item type from the item storage area corresponding to the first storage container tag displayed in the second storage space, that is, all virtual items having the target item type are no longer displayed in the item storage area corresponding to the first storage container tag. Accordingly, the terminal displaying all virtual items having the target item type in the first storage space corresponds to realizing the transfer of all virtual items having the target item type from the second storage space to the first storage space in the virtual scene. Accordingly, the user can transfer all virtual items having the target item type at once by performing a drag-and-drop operation on the storage container tag only once.

[0153] In the embodiments of the present application, only the example where all virtual items having the target item type taken out in batches are the same as all virtual items of the same category as the target virtual item transferred in batches in the previous embodiment will be described. In other words, by a drag-and-drop operation of dragging the target virtual item from the first storage space to the target storage container tag, all virtual items of the same category as the target virtual item can be transferred to the second storage space in batches. Taking the case where the first storage container tag is the target storage container tag as an example, by a drag-and-drop operation of dragging the target storage container tag to the first storage space, all virtual items of the same category as the target virtual item (that is, all virtual items having the target item type, and the target item type in such a situation is the item type of the target virtual item) can be retrieved in batches to the first storage space, but it should not constitute a limitation that the virtual items taken out in batches and the virtual items transferred in batches are the same item. For example, according to the previous embodiment, 10 sets of cotton were transferred in batches to the item storage area corresponding to the storage container tag A in the second storage space from the first storage space. Then, the user retrieved 20 sets of "wheat" in batches from the item storage area corresponding to another storage container tag B in the second storage space to the first storage space by the method of the embodiment of the present application.

[0154] Figure 9 is a schematic interface diagram of the item retrieval result provided by the embodiment of the present application. As shown in Figure 9, if the user performs a drag-and-drop operation on the virtual scene 800 shown in Figure 8, drags the first storage container tag 821 in the second storage space 820 to any position in the first storage space 810, and then releases the hand, the terminal is triggered to determine the target item type associated with the first storage container tag 821, for example, "cotton". That is, the target item type is the item identifier 031 of "cotton". Next, the terminal acquires all the "cotton" 831-838 with the item identifier 031 of the item storage area corresponding to the first storage container tag 821 as all virtual items with the target item type. Further, the terminal removes all the virtual items 831-838 with the target item type located in the item storage area 8211 corresponding to the first storage container tag 821 in Figure 8. At the same time, as shown in Figure 9, the terminal displays all the virtual items 831-838 with the above target item type in the first storage space 810.

[0155] In the above process, by intuitively retrieving all the virtual items with the target item type from the item storage area corresponding to the first storage container tag to the first storage space in the virtual scene, the batch retrieval effect of all the virtual items with the target item type is intuitively demonstrated, facilitating the user to quickly know which virtual items were transferred in batch this time and to which storage space the virtual items were transferred in batch, thereby improving the user's information acquisition efficiency.

[0156] In some embodiments, after the terminal determines all virtual items having a target item type from all virtual items included in the item storage area corresponding to the first storage container tag, the terminal stores the respective item numbers of all virtual items having the target item type in an item number queue. Next, the terminal packages the item number queue into a batch item retrieval request and sends the batch item retrieval request to the server. In response to the batch item retrieval request, the server analyzes the item number queue, removes each item number in the item number queue from the storage metadata associated with the first storage container tag of the second storage space, and adds a plurality of item numbers to the storage metadata of the first storage space, thereby realizing batch retrieval of all virtual items having the target item type from the second storage space to the first storage space. The storage metadata of each storage space is used to record the item numbers of all virtual items stored in this storage space.

[0157] Note that the item number is used to characterize which specific number the virtual item is, and the item identifier is used to characterize what type of item the virtual item is. For example, the item identifier of a certain virtual item is 031, indicating that the virtual item is "cotton", the item number of the virtual item is 000010, indicating that the virtual item is the 10th virtual item collected by the virtual object.

[0158] In some other embodiments, the terminal packages the target item type and the first storage container tag obtained in step 702 into a batch item retrieval request and sends the batch item retrieval request to the server. The server analyzes and obtains the target item type and the first storage container tag in response to the batch item retrieval request. Next, the server queries the storage metadata associated with the first storage container tag in the second storage space to determine all virtual items having the target item type stored in the first storage container tag, and deletes the respective item numbers of all virtual items having the target item type from the storage metadata associated with the first storage container tag. Next, the server adds the respective item numbers of all virtual items having the target item type to the storage metadata of the first storage space, thereby realizing batch retrieval of all virtual items having the target item type from the second storage space to the first storage space. In this way, it is not necessary for the terminal to execute the operation of determining all virtual items having the target item type. The above determination operation is executed by transferring it to the service end, and the processing resources of the terminal can be saved.

[0159] In some embodiments, after the server deletes the respective item numbers of all virtual items having the target item type from the storage metadata associated with the first storage container tag and adds them to the storage metadata of the first storage space, it returns a response to the terminal indicating that the batch retrieval was successful. In response to the response indicating that the batch retrieval was successful, the terminal removes all virtual items having the target item type from the item storage area corresponding to the first storage container tag in the second storage space and displays them in the first storage space in the virtual scene. Optionally, the response indicating that the batch retrieval was successful may be an ACK message.

[0160] In the above process, a possible implementation is provided in which the terminal retrieves all virtual items having the target item type from the second storage space back to the first storage space. Through the interaction between the terminal and the server, only after the correction of the storage metadata on the server side is completed, the terminal realizes displaying UI changes in the virtual scene, and thus, the local processing resources of the terminal can be saved. In some other embodiments, after the terminal corrects the storage metadata locally, the corrected storage metadata may be synchronized to the server, or the control information corrected this time may be synchronized to the server, and thus, the response efficiency of batch item retrieval can be improved.

[0161] 704. The terminal restores the tag name of the first storage container tag to a preset name.

[0162] In some embodiments, when the tag name of the first storage container tag is the same as the item name of all virtual items having the target item type retrieved in this batch, the terminal can restore the tag name of the first storage container tag to a preset name. For example, the preset name may be an initial name. In one example, after retrieving all virtual items having the target item type from the item storage area corresponding to the first storage container tag back to the first storage space in batch, the tag name of the first storage container tag automatically restores from "Caomian" shown in FIG. 8 to the preset name "Locker No. 1" shown in FIG. 9. By the above method, there is no need for the user to manually update the tag name of the first storage container tag. After the user executes a drag-and-drop operation of dragging the first storage container tag to the first storage space, the terminal automatically restores the tag name of the first storage container tag to the initial configuration, avoiding causing misunderstandings to the user. For example, it is avoided that the user may think that Caomian is still stored in Locker No. 1, improving the man-machine interaction efficiency.

[0163] In some other embodiments, when the tag name of the first storage container tag is different from the item names of all virtual items having the target item type taken out in this batch, the terminal does not need to restore the tag name of the first storage container tag to a preset name. For example, the tag name of the first storage container tag is "agricultural products", but the item names of all virtual items having the target item type taken out in the batch are "cotton". Then, after the user executes a drag-and-drop operation of dragging the first storage container tag to the first storage space and it is detected that the tag name and the item name are not the same, in this case, the terminal does not restore the tag name of the first storage container tag to the initial configuration. That is, the tag name of the first storage container tag remains the original name "agricultural products".

[0164] In some other embodiments, after all virtual items having the target item type have been taken back to the first storage space in batch, if there are still other virtual items stored in the item storage area corresponding to the first storage container tag, the terminal can determine the first virtual item with the largest number of stored items from the other virtual items stored in the item storage area corresponding to the first storage container tag. Next, the terminal sets the tag name of the first storage container tag as the item name of the first virtual item. For example, if there were originally 10 sets of "cotton", 8 sets of "wheat", and 2 sets of "rose" stored in the item storage area corresponding to the first storage container tag, and after taking back 10 sets of "cotton" to the first storage space in batch, there are still other virtual items, that is, 8 sets of "wheat" and 2 sets of "rose" included in the item storage area corresponding to the first storage container tag. In this case, it is determined that the first virtual item with the largest number of stored items among the other virtual items is "wheat". Therefore, the tag name of the first storage container tag is updated from the original "cotton" to the item name "wheat" of the first virtual item.

[0165] 705. The terminal restores the tag icon of the first storage container tag to a preset icon.

[0166] In some embodiments, when the tag icon of the first storage container tag is the same as the item icons of all virtual items having the target item type retrieved in this batch, the terminal can restore the tag icon of the first storage container tag to a preset icon. For example, the preset icon may be the initial icon. In one example, after retrieving all virtual items having the target item type from the item storage area corresponding to the first storage container tag back to the first storage space in batch, the tag icon of the first storage container tag automatically restores from the cotton pattern shown in FIG. 8 to the preset icon "empty" shown in FIG. 9. By the above method, there is no need for the user to manually update the tag icon of the first storage container tag. After the user executes a drag-and-drop operation of dragging and dropping the first storage container tag to the first storage space, the terminal automatically restores the tag icon of the first storage container tag to the initial placement, avoiding causing misunderstandings to the user. For example, it is avoided that the user may think that cotton is still stored in locker No. 1, improving the man-machine interaction efficiency.

[0167] In some other embodiments, when the tag icon of the first storage container tag is different from the item icons of all virtual items having the target item type retrieved in this batch, the terminal does not need to restore the tag icon of the first storage container tag to a preset icon. For example, the tag icon of the first storage container tag is a plant pattern, but the item icons of all virtual items having the target item type retrieved in batch are cotton patterns. Then, after the user executes a drag-and-drop operation of dragging and dropping the first storage container tag to the first storage space, it is detected that the tag icon and the item icon are not the same. In this case, the terminal does not restore the tag icon of the first storage container tag to the initial placement. That is, the tag icon of the first storage container tag remains in the plant pattern.

[0168] In some other embodiments, after retrieving all virtual items that already have the target item type in batch to the first storage space, if there are still other virtual items stored in the item storage area corresponding to the first storage container tag, the terminal can determine the first virtual item with the largest number of stored items from the other virtual items stored in the item storage area corresponding to the first storage container tag. Next, the terminal sets the tag icon of the first storage container tag as the item icon of the first virtual item. For example, if there were originally 10 sets of "cotton", 8 sets of "wheat", and 2 sets of "rose" stored in the item storage area corresponding to the first storage container tag, after retrieving 10 sets of "cotton" back to the first storage space in batch, the item storage area corresponding to the first storage container tag still contains other virtual items, namely, 8 sets of "wheat" and 2 sets of "rose". In this case, it is determined that the first virtual item with the largest number of stored items among the other virtual items is "wheat". Therefore, the terminal updates the tag icon of the first storage container tag from the original cotton pattern to the item icon of the first virtual item, that is, the wheat pattern.

[0169] In the embodiment of the present application, through a drag-and-drop operation of dragging and dropping a first storage container tag into a first storage space, the user can quickly complete retrieving, in a batch, all virtual items having the target item type from an item storage area corresponding to the first storage container tag in a second storage space back to the first storage space. As shown in FIG. 8, for example, after the user drags and drops the first storage container tag 821 into the first storage space 810 and then releases the hand, it is regarded as retrieving, in a batch, all similar items 831 to 838 having the target item type "cotton" associated with the first storage container tag 821 back to the first storage space 810. As shown in FIG. 9, as can be seen therefrom, all similar items 831 to 838 are already displayed in the first storage space 810, and accordingly, the tag name of the first storage container tag 821 is restored to the initial name "Locker No. 1", and the tag icon of the first storage container tag 821 is restored to the initial icon "empty".

[0170] All of the above selectable technical solutions can form selectable embodiments of the present disclosure by using any combination, which will not be elaborated here.

[0171] The method provided by the embodiment of the present application provides an interaction method that triggers retrieving, in a batch, all virtual items having a target item type associated with a storage container tag based on a drag-and-drop operation of dragging and dropping a storage container tag in a second storage space into a first storage space. By doing so, the user only needs to perform a single drag-and-drop operation of dragging and dropping the selected storage container tag back into the first storage space, and can retrieve, in a batch, all similar virtual items having the target item type associated with the selected storage container tag, that is, all virtual items having the target item type, back to the first storage space at once, avoiding the user from repeatedly performing the item retrieval operation manually multiple times, reducing the complexity of the user operation, and improving the item retrieval efficiency and the man-machine interaction efficiency.

[0172] In the above two embodiments, the transfer flow of batch items from the first storage space to the second storage space and the return flow of batch items from the second storage space to the first storage space are introduced respectively. However, in the embodiments of the present application, the transfer method of batch items and the overall flow of the transfer method of a single set of items are introduced. FIG. 10 is a schematic flowchart of the transfer method of virtual items provided by the embodiments of the present application. As shown in FIG. 10, taking the first storage space as the backpack of virtual objects and the second storage space as the cabinet of virtual objects as an example for explanation. In step 1001, the user drags the virtual item to be transferred in the backpack. In step 1002, the terminal detects the position when the user's finger leaves the terminal screen, that is, the terminal detects the release position of the drag-and-drop operation. In step 1003, the user drags the virtual item to the cabinet grid area, that is, the user drags the virtual item to the item storage area of the locker where the cabinet is located. In step 1004, the terminal transfers the single set of virtual items dragged this time from the backpack to the corresponding locker. The locker is an exemplary description of the item storage area corresponding to the storage container tag. In step 1005, the user drags the virtual item to the cabinet classification area, that is, the user drags the virtual item onto any storage container tag of the cabinet. In step 1006, the terminal transfers all virtual items of the same type as the virtual item dragged this time from the backpack to the corresponding locker. In step 1007, the terminal automatically names the locker in the cabinet and automatically adds an icon, that is, the terminal automatically arranges the container name and container icon for the storage container.

[0173] FIG. 11 is a schematic interface diagram of the transfer flow of items provided by the embodiment of the present application. As shown in FIG. 11, in the virtual scene 1100, a backpack area 1110 and a cabinet area 1120 are displayed. The backpack area 1110 is an exemplary description of the first storage space, and the cabinet area 1120 is an exemplary description of the second storage space. In the backpack area 1110, a plurality of virtual items stored in the backpack are displayed. In the cabinet area 1120, a cabinet grid area 1121 and a cabinet classification area 1122 are displayed. The cabinet grid area 1121 is an exemplary description of the item storage area corresponding to the storage container tag. The cabinet classification area 1122 is an exemplary description of the area for displaying the storage container tags of the second storage space. When an operation of releasing the hand after the user drags the target virtual item in the backpack to the cabinet grid area 1121 is detected, a flow for transferring the dragged target virtual item to the corresponding locker in the cabinet is triggered. When an operation of releasing the hand after the user drags the target virtual item in the backpack to the cabinet classification area 1122 is detected, a flow for batch-transferring all virtual items of the same type as the currently dragged target virtual item to the corresponding locker in the cabinet is triggered.

[0174] In the embodiments of the present application, when it is detected that the user drags a single set of virtual items in the backpack, it is determined whether the release position when the user releases the hand is in the cabinet grid area or in the cabinet classification area. Thereby, when it is detected that the release position is in the cabinet grid area, the dragged single set of virtual items is transferred to the corresponding locker of the cabinet. When it is detected that the release position is in the area where the storage container tag is displayed, it is determined again which specific locker the release position hits when the hand is released, that is, on which storage container tag. All virtual items of the same type as the virtual item dragged this time in the backpack are transferred to the locker determined above in a batch, and the locker is automatically named and an icon is automatically added. For example, the item name of the dragged virtual item is read and filled into the locker name of the locker, and at the same time, the item icon of the dragged virtual item is read and filled into the locker icon of the locker.

[0175] In the embodiments of the present application, it is not necessary for the user to transfer the virtual items repeatedly multiple times, which greatly reduces the complexity of the batch item transfer operation. When the user drags only a single set of virtual items, an interaction method can be realized in which fast transfer of all virtual items of the same type can be achieved, and the operation efficiency of the user transferring items in batches is greatly improved. Furthermore, by reading the item name and item icon of the virtual item dragged once and filling them into the locker name and locker icon of the corresponding locker, automatic naming of the cabinet locker and automatic addition of icons are realized, eliminating the need for the user to manually name the locker and install the locker icon, and further improving the man-machine interaction efficiency.

[0176] FIG. 12 is a schematic structural diagram of a virtual item transfer device provided by the embodiments of the present application. As shown in FIG. 12, the device includes A display module 1201 for displaying a first storage space and a second storage space, wherein a plurality of virtual items are displayed in the first storage space, a plurality of storage container tags are displayed in the second storage space, and each storage container tag corresponds to one item storage area, and the display module 1201, A determination module 1202 for determining a release position of a first drag-and-drop operation in response to the first drag-and-drop operation, wherein the first drag-and-drop operation is used to drag and drop a target virtual item in the first storage space to the second storage space, and the target virtual item is any virtual item in the first storage space, and the determination module 1202, An item transfer module 1203 for transferring the target virtual item from the first storage space to the first item storage area when the release position is located in the first item storage area, wherein the first item storage area is an item storage area corresponding to a target storage container tag among the plurality of storage container tags, and the target storage container tag is any one of the plurality of storage container tags, and the item transfer module 1203, including When the release position is located on the target storage container tag, the item transfer module 1203 is further used to transfer at least one first type of virtual item in the first storage space to the first item storage area, and the first type of virtual item is a virtual item of the same type as the target virtual item.

[0177] When a drag-and-drop operation from one storage space to another is detected, the device provided by the embodiment of the present application provides a single transfer operation for the currently selected virtual item and a batch transfer operation for all virtual items of the same type respectively based on the difference in the release position of the drag-and-drop operation. That is, when the release position is located in the item storage area, only the currently selected virtual item is transferred. When the release position is located on the storage container tag, by batch-transferring all virtual items of the same type, the user can flexibly control which virtual items to transfer this time by controlling the release position of the drag-and-drop operation. Moreover, with only one drag-and-drop operation, it is possible to control the batch transfer of items of the same type, avoiding the user from manually repeating the item transfer operation multiple times, reducing the complexity of the user's operation, and improving the item transfer efficiency and man-machine interaction efficiency.

[0178] In one possible embodiment, the item transfer module 1203 determines at least one first-type virtual item from a plurality of virtual items stored in the first storage space based on the item type of the target virtual item, and transfers all of the at least one first-type virtual item to the first item storage area.

[0179] In one possible embodiment, the item transfer module 1203 removes at least one first-type virtual item from the first storage space, and displays at least one first-type virtual item in the first item storage area.

[0180] In one possible embodiment, based on the configuration of the device in FIG. 12, the device further includes a name setting module for correcting the tag name of the target storage container tag so that the tag name matches the item name of the target virtual item when the release position is located on the target storage container tag.

[0181] In one possible embodiment, based on the configuration of the apparatus in FIG. 12, the apparatus further includes an icon installation module for correcting the tag icon of the target storage container tag so that when the release position is located on the target storage container tag, the tag icon coincides with the item icon of the target virtual item.

[0182] In one possible embodiment, based on the configuration of the apparatus in FIG. 12, the apparatus further includes a type determination module for determining a target item type associated with a first storage container tag in response to a second drag-and-drop operation, where the second drag-and-drop operation is used to drag and drop the first storage container tag among a plurality of storage container tags into a first storage space, and the first storage container tag is any storage container tag in a second storage space. The item transfer module 1203 is further used to transfer at least one second type virtual item in the second item storage area to the first storage space, where the second item storage area is the item storage area corresponding to the first storage container tag, and the second type virtual item is a virtual item having a target item type.

[0183] In one possible embodiment, the type determination module further determines the item type of the virtual item associated with the tag name of the first storage container tag as the target item type, or determines the item type of the virtual item associated with the tag icon of the first storage container tag as the target item type, or determines the item type of the virtual item with the largest storage quantity in the item storage area corresponding to the first storage container tag as the target item type.

[0184] In one possible embodiment, the item transfer module 1203 further Remove at least one second-type virtual item from the second item storage area, and display at least one second-type virtual item in the first storage space.

[0185] In one possible embodiment, based on the configuration of the apparatus in FIG. 12, the apparatus further includes a recovery module for recovering the tag name of the first storage container tag to a preset name in response to a second drag-and-drop operation, and the recovery module further recovers the tag icon of the first storage container tag to a preset icon in response to a second drag-and-drop operation.

[0186] In one possible embodiment, based on the configuration of the apparatus in FIG. 12, the apparatus further includes an installation module for correcting the tag name of the first storage container tag so that the tag name matches the item name of the first virtual item with the largest number of stored items among other virtual items when other virtual items are still stored in the second item storage area in response to a second drag-and-drop operation, and correcting the tag icon of the first storage container tag so that the tag icon matches the item icon of the first virtual item.

[0187] All of the above selectable technical solutions can form selectable embodiments of the present disclosure using any combination, which will not be elaborated here.

[0188] In addition, when the virtual item transfer device provided by the above embodiment transfers virtual items in batches, only the partitioning of the above functional modules is described by way of example. In actual applications, the above functions can be assigned to different functional modules as required to complete them. That is, by partitioning the internal structure of the electronic device into different functional modules, all or some of the functions described above can be completed. Further, the virtual item transfer device and the virtual item transfer method embodiment provided by the above embodiment belong to the same concept. For the specific implementation process, refer to the virtual item transfer method embodiment in detail, and no further elaboration will be provided here.

[0189] FIG. 13 is a schematic structural diagram of a terminal provided by an embodiment of the present application. As shown in FIG. 13, the terminal 1300 is an exemplary description of an electronic device. Usually, the terminal 1300 includes a processor 1301 and a memory 1302.

[0190] Optionally, the processor 1301 includes one or more processing cores, for example, a 4-core processor, an 8-core processor, etc. Optionally, the processor 1301 is implemented using at least one of the following hardware forms: DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). In some embodiments, the processor 1301 includes a main processor and a coprocessor. The main processor is a processor for processing data in the wake-up state and is also called a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1301 integrates a GPU (Graphics Processing Unit), and the GPU is used to render and draw the content that needs to be displayed on the display screen. In some embodiments, the processor 1301 further includes an AI (Artificial Intelligence) processor, and the AI processor is used to process the computational operations of related machine learning.

[0191] In some embodiments, the memory 1302 includes one or more computer-readable storage media. Optionally, the computer-readable storage media is non-transitory. Optionally, the memory 1302 further includes a high-speed random access memory and a non-volatile memory, for example, one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1302 is used to store at least one computer program, and the at least one computer program is executed by the processor 1301 to implement the transfer method of virtual items provided by each embodiment of the present application.

[0192] In some embodiments, the terminal 1300 further selectively includes a peripheral device interface 1303 and at least one peripheral device. The processor 1301, the memory 1302, and the peripheral device interface 1303 can be connected via a bus or signal lines. Each peripheral device can be connected to the peripheral device interface 1303 via a bus, signal lines, or a wiring board. Specifically, the peripheral device includes at least one of a display screen 1305 and a power source 1308.

[0193] The display screen 1305 is used to display a UI (User Interface). Optionally, the UI includes graphics, text, icons, videos, and any combination thereof. When the display screen 1305 is a touch screen, the display screen 1305 further has the ability to collect touch signals on or above the surface of the display screen 1305. The touch signals can be input to the processor 1301 as control signals for processing. Optionally, the display screen 1305 is further used to provide virtual buttons and / or a virtual keyboard, also referred to as soft buttons and / or a software keyboard. In some embodiments, there is one display screen 1305, which is installed on the front panel of the terminal 1300. In some other embodiments, there are at least two display screens 1305, which are installed on different surfaces of the terminal 1300 or present a folding design. In still some other embodiments, the display screen 1305 is a flexible display screen, which is installed on the curved surface or folding surface of the terminal 1300. Consequently, optionally, the display screen 1305 is installed on an irregular graphic that is non-rectangular, i.e., an irregular-shaped screen. Optionally, the display screen 1305 is manufactured using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0194] The power supply 1308 is used to supply power to each component of the terminal 1300. Optionally, the power supply 1308 is an alternating current, direct current, disposable battery, or rechargeable battery. When the power supply 1308 includes a rechargeable battery, the rechargeable battery supports wired charging or wireless charging. The rechargeable battery is further used to support fast charging technology.

[0195] As can be understood by those skilled in the art, the structure shown in FIG. 13 does not constitute a limitation on the terminal 1300, and may include more or fewer components than shown, or may be a combination of some components, or may adopt different arrangements of components.

[0196] FIG. 14 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 1400 can generate relatively large differences due to differences in arrangement or performance. The electronic device 1400 includes one or more central processing units (CPUs) 1401 and one or more memories 1402. At least one computer program is stored in the memory 1402. By being loaded and executed by the one or more processors 1401, the transfer method of the virtual item provided by each of the above embodiments is realized. Optionally, to facilitate input and output, the electronic device 1400 further has components such as a wired or wireless network interface, a keyboard, and an input / output interface. The electronic device 1400 further includes other components for realizing the functions of the device, which will not be elaborated here.

[0197] In an exemplary embodiment, a computer-readable storage medium is further provided, for example, including a memory for at least one computer program, and the at least one computer program can be executed by a processor in a terminal to complete the transfer method of virtual items in each of the above embodiments. For example, the computer-readable storage medium includes ROM (Read-Only Memory), RAM (Random-Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, flexible disk, and optical data storage devices, etc.

[0198] In an exemplary embodiment, a computer program product including one or more computer programs is further provided, and the one or more computer programs are stored in a computer-readable storage medium. One or more processors of an electronic device can read the one or more computer programs from the computer-readable storage medium, and the one or more processors can, by executing the one or more computer programs, cause the electronic device to execute to complete the transfer method of virtual items in the above embodiments.

[0199] As can be understood by those skilled in the art, realizing all or some of the steps of the above embodiments can be completed by hardware, or can also be completed by instructing related hardware by a program. Optionally, the program is stored in a computer-readable storage medium, and optionally, the above-mentioned storage medium is a read-only memory, magnetic disk, optical disk, etc.

[0200] The above description is only a selectable embodiment of the present application and is not intended to limit the present application. Any corrections, equivalent alternatives, improvements, etc. made within the spirit and principle of the present application should all be included within the protection scope of the present application.

Claims

1. A method for transferring virtual items executed by a terminal, comprising: displaying a first storage space and a second storage space, wherein a plurality of virtual items are displayed in the first storage space, and a plurality of storage container tags are displayed in the second storage space, and each storage container tag corresponds to one item storage area; responding to a first drag-and-drop operation, determining a release position of the first drag-and-drop operation, wherein the first drag-and-drop operation is used to drag and drop a target virtual item in the first storage space to the second storage space, and the target virtual item is any one of the virtual items in the first storage space; when the release position is located in a first item storage area, transferring the target virtual item from the first storage space to the first item storage area, wherein the first item storage area is an item storage area corresponding to a target storage container tag among the plurality of storage container tags, and the target storage container tag is any one of the plurality of storage container tags; when the release position is located on the target storage container tag, transferring at least one first type virtual item in the first storage space to the first item storage area, wherein the first type virtual item is a virtual item of the same type as the target virtual item. A method characterized by the above.

2. The step of transferring at least one first type virtual item in the first storage space to the first item storage area includes: determining the at least one first type virtual item from a plurality of virtual items stored in the first storage space based on the item type of the target virtual item; transferring all of the at least one first type virtual items to the first item storage area. A method according to Claim 1, characterized by the above.

3. The step of transferring at least one first type virtual item in the first storage space to the first item storage area includes: removing the at least one first type virtual item from the first storage space. displaying, in the first item storage area, the at least one first type of virtual item; The method according to claim 1, characterized in that.

4. When the release position is located on the target storage container tag, the method further includes: correcting the tag name of the target storage container tag so that the tag name of the target storage container tag matches the item name of the target virtual item. The method according to claim 1, characterized in that.

5. When the release position is located on the target storage container tag, the method further includes: correcting the tag icon of the target storage container tag so that the tag icon of the target storage container tag matches the item icon of the target virtual item. The method according to claim 1, characterized in that.

6. determining a target item type associated with a first storage container tag in response to a second drag-and-drop operation, wherein the second drag-and-drop operation is used to drag and drop the first storage container tag among the plurality of storage container tags into the first storage space, and the first storage container tag is any storage container tag in the second storage space; transferring at least one second type of virtual item in a second item storage area to the first storage space, wherein the second item storage area is an item storage area corresponding to the first storage container tag, and the second type of virtual item is a virtual item having the target item type. The method according to claim 1, characterized in that.

7. The step of determining the target item type associated with the first storage container tag includes: determining, as the target item type, the item type of the virtual item associated with the tag name of the first storage container tag, or determining, as the target item type, the item type of the virtual item associated with the tag icon of the first storage container tag, or determining, as the target item type, the item type of the virtual item with the largest storage quantity in the item storage area corresponding to the first storage container tag. The method according to claim 6, characterized in that.

8. The step of transferring at least one second type of virtual item in the second item storage area to the first storage space includes: Removing the at least one second type of virtual item from the second item storage area; Displaying the at least one second type of virtual item in the first storage space. The method according to claim 6, characterized in that.

9. In response to a second drag-and-drop operation, the method further includes: Restoring the tag name of the first storage container tag to a preset name; Restoring the tag icon of the first storage container tag to a preset icon. The method according to claim 6, characterized in that.

10. In response to a second drag-and-drop operation, the method further includes: When there are still other virtual items stored in the second item storage area, determining the first virtual item with the largest number of stored items from the other virtual items; Correcting the tag name of the first storage container tag so that the tag name of the first storage container tag matches the item name of the first virtual item; Correcting the tag icon of the first storage container tag so that the tag icon of the first storage container tag matches the item icon of the first virtual item. The method according to claim 6, characterized in that.

11. A transfer device for virtual items arranged on a terminal, comprising: A display module for displaying a first storage space and a second storage space, wherein a plurality of virtual items are displayed in the first storage space, and a plurality of storage container tags are displayed in the second storage space, and each storage container tag corresponds to one item storage area; A determination module for determining the release position of the first drag-and-drop operation in response to the first drag-and-drop operation, wherein the first drag-and-drop operation is used to drag and drop a target virtual item in the first storage space to the second storage space, and the target virtual item is any virtual item in the first storage space. When the release position is located in the first item storage area, an item transfer module for transferring the target virtual item from the first storage space to the first item storage area, wherein the first item storage area is an item storage area corresponding to a target storage container tag among the plurality of storage container tags, and the target storage container tag is any one of the plurality of storage container tags, the item transfer module; When the release position is located on the target storage container tag, the item transfer module is further used to transfer at least one first type virtual item in the first storage space to the first item storage area, and the first type virtual item is a virtual item of the same type as the target virtual item. The device is characterized by the above. **Claim 12** An electronic device, the electronic device includes one or more processors and one or more memories, and at least one computer program is stored in the one or more memories. The at least one computer program is loaded and executed by the one or more processors to implement the virtual item transfer method according to any one of Claims 1 to 10. The electronic device is characterized by the above. **Claim 13** A computer program, which is loaded and executed by a processor to implement the virtual item transfer method according to any one of Claims 1 to 10. The computer program is characterized by the above.

Citation Information

Patent Citations

  • Stacking control method and device for virtual items, terminal equipment and storage medium

    CN114159779A

  • Information management apparatus, method and program

    JP2006235742A

  • Shelf allocation support device and shelf allocation support program

    JP2013054591A