Method and apparatus, device, and program for operating virtual items
The method and apparatus enable efficient and intuitive adjustment of virtual item quantities through a slide operation, addressing the complexity of existing virtual item management systems.
Patent Information
- Application Number
- JP2024532933
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-06-24
- Filing Date
- 2023-04-17
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2043-04-17
AI Technical Summary
Existing methods for changing the number of virtual items in games require complicated operations, leading to low operation efficiency.
A method and apparatus that allows users to dynamically change the quantity of virtual items through a slide operation, enabling selection and execution of operations with a single gesture.
This approach simplifies the operation process, improves efficiency, reduces accidental touches, and enhances the continuity and smoothness of the selection and execution process.
Smart Images

Figure 0007714805000001 
Figure 0007714805000002 
Figure 0007714805000003
Abstract
Description
Technical Field
[0001] (Cross - reference to related applications) This application claims priority to a Chinese patent application filed on June 24, 2022, with application number 202210728889.X and invention title "Method and Apparatus, Device, Storage Medium, and Program Product for Operating Virtual Items", and all the contents of the Chinese patent application are incorporated herein by reference.
[0002] This application relates to the fields of the Internet and computer technology, and in particular, to a method and apparatus, device, storage medium, and program product for operating virtual items.
Background Art
[0003] In some games, users can perform corresponding operations on available virtual items to achieve the effects of using or transferring virtual items.
[0004] In related technologies, when changing the number of virtual items, the user needs to select the virtual item, enter a number in the quantity selection interface of the virtual item, or manually drag the slider to determine the selected quantity of the virtual item, and then perform a determination operation. The terminal device responds to the determination operation and performs corresponding operations such as discarding, combining, and purchasing on the virtual items with the selected quantity.
[0005] However, in related technologies, the user needs to perform complicated operations to change the number of virtual items, so the operation efficiency is low.
Summary of the Invention
Problems to be Solved by the Invention
[0006] This application provides a method and apparatus, device, storage medium, and program product for operating virtual items.
Means for Solving the Problems
[0007] According to one aspect of an embodiment of the present application, there is provided a method for operating a virtual item executed by a terminal device, the method comprising: displaying an item bar, wherein at least one display item of a virtual item is displayed in the item bar; displaying a quantity selection interface corresponding to the first virtual item in response to a first slide operation on the display item of the first virtual item among the at least one virtual item; dynamically changing the selected quantity of the first virtual item displayed in the quantity selection interface during the process of the display item of the first virtual item moving along with the first slide operation; executing a first operation on the first virtual item with the selected quantity in response to the release of the first slide operation.
[0008] According to one aspect of an embodiment of the present application, there is provided an operating device for a virtual item, the device comprising an item display module, a quantity display module, and an operation execution module, the item display module is configured to display an item bar, and at least one display item of a virtual item is displayed in the item bar, the quantity display module is configured to display a quantity selection interface corresponding to the first virtual item in response to a first slide operation on the display item of the first virtual item among the at least one virtual item, the quantity display module is further configured to dynamically change the selected quantity of the first virtual item displayed in the quantity selection interface during the process of the display item of the first virtual item moving along with the first slide operation, the operation execution module is configured to execute a first operation on the first virtual item with the selected quantity in response to the release of the first slide operation.
[0009] According to one aspect of an embodiment of the present application, a terminal device is provided that includes a processor and a memory. A computer program is stored in the memory, and the processor loads and executes the computer program to implement the method for operating the virtual item described above.
[0010] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided that stores a computer program for causing the processor to implement the method for operating the virtual item described above when the computer program is loaded and executed by the processor.
[0011] According to one aspect of an embodiment of the present application, a computer program product including a computer program is provided. The computer program is stored in a computer-readable storage medium, and the processor reads and executes the computer program from the computer-readable storage medium to implement the method for operating the virtual item described above.
Advantages of the Invention
[0012] The technical solution according to the embodiment of the present application may include the following beneficial effects.
[0013] Perform a slide operation on the display items of the first virtual item, and by releasing the slide operation, the selected quantity of the first virtual item can be dynamically determined, and a first operation can be executed on the first virtual item with the selected quantity. On the one hand, in the embodiments of the present application, with only one slide operation, the selection of the virtual item, the adjustment of the selected quantity, and the trigger of the first operation are realized, and corresponding operations (for example, discarding some virtual items) can be executed on some virtual items with only one-step operation, which greatly improves the convenience of the operation. On the other hand, the embodiments of the present application can improve the continuity between the process of determining the selected quantity and the execution of the first operation, and can improve the smoothness of the execution process of the first operation on the first virtual item with the selected quantity. On the other hand, compared with the complicated operations in the related art, the embodiments of the present application only need to perform one slide operation, simplify the operation, improve the operation efficiency, and only need to perform one slide operation, which helps to reduce the probability of problems such as accidental touch and improve the success rate of the operation.
Brief Description of the Drawings
[0014]
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Mode for Carrying Out the Invention
[0015] In order to make the object, technical solution and advantages of the present application more clear, the embodiments of the present application will be described in more detail below with reference to the drawings.
[0016] FIG. 1 is a schematic diagram of an implementation environment of a solution according to one exemplary embodiment of the present application. The implementation environment of the solution may be realized as a computer system such as a game application system. The implementation environment of the solution may include a terminal device 10 and a server 20.
[0017] The terminal device 10 may be an electronic device such as a mobile phone, a tablet computer, a personal computer (PC), a game console, a multimedia playback device, a wearable device, a smart voice interaction device, a smart home appliance, an in-vehicle terminal, or a smart robot. In one example, a target application is installed and executed on the terminal device 10, and the target application may be a game application, a shopping application, a simulation learning application, a live application, a social entertainment application, etc. In some embodiments, the above game applications may include first-person shooting (FPS) games, adventure games (ATG), action games (ACT), and simulation games (SLG), etc.
[0018] For example, taking the case where the target application is a first-person shooting application as an example, the target application provides at least one virtual item to the user, and the virtual item is used to affect the attributes of a first virtual object controlled by the user or the attributes of a second virtual object not controlled by the user within the target application. Examples include virtual attack props, virtual vehicles, virtual defense props, buff props, etc. Optionally, the user can perform corresponding operations on the virtual props, such as discarding, combining, picking up, purchasing, selling, etc.
[0019] Server 20 can provide backend services for the target application executed on terminal device 10. For example, server 20 may be the backend server of the target application. Server 20 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communication, domain name services, and artificial intelligence platforms. Optionally, the server 20 has at least functions of data transmission and reception, storage, and computing.
[0020] Terminal device 10 and server 20 can communicate with each other via a network, and the network may be a wired network or a wireless network.
[0021] In some embodiments, taking a game application as an example, server 20 can be configured to provide game data for the game application executed on terminal device 10. For example, server 20 can provide game data such as virtual items, the placement positions and quantities of virtual items in the virtual environment for the game application. The game application arranges the corresponding number of virtual items at the corresponding positions in the virtual environment based on the game data provided by server 20, and when the distance between the first virtual object controlled by the user and a virtual item satisfies the display distance, the game application displays the virtual item in the virtual environment.
[0022] FIG. 2 is a flowchart of a method for operating a virtual item according to one exemplary embodiment of the present application. Exemplarily, the execution subject of the method may be the terminal device 10 in the implementation environment of the solution shown in FIG. 1. For example, the execution subject may be the client of the target application executed on the terminal device 10. As shown in FIG. 2, the method may include the following steps (210 to 240).
[0023] In step 210, an item bar is displayed, and at least one display item of a virtual item is displayed in the item bar.
[0024] The virtual item may be an item provided for use in a user account when the client of the target application is executed on the terminal device. The virtual item may be a virtual item of a physical item, or a semi-virtual and semi-fictional item, or a completely fictional item, and the present application is not limited herein. Exemplarily, the virtual item can be used in a virtual environment, and the virtual environment may be an environment displayed (or provided) when the client of the target application is executed on the terminal device. The virtual environment refers to an environment constructed for the activity of virtual objects (for example, a game session), and may be, for example, a virtual building, a virtual island, a virtual space, a virtual land, etc.
[0025] In some embodiments, the virtual item can affect the attribute information of at least one virtual object in the virtual environment. For example, in a combat game, if the virtual item is an attack item, it can be used to reduce the health points of the virtual objects in the virtual environment. In another example, if the virtual item is an auxiliary item, it can be used to enhance the state of the virtual object (such as health points, movement speed, field of view, etc.). In some other embodiments, the virtual item can affect the virtual environment. For example, if the virtual item is a building material, it can be used to construct a new structure in the virtual environment. It should be noted that the type and function of the virtual item can be determined according to actual needs, and this application is not limited here.
[0026] The item bar is used to store or display at least one virtual item. In some embodiments, the item bar displays display items for at least one virtual item. The display item of a certain virtual item is used to display information related to this type of virtual item. Exemplarily, the display item of the virtual item displays at least one of the identification mark information of the virtual item, the total number of virtual items, and the usage instructions of the virtual item. The embodiments of this application do not limit the style of the item bar, and it may be the style of a backpack, a shelf, a list, etc. The embodiments of this application also do not limit the style of the display item of the virtual item, and it may be a combination style of graphics and text, an image style, a text style, etc. Optionally, for the display items of two different virtual items in the item bar, their display sizes may be the same or different.
[0027] In some embodiments, the identification mark information of the virtual item is used to identify the type of virtual item, and the user can quickly find the display position of the virtual item of this type from the item bar based on the display item of the virtual item. Here, the identification mark information of the virtual item may be at least one of the name of the virtual item, the icon of the virtual item, and the label of the virtual item.
[0028] In some embodiments, the total number of virtual items may refer to the number of virtual items owned by the virtual object, that is, the maximum number of virtual items of this type that the user can currently use. Exemplarily, display items of available virtual items are displayed in the item bar, and the total number of available virtual items may be 1 or more. That is, in the item bar, only the virtual items that the user can control at the current game progress are displayed. For example, the item bar can be used to display the virtual items stored in the virtual backpack owned by the virtual object. All virtual items currently owned by the virtual object can be included in the virtual backpack. When the user opens the virtual backpack, the client displays the item bar corresponding to the virtual backpack, and the item bar arranges and displays the display items of all virtual items in the virtual backpack in the form of a list. Display items of available virtual items are displayed in the item bar, which helps to increase the speed at which the user determines the virtual item to search for from the item bar by reducing the display of invalid information.
[0029] In some embodiments, the total number of virtual items is changeable. Exemplarily, the total number of virtual items can be reduced according to a consumption operation related to the virtual item of this type. For example, the consumption operation may include at least one of a transfer operation for the virtual item, a use operation for the virtual item, and a synthesis operation for the virtual item.
[0030] Here, the transfer operation for virtual items may refer to discarding a certain number of virtual items in the virtual environment. For example, it may refer to discarding n virtual items A from the item bar into the virtual environment, where n is a positive integer. Alternatively, the transfer operation for virtual items may refer to transferring a certain number of virtual items to other virtual objects within the virtual environment. For example, it may refer to transferring m virtual items B from the item bar to the virtual backpack of another virtual object, where m is a positive integer.
[0031] Optionally, the transfer operation for virtual items does not change the attributes of the virtual items. For example, a virtual items C are discarded by the user into the virtual environment, and the virtual item C can still be used after being picked up by another virtual object.
[0032] In some embodiments, the use operation for virtual items may refer to an operation of acting on the virtual items. For example, a certain virtual item is used to increase the health points of a virtual object, and the virtual object may be any one of the virtual objects within the virtual environment that exists within the action range of the virtual item. After using b virtual items of this type on a certain virtual object, the health points of the virtual object increase, and the total number of virtual items of this type decreases by b, where b is a positive integer.
[0033] In some embodiments, the total number of virtual items increases according to the acquisition operation related to the virtual items. For example, in a FPS game, the acquisition operation may include at least one of picking up virtual items of this type in the virtual environment, transferring other virtual objects in the game session, and corresponding rewards after task completion. In another example, in a SIM game, the acquisition operation may include at least one of the manufacturing operation for virtual items of this type, picking up virtual items of this type in the virtual environment, and transferring other virtual objects in the game session.
[0034] Figure 3 is a schematic diagram of a display method for an item column according to one exemplary embodiment of the present application. In Figure 3, an item column 310 is displayed at the edge of a display interface 300, and display items corresponding to eight virtual items are respectively displayed in the item column 310. Here, the display item 312 is used to indicate the virtual item "drink", and the name of the virtual item ("Item 4"), the icon 314 of the virtual item, and the total number of the virtual item ("2") are displayed in the display item 312.
[0035] In step 220, in response to a first slide operation on the display item of the first virtual item among at least one virtual item, a quantity selection interface corresponding to the first virtual item is displayed.
[0036] The above-mentioned first virtual item may refer to one or more virtual items in which display items are displayed in the item column. The first virtual item in the embodiments of the present application is also called a target virtual item and indicates any one or more of at least one virtual item. For example, in the item column, a display item of virtual item 1, a display item of virtual item 2, a display item of virtual item 3, and a display item of virtual item 4 are respectively displayed. In this case, the first virtual item may refer to any one or more of virtual item 1, virtual item 2, virtual item 3, and virtual item 4. For example, the first virtual item is virtual item 1. In another example, the first virtual item may include virtual item 2 and virtual item 4, and the present application is not limited here.
[0037] In some embodiments, the terminal device determines a display item of at least one virtual item from an item bar in response to a selection operation of a display item. The selection operation of the display item may include a click operation, a slide operation, a button press operation, etc. Optionally, the selection operation of the display item may be triggered by the user via the display of the terminal device, or may be triggered by an external connection controller of the terminal device, such as a mouse, a keyboard, a handle, etc.
[0038] In some embodiments, the first slide operation refers to a slide operation triggered within the display area of the display item of the first virtual item. For example, the first slide operation may be a slide operation along a specific slide direction, for example, performing a leftward slide operation on the display item of the first virtual item with a finger.
[0039] In some embodiments, the quantity selection interface corresponding to the first virtual item is used to display the selected quantity of the first virtual item, and the selected quantity of the first virtual item refers to the quantity of the first virtual object selected by the user. Optionally, at least one of a number and a ratio mark representing the selected quantity of the first virtual item is displayed on the quantity selection interface corresponding to the first virtual item. The selected quantity of the first virtual item displayed on the quantity selection interface is 0 or more and less than or equal to the total number of the first virtual items. When the total number of the first virtual items is greater than 1, the selected quantity of the first virtual item changes along with the movement process of the first slide operation.
[0040] To facilitate the user's control of the distance of the first slide operation, the quantity selection interface corresponding to the first virtual item and the item bar can be simultaneously displayed on the user interface. In this way, the user can adjust the first slide operation based on the change in the selected quantity in the quantity selection interface. For example, by adjusting the slide distance of the first slide operation, the selected quantity can be changed.
[0041] In some embodiments, the display position of the quantity selection interface corresponding to the first virtual item does not overlap with the display position of the item column.
[0042] For example, the item column is displayed in the right region of the user interface, the quantity selection interface corresponding to the first virtual item is displayed in the central region of the user interface, and the minimum distance between the boundary of the quantity selection interface corresponding to the first virtual item and the boundary of the item column is i pixels or less, where i is a natural number.
[0043] In another example, the item column is displayed in the first region in the user interface, the quantity selection interface corresponding to the first virtual item is displayed in the second region below the first region, and the minimum distance between the first region and the second region is j pixels or more, where j is a natural number.
[0044] In some other embodiments, the display position of the quantity selection interface corresponding to the first virtual item overlaps with the display position of the item column in the user interface. Optionally, the quantity selection interface corresponding to the first virtual item is displayed around the display item of the first virtual item. For example, the quantity selection interface corresponding to the first virtual item is displayed below the display item of the first virtual item, and the quantity selection interface corresponding to the first virtual item temporarily obscures (e.g., completely obscures or semi-transparently obscures) a part of other display items around the display item of the first virtual item.
[0045] Note that the display area of the quantity selection interface of the first virtual item can be set according to the actual situation, and the present application does not limit it here.
[0046] In step 230, during the process of the display item of the first virtual item moving along with the first slide operation, the selected quantity of the first virtual item displayed on the quantity selection interface is dynamically changed.
[0047] In an embodiment of the present application, the display item of the virtual item can move along with the slide operation. In this way, by allowing the user to intuitively feel the effect of the slide operation, the accuracy of the user's control over the slide operation can be improved.
[0048] Optionally, the selected quantity of the first virtual item may change in correlation with the slide distance of the first slide operation. For example, as the slide distance of the first slide operation increases, the value of the selected quantity of the first virtual item also increases, or as the slide distance of the first slide operation increases, the value of the selected quantity of the first virtual item decreases. The display item of the first virtual item may also change in correlation with the slide distance of the first slide operation. For example, as the slide distance of the first slide operation increases, the position movement value of the display item of the first virtual item also increases.
[0049] In some embodiments, in response to the first slide operation on the display item of the first virtual item, the client displays the initial selected quantity of the first virtual item in the quantity selection interface corresponding to the first virtual item. During the process that the display item of the first virtual item moves along with the first slide operation, the client changes the initial selected quantity and determines the value of the changed selected quantity corresponding to the first virtual item based on the first slide operation.
[0050] For example, when the initial selected quantity of the first virtual item is 0, during the process that the display item of the first virtual item moves along with the first slide operation, the value of the selected quantity of the first virtual item displayed in the quantity selection interface continues to increase until the selected quantity of the first virtual item equals the total number of the first virtual item.
[0051] In another example, the initially selected quantity of the first virtual item is the total number of the first virtual items. The client displays the initially selected quantity of the first virtual item in the quantity selection interface in response to a first slide operation on the display item of the first virtual item. In the process that the display item of the first virtual item moves along with the first slide operation, the selected quantity of the first virtual item displayed in the quantity display interface continues to decrease until the value of the selected quantity of the first virtual item becomes equal to x, where x = 0, 1. For the specific content of this process, refer to the following embodiments and no detailed description is provided here.
[0052] In step 240, in response to the release of the first slide operation, a first operation is performed on the first virtual item with the selected quantity.
[0053] The release of the first slide operation refers to ending the first slide operation. For example, when the user stops sliding and controls the finger (or touch screen device) to leave the display of the terminal device, the terminal device stops receiving information related to the first slide operation. In some embodiments, when the terminal device senses that the finger that triggered the first slide operation has left the screen of the terminal device (for example, the pressure at the contact point between the first slide operation and the terminal device is less than the pressure threshold), the terminal device can identify the release of the first slide operation. Or, when the terminal device senses that the finger that triggered the first slide operation has left the screen of the terminal device, the terminal device can identify the release of the first slide operation.
[0054] In some embodiments, the first operation refers to an operation that can be performed on a virtual item in a game session. Exemplarily, the first operation may include at least one of discarding the first virtual item with the selected quantity in the virtual environment, transferring the first virtual item with the selected quantity to another virtual object, using all the first virtual items with the selected quantity at once, etc., and the present application is not limited here.
[0055] Optionally, the total number of the first virtual items can be changed by the first operation. For example, when the selected quantity of the first virtual item is 3 and the total number of the first virtual items is 5, after the terminal device performs the first operation on the first virtual item with the selected quantity, the total number of the first virtual items becomes 2 (the calculation method is 5 - 3).
[0056] In summary, in the technical solution according to the embodiment of the present application, a slide operation is performed on the display item of the first virtual item, and by releasing the slide operation, the selected quantity of the first virtual item is dynamically determined, and the first operation can be performed on the first virtual item with the selected quantity. On the one hand, in the embodiment of the present application, with only one slide operation, the selection of the virtual item, the adjustment of the selected quantity, and the trigger of the first operation are realized, and the corresponding operations (for example, discarding some virtual items) can be performed on some virtual items with only one-step operation, which greatly improves the convenience of the operation. On the other hand, the embodiment of the present application can improve the continuity between the process of determining the selected quantity and the execution of the first operation, and can improve the smoothness of the execution process of the first operation on the first virtual item with the selected quantity. On the one hand, compared with the complicated operations in the related art, the embodiment of the present application only needs to perform one slide operation, simplifies the operation, improves the operation efficiency, and since only one slide operation needs to be performed, it helps to reduce the probability of problems such as accidental touch and improve the success rate of the operation.
[0057] In the following, through several embodiments, the process of dynamically changing the selected quantity of the first virtual item will be introduced and explained.
[0058] In some embodiments, the above quantity selection interface displays a slide bar and a slider located on the slide bar. The display position of the slider on the slide bar is used to display the proportional relationship between the selected quantity of the first virtual item and the total quantity of the first virtual item. When the display item of the first virtual item moves along with the first slide operation, the step of dynamically changing the selected quantity of the first virtual item displayed in the quantity selection interface includes: in the process of the display item of the first virtual item moving along with the first slide operation, the terminal device determines the selected quantity of the first virtual item based on the slide distance of the first slide operation; and the terminal device dynamically changes the display position of the slider on the slide bar in response to the change in the selected quantity of the first virtual item, so as to display the proportional relationship between the selected quantity of the first virtual item and the total quantity of the first virtual item.
[0059] Here, the slider on the slide bar can move to any position on the slide bar. For different positions of the slider on the slide bar, the corresponding selected quantities of the first virtual item are not exactly the same. By showing the correspondence between the selected quantity and the first slide operation through the slide bar and the slider, the user can more intuitively adjust the selected quantity of the first virtual item, which is helpful for further improving the operation accuracy.
[0060] In some embodiments, there is a consistency between the sliding operation of the slider on the slide bar and the sliding direction of the first slide operation. That is, there is also a consistency between the distribution direction of the slide bar in the quantity selection interface and the sliding direction of the first slide operation. For example, when the sliding direction of the first slide operation is the horizontal direction, the slide bar is displayed horizontally in the quantity selection interface. For example, when the sliding direction of the first slide operation is the vertical direction, the slide bar is displayed vertically in the quantity selection interface. By supporting the moving direction of the slider on the slide bar to be consistent with the sliding direction of the first slide operation and the distribution direction of the slide bar to be consistent with the sliding direction of the first slide operation, the user can intuitively perceive the influence of the first slide operation on the selected quantity, and further improve the operation accuracy.
[0061] The sliding distance of the first slide operation refers to the moving distance in the sliding direction of the first slide operation, and the moving distance can be calculated based on the coordinates of the current contact point corresponding to the first slide operation and the coordinates of the initial contact point of the first slide operation.
[0062] In some embodiments, the selected quantity of the first virtual item is directly proportional to the sliding distance of the first slide operation. That is, the selected quantity of the first virtual item increases as the sliding distance of the first slide operation increases until the selected quantity of the first virtual item is equal to the total number of the first virtual items, or the selected quantity of the first virtual item decreases as the sliding distance of the first slide operation decreases until the selected quantity of the first virtual item is equal to 0 or 1.
[0063] In some embodiments, the selected quantity of the first virtual item is inversely proportional to the slide distance of the first slide operation. That is, the selected quantity of the first virtual item decreases as the slide distance of the first slide operation increases until the selected quantity of the first virtual item equals 0 or 1. Or, the selected quantity of the first virtual item increases as the slide distance of the first slide operation decreases until the selected quantity of the first virtual item equals the total number of the first virtual items.
[0064] In some embodiments, the terminal device determines the selected quantity of the first virtual item based on the slide distance of the first slide operation or the moving distance of the display item of the first virtual item. Here, the moving distance of the display item of the first virtual item refers to the distance that the display item of the first virtual item moves along with the first slide operation, and the moving distance of the display item of the first virtual item can be calculated based on the current position and the initial position of the display item of the first virtual item. In some embodiments, when the slide distance of the first slide operation is greater than or equal to the moving distance of the display item of the first virtual item, the degree of movement of the display item of the first virtual item can be determined by reducing the degree of the first slide operation at the same ratio.
[0065] In some embodiments, in the process of the display item of the first virtual item moving along with the first slide operation, in order to avoid other display contents being blocked by the movement of the display item of the first virtual item, the terminal device cancels the display of the part of the display item of the first virtual item that exceeds the item bar.
[0066] In some embodiments, the terminal device moving the display item of the first virtual item along with the first slide operation is achieved by setting a movement control at the display position of the display item of the first virtual item.
[0067] Exemplarily, the movement control can be determined based on the complete display item, and with the complete display item, the style and initial display position of the movement control can be determined. Optionally, the movable direction of the movement control is related to the slide direction of the first slide operation. For example, the movable direction of the movement control coincides with the slide direction of the first slide operation. In some embodiments, the movement of the movement control is restricted by a movement range, and the movement control can only move within the movement range. For example, the movement range of the movement control is the same as the display area of the display item of the first virtual item, that is, the complete display area of the display item is the movement range of the movement control.
[0068] As an example, FIG. 4 is a schematic diagram of the movement direction of the control according to one exemplary embodiment of the present application. In FIG. 4, the movement direction of the movement control corresponding to the display item 420 of the first virtual item in the item bar 410 is the horizontal direction, and the movement control corresponding to the display item 420 of the first virtual item moves within the movement range 430, and the movement range 430 is the complete display area of the display item 420. In the process of the display item 420 of the first virtual item moving along with the first slide operation, the terminal device cancels the display of the portion 422 that exceeds the item bar 410 of the display item 420 of the first virtual item.
[0069] In some embodiments, the step in which the terminal device determines the selected quantity of the first virtual item based on the slide distance of the first slide operation includes: the step in which the terminal device obtains the ratio of the slide distance of the first slide operation to the predetermined maximum slide distance; and the step in which the terminal device determines the selected quantity of the first virtual item based on the ratio and the total number of the first virtual items.
[0070] Here, the predetermined maximum slide distance refers to the maximum slide distance that can be reached by the first slide operation, and the predetermined maximum slide distance is less than or equal to the display size of the user interface. In order to reduce the occlusion of the screen displayed on the user interface by the user's finger during the process of performing the first slide operation and shorten the time it takes for the user to determine the selected quantity of the first virtual item by the first slide operation, the predetermined maximum slide distance is usually smaller than the display size of the user interface. Optionally, the predetermined maximum slide distance is preset. For example, the predetermined maximum slide distance is related to the display size of the user interface.
[0071] In some embodiments, the predetermined maximum slide distance is related to the display size of the display item of the first virtual item. For example, if the display item of the first virtual item is rectangular and the long side contains k pixels, the predetermined maximum slide distance is equal to k pixels, where k is a positive integer. By setting the predetermined maximum slide distance, the effective range of the first slide operation is restricted, the first slide operation performed by the user is restricted within the predetermined maximum slide distance, which helps to avoid accidental touches on other controls during the first slide operation.
[0072] For example, when the slide distance of the first slide operation is 20 pixels and the predetermined maximum slide distance is 50 pixels, the ratio of the slide distance of the first slide operation calculated by the terminal device to the predetermined maximum slide distance is equal to 0.4.
[0073] In some embodiments, the terminal device determines the selected quantity of the first virtual item by calculating the product of the above ratio and the total number of the first virtual items. For example, assuming that the calculated ratio is 0.7 and the total number of the first virtual items is 10, the selected quantity of the first virtual item is 0.7 * 10 = 7. The selected quantity of the first virtual item is a natural number. When a decimal point appears in the product of the ratio and the total number of the first virtual items, it is necessary to perform an integer conversion operation on the product of the multiplication. The integer conversion operation may be a rounding-up operation. For example, 1.4 is rounded up to 2. The integer conversion operation may also be a rounding-down operation. For example, 1.4 is rounded down to 1. Assuming that the total number of a certain first virtual item is 6, in the process of the slider sliding along with the first slide operation, when the ratio is equal to 0.6, the selected quantity of the first virtual item is 0.6 * 6 = 3.6, which can be rounded up to 4.
[0074] In some embodiments, in the process of the display item of the first virtual item moving along with the first slide operation, the terminal device can update and calculate the selected quantity of the first virtual item at regular time intervals. For example, the terminal device recalculates the selected quantity of the first virtual item every 0.2 seconds. During the first slide operation, the slider also performs a corresponding slide operation on the slide bar, indicating that the selected quantity of the first virtual item is constantly changing.
[0075] For example, when the slide direction of the first slide operation is from left to right, the moving direction of the slider on the slide bar is also from left to right. In another example, when the slide direction of the first slide operation is from top to bottom, the moving direction of the slider on the slide bar is also from top to bottom.
[0076] As an example, FIG. 5 is a schematic diagram of the change in the display position of the slider according to one exemplary embodiment of the present application. On the display screen 500, in response to the first slide operation on the display item 510 of the first virtual item, the terminal device displays the quantity selection interface 512 corresponding to the first virtual item. The slider 514 in the quantity selection interface 512 is displayed at the right end of the slide bar 516. In this case, the selected quantity of the first virtual item is 0. As the slide distance of the first slide operation continues to increase, the slider 514 and the display item 510 begin to change. As the first slide operation progresses, the terminal device displays on the quantity selection interface 512 that the slider 514 moves to the left along the slide bar 516 and the display item 510 moves to the left. In this case, the selected quantity of the first virtual item is changed from 0 to 51.
[0077] As can be understood from the above, since the display item of the first virtual item can move with the first slide operation, in some embodiments, the moving direction of the slider on the slide bar, the slide direction of the first slide operation, and the moving direction of the display item of the first virtual item are the same. For example, when the slide direction of the first slide operation is from left to right, the moving direction of the slider on the slide bar is from left to right, and the moving direction of the display item of the first virtual item is also from left to right.
[0078] Through the above method, the user can quickly determine the selected quantity of the first virtual item by the first slide operation, which helps to simplify the operations that the user needs to perform to execute the first operation on the first virtual item with the selected quantity, makes the process of the user operating on the virtual item in the item bar during the game smoother, and helps to improve the user's gaming experience.
[0079] Hereinafter, through several embodiments, the display process of the quantity selection interface will be introduced and explained.
[0080] In some embodiments, the step of the terminal device displaying a quantity selection interface corresponding to the first virtual item in response to a first slide operation on a display item of the first virtual item among at least one virtual item includes: the terminal device controlling the display item of the first virtual item to move along with the first slide operation in response to the first slide operation on the display item of the first virtual item; and when the moving distance of the display item of the first virtual item reaches a first threshold, the terminal device displaying a quantity selection interface corresponding to the first virtual item. By displaying the quantity selection interface only after the first slide operation meets the conditions, it is possible to avoid the display of a meaningless quantity selection interface due to the user's accidental operation, thereby ensuring the user experience.
[0081] Optionally, the moving direction of the display item of the first virtual item is consistent with the slide direction of the first slide operation. For example, when the slide direction of the first slide operation is from right to left, the moving direction of the display item of the first virtual item is also from right to left.
[0082] Since the moving process of the display item of the first virtual item displayed on the user interface can be matched with the slide process of the first slide operation, and the movement of the display item of the first virtual item can be used as a reference for the slide distance that the first slide operation needs to reach, the moving speed of the display item of the first virtual item is correlated with the slide speed of the first slide operation. Exemplarily, the moving speed of the display item of the first virtual item is equal to the slide speed of the first slide operation.
[0083] The terminal device controls the moving speed of the display item of the first virtual item based on the slide speed of the first slide operation, and matches the movement of the display item of the first virtual item with the slide process of the first slide operation. During the execution of the first slide operation, the terminal device can display the corresponding screen, facilitating the user to obtain feedback information corresponding to the first slide operation (the moving process of the display item of the first virtual item) and making the first slide operation more interactive.
[0084] In some embodiments, when the slide distance of the first slide operation is less than or equal to the first threshold value, the terminal device controls the display item of the first virtual item to move along with the first slide operation, and at the same time, gradually moves and displays the presentation information to the position where the display item of the first virtual item moves out. Here, when the slide distance is less than or equal to the first threshold value, the presentation information is used to prompt the user that the first slide operation is invalid, that is, it does not affect the user interface.
[0085] In some embodiments, the method for canceling the first slide operation is related to the slide direction of the first slide operation. Exemplarily, as a method for canceling the first slide operation, it is to change the slide direction of the first slide operation. For example, when the slide direction of the first slide operation is from right to left, the method for canceling the first slide operation may be to adjust the slide direction of the first slide operation to slide from left to right, to adjust the slide direction of the first slide operation downward, or to adjust the slide direction of the first slide operation upward.
[0086] When the quantity selection interface corresponding to the first virtual item is not displayed, the terminal device repeatedly determines whether the slide distance of the current first slide operation is greater than or equal to the first threshold value according to the movement of the first slide operation. When the slide distance of the first slide operation is less than the first threshold value, the terminal device monitors the magnitude relationship between the slide distance of the first slide operation and the first threshold value. When the first slide operation is greater than or equal to the first threshold value, the terminal device displays the quantity selection interface corresponding to the first virtual item.
[0087] In some embodiments, the first threshold is less than or equal to the length of the display item of the first virtual item. For example, if the length of the display item of the first virtual item is 300 pixels, the first threshold may be 45 pixels, 60 pixels, 80 pixels, etc. The value of the first threshold described above can be determined according to the actual situation such as the display length of the display item of the first virtual item, and the present application is not limited herein.
[0088] In some embodiments, the quantity selection interface is further used to display the situation where the selected quantity of the first virtual item changes along with the first slide operation. For example, during the first slide operation, the quantity selection interface dynamically adjusts and displays the value of the selected quantity of the first virtual item.
[0089] As an example, FIG. 6 is a schematic diagram of a method for displaying a quantity selection interface according to an exemplary embodiment of the present application. In FIG. 6, an item column 610 is displayed on a display interface 600. The user can determine a display item 612 of the first virtual item by a first slide operation and move the display item 612 of the first virtual item (the slide direction of the first slide operation in FIG. 6 is to slide horizontally to the left). In response to the first slide operation, when the slide distance of the first slide operation is greater than or equal to the first threshold, the terminal device displays a quantity selection interface 620. A slider bar 622 and a slider 624 on the slider bar 622 are displayed on the quantity selection interface 620. The name of the first virtual item (Item 5) and the selected quantity of the first virtual item ("0") are further displayed on the quantity selection interface 620. A prompt "Discard" regarding the operation to be performed on the first virtual item with the selected quantity is further displayed on the quantity selection interface 620, indicating that the first slide operation is used to discard the first virtual item with the selected quantity in the virtual environment.
[0090] By setting the slider to move along with the first slide operation, after displaying the quantity selection interface, the user no longer needs to manually adjust the position of the slider on the slider bar, reducing the operations necessary to perform the first operation on the first virtual item of the selected quantity, simplifying the user operation, and helping to improve the smoothness of the operation of discarding a part of the virtual item.
[0091] In some embodiments, in addition to the slider bar and the slider, the quantity selection interface further displays at least one of the total number of the first virtual items, the selected quantity of the first virtual item corresponding to the position of the slider on the slider bar, and operation prompt information. Optionally, after displaying the quantity selection interface corresponding to the first virtual item, the slider in the quantity selection interface starts to move on the slider bar along with the first slide operation. When the user reaches the expected quantity for the selected quantity of the first virtual item by the first slide operation, the user stops the first slide operation. When the terminal device detects the release of the first slide operation, the terminal device executes the first operation on the first virtual item of the selected quantity.
[0092] In some embodiments, when the slide distance of the first slide operation is greater than the first threshold and less than the second threshold, the terminal device determines the selected quantity of the first virtual item based on the slide distance of the first slide operation and the total number of the first virtual items. When the slide distance of the first slide operation is greater than or equal to the second threshold, the terminal device sets the total number of the first virtual items as the selected quantity of the first virtual item.
[0093] Here, the first threshold is smaller than the second threshold. The first threshold and the second threshold may be set in advance. For example, the second threshold is equal to the long side size of the display item of the first virtual item, and the first threshold is equal to one fifth of the second threshold. The specific setting method of the first threshold and the second threshold is determined according to the actual information and is not set here in this application.
[0094] As an example, FIG. 7 is a schematic diagram of a method for determining the selected quantity according to one exemplary embodiment of the present application. When the slide distance of the first slide operation is greater than or equal to the second threshold, the display of the display item 710 of the first virtual item is completely canceled. In the quantity selection interface 720, the slider 722 is slid to the left end of the slide bar 724. In this case, the selected quantity of the first virtual item is equal to the total number of the first virtual items.
[0095] By performing a first slide operation on the display item of the first virtual item, a dynamic change of the selected quantity of the first virtual item from 0 to the total number of the first virtual items is realized based on the distance of the first slide operation, making the determination method of the selected quantity of the first virtual item simpler.
[0096] In some embodiments, the step of the terminal device performing a first operation on the first virtual item with the selected quantity includes the step of the terminal device discarding the first virtual item with the selected quantity. In this way, by realizing the quick discarding of some virtual items only through the interaction operation, the discarding efficiency and convenience of some virtual items can be improved.
[0097] The first virtual item with the selected quantity to be discarded can be understood as discarding the first virtual item with the selected quantity into the virtual environment, and the first virtual item to be discarded cannot be directly used by the user.
[0098] Optionally, when discarding the selected quantity of the first virtual item, the display item of the first virtual item in the item column changes. In some embodiments, after the terminal device discards the selected quantity of the first virtual item, if the selected quantity of the first virtual item is less than the total number of the first virtual items, the total number of the first virtual items displayed in the display item of the first virtual item in the item column changes, and the total number of the virtual items after the change = the total number of the first virtual items in the item column - the selected quantity of the first virtual item. When the selected quantity of the first virtual item is equal to the total number of the first virtual items, cancel the display of the display item of the first virtual item in the item column, or adjust the display item of the first virtual item to an unavailable state (for example, set the display column of the first virtual item to gray).
[0099] As an example, FIG. 8 is a schematic diagram of discarding the first virtual item according to one exemplary embodiment of the present application. In FIG. 8, the terminal device displays the quantity selection interface 812 on the display interface 800 in response to the first slide operation on the display item 810 of the first virtual item, and determines the selected quantity of the first virtual item based on the first slide operation. The selected quantity of the first virtual item currently displayed in the quantity selection interface 812 is 51, and the total number of the first virtual items displayed in the display item 810 of the first virtual item is 150. The terminal device discards the selected quantity of the first virtual item in response to the release of the first slide operation, cancels the display of the quantity selection interface 812, and then, in the virtual environment, the selected quantity of the first virtual item is displayed, and a virtual object is visible. For example, the terminal device displays the prompt information 820 on the virtual object, and the prompt information 820 is used to indicate that there is a selected quantity of the first virtual item in the virtual environment. After discarding the selected quantity of the first virtual item, the total number of the first virtual items displayed in the display item 810 of the first virtual item is changed to 99.
[0100] In some embodiments, the user can control the virtual object to move in the virtual environment, and during the movement, the virtual object can carry a certain number of virtual items. The item bar is used to display the display items of the virtual items carried by the virtual object. Optionally, in order to improve the reality of the game mechanism, there is an upper limit on the weight or space volume of the virtual props carried by the virtual object. After discarding the selected number of virtual items, the weight or volume of the virtual items carried by the virtual object is changed. By setting the maximum number or maximum volume of virtual props that the virtual object can carry, the virtual backpack can be restricted. In some embodiments, the weight upper limit or capacity upper limit of different types of virtual backpacks is not the same at all. The item bar is used to display the display items of the virtual items stored in the virtual backpack.
[0101] In some embodiments, if there are related virtual items for the first virtual item, the terminal device can further discard the related virtual items of the first virtual item. Here, the related virtual items of the first virtual item refer to virtual items that can be used in overlay with the first virtual item.
[0102] Optionally, the related virtual item and the first virtual item can be used in overlay, thereby improving the use effect of the first virtual item. For example, if the first virtual item is an attack prop and the related virtual item is a strengthening potion, by using the two in overlay, the attack attribute of the first virtual item can be improved.
[0103] Optionally, the first virtual item and the related virtual item can be used jointly, thereby achieving a usage effect different from using the first virtual item individually or using the related virtual item individually. For example, the first virtual item is used to increase the health points of a virtual object, the related virtual item is used to increase the movement speed of the virtual item, and when the first virtual item and the related virtual item are used jointly, in addition to increasing the health points of the virtual object and increasing the movement speed of the virtual object, the upper limit of the weight of the virtual item carried by the virtual object can be increased.
[0104] In some embodiments, since the related virtual item cannot be used individually or cannot achieve a better usage effect when used individually than when used jointly with the first virtual item, if it is determined to discard the first virtual item, the usage value of the related item in the item column decreases. Therefore, when the first virtual item is discarded, the client automatically discards the related virtual item, which helps to reduce the user's selection and discard operations on the related virtual item, helps to simplify the user operation, and has the effect of quickly organizing the virtual backpack.
[0105] In some embodiments, the step in which the terminal device discards the related virtual item of the first virtual item includes: the step in which the terminal device determines the remaining quantity of the first virtual item based on the selected quantity of the first virtual item and the total quantity of the first virtual item; the step in which the terminal device determines the discard quantity of the related virtual item based on the total quantity of the related virtual item and the remaining quantity of the first virtual item; and the step in which the terminal device discards the related virtual item of the discard quantity.
[0106] Optionally, the remaining quantity of the first virtual item = the total quantity of the first virtual item - the selected quantity of the first virtual item. In some embodiments, the remaining quantity of the first virtual item is 1 or more.
[0107] The terminal device determines the quantity of related virtual items to be held based on the total number of related virtual items and the remaining quantity of the first virtual item, and determines the discard quantity of the related virtual items based on the total number of related virtual items and the quantity of related virtual items to be held. The quantity of related virtual items to be held is used to ensure that there are sufficient related virtual items to be used in combination with the remaining first virtual items.
[0108] In some embodiments, the step in which the terminal device determines the discard quantity of the related virtual items based on the total number of related virtual items and the remaining quantity of the first virtual item includes the step of determining the usage ratio between the first virtual item and the related virtual items, and the step of determining the discard quantity of the related virtual items based on the usage ratio, the total number of related virtual items, and the remaining quantity of the first virtual item.
[0109] For example, when the usage ratio between the first virtual item and the related virtual items = 1:2, the total number of related virtual items = 10, and the remaining quantity of the first virtual item = 2, the quantity of related virtual items to be held is equal to 2 * 2 = 4, and the discard quantity of the related virtual items = 6 (10 - 4). After the terminal device discards the selected quantity of the first virtual item, it further discards 6 related virtual items.
[0110] In some embodiments, when the terminal discards the first virtual item, it determines whether there are related virtual items of this type of virtual item. If there are no related virtual items of the first virtual item, the terminal device only performs the discard operation of the first virtual item. If there are related virtual items of the first virtual item, the terminal device discards the first virtual item and the related virtual items.
[0111] Optionally, before discarding the relevant virtual item, the terminal device displays a discard confirmation interface for the relevant virtual item, and the terminal device discards the relevant virtual item in response to a confirmation operation on the discard confirmation interface. The confirmation operation may include at least one of a slide operation, a click operation, and a button press operation.
[0112] Through the above method, when discarding the first virtual item, by discarding the relevant virtual items of the first virtual item, the operation that the user intends to perform can be predicted, the repeated discard operations of the user on the relevant virtual items can be reduced, and it helps to shorten the processing time of the user for the virtual items displayed in the item bar.
[0113] In some embodiments, after the terminal device displays the item bar, the technical solution according to the embodiment of the present application includes a step of the terminal device controlling the display item of the first virtual item to move along with the second slide operation in response to a second slide operation on the display item of the first virtual item, where the slide direction of the second slide operation is opposite to the slide direction of the first slide operation, and a step of the terminal device performing a first operation on all the first virtual items when the release position of the second slide operation is located in the target area in response to the release of the second slide operation. Thereby, the first operation on all the first virtual items can be quickly realized, and the convenience of the operation can be further improved.
[0114] Optionally, the terminal device controls the moving speed of the display items of the first virtual item based on the sliding speed of the second slide operation, and controls the moving direction of the display items of the first virtual item based on the sliding direction of the second slide operation. The above-mentioned target area refers to an area for quickly selecting all the first virtual items and executing the first operation. In some embodiments, in order to increase the execution speed of the second operation of the user, the target area is displayed around the item bar. For example, the target area is displayed on the right side of the item bar area, and the left edge of the target area is adjacent to the right edge of the item bar. The display position of the target area in the user interface can be determined according to the actual situation, and the present application is not limited here.
[0115] In some embodiments, the release of the second slide operation refers to the terminal device detecting the end of the second slide operation, for example, the user's finger leaving the screen of the terminal device. The release position of the second slide operation refers to the position where the user's finger leaves the screen of the terminal device when the second slide operation ends. The release position of the second slide operation may be understood as the position where the pressure of the second operation on the screen of the terminal device becomes smaller than the pressure threshold, and the present application is not limited here.
[0116] The first operations corresponding to all the first virtual items include at least one of discarding all the first virtual items in the virtual environment, transferring all the first virtual items to other virtual objects, and using all the first virtual items. Exemplarily, the terminal device discards all the first virtual items A in response to the release of the second slide operation, and then cancels the display of the display items of the first virtual item A in the item bar.
[0117] As an example, FIG. 9 is a schematic diagram of a second slide operation according to one exemplary embodiment of the present application. In the display interface 900, a display item 910 of a first virtual item is displayed, and the terminal device moves the display item 910 of the first virtual item to the target area 920 in response to a second slide operation on the display item 910 of the first virtual item. When the release position of the second slide operation is located in the target area 920, the terminal device discards all the first virtual items. When the release position of the second slide operation is located in the display area of the item bar or other areas except the target area 920 within the user interface, the terminal device returns the display item 910 of the first virtual item to the item bar for display. In this case, the display position of the first virtual item returned to the item bar may be the same as the display position in the item bar before the second slide operation.
[0118] In some embodiments, the first slide operation and the second slide operation are performed continuously. By changing the slide direction, the conversion between the first slide operation and the second slide operation can be realized. For example, when the first slide operation is a slide from right to left and the second slide operation is a slide from left to right, during the first slide operation, the user can change the slide direction of the finger, whereby the first slide operation is converted into the second slide operation, and the method of performing operations on all the first virtual items becomes faster.
[0119] In some embodiments, after the terminal device displays a quantity selection interface corresponding to the first virtual item, the technical solution according to the embodiment of the present application further includes that the terminal device cancels the display of the quantity selection interface and does not perform a first operation on the first virtual item with the selected quantity in response to the change in the slide direction of the first slide operation after the slide direction of the first slide operation is changed, and the first slide operation disappears after the change in the slide direction of the first slide operation.
[0120] Optionally, the change in the sliding direction of the first slide operation may refer to the angle between the sliding direction of the first slide operation and the standard sliding direction being greater than or equal to an angle threshold. For example, if the standard sliding direction of the first slide operation is to the left in the horizontal direction and the angle threshold is 45°, when the angle between the sliding direction of the first slide operation and the standard sliding direction is 45° or more, the terminal device determines that the sliding direction of the first slide operation has changed, and the terminal device cancels the display of the quantity selection interface and does not perform the first operation on the first virtual item with the selected quantity. Optionally, in this case, the terminal device returns the display item of the first virtual item to the item bar for display.
[0121] Optionally, the change in the sliding direction of the first slide operation may refer to the sliding direction after the change being perpendicular to the sliding direction of the first slide operation before the change. For example, if the sliding direction of the first slide operation is to the left in the horizontal direction, the change in the sliding direction of the first slide operation refers to the first slide operation sliding upward or downward. The terminal device does not perform the first operation on the first virtual item with the selected quantity in response to the change in the direction of the first slide operation.
[0122] In some embodiments, the quantity selection interface further displays cancellation operation prompt information, where the cancellation operation prompt information is used to prompt canceling the first slide operation by changing the sliding direction of the first slide operation. The cancellation operation prompt information may be information such as sliding upward to cancel the first slide operation or sliding downward to cancel the first slide operation.
[0123] As an example, FIG. 10 is a schematic diagram of a method for operating a virtual item according to another exemplary embodiment of the present application. The terminal device displays an item bar, and in some embodiments, in a game session, the item bar has a fixed display area. The terminal device displays the item bar in the fixed display area in response to an operation of displaying the item bar (for example, an operation of opening a virtual backpack). The terminal device determines a display item of the first virtual item from the item bar in response to a determination operation of the first virtual item. The terminal device detects whether there is a first slide operation on the first virtual item.
[0124] When the first slide operation occurs, the terminal device acquires the slide distance of the first slide operation in real time. The terminal device determines whether the slide distance is greater than a first threshold value. When the slide distance is less than the first threshold value, the terminal device restores the display item of the first virtual item in response to the disappearance of the first slide operation.
[0125] When the slide distance is greater than or equal to the first threshold value, the terminal device displays a quantity selection interface. The quantity selection interface is used to display the selected quantity of the first virtual item. The terminal device determines whether the slide distance of the first slide operation is less than a second threshold value. The terminal device dynamically changes the selected quantity of the first virtual item based on the slide distance of the first slide operation.
[0126] When the slide distance of the first slide operation is less than the second threshold value, the terminal device executes a first operation on the first virtual item with the selected quantity in response to the release of the first slide operation. When the slide distance of the first slide operation is greater than or equal to the second threshold value, the terminal device executes a first operation on all the first virtual items in response to the release of the first slide operation.
[0127] When the first slide operation on the first virtual item does not occur, the terminal device acquires a second slide operation, and the terminal device determines whether the release position is located in a target area in response to the release of the second slide operation.
[0128] When the release position of the second operation is located in the target area, the terminal device executes the first operation on all the first virtual items. When the release position of the second operation is not located in the target area, the terminal device restores and displays the display item of the first virtual item in the item bar.
[0129] By changing the slide direction of the first slide operation, the terminal device does not execute the first operation on the first virtual items of the selected quantity. That is, the user can quickly cancel the first slide operation by changing the direction of the first slide operation, improving the operation convenience of canceling the first slide operation. At the same time, since the execution method of this operation is simple and clear, it avoids the possibility of accidental touch when the user cancels the first slide operation, which is helpful for improving the user experience.
[0130] In some embodiments, after the terminal device displays the item bar, the technical solution according to the embodiments of the present application includes: the terminal device determines a plurality of virtual items as a plurality of first virtual items in response to a selection operation on the display items of the plurality of virtual items displayed in the item bar; and the terminal device displays a quantity selection interface in response to a first slide operation on the display item of any one of the first virtual items, and the quantity selection interface displays the selected quantities corresponding to the plurality of first virtual items respectively.
[0131] The selection operation on the display items of the plurality of virtual items displayed in the item bar includes at least one of a click operation or a check operation.
[0132] In some embodiments, through the first slide operation, the selected quantities of a plurality of first virtual items displayed in the item bar can be determined simultaneously. The terminal device determines one or more virtual items clicked in the display area of the display item as a plurality of first virtual items in response to a click operation on the display items of the plurality of virtual items displayed in the item bar. The terminal device displays a quantity selection interface in response to a first slide operation on the display item of any one of the first virtual items, and individually determines the selected quantity corresponding to each of the plurality of first virtual items based on the slide distance of the first slide operation.
[0133] In some embodiments, the terminal device determines the selected quantity of the first first virtual item based on the slide distance of the first slide operation, and the terminal device sets the selected quantity of the first first virtual item as the selected quantity corresponding to each of the plurality of first virtual items.
[0134] In some embodiments, the terminal device determines the selected quantity corresponding to each of the plurality of first virtual items based on the selected quantity of a reference virtual item, where the reference virtual item is any one of the plurality of first virtual items. Specifically, the terminal device determines the selected quantity of the reference item based on the slide distance of the first slide operation, determines the selected ratio based on the selected quantity of the reference virtual item and the total number of the reference virtual items, and determines the selected quantity corresponding to each of the plurality of first virtual items based on the selected ratio and the total number corresponding to each of the plurality of first virtual items.
[0135] For example, the selected ratio = the selected quantity of the reference virtual item divided by the total number of the reference virtual item, and for any one of the first virtual items, the selected quantity corresponding to the first virtual item = the selected ratio * the total number of the first virtual item.
[0136] The terminal device displays a quantity selection interface in response to a first slide operation on the display item of the first virtual object selected by the last selection operation. The specific content of this process is the same as when performing a first slide operation on the display item of the first virtual item, and for specific content, please refer to the above embodiments.
[0137] By a single slide operation, the selected quantities of multiple first virtual items can be determined, which helps improve the efficiency of the user performing a first operation (such as a discard operation) on the virtual items displayed in the item column.
[0138] In some embodiments, the display size of the display item of the virtual item is related to the total number of virtual items. For example, when the quantity of virtual item A is more than the quantity of virtual item B, the display size of the display item of virtual item A is greater than or equal to the display size of the display item of virtual item B.
[0139] In this case, the display item of the virtual item has a display range, and the display range is limited by the corresponding maximum display size and minimum display size. In some embodiments, the terminal device dynamically adjusts the display size of the display item of the virtual item in the item column within the display size range based on the total number of a certain virtual item.
[0140] By dynamically adjusting the display size of the display line of the virtual item of this type based on the total number of virtual items, the user can more intuitively know the total number of virtual items of this type in the item column. By increasing the display size, it becomes easier for the user to operate on the display item of the virtual item of this type, and the accuracy of the quantity control operation of the virtual item of this type by the user is improved.
[0141] In some embodiments, the item bar can display the display items of at least one virtual item at a time. In many cases, the display items of multiple virtual items can be displayed in the item bar at a time. For example, the display items of seven virtual items are displayed in the item bar.
[0142] The item bar further has a corresponding slide display function. The terminal device responds to a slide operation on the item bar (for example, sliding up and down or moving the slider displayed in the item bar) by updating and displaying the display items of other virtual items at the edge of the item bar, where the display items of other virtual items were not displayed in the item bar before the slide operation. The edge of the item bar may be the lower part of the item bar.
[0143] In some embodiments, the arrangement order of the display items of different virtual items in the item bar can be determined based on the total number corresponding to each virtual item respectively. For example, the display items of multiple virtual items are arranged from top to bottom in the item bar, and the terminal device can arrange the virtual items in the item bar in descending order of the total number. The display item of the virtual item with the largest total number is arranged at the bottom of the item bar.
[0144] In some embodiments, the terminal device displays the item bar on the user interface, and at least one display item of a virtual item is displayed in the item bar. Optionally, the item bar occupies a part of the display area on the user interface. The display area of the item bar in the user interface may be fixed. For example, the item bar can be displayed in the left area of the user interface. The display area of the item bar in the user interface can also be customized by the user. For example, the user can set the display area of the item bar in the upper left corner in the game setting interface.
[0145] In some embodiments, when the total number of the first virtual items is greater than 1, the technical solution according to the embodiments of the present application further includes a step in which the terminal device displays scale marks around the display bar of the first virtual item during the process that the display item of the first virtual item moves along with the first slide operation, where the scale marks are used to divide the display item of the first virtual item into p display parts, and p is a positive integer.
[0146] Here, the scale marks are displayed at the edges of the display item of the first virtual item. For example, three scale marks are displayed at the lower edge of the display item of the first virtual item, and the three scale marks divide the display bar of the virtual item into four display parts.
[0147] In some embodiments, different display parts correspond to different ranges of selected quantities. For example, when the total number of the first virtual items is 4, p = 2, and the maximum predetermined slide distance is equal to the length of the display item of the first virtual item, the display item of the first virtual item is divided into a first display part and a second display part by one scale mark, where the range of the selected quantity of the virtual item corresponding to the first display part is [1, 2], and the range of the selected quantity of the virtual item corresponding to the second display part is [3, 4].
[0148] By displaying scale marks around the display bar of the virtual item, during the process that the user performs the first slide operation, a scale prompt is provided to the user, so that the user can quickly determine the slide distance of the corresponding first slide operation when the selected quantity is reached according to the prompt of the scale marks.
[0149] In some embodiments, after displaying the quantity selection interface, the terminal device determines the selected quantity of the initial first virtual item according to the current game session status.
[0150] For example, when the user is in team mode and the first virtual item belongs to a supply item, the terminal device determines half of the total number of the first virtual items as the initial selected quantity of the first virtual item. In this case, the initial position on the slider bar within the quantity selection interface can display the proportional relationship between the initial selected quantity of the first virtual item and the total number of the first virtual items.
[0151] At this time, since the slider is not located at the endpoint of the slider bar, the slider can slide on both sides of the slider bar. Subsequently, the terminal device can dynamically adjust the selected quantity of the first virtual item in response to the first slide operation or the second slide operation. For example, the terminal device controls the slider to slide to the left in response to the first slide operation to increase the selected quantity of the first virtual item. When the slide distance of the second slide operation is smaller than the second threshold value, the terminal device controls the slider to slide to the right in response to the second slide operation to reduce the selected quantity of the first virtual item. Here, the slide direction of the first slide operation is opposite to that of the second slide operation. Both the first slide operation and the second slide operation here can be used to adjust the position of the slider on the slider bar. The terminal device executes a first operation on the first virtual item with the selected quantity in response to the release of the first slide operation or the second slide operation.
[0152] By such a method, the first virtual item (such as a virtual attack prop, a virtual blood pack, etc.) can be timely provided to other users, which helps to speed up the process for the user to determine the selected quantity of the first virtual item.
[0153] In some embodiments, in a pick-up scene of a virtual item, when the terminal device determines that the virtual item to be picked up exceeds the upper limit of virtual object transportation, it can determine the selected quantity of the first virtual item based on the attribute information of the virtual item to be picked up. Here, the attribute information of the virtual item to be picked up refers to the weight information or volume information of the virtual item to be picked up. The virtual item to be picked up refers to a pick-upable virtual item displayed in the virtual environment.
[0154] In some embodiments, the virtual object operated by the user has an upper limit of transportation (for example, the upper limit of weight transportation, the upper limit of volume transportation, or the upper limit of type transportation), which means that the virtual object can carry only a limited number of virtual items. When the virtual items carried by the virtual object reach the upper limit of transportation or are close to the upper limit of transportation, the terminal device cannot perform a pick-up operation on the virtual item to be picked up in response to the pick-up operation. For example, the terminal device determines the selected quantity of the first virtual item based on the remaining transportation capacity of the virtual object and the weight information of the virtual item to be picked up in order to facilitate the pick-up of the virtual item to be picked up by the virtual object.
[0155] Optionally, the terminal device can further determine the initial selected quantity of the first virtual item based on the distance between the virtual object and the virtual item to be picked up, that is, the virtual object must pick up at least the initial selected quantity of the first virtual item and then pick up the virtual item to be picked up. In some embodiments, when the virtual object is within the pickup range of the virtual item to be picked up, the terminal device determines the initial selected quantity of the first virtual item based on the attribute information of the virtual item to be picked up. Exemplarily, the terminal device determines the initial selected quantity of the first virtual item based on the attribute information of the virtual item to be picked up and the attribute information of the first virtual item. For example, the attribute information of the virtual item refers to the weight information of the virtual item. When the weight information of the virtual item to be picked up is 3 and the weight information of the first virtual item is 1.5, the initial selected quantity of the first virtual item is 2.
[0156] In some embodiments, when the ratio of the numerical value of the attribute information of the virtual item to be picked up to the attribute information of the first virtual item is a decimal, an integerization process such as rounding up is performed on the ratio. For example, when the weight information of the virtual item to be picked up is 5 and the weight information of the first virtual item is 2, the ratio of the numerical value of the weight information of the virtual item to be picked up to the weight information of the first virtual item is 2.5, and it can be obtained that the initial selected quantity of the first virtual item is equal to 3 by rounding up.
[0157] The following are embodiments of the apparatus of the present application and can be used to implement the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
[0158] FIG. 11 shows a block diagram of an operating device for virtual items according to one exemplary embodiment of the present application. The device can be implemented as all or part of a terminal device by software, hardware, or a combination of both. The device 1100 can include an item display module 1110, a quantity display module 1120, and an operation execution module 1130.
[0159] The item display module 1110 is configured to display an item column, and at least one display item of a virtual item is displayed in the item column.
[0160] The quantity display module 1120 is configured to display a quantity selection interface corresponding to the first virtual item in response to a first slide operation on the display item of the first virtual item among the at least one virtual item.
[0161] The quantity display module 1120 is further configured to dynamically change the selected quantity of the first virtual item displayed in the quantity selection interface during the process of the display item of the first virtual item moving along with the first slide operation.
[0162] The operation execution module 1130 is configured to execute a first operation on the first virtual item with the selected quantity in response to the release of the first slide operation.
[0163] In some embodiments, a slider bar and a slider located on the slider bar are displayed in the quantity selection interface. The display position of the slider on the slider bar is used to display the proportional relationship between the selected quantity of the first virtual item and the total number of the first virtual items. The quantity display module 1120 further includes a quantity determination unit and a quantity change unit (not shown in FIG. 11).
[0164] The quantity determination unit is configured to determine the selected quantity of the first virtual item based on the slide distance of the first slide operation in the process of the display item of the first virtual item moving along with the first slide operation.
[0165] The quantity change unit is configured to dynamically change the display position of the slider on the slide bar along with the change of the selected quantity of the first virtual item, so as to display the proportional relationship between the selected quantity of the first virtual item and the total quantity of the first virtual item.
[0166] In some embodiments, the moving direction of the slider on the slide bar is consistent with the slide direction of the first slide operation.
[0167] In some embodiments, the quantity determination unit is configured to obtain the ratio of the slide distance of the first slide operation to the predetermined maximum slide distance, and determine the selected quantity of the first virtual item based on the ratio and the total quantity of the first virtual item.
[0168] In some embodiments, the quantity display module 1120 is further configured to control the display item of the first virtual item to move along with the first slide operation in response to the first slide operation on the display item of the first virtual item among the at least one virtual item, and when the moving distance of the display item of the first virtual item reaches a first threshold value, display the quantity selection interface corresponding to the first virtual item.
[0169] In some embodiments, the operation execution module 1130 is configured to discard the selected quantity of the first virtual item.
[0170] In some embodiments, the apparatus 1100 further includes a related discard module (not shown in FIG. 11).
[0171] The associated discard module is configured to discard the associated virtual items of the first virtual item.
[0172] In some embodiments, the associated discard module is further configured to determine a remaining quantity of the first virtual item based on a selected quantity of the first virtual item and a total quantity of the first virtual item, determine a discard quantity of the associated virtual item based on a total quantity of the associated virtual item and the remaining quantity of the first virtual item, and discard the associated virtual items of the discard quantity.
[0173] In some embodiments, the apparatus 1100 further comprises an overall execution module (not shown in FIG. 11).
[0174] The overall execution module is configured to control the display item of the first virtual item to move along with the second slide operation in response to a second slide operation on the display item of the first virtual item, where a slide direction of the second slide operation is opposite to a slide direction of the first slide operation, and in response to a release of the second slide operation, if a release position of the second slide operation is located in a target area, the first operation is configured to be executed on all the first virtual items.
[0175] In some embodiments, the apparatus 1100 further comprises an execution cancellation module (not shown in FIG. 11).
[0176] The execution cancellation module is configured to, in response to a change in a slide direction of the first slide operation, after the slide direction of the first slide operation is changed, make the first slide operation disappear, cancel the display of the quantity selection interface, and not execute the first operation on the first virtual item of the selected quantity.
[0177] In some embodiments, the apparatus 1100 further comprises a plurality of item selection modules (not shown in FIG. 11).
[0178] The plurality of item selection modules are configured to determine the plurality of virtual items as a plurality of the first virtual items in response to a selection operation on the display items of the plurality of virtual items displayed in the item column, and to display a quantity selection interface corresponding to the first virtual item in response to a first slide operation on the display item of the first virtual item, which includes displaying the quantity selection interface in response to the first slide operation on the display item of any one of the first virtual items, and the quantity selection interface displays selected quantities respectively corresponding to the plurality of the first virtual items.
[0179] In summary, in the technical solution according to the embodiment of the present application, by performing a slide operation on the display item of the first virtual item and releasing the slide operation, the selected quantity of the first virtual item can be dynamically determined, and a first operation can be executed on the first virtual item with the selected quantity. On the one hand, in the embodiment of the present application, only one slide operation can realize the selection of virtual items, the adjustment of the selected quantity, and the triggering of the first operation, and the corresponding operation (for example, discarding some virtual items) can be executed on some virtual items with only one-step operation, which greatly improves the convenience of the operation. On the other hand, the embodiment of the present application can improve the continuity between the process of determining the selected quantity and the execution of the first operation, and improve the smoothness of the execution process of the first operation on the first virtual item with the selected quantity. On the one hand, compared with the complicated operations in the related art, the embodiment of the present application only needs to perform one slide operation, simplifies the operation, improves the operation efficiency, and since only one slide operation needs to be performed, it helps to reduce the probability of problems such as accidental touch and improve the success rate of the operation.
[0180] In addition, when the device according to the above embodiment realizes its functions, the division of the above functional modules is only an example. In actual applications, the above functions can be completed by different functional modules as needed. That is, the content structure of the device can be divided into different functional modules to complete all or part of the above functions. Furthermore, the device according to the above embodiment belongs to the same concept as the method embodiment, and its specific implementation process can refer to the method embodiment and will not be repeated here. The beneficial effects of the device according to the above embodiment can refer to the description of the method embodiment and will not be repeated here.
[0181] FIG. 12 shows a structural block diagram of a terminal device according to an exemplary embodiment of the present application.
[0182] The terminal device 1200 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, or a PC. The terminal device is configured to implement the operation method of the virtual item provided in the above embodiment. The terminal device may be the terminal device 10 shown in FIG. 1. Specifically,
[0183] Generally, the terminal device 1200 includes a processor 1201 and a memory 1202.
[0184] Processor 1201 can include one or more processing cores (such as a 4-core processor and an 8-core processor). Processor 1201 can be implemented using at least one form of hardware among a digital signal processor (DSP: Digital Signal Processing), a field-programmable gate array (FPGA: Field-Programmable Gate Array), and a programmable logic array (PLA: Programmable Logic Array). Processor 1201 can also include a main processor and a coprocessor. The main processor is a processor used to process data in a wake-up state and is also called a central processing unit (CPU). The coprocessor is a low-power processor used to process data in a standby state. In some embodiments, Processor 1201 may be integrated with a graphics processing unit (abbreviated as GPU), and the GPU is used to render and draw the content displayed on the display screen. In some embodiments, Processor 1201 can further include an artificial intelligence (AI: Artificial Intelligence) processor, and the AI processor is used to process computing operations related to machine learning.
[0185] Memory 1202 can include one or more computer-readable storage media, and the computer-readable storage media may be tangible and non-transitory. Memory 1202 can also include one or more magnetic disk memories, high-speed random access memories such as flash memories, and non-volatile memories. In some embodiments, the non-transitory computer-readable storage media in Memory 1202 stores a computer program, and when the computer program is loaded and executed by Processor 1201, it causes Processor 1201 to execute the operation method of virtual items according to the embodiments of the above methods.
[0186] In some embodiments, the terminal device 1200 may further include a peripheral device interface 1203 and at least one peripheral device. The processor 1201, the memory 1202, and the peripheral device interface 1203 can be connected to each other via a bus or signal lines. Each peripheral device can be connected to the peripheral device interface 1203 via a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1204, a display screen 1205, an audio circuit 1206, and a power supply 1207.
[0187] As can be understood by those skilled in the art, the structure shown in FIG. 12 is not intended to limit the terminal 1200. The terminal 1200 may include more or fewer components than those shown in the figure, or some components may be combined, or different component arrangements may be adopted.
[0188] The embodiments of the present application further provide a computer-readable storage medium storing a computer program that, when loaded and executed by a processor, causes the processor to implement an operation method of a virtual item according to each of the above method embodiments.
[0189] The computer-readable medium may include a computer storage medium and a communication medium. A computer storage medium includes volatile and nonvolatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media includes random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other solid state memory technologies, digital video disc (DVD) or other optical memory, magnetic tape cassette, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art can understand that the computer storage media is not limited to several of the above.
[0190] Embodiments of the present application further provide a computer program product including a computer program. The computer program is stored in a computer-readable storage medium, and the processor reads and executes the computer program from the computer-readable storage medium to implement the operation method of virtual items according to the embodiments of the above methods.
[0191] Note that in the embodiments of the present application, before collecting the relevant data of the user and during the process of collecting the relevant data of the user, a presentation interface, a pop-up window or output voice prompt information can be displayed, and the presentation interface, the pop-up window or the voice prompt information is used to prompt the user that the relevant data of the user is currently being collected. The present application starts to execute the relevant steps of obtaining the user-related data only after obtaining the confirmation operation of the user for the presentation interface or the pop-up window. Otherwise (that is, when the confirmation operation of the user for the presentation interface or the pop-up window has not been obtained), the relevant steps of obtaining the user-related data are terminated, that is, the user-related data is not obtained. In other words, all user data collected in the present application is strictly processed in accordance with the requirements of the relevant laws and regulations of the relevant country, and all acquisitions of the informed consent or individual consent of the personal information subject are collected with the consent and permission of the user. Within the scope of the laws and regulations and the permission of the personal information subject, subsequent data use and processing operations are performed, and the collection, use and processing of the relevant user data should comply with the relevant laws, regulations and standards of the relevant country or region. For example, the virtual items, the first slide operation, the second slide operation, etc. according to the present application are obtained under full approval.
[0192] It should be understood that the "plurality" referred to in this specification refers to two or more. "And / or" is an association for explaining related objects, indicating that three types of relationships can exist. For example, A and / or B can represent three cases, such as when only A exists, when A and B exist simultaneously, and when only B exists. The character " / " generally indicates that the context object is in an "or" relationship.
[0193] The above description is only an alternative embodiment of the present application and does not limit the present application. All modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Description of Reference Signs
[0194] 10 terminal device 20 server 300 display interface 310 item bar 312 display item 314 icon 410 item bar 420 display item 422 part 430 movement range 500 display screen 510 display item 512 quantity selection interface 514 slider 516 slide bar 600 display interface 610 item bar 612 display item 620 quantity selection interface 622 slide bar 624 slider 710 display item 720 quantity selection interface 722 slider 724 slide bar 800 display interface 810 display item 812 quantity selection interface 820 prompt information 900 display interface 910 display item 920 target area 1100 device 1110 item display module 1120 quantity display module 1130 operation execution module 1200 terminal 1201 processor 1202 memory 1203 peripheral device interface 1204 radio frequency circuit 1205 display screen 1206 audio circuit 1207 power supply
Claims
1. A method for operating a virtual item in a game application executed by a terminal device, comprising: displaying an item bar, wherein at least one display item of a virtual item is displayed in the item bar; when a first slide operation by a user is performed on a display item of a first virtual item among the at least one virtual item, in response to the first slide operation, displaying a quantity selection interface corresponding to the first virtual item, which includes a slide bar and a slider located on the slide bar, at a position different from the display item of the first virtual item, wherein the display position of the slider on the slide bar is used to display a proportional relationship between the selected quantity of the first virtual item and the total quantity of the first virtual item; dynamically changing the display position of the slider on the slide bar as the display item of the first virtual item moves during the process of the display item of the first virtual item moving along with the first slide operation, thereby dynamically changing the selected quantity of the first virtual item displayed in the quantity selection interface and displaying a proportional relationship between the selected quantity of the first virtual item and the total quantity of the first virtual item; executing a first operation of discarding the first virtual item of the selected quantity in response to the release from the display item of the first virtual item; and a method for operating a virtual item.
2. The method for operating a virtual item according to claim 1, wherein the moving direction of the slider on the slide bar is consistent with the slide direction of the first slide operation. The method for operating a virtual item according to claim 1.
3. The step of determining the selected quantity of the first virtual item based on the slide distance of the first slide operation comprises: obtaining a ratio between the slide distance of the first slide operation and a predetermined maximum slide distance; and determining the selected quantity of the first virtual item based on the ratio and the total quantity of the first virtual item. The method for operating a virtual item according to claim 1.
4. The step of displaying a quantity selection interface corresponding to the first virtual item in response to a first slide operation on a display item of the first virtual item among the at least one virtual item comprises: Controlling, in response to the first slide operation on the display item of the first virtual item, the display item of the first virtual item to move along with the first slide operation; When the moving distance of the display item of the first virtual item reaches a first threshold value, displaying the quantity selection interface corresponding to the first virtual item; including The method for operating a virtual item according to claim 1.
5. The method for operating a virtual item further includes the step of discarding the related virtual items of the first virtual item. The method for operating a virtual item according to claim 1.
6. The step of discarding the related virtual items of the first virtual item includes determining the remaining quantity of the first virtual item based on the selected quantity of the first virtual item and the total quantity of the first virtual item; determining the quantity to be discarded or retained of the related virtual items based on the total quantity of the related virtual items and the remaining quantity of the first virtual item; discarding the related virtual items of the quantity to be discarded or retained; including The method for operating a virtual item according to claim 5.
7. After displaying the item bar in which the display items of at least one virtual item are displayed, the method for operating a virtual item includes when a second slide operation by the user on the display item of the first virtual item is performed, in response to the second slide operation, controlling the display item of the first virtual item to move along with the second slide operation, wherein the slide direction of the second slide operation is opposite to the slide direction of the first slide operation; in response to the release from the display item of the first virtual item, when the release position from the display item of the first virtual item is located in the target area, performing the first operation on all the first virtual items; further including The method for operating a virtual item according to claim 1.
8. After displaying the quantity selection interface corresponding to the first virtual item in response to the first slide operation on the display item of the first virtual item among the at least one virtual item, the method for operating a virtual item includes In response to the slide direction of the first slide operation being changed, after the slide direction of the first slide operation is changed, the first slide operation disappears, the display of the quantity selection interface is canceled, and the method further includes a step of not performing the first operation on the first virtual item of the selected quantity. The method for operating a virtual item according to claim 1.
9. After displaying the item column in which display items of at least one virtual item are displayed, the method for operating the virtual item includes: further including a step of determining the plurality of virtual items as a plurality of first virtual items in response to a selection operation on the display items of the plurality of virtual items displayed in the item column; The step of displaying a quantity selection interface corresponding to the first virtual item in response to a first slide operation on the display item of the first virtual item among the at least one virtual item is: including a step of displaying the quantity selection interface in response to the first slide operation on the display item of any one of the first virtual items, and the selected quantity corresponding to each of the plurality of first virtual items is displayed in the quantity selection interface. The method for operating a virtual item according to claim 1.
10. An operation device for a virtual item that executes a game application, comprising an item display module, a quantity display module, and an operation execution module. The item display module is configured to display an item column, and display items of at least one virtual item are displayed in the item column. The quantity display module, in response to a first slide operation by a user on the display item of the first virtual item among the at least one virtual item, displays a quantity selection interface corresponding to the first virtual item in which a slider bar and a slider located on the slider bar are displayed at a position different from the display item of the first virtual item, and the display position of the slider on the slider bar is configured to be used to display a proportional relationship between the selected quantity of the first virtual item and the total number of the first virtual items. The quantity display module is further configured to dynamically change the display position of the slider on the slider bar as the display item of the first virtual item moves in the process of moving along with the first slide operation, so as to dynamically change the selected quantity of the first virtual item displayed in the quantity selection interface, and display the proportional relationship between the selected quantity of the first virtual item and the total number of the first virtual items. The operation execution module is configured to execute a first operation of discarding the first virtual item of the selected quantity in response to the release of the first slide operation. An operating device for virtual items.
11. A terminal device comprising a processor and a memory, wherein a computer program is stored in the memory, and the processor loads and executes the computer program to implement the operation method of the virtual item according to any one of claims 1 to 9.
12. A computer program for causing a processor to execute the operation method of the virtual item according to any one of claims 1 to 9.
Citation Information
Patent Citations
Control method and control device for game props used in batch
CN105204732A
Virtual prop processing method and apparatus, electronic device and storage medium
CN108459811A
Information processing method and device
CN111450527A
Virtual article processing method and device, storage medium and electronic device
CN112190922A
Data processing method and device in game and electronic terminal
CN112516583A