Virtual item stacking control method, device, terminal equipment and storage medium
By providing a stacking window on the graphical user interface of the game, allowing users to select the number of stacks and automatically stacking virtual items, the problem of low efficiency of stacking operations in the existing technology is solved, and a more efficient operation process and Lower power consumption.
Patent Information
- Application Number
- CN202111288687.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-02
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-11-02
AI Technical Summary
The efficiency of stacking virtual items in existing games is low, and players need to repeatedly enter the target quantity, resulting in high terminal power consumption and increased performance overhead.
By displaying the stacking window on the graphical user interface, the user is allowed to determine the stacking quantity from the selection area, and the stacking operation of virtual items is automatically performed, which simplifies the operation process and improves efficiency.
The stacking operation process is simplified, the efficiency of the stacking operation is improved, and the power consumption and performance overhead of the terminal equipment are reduced.
Smart Images

Figure CN114159779B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of game technology, and in particular to a method, device, terminal equipment and storage medium for controlling the distribution of virtual items. Background Art
[0002] In existing games, there is often a need to divide items in a backpack into a pile or several piles, for example, to divide game items such as medicines and food into different piles for sale at stalls, etc. In this regard, a common way of dividing piles in existing games is: the player manually selects a target game item, enters a target quantity, and generates a target game item pile, wherein the number of target game items in the pile matches the input target quantity.
[0003] With this design, firstly, the player can only make one pile each time when splitting the piles. When multiple piles are needed, the operation needs to be repeated, and the efficiency of pile splitting is low. Secondly, the target number needs to be entered each time, and the operation process is complicated. Finally, repeated and complicated operations lead to a huge consumption of terminal power and affect the performance overhead of the terminal. Summary of the invention
[0004] In view of this, the present disclosure proposes a virtual item stacking control method, apparatus, terminal device and computer storage medium to simplify the stacking operation process and improve the stacking operation efficiency.
[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of the present disclosure are as follows:
[0006] In a first aspect, the present invention provides a method for controlling the stacking of virtual items, wherein a graphical user interface of a game is provided through a terminal device, and the content displayed by the graphical user interface at least includes one or more storage areas, and the storage area includes a plurality of storage containers for storing virtual items, and the method comprises:
[0007] In response to a first operation on a target virtual item, determining the quantity of the target virtual item stored in a current storage container, and displaying a stacking window on the graphical user interface, wherein the stacking window is used to determine a stacking quantity;
[0008] In response to a second operation applied to the stacking window, determining a stacking quantity from the stacking window according to the second operation;
[0009] According to the number of divided piles and the number of target virtual items, the target virtual items stored in the current storage container are divided into piles and stored in the storage area in the number of divided piles.
[0010] In an optional implementation, the first operation includes any one of the following operations: a point operation, a long press operation, a heavy press operation, and a double-click operation.
[0011] In an optional embodiment, the step of displaying a stacking window in the graphical user interface in response to the first operation on the target virtual item includes:
[0012] In response to the first operation, the stacking window is displayed on the graphical user interface based on an operation occurrence location corresponding to the first operation.
[0013] In an optional implementation, the stacking window includes one or more selection areas, and the selection area is used to determine a stacking value;
[0014] The step of determining a number of sub-piles from the sub-piles window in response to a second operation acting on the sub-piles window according to the second operation comprises:
[0015] In response to the second operation, determining a target selection area from the selection area of the stacking window according to an end position of the second operation;
[0016] The number of piles is determined according to the pile value determined by the target selection area.
[0017] In an optional embodiment, the selection area includes a preset selection area, and the preset selection area is pre-configured with a preset pile value;
[0018] When the target selection area is the preset selection area, the step of determining the number of piles according to the pile value determined by the target selection area includes:
[0019] A pre-configured preset pile division value of the preset selection area is obtained, and the preset pile division value is determined as the pile division quantity.
[0020] In an optional embodiment, the preset stacking value preconfigured in the preset selection area includes a preset stacking value configured according to user input, or a default stacking value randomly generated according to system settings.
[0021] In an optional implementation, the selection area includes a custom selection area. When the target selection area is the custom selection area, the step of determining the number of piles according to the pile value determined for the target selection area includes:
[0022] A stacking value input interface is provided in the graphical user interface, an input stacking value is received through the stacking value input interface, and the stacking quantity is determined based on the input stacking value.
[0023] In an optional embodiment, the selection area includes a blank selection area, and when the target selection area is the blank selection area, the step of determining the number of piles according to the pile value determined for the target selection area includes:
[0024] Providing a heap value input interface on the graphical user interface, and receiving an input heap value through the heap value input interface;
[0025] The number of piles is determined based on the input pile value, and the input pile value is configured as a preset pile value corresponding to the blank selection area.
[0026] In an optional embodiment, the second operation is continuous with the first operation, and the stacking window is a roulette window or a stacking interface.
[0027] In an optional embodiment, the step of displaying a stacking window in the graphical user interface in response to the first operation on the target virtual item includes:
[0028] In response to the first operation, displaying a roulette window at a location where the first operation occurs on the graphical user interface; or
[0029] In response to the first operation, a stacking interface is displayed at a preset position in the storage area.
[0030] In an optional implementation, the step of determining a target selection area from the selection area of the stacking window according to the end position of the second operation in response to the second operation includes:
[0031] In response to a sliding operation that is continuous with the first operation, determining the target selection area from the selection areas of the stacking window according to an end position of the sliding operation; or
[0032] In response to a drag operation that is continuous with the first operation, the target selection area is determined from the selection areas of the stacking window according to an end position of the drag operation.
[0033] In an optional implementation, among the storage containers storing the target virtual items in piles, at least some of the storage containers store the same number of target virtual items.
[0034] In an optional embodiment, the step of storing the target virtual items stored in the current storage container in piles into the storage containers of the number of piles in the storage area according to the number of piles and the number of target virtual items includes:
[0035] Obtaining the number of idle storage containers in the storage area;
[0036] If the number is not less than the number of divided piles, the target virtual items stored in the current storage container are divided into piles and stored in storage containers of the number of divided piles in the storage area;
[0037] If the quantity is less than the number of piles, the target virtual item stored in the current storage container is split into the number of piles, and the number of piles in the pile are stored in the storage container in the storage area, and the remaining piles in the pile are stored in other storage areas.
[0038] In an optional embodiment, in response to a second operation acting on the stacking window, after the step of determining a number of stacks from the stacking window according to the second operation, the method includes:
[0039] Detecting whether other storage areas are displayed in the graphical user interface;
[0040] If other storage areas are displayed, the target virtual items stored in the current storage container are divided into piles according to the pile quantity and the quantity of the target virtual items, and the piles are stored in the storage containers of the pile quantity in other storage areas;
[0041] If no other storage area is displayed, a step is performed to stack the target virtual items stored in the current storage container into the storage containers of the number of stacks in the storage area according to the number of stacks and the number of target virtual items.
[0042] In an optional embodiment, if other storage areas are displayed, the step of dividing the target virtual items stored in the current storage container into piles according to the pile quantity and the quantity of the target virtual items, and storing the piles in the storage containers of the pile quantity in the other storage areas includes:
[0043] When the graphical user interface displays other storage areas, in response to a third operation, the target virtual items stored in the current storage container are divided into piles according to the pile quantity and the quantity of the target virtual items, and the piles are stored in the storage containers of the number of piles in the other storage area;
[0044] The third operation includes a drag operation that is continuous with the second operation, and the drag operation is used to drag the target virtual item from the current storage container to the other storage area.
[0045] In an optional implementation, when the graphical user interface includes a first storage area and a second storage area, the method further includes:
[0046] In response to a selection operation on a target virtual item in the first storage area, determining a quantity of the target virtual item;
[0047] In response to a dragging operation of dragging the target virtual item from the first storage area to the second storage area, the target virtual item is at least partially stacked and stored in the second storage area based on the quantity of the target virtual items and a stacking rule determined based on the second storage area.
[0048] In an optional implementation, the pile division rule includes at least a predetermined number of piles and a number of target virtual items included in each pile.
[0049] In a second aspect, the present invention provides a virtual item stacking control device, which provides a graphical user interface of a game through a terminal device, wherein the content displayed by the graphical user interface at least includes one or more storage areas, wherein the storage area includes a plurality of storage containers for storing virtual items, and the device includes:
[0050] A display module, configured to respond to a first operation on a target virtual item, determine the quantity of the target virtual item stored in a current storage container, and display a stacking window on the graphical user interface, wherein the stacking window is used to determine the quantity of a stack;
[0051] a confirmation module, configured to respond to a second operation applied to the stacking window and determine a number of stacks from the stacking window according to the second operation;
[0052] The stacking module is used to stack the target virtual items stored in the current storage container into the storage containers of the number of stacks in the storage area according to the number of stacks and the number of target virtual items.
[0053] In a third aspect, the present invention provides a terminal device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores computer-readable instructions executable by the processor, and when the terminal device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the method as described in any of the aforementioned implementations.
[0054] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, executes the steps of the method as described in any of the aforementioned embodiments.
[0055] The beneficial effects of the present disclosure are:
[0056] The method, device, electronic device and storage medium provided by the present disclosure display a stacking window including one or more selection areas on a graphical user interface when a user selects a target virtual item from a storage area, so that the user can determine the number of stacks to be stacked for the target virtual item from the different displayed selection areas, and then automatically stack the target virtual item, thereby simplifying the stacking operation process, improving the stacking operation efficiency, and saving the power and performance overhead of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present disclosure and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0058] Figures 1A-1C A schematic diagram of a common method of stacking game items in existing games;
[0059] Figure 2 A cloud interaction system architecture diagram provided by the present disclosure;
[0060] Figure 3 A flowchart of an optional implementation of the virtual item stacking control method provided by the present disclosure;
[0061] Figures 4A-4B Two optional interface schematic diagrams of the stacking window provided by the present disclosure;
[0062] Figure 5A-5B Schematic diagrams of two optional implementation methods of determining a target selection area provided in the present disclosure;
[0063] Figures 6A-6C A schematic diagram of an interactive interface for different types of selection areas and a pile value input interface provided by the present disclosure;
[0064] Figure 7 A schematic diagram of an optional stacking processing implementation method provided by the present disclosure;
[0065] Figure 8 A flowchart of another optional implementation of the virtual item stacking control method provided by the present disclosure;
[0066] Fig. 9 A schematic diagram of an optional implementation of the third operation provided by the present disclosure;
[0067] Fig.10 A flowchart of another optional implementation of the method for controlling the stacking of virtual items described in the present disclosure;
[0068] Fig.11 A schematic diagram of an optional implementation method for transferring and storing virtual items between different storage areas provided by the present disclosure;
[0069] Fig.12 A schematic diagram of the structure of a virtual item stacking control device provided by the present invention;
[0070] Fig.13 A schematic diagram of the hardware architecture of the terminal device provided in the present invention. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure described and shown in the drawings here can be arranged and designed in various different configurations.
[0072] Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents selected embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure.
[0073] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0074] For ease of understanding, the prior art involved in the present disclosure is first described in detail.
[0075] Please refer to Figures 1A-1C , shows the common way of stacking game items in existing games. Figure 1A As shown, the storage area 11 includes multiple storage containers (only storage container 12 and storage container 13 are shown in the figure), wherein storage container 12 stores 100 virtual items A, and storage container 13 stores 50 virtual items B. When the user wants to split 20 virtual items A from the 100 virtual items A, as shown in FIG. Figure 1B and 1C As shown, the following operations are usually required:
[0076] First, select 100 virtual items A in the storage container 12 shown in 1A;
[0077] Second, through a preset stacking trigger operation (such as right-clicking, etc.), the quantity input pop-up window 14 shown in 1B is triggered to be displayed, and the target quantity 20 is input through the quantity input pop-up window 14;
[0078] Third, after the input is completed, a pile of 20 virtual items A is generated in the storage container 15 shown in 1C, and the 100 virtual items A in the storage container 12 are updated to 80 virtual items A.
[0079] Furthermore, if the user wants to continue to split more piles of virtual items A from the remaining 80 virtual items A, the above steps need to be repeated.
[0080] It can be seen that when the number of piles to be divided is large, for example, when four piles are required, the pile division operation of the game items provided by the prior art is relatively complicated, the user has to perform many repetitive operations, and the efficiency is low.
[0081] In response to the above-mentioned problems in the prior art, the present disclosure proposes the following technical concept: combining the stacking operation of virtual items in the game with the determination of the stacking quantity, and providing the user with a stacking window including multiple stacking quantities when the user selects the target virtual item to be stacked, so that the user can directly select a target stacking quantity from the stacking window after selecting the target virtual item, thereby realizing fast and automatic stacking of the target virtual item, simplifying the stacking operation process and improving the efficiency of the stacking operation.
[0082] Based on the above content, the specific contents of each technical solution provided by the present disclosure will be introduced in detail below.
[0083] First, the present disclosure provides a virtual item stacking control method, which can be run on a terminal device and / or a server.
[0084] When the virtual item stacking control method is run on a server, the method can be implemented and executed based on a cloud interaction system. Figure 2 , is a cloud interaction system architecture diagram provided by the present disclosure. As shown in the figure, the cloud interaction system may include: a client device 10 and a server 20, wherein the client device 10 may be connected to the server 20 via a network 30.
[0085] In an optional embodiment, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operation subject of the game program and the game screen presentation subject are separated, the storage and operation of the game character transmission method are completed on the cloud game server, and the client device 10 is used for receiving and sending data and presenting the game screen. For example, the client device 10 can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the terminal device for information processing is a cloud game server in the cloud. When playing the game, the player operates the client device 10 to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device 10 through the network. Finally, the client device 10 decodes and outputs the game screen.
[0086] Wherein, when the virtual item stacking control method is run on a terminal device, in an optional embodiment, the terminal device may be a local terminal device. Taking the game as an example, the local terminal device stores the game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run by the conventional electronic device. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0087] The above introduces the hardware environment required by the present disclosure. The following will be based on the above hardware environment and take the terminal device as an example of the execution subject to introduce in detail various embodiments of the virtual item stacking control method provided by the present disclosure.
[0088] Please refer to Figure 3 , is a flow chart of an optional implementation of a virtual item stacking control method provided by the present disclosure. As shown in the figure, the virtual item stacking control method includes:
[0089] Step S301, in response to a first operation on a target virtual item, determining the quantity of the target virtual item stored in a current storage container, and displaying a stacking window on the graphical user interface, wherein the stacking window is used to determine a stacking quantity.
[0090] In an optional implementation, a graphical user interface of the game is provided through a terminal device, and the content displayed by the graphical user interface includes at least one or more storage areas, and the storage area includes multiple storage containers for storing virtual items. Exemplarily, the storage area can be a virtual interface provided in the game for users to store virtual items, such as a backpack interface triggered by a backpack control in the game, a shortcut bar triggered by a shortcut bar control, and a warehouse interface triggered by a warehouse control. The storage container can be a storage space in the storage area, such as a storage grid in a backpack interface.
[0091] Generally, in order to facilitate the storage and organization of virtual items in the game, the storage containers in the storage area are often set to be able to stack and store virtual items of the same type, such as bullets of the same model, medicines and food made with the same formula, etc. When the virtual items are stacked in a storage container, the storage container can usually display the icon of the virtual item and the number of virtual items stacked and stored in the storage container. For example, in Figure 1A In the storage area 11 shown, 100 virtual items A are stacked and stored in the storage container 12 , and 50 virtual items B are stacked and stored in the storage container 13 .
[0092] When the user wants to split the target virtual items stacked in a storage container into multiple sub-stacks and store them in multiple storage containers (for example, the user wants to Figure 1A When the 100 virtual items A in the storage container 12 are split into 5 piles of 20 virtual items A), the process of stacking the target virtual items can be initiated through the first operation preset in the present disclosure.
[0093] Specifically, in an optional implementation, after detecting a first operation acting on a virtual item in a storage container in the storage area, the terminal device may first respond to the first operation and determine the virtual item stored in the storage container as a target virtual item; then, obtain the number of the target virtual items stored in the storage container; and then, trigger the display of the stacking window on the graphical user interface based on the operation location corresponding to the first operation.
[0094] It can be understood that the purpose of the first operation is to indicate the user's selection of the target virtual item. Therefore, the first operation can be a point selection operation, a long press operation, a heavy press operation, a double-click operation, or the like.
[0095] Similarly, it can be understood that the purpose of the stacking window is to provide a way to determine the number of stacks, that is, to determine the number of stacks that the user wants to split the target virtual item into through the stacking window. Therefore, the stacking window can include one or more selection areas, and different selection areas can correspond to the determination of a number of stacks, so that after the user selects the target virtual item, he can further select a target selection area from the triggered displayed stacking window, and determine different numbers of stacks through the selection of different target selection areas. Among them, in order to facilitate the user to customize the number of stacks, the stacking window can also include at least one custom selection area, which is used to determine the number of stacks according to the user's input after the custom selection area is triggered. In addition, in an optional implementation, the display position of the stacking window is preferably the operation position of the first operation in the graphical user interface, or the peripheral position of the operation position of the first operation, so that after the first operation, it is convenient for the user to perform subsequent operations on the displayed stacking window.
[0096] The following will combine Figure 4A and 4B The stacking window described in the present disclosure is introduced in detail.
[0097] Please refer to Figure 4A , shows an interface schematic diagram of an optional implementation of the stacking window described in the present disclosure. As shown in the figure, in this implementation, the stacking window can be as follows Figure 4A The roulette window 41 shown in the figure responds to the first operation on the virtual item A and is displayed at the operation position corresponding to the first operation, that is, at the virtual item A. The roulette window 41 includes four selection areas, which are respectively located in the four directions of the roulette window 41 relative to the virtual item A, namely, the top, bottom, left, and right. It can be seen that since the roulette window 41 is displayed at the operation position of the first operation, there is almost no distance between the roulette window 41 and the operation position of the user's first operation, and the user can easily perform subsequent operations, such as selecting and switching the target selection area from the four selection areas, and then selecting any one of the selection areas as the final selected target selection area.
[0098] Please refer to Figure 4B , shows an interface schematic diagram of another optional implementation of the stacking window described in the present disclosure. As shown in the figure, in this implementation, the stacking window can be as follows: Figure 4BThe stacking interface 42 shown in the figure is displayed at a preset position of the storage area in response to the first operation on the virtual item A. It can be seen that the stacking interface 42 is at a certain distance from the display position of the graphical user interface and the operation position of the first operation. The user needs to move from the operation position of the first operation to the stacking interface 42 to perform subsequent operations. For example, after moving from the operation position of the first operation to the stacking interface 42, the user can then select the stacking interface 42 in the selection area (such as from the selection area) of the stacking interface 42. Figure 4B The target selection area can be selected and switched among the two selection areas (the upper and lower selection areas shown), and any one of the selection areas can be selected as the final selected target selection area, etc.
[0099] It should be noted that, in order to keep the graphical user interface simple, in an optional implementation, when the first operation has not occurred and / or the stacking process is completed, the stacking window described above is preferably kept hidden on the graphical user interface, or folded / contracted and displayed at a certain position on the graphical user interface, such as a preset position in the storage area; and is only graphically displayed or expanded / enlarged and displayed on the graphical user interface when the first operation is triggered.
[0100] Step S302, in response to a second operation applied to the stacking window, determining a stacking quantity from the stacking window according to the second operation.
[0101] As can be seen from the above, the stacking window includes one or more selection areas, each of which can be used to determine a stacking quantity, and the stacking quantity can be used to stack the selected target virtual items later. Wherein, based on the stacking window and the selection area, the step of determining a stacking quantity may include: in response to the second operation, determining a target selection area from the selection area of the stacking window according to the end position of the second operation; and determining the stacking quantity according to the stacking value determined by the target selection area.
[0102] First, combine Figure 5A and 5B The process of how to determine a target selection area from various selection areas is described in detail below.
[0103] Please refer to Figure 5A, which is a schematic diagram of an optional implementation method for determining a target selection area provided by the present disclosure. As shown in the figure, the stacking window provided by the implementation method is a roulette window 41, and the roulette window 41 is displayed at the operation location where the first operation occurs. At this time, the second operation can be a sliding operation continuous with the first operation, and the sliding operation can be based on the operation location where the first operation occurs. The sliding operation can be performed up, down, left, and right based on the distribution direction of each selection area in the roulette window 41. Then, by switching the sliding position during the sliding process, the target selection area is selected and switched in each selection area provided in the roulette window 41. Among them, when the sliding operation ends, the finally selected target selection area can be determined from the various selection areas of the stacking window according to the end position of the sliding operation.
[0104] Please refer to Figure 5B , which is a schematic diagram of another optional implementation method for determining the target selection area provided by the present disclosure. As shown in the figure, the stacking window provided by the implementation method is a stacking interface 42, and the stacking interface 42 is displayed at the left position of the storage area 11. At this time, the second operation can be a drag operation continuous with the first operation, and the drag operation can take the target virtual item selected by the first operation as the target, and take the current storage container where the target virtual item is stored as the starting point to drag the target virtual item from its initial position to the stacking interface 42. Among them, as shown in the figure, since the various selection areas in the stacking interface 42 are distributed at different positions of the stacking interface 42, the dragging operation can select and switch the target selection area in various selection areas located at different positions in the stacking interface 42 by switching different hovering positions during the dragging process. Among them, when the dragging operation ends, the final selected target selection area can be determined from the various selection areas of the stacking window according to the end position of the dragging operation.
[0105] Secondly, after determining a target selection area from each selection area, the number of sub-piles can be determined based on the determined target selection area. Fig. 6A , 6B and 6C for detailed introduction.
[0106] As can be seen from the above, the stacking window usually includes one or more selection areas, and each selection area may become the target selection area. At the same time, it can be understood that the selection area generally includes three types: preset selection area, custom selection area, and blank selection area; wherein, the preset selection area may include a selection area pre-configured and generated according to the preset stacking value input by the user, and / or a selection area randomly configured with a default stacking value according to system settings, etc.; the custom selection area may be a selection area for receiving a user-defined stacking value; the blank selection area may be a selection area for an unconfigured but configurable stacking value, wherein, when the blank selection area is configured with a preset stacking value, the blank selection area can be transformed into the above-mentioned preset selection area.
[0107] Specifically, when the target selection area is the preset selection area, the preset pile value pre-configured for the preset selection area can be directly obtained, and the preset pile value is determined as the pile quantity. Fig. 6A , which is a schematic diagram of different types of selection areas of an optional stacking window provided by the present disclosure. As shown in the figure, the stacking window provided by the implementation is a stacking interface 42, and the stacking interface 42 includes preset selection areas 61 and 62, a blank selection area 63 and a custom selection area 64. Among them, the preset stacking value corresponding to the preset selection area 61 is 2, and the preset stacking value corresponding to the preset selection area 62 is 4. In this regard, when the target selection area selected by the second operation is the preset selection area 61, the number of stacks corresponding to the target selection area can be determined to be 2 according to the preset stacking value 2 corresponding to the preset selection area 61; similarly, when the target selection area selected by the second operation is the preset selection area 62, the number of stacks corresponding to the target selection area can be determined to be 4 according to the preset stacking value 4 corresponding to the preset selection area 62.
[0108] When the target selection area is the custom selection area, a heap value input interface can be provided in the graphical user interface to receive the heap value input by the user, and the input heap value is determined as the number of heaps corresponding to the target selection area. Figure 6B , is a schematic diagram of an optional custom selection area triggering the display of a stacking value input interface provided by the present disclosure. As shown in the figure, the stacking window provided by the implementation is a stacking interface 42, and the stacking interface 42 includes preset selection areas 61 and 62, a blank selection area 63 and a custom selection area 64. When the target selection area selected by the second operation is the custom selection area 64, the following can be provided: Figure 6BThe stacking value input interface 65 is shown, so that the user can input a customized stacking value through the stacking value input interface 65 according to actual needs, and then determine the number of stacks corresponding to the target selection area based on the stacking value. It should be noted that the customized selection area is usually used for users to customize the stacking value. After the customized stacking value is completed, the customized selection will not change with the stacking value input by the user.
[0109] Similarly, when the target selection area is the blank selection area, a stacking value input interface can also be provided in the graphical user interface to receive the stacking value input by the user, and determine the input stacking value as the number of stacks corresponding to the target selection area. Figure 6C , a schematic diagram of an optional blank selection area triggering a heap value input interface provided by the present disclosure. As shown in the figure, the blank selection area is a blank selection area 63, and the heap value input interface is a heap value input interface 65, which have been introduced above and will not be repeated here. It should be noted that, in the present embodiment, the blank selection area is usually used for the user to pre-configure a preset heap value as needed, that is, the blank selection area can be understood as the empty value state of the preset selection area. When the target selection area is the blank selection area, and a heap value input by the user is received through the heap value input interface, the received input heap value can be configured as the preset heap value of the blank selection area, so as to configure the blank selection area as the preset selection area described above. In other words, the blank selection area can be changed from an empty value state to a state configured with a preset heap value according to the heap value input by the user, and then changed to the preset selection area.
[0110] Step 303: According to the number of divided piles and the number of target virtual items, the target virtual items stored in the current storage container are divided into piles and stored in the storage area into the number of divided piles of storage containers.
[0111] After determining the target virtual item to be split and the corresponding number of piles, the target virtual item can be further processed into corresponding piles. Figure 7 The process of stacking the target virtual items is described in detail.
[0112] It is understandable that users usually want to separate target virtual items into piles for different game purposes, for example, they want to separate and sell the accumulated game materials, prepared food and medicine, etc. In this case, the target virtual items stacked in the same storage container can be directly separated into one or more piles in the storage area where the target virtual items are stored.
[0113] For example, see Figure 7, is a schematic diagram of an optional implementation method for performing pile processing on the target virtual item provided by the present disclosure. As shown in the figure, the implementation method exemplarily provides a storage area 71, and the storage area 71 includes a storage container 72, and 90 virtual items C are stored in the storage container 72. Among them, if the virtual item C is determined to be the target virtual item through the above process, and the corresponding pile number is determined to be 3, then the 90 virtual items C can be split into 3 piles containing 30 virtual items C respectively in the storage area 71 as shown in the figure, and the 3 split piles are respectively stored in the 3 storage containers of the storage area 71.
[0114] It can be understood that the storage containers in the storage area in the game are generally limited in number. Therefore, when the target virtual item is divided into piles, the number of idle storage containers in the storage area can be further considered. That is, after determining the target virtual item and the number of piles, the number of idle storage containers in the storage area is obtained; if the number is not less than the number of piles, the target virtual item stored in the current storage container is divided into piles of the number of piles and stored in the storage containers of the number of piles in the storage area; if the number is less than the number of piles, the target virtual item stored in the current storage container is split into piles of the number of piles, and the number of piles in the piles is stored in the storage containers in the storage area, and the remaining piles in the piles are stored in other storage areas. Among them, the other storage area can be any storage area other than the storage area where the target virtual item is located. For example, when the target virtual item is stored in the backpack interface, the other storage area can be a warehouse interface, a quick window interface, etc.
[0115] It should be noted that, since the target virtual item occupies a storage container before the heap division process, and the heaps obtained by the heap division generally also include the storage container originally occupied by the target virtual item, the number of idle storage containers mentioned above in the present disclosure generally refers to the number of storage containers in the storage area that do not store virtual items plus 1. For example, assuming Figure 7 The storage area 71 shown includes two storage containers that do not store any virtual items, and the determined target virtual item is the virtual item C stored in the storage container 72, so the number of idle storage containers included in the storage area 71 is 3.
[0116] It should be added that the above examples provided in the present disclosure may perform the stacking process of the target virtual items in an even distribution manner or an uneven distribution manner, and the present disclosure does not limit this.
[0117] Among them, when the pile processing is an average distribution method, the number of target virtual items in each pile can be obtained according to the total amount of target virtual items / number of piles. It should be noted that the number of target virtual items in each pile calculated by this formula may not be an integer (the number of target virtual items is generally an integer). In this case, the number of target virtual items in the pile needs to be adjusted. The adjustment method includes, but is not limited to, when storing the target virtual items in the piles into corresponding storage containers, ensuring that the number of target virtual items stored in at least some of the storage containers is the same. For example, assuming that Figure 7 In the example, 80 virtual items C need to be evenly split into 3 piles, and the 3 piles obtained by splitting may be: a pile containing 27 virtual items C, a pile containing 27 virtual items C, and a pile containing 26 virtual items C.
[0118] When the stacking process is a non-even distribution method, the target virtual item can be split in any form according to actual needs. Figure 7 In the example, when 90 virtual items C are split into three piles, the three piles obtained by splitting may be: a pile containing 40 virtual items C, a pile containing 20 virtual items C, and a pile containing 30 virtual items C.
[0119] Through the above steps S301-303, the virtual item stacking control method disclosed in the present invention provides a stacking window for the user after the user selects the target virtual item, so that the user can directly select and determine the required number of stacks from the stacking window, and then automatically stack the target virtual item, thereby simplifying the stacking operation process, improving the stacking operation efficiency, and avoiding the power consumption and performance overhead of the terminal device caused by multiple repeated and complex operations.
[0120] In an alternative implementation, see Figure 8 After step 302, the virtual item stacking control method of the present disclosure further includes:
[0121] Step 304, detecting whether other storage areas are displayed in the graphical user interface, if other storage areas are displayed, proceeding to step S305; if no other storage areas are displayed, proceeding to the above step S303.
[0122] It is understandable that the user's stacking of virtual items in the game is not limited to occurring in the same storage area, but may also occur between different storage areas. When multiple storage areas are displayed on the graphical user interface, it is very likely that the user wants to transfer the virtual items stored in one of the storage areas to another storage area for storage. For example, when the user wants to store the materials stored in the backpack in a warehouse, it is necessary to first open the backpack interface and then the warehouse interface, and then split the target virtual items in the backpack interface into one or more stacks, and then store the one or more stacks in the warehouse interface respectively. Therefore, before performing the stacking process, that is, after confirming the number of the target virtual items and the number of stacks through steps S301 and S302, it is detected whether there are multiple storage areas displayed on the graphical user interface, and when other storage areas are displayed on the graphical user interface, it is determined that the user wants to store the target virtual items in stacks in other displayed storage areas.
[0123] Step S305, when other storage areas are displayed in the graphical user interface, the target virtual items stored in the current storage container are piled according to the pile quantity and the quantity of the target virtual items, and the piles are stored in the storage containers of the pile quantity in other storage areas.
[0124] It can be understood that the graphical user interface includes multiple storage areas, that is, when the user wants to transfer the target virtual items between different storage areas, the user can first perform stacking processing on the target virtual items stored in the current storage container according to the determined stacking number and the total number of the target virtual items, and then store the stacked target virtual items in the storage containers of the number of stacks in other storage areas respectively. In this way, it can be avoided that after completing the stacking processing of the virtual items in the current storage area, the target virtual items after stacking need to be manually stored one by one in other storage areas.
[0125] It should be added that, in an optional implementation, when the graphical user interface displays other storage areas, the target virtual items stored in the current storage container may be divided into piles according to the number of piles and the number of target virtual items in response to a third operation, and the piles are stored in the storage containers of the number of piles in the other storage area. The third operation includes a drag operation that is continuous with the second operation, and the drag operation is used to drag the target virtual item from the storage container in the current storage area to the other storage area.
[0126] For example, see Fig. 9, showing a schematic diagram of an optional implementation of the third operation provided by the present disclosure. As shown in the figure, in this implementation, the target virtual item is the virtual item C selected by the user in the first storage area 1001; the stacking window is the stacking interface 91 that is triggered to be displayed, wherein the stacking interface 91 includes a preset selection area 92 configured with a preset stacking value 3; the stacking number is 3, which is determined by the user dragging the virtual item C from the first storage area 1001 to the preset selection area 92. Based on the virtual item C and the stacking number 3 determined above, when it is detected that the virtual item C is dragged from the preset selection area 92 to the second storage area 1002, the virtual item C can be evenly divided into 3 stacks according to the total number 60 of virtual items C and the stacking number 3, and the stacks are stored in the corresponding 3 storage containers in the second storage area 1002.
[0127] Through the above steps S304-S305, the virtual item stacking control method disclosed in the present invention identifies whether the user has opened other storage areas before stacking the target virtual items, and then automatically stores the target virtual items after stacking in the other storage areas, thereby simplifying the stacking operation between different storage areas and improving the operation efficiency.
[0128] In an alternative implementation, see Fig.10 The virtual item stacking control method of the present disclosure may further include:
[0129] Step S306, in response to a selection operation on a target virtual item in the first storage area on the graphical user interface, determining the quantity of the target virtual item.
[0130] It is understandable that the target virtual item stacking process in the game may involve the transfer of virtual items between different storage areas, that is, the target virtual item stored in the first storage area is transferred to the second storage area for storage, for example, the materials in the backpack are stacked and stored in the alchemy furnace for alchemy, etc. In this embodiment, when the graphical user interface includes multiple different storage areas, for example, at least the first storage area and the second storage area, the corresponding virtual item can be determined as the target virtual item in response to the user's selection operation of a virtual item in the first storage area.
[0131] Step S307, in response to a dragging operation of dragging the target virtual item from the first storage area to the second storage area on the graphical user interface, based on the quantity of the target virtual items and a stacking rule determined based on the second storage area, at least partially stacking the target virtual item and storing it in the second storage area.
[0132] It is understandable that in some game scene designs, the target virtual item may trigger different game effects when it is split into multiple piles and used. For example, when using an alchemy furnace to make an elixir, the efficiency of making an elixir when 9 portions of medicinal materials are put into the alchemy furnace together is lower than when they are split into 3 portions of medicinal materials and then put into the alchemy furnace. For this scenario, this embodiment can first obtain the pile rules determined based on the second storage area when the user drags the target virtual item from the first storage area to the second storage area, and then perform pile processing on the target virtual item based on the pile rules, and finally store the target virtual item at least partially in piles in the second storage area. Among them, the pile rules include at least a predetermined number of piles and the number of target virtual items included in each pile.
[0133] For example, see Fig.11 , is a schematic diagram of an optional implementation method of transferring and storing virtual items between different storage areas provided by the present disclosure. As shown in the figure, in this implementation method, the target virtual item is a virtual item C stored in the first storage area 1001, and the number of the virtual item C is 90; the pre-determined pile rule of the second storage area 1002 is: virtual item C, the number of piles is 3, and the number of virtual items in each pile is 20. Then, when the user drags the virtual item C from the first storage area 1001 to the second storage area 1002 by dragging, 60 virtual items C can be obtained from the 90 virtual items C according to the above pile rule; then, the obtained 60 virtual items C are evenly divided into 3 piles, and the number of virtual items C corresponding to each pile is 20; finally, the 3 split piles are respectively stored in the 3 storage containers of the second storage area 1002, and the number of remaining virtual items C stored in the first storage area 1001 is updated to 30 at the same time.
[0134] Through the above steps S306-S307, the virtual item stacking control method disclosed in the present invention further simplifies the stacking processing operation between different storage areas and improves the operating efficiency by identifying the stacking rule of the second storage area before stacking the target virtual items and stacking the required target virtual items according to the stacking rule.
[0135] Secondly, the present disclosure also provides a virtual item stacking control device.
[0136] like Fig.12 , which is a schematic diagram of the structure of the virtual item stacking control device provided by the present disclosure.
[0137] In an optional implementation, the virtual item stacking control device 100 can run in a terminal device and provide a graphical user interface for the game through the terminal device. The content displayed by the graphical user interface includes at least one or more storage areas, and the storage area includes multiple storage containers for storing virtual items.
[0138] Specifically, the virtual item stacking control device 100 may include: a display module 101, a confirmation module 102, and a stacking module 103; wherein:
[0139] The display module 101 is used to respond to a first operation on a target virtual item, determine the quantity of the target virtual item stored in a current storage container, and display a stacking window in the graphical user interface, wherein the stacking window is used to determine a stacking quantity.
[0140] The confirmation module 102 is configured to respond to a second operation on the stacking window and determine a stacking quantity from the stacking window according to the second operation.
[0141] The stacking module 103 is used to stack the target virtual items stored in the current storage container into the storage containers of the number of stacks in the storage area according to the number of stacks and the number of target virtual items.
[0142] Optionally, the first operation may include a point operation, a long press operation, a heavy press operation, a double-click operation, etc.
[0143] Optionally, the confirmation module 102 is further configured to, in response to the first operation, display the stacking window on the graphical user interface based on an operation location corresponding to the first operation.
[0144] Optionally, the stacking window includes one or more selection areas, and the selection area is used to determine a stacking value.
[0145] Optionally, the confirmation module 102 is further configured to determine a target selection area from the selection area of the stacking window in response to the second operation according to an end position of the second operation; and determine the stacking quantity according to the stacking value determined by the target selection area.
[0146] Optionally, the selection area includes a preset selection area, and the preset selection area is pre-configured with a preset stacking value; when the target selection area is the preset selection area, the confirmation module 102 is also used to obtain the pre-configured preset stacking value of the preset selection area, and determine the preset stacking value as the stacking quantity.
[0147] Optionally, the preset stacking value preconfigured in the preset selection area includes a preset stacking value configured according to user input, or a default stacking value randomly generated according to system settings.
[0148] Optionally, the selection area includes a custom selection area. When the target selection area is the custom selection area, the confirmation module 102 is further used to provide a pile value input interface in the graphical user interface, receive an input pile value through the pile value input interface, and determine the pile quantity based on the input pile value.
[0149] Optionally, the selection area includes a blank selection area. When the target selection area is the blank selection area, the confirmation module 102 is further used to provide a pile value input interface in the graphical user interface, and receive an input pile value through the pile value input interface; determine the pile quantity based on the input pile value, and configure the input pile value as a preset pile value corresponding to the blank selection area.
[0150] Optionally, the second operation is continuous with the first operation, and the stacking window is a roulette window or a stacking interface.
[0151] Optionally, the display module 101 is further used to display a roulette window at a location where the first operation occurs on the graphical user interface in response to the first operation; or to display a stacking interface at a preset location in the storage area in response to the first operation.
[0152] Optionally, the confirmation module 102 is further used to respond to a sliding operation continuous with the first operation, and determine the target selection area from the selection area of the stack window according to the end position of the sliding operation; or respond to a drag operation continuous with the first operation, and determine the target selection area from the selection area of the stack window according to the end position of the drag operation.
[0153] Optionally, among the storage containers storing the target virtual items in piles, at least some of the storage containers store the same number of target virtual items.
[0154] Optionally, the stacking module 103 is also used to obtain the number of idle storage containers in the storage area; if the number is not less than the number of stacks, the target virtual items stored in the current storage container are stacked and stored in the storage containers of the number of stacks in the storage area; if the number is less than the number of stacks, the target virtual items stored in the current storage container are split into the number of stacks, and the number of stacks in the stacks are stored in the storage containers in the storage area, and the remaining stacks in the stacks are stored in other storage areas.
[0155] Optionally, the stacking module 103 is also used to detect whether other storage areas are displayed in the graphical user interface; if other storage areas are displayed, the target virtual items stored in the current storage container are stacked according to the number of stacks and the number of target virtual items, and the stacks are stored in storage containers of the number of stacks in other storage areas; if no other storage areas are displayed, the step of stacking the target virtual items stored in the current storage container and storing them in storage containers of the number of stacks in the storage area is performed according to the number of stacks and the number of target virtual items.
[0156] Optionally, the stacking module 103 is also used to, when other storage areas are displayed on the graphical user interface, in response to a third operation, stack the target virtual items stored in the current storage container according to the number of stacks and the number of target virtual items, and store the stacks in the storage containers of the number of stacks in the other storage area; wherein the third operation includes a drag operation continuous with the second operation, and the drag operation is used to drag the target virtual items from the current storage container to the other storage area.
[0157] Optionally, when the graphical user interface includes a first storage area and a second storage area, the display module 101 is further configured to determine the quantity of the target virtual item in response to a selection operation on the target virtual item in the first storage area.
[0158] The stacking module 103 is further configured to respond to a dragging operation of dragging the target virtual item from the first storage area to the second storage area, and based on the quantity of the target virtual items and a stacking rule determined based on the second storage area, at least partially stack the target virtual item and store it in the second storage area.
[0159] Optionally, the pile division rule includes at least a predetermined number of piles and a number of target virtual items included in each pile.
[0160] It should be noted that the above is only a brief description of the virtual item stacking control device 100 provided by the present disclosure. The process steps executed and / or the functions implemented when the virtual item stacking control device 100 provided by the present disclosure is working are generally consistent with the step processes and / or the functions implemented in each embodiment of the virtual item stacking control method provided in the previous text disclosure, so they will not be described in detail here.
[0161] Through the above introduction, the virtual item stacking control device provided by the present disclosure, when the user selects the target virtual item from the storage area, displays a stacking window including one or more selection areas on the graphical user interface, so that the user can determine the number of stacks to be stacked for the target virtual item from the different selection areas displayed, and then automatically stacks the target virtual item, which simplifies the stacking operation process, improves the stacking operation efficiency, and avoids the power consumption and performance overhead of the terminal device caused by multiple repeated and complicated operations.
[0162] Then, the present disclosure also provides a terminal device.
[0163] like Fig.13 , which is a schematic diagram of the hardware architecture of the terminal device provided by the present disclosure.
[0164] In an optional implementation, the terminal device 200 includes: a processor 201 and a memory 202; optionally, the memory 201 can be independent or integrated with the processor 202. When the memory 201 is independently provided, the terminal device in the game also includes a bus 203 for connecting the memory 201 and the processor 202. Wherein:
[0165] The memory 201 is used to store computer-executable instructions.
[0166] The processor 202 is configured to execute the computer-executable instructions stored in the memory 202, and implement at least the following steps:
[0167] Providing a graphical user interface of the game through the terminal device 200, wherein the content displayed by the graphical user interface at least includes one or more storage areas, wherein the storage area includes a plurality of storage containers for storing virtual items;
[0168] In response to a first operation on a target virtual item, determining the quantity of the target virtual item stored in a current storage container, and displaying a stacking window on the graphical user interface, wherein the stacking window is used to determine a stacking quantity;
[0169] In response to a second operation applied to the stacking window, determining a stacking quantity from the stacking window according to the second operation; and
[0170] According to the number of divided piles and the number of target virtual items, the target virtual items stored in the current storage container are divided into piles and stored in the storage area in the number of divided piles.
[0171] Optionally, the first operation includes any of the following operations: a click operation, a long press operation, a hard press operation, and a double-click operation.
[0172] Optionally, the step of displaying a stacking window in the graphical user interface in response to a first operation on the target virtual item includes: in response to the first operation, displaying the stacking window in the graphical user interface based on a location where the first operation occurs.
[0173] Optionally, the stacking window includes one or more selection areas, and the selection area is used to determine a stacking value; the step of determining a number of stacks from the stacking window in response to a second operation applied to the stacking window according to the second operation includes: in response to the second operation, determining a target selection area from the selection area of the stacking window according to an end position of the second operation; and determining the number of stacks according to the stacking value determined by the target selection area.
[0174] Optionally, the selection area includes a preset selection area, which is pre-configured with a preset stacking value; when the target selection area is the preset selection area, the step of determining the number of stackings based on the stacking value determined for the target selection area includes: obtaining the pre-configured preset stacking value of the preset selection area, and determining the preset stacking value as the number of stackings.
[0175] Optionally, the preset stacking value preconfigured in the preset selection area includes a preset stacking value configured according to user input, or a default stacking value randomly generated according to system settings.
[0176] Optionally, the selection area includes a custom selection area. When the target selection area is the custom selection area, the step of determining the number of piles based on the pile value determined by the target selection area includes: providing a pile value input interface on the graphical user interface, receiving an input pile value through the pile value input interface, and determining the number of piles based on the input pile value.
[0177] Optionally, the selection area includes a blank selection area. When the target selection area is the blank selection area, the step of determining the number of piles based on the pile value determined for the target selection area includes: providing a pile value input interface on the graphical user interface, receiving an input pile value through the pile value input interface; determining the number of piles based on the input pile value, and configuring the input pile value as a preset pile value corresponding to the blank selection area.
[0178] Optionally, the second operation is continuous with the first operation, and the stacking window is a roulette window or a stacking interface.
[0179] Optionally, the step of displaying a stack window on the graphical user interface in response to a first operation acting on a target virtual item includes: in response to the first operation, displaying a roulette window at a location on the graphical user interface where the first operation occurs; or in response to the first operation, displaying a stack interface at a preset location in the storage area.
[0180] Optionally, the step of determining a target selection area from the selection area of the stack window according to the end position of the second operation in response to the second operation includes: in response to a sliding operation continuous with the first operation, determining the target selection area from the selection area of the stack window according to the end position of the sliding operation; or in response to a drag operation continuous with the first operation, determining the target selection area from the selection area of the stack window according to the end position of the drag operation.
[0181] Optionally, among the storage containers storing the target virtual items in piles, at least some of the storage containers store the same number of target virtual items.
[0182] Optionally, the step of storing the target virtual items stored in the current storage container in piles of the number of storage containers in the storage area according to the number of piles and the number of target virtual items includes: obtaining the number of idle storage containers in the storage area; if the number is not less than the number of piles, storing the target virtual items stored in the current storage container in piles of the number of storage containers in the storage area; if the number is less than the number of piles, splitting the target virtual items stored in the current storage container into piles of the number of piles, storing the number of piles in the piles in the storage containers in the storage area, and storing the remaining piles in the piles in other storage areas.
[0183] Optionally, in response to a second operation acting on the stacking window, after the step of determining a stacking quantity from the stacking window according to the second operation, it may also include: detecting whether other storage areas are displayed in the graphical user interface; if other storage areas are displayed, stacking the target virtual items stored in the current storage container according to the stacking quantity and the number of target virtual items, and storing the stacks in storage containers of the number of stacks in other storage areas; if no other storage areas are displayed, executing the step of stacking the target virtual items stored in the current storage container into storage containers of the number of stacks in the storage area according to the stacking quantity and the number of target virtual items.
[0184] Optionally, if other storage areas are displayed, the step of dividing the target virtual items stored in the current storage container into piles according to the number of piles and the number of target virtual items, and storing the piles in storage containers of the number of piles in other storage areas includes: when other storage areas are displayed on the graphical user interface, in response to a third operation, dividing the target virtual items stored in the current storage container into piles according to the number of piles and the number of target virtual items, and storing the piles in storage containers of the number of piles in the other storage areas; wherein the third operation includes a drag operation continuous with the second operation, and the drag operation is used to drag the target virtual items from the current storage container to the other storage areas.
[0185] Optionally, when the graphical user interface includes a first storage area and a second storage area, it may also include: in response to a selection operation on a target virtual item in the first storage area, determining the quantity of the target virtual items; in response to a drag operation of dragging the target virtual items from the first storage area to the second storage area, at least partially stacking and storing the target virtual items in the second storage area based on the quantity of the target virtual items and a stacking rule determined based on the second storage area.
[0186] Optionally, the pile division rule includes at least a predetermined number of piles and a number of target virtual items included in each pile.
[0187] It should be noted that the above is only a brief description of the terminal device 200 provided in the present disclosure. The process steps executed and / or the functions implemented by the terminal device 200 when working are generally consistent with the step processes and / or the functions implemented in each embodiment of the virtual item stacking control method provided in the previous text disclosure, so they will not be described in detail here.
[0188] Through the above introduction, the terminal device described in the present disclosure provides a stacking window for the user after the user selects the target virtual item, so that the user can directly select and determine the required number of stacks from the stacking window, and then automatically stack the target virtual items, thereby simplifying the stacking operation process, improving the stacking operation efficiency, and avoiding the power consumption and performance overhead of the terminal device caused by multiple repeated and complex operations.
[0189] Finally, the present disclosure also provides a computer-readable storage medium.
[0190] In an optional implementation, the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, at least the following steps are implemented:
[0191] Providing a graphical user interface of the game through a terminal device, wherein the content displayed by the graphical user interface at least includes one or more storage areas, wherein the storage area includes a plurality of storage containers for storing virtual items;
[0192] In response to a first operation on a target virtual item, determining the quantity of the target virtual item stored in a current storage container, and displaying a stacking window on the graphical user interface, wherein the stacking window is used to determine a stacking quantity;
[0193] In response to a second operation applied to the stacking window, determining a stacking quantity from the stacking window according to the second operation; and
[0194] According to the number of divided piles and the number of target virtual items, the target virtual items stored in the current storage container are divided into piles and stored in the storage area in the number of divided piles.
[0195] Optionally, the first operation includes any of the following operations: a click operation, a long press operation, a hard press operation, and a double-click operation.
[0196] Optionally, the step of displaying a stacking window in the graphical user interface in response to a first operation on the target virtual item includes: in response to the first operation, displaying the stacking window in the graphical user interface based on a location where the first operation occurs.
[0197] Optionally, the stacking window includes one or more selection areas, and the selection area is used to determine a stacking value; the step of determining a number of stacks from the stacking window in response to a second operation applied to the stacking window according to the second operation includes: in response to the second operation, determining a target selection area from the selection area of the stacking window according to an end position of the second operation; and determining the number of stacks according to the stacking value determined by the target selection area.
[0198] Optionally, the selection area includes a preset selection area, which is pre-configured with a preset stacking value; when the target selection area is the preset selection area, the step of determining the number of stackings based on the stacking value determined for the target selection area includes: obtaining the pre-configured preset stacking value of the preset selection area, and determining the preset stacking value as the number of stackings.
[0199] Optionally, the preset stacking value preconfigured in the preset selection area includes a preset stacking value configured according to user input, or a default stacking value randomly generated according to system settings.
[0200] Optionally, the selection area includes a custom selection area. When the target selection area is the custom selection area, the step of determining the number of piles based on the pile value determined by the target selection area includes: providing a pile value input interface on the graphical user interface, receiving an input pile value through the pile value input interface, and determining the number of piles based on the input pile value.
[0201] Optionally, the selection area includes a blank selection area. When the target selection area is the blank selection area, the step of determining the number of piles based on the pile value determined for the target selection area includes: providing a pile value input interface on the graphical user interface, receiving an input pile value through the pile value input interface; determining the number of piles based on the input pile value, and configuring the input pile value as a preset pile value corresponding to the blank selection area.
[0202] Optionally, the second operation is continuous with the first operation, and the stacking window is a roulette window or a stacking interface.
[0203] Optionally, the step of displaying a stack window on the graphical user interface in response to a first operation acting on a target virtual item includes: in response to the first operation, displaying a roulette window at a location on the graphical user interface where the first operation occurs; or in response to the first operation, displaying a stack interface at a preset location in the storage area.
[0204] Optionally, the step of determining a target selection area from the selection area of the stack window according to the end position of the second operation in response to the second operation includes: in response to a sliding operation continuous with the first operation, determining the target selection area from the selection area of the stack window according to the end position of the sliding operation; or in response to a drag operation continuous with the first operation, determining the target selection area from the selection area of the stack window according to the end position of the drag operation.
[0205] Optionally, among the storage containers storing the target virtual items in piles, at least some of the storage containers store the same number of target virtual items.
[0206] Optionally, the step of storing the target virtual items stored in the current storage container in piles of the number of storage containers in the storage area according to the number of piles and the number of target virtual items includes: obtaining the number of idle storage containers in the storage area; if the number is not less than the number of piles, storing the target virtual items stored in the current storage container in piles of the number of storage containers in the storage area; if the number is less than the number of piles, splitting the target virtual items stored in the current storage container into piles of the number of piles, storing the number of piles in the piles in the storage containers in the storage area, and storing the remaining piles in the piles in other storage areas.
[0207] Optionally, in response to a second operation acting on the stacking window, after the step of determining a stacking quantity from the stacking window according to the second operation, it may also include: detecting whether other storage areas are displayed in the graphical user interface; if other storage areas are displayed, stacking the target virtual items stored in the current storage container according to the stacking quantity and the number of target virtual items, and storing the stacks in storage containers of the number of stacks in other storage areas; if no other storage areas are displayed, executing the step of stacking the target virtual items stored in the current storage container into storage containers of the number of stacks in the storage area according to the stacking quantity and the number of target virtual items.
[0208] Optionally, if other storage areas are displayed, the step of dividing the target virtual items stored in the current storage container into piles according to the number of piles and the number of target virtual items, and storing the piles in storage containers of the number of piles in other storage areas includes: when other storage areas are displayed on the graphical user interface, in response to a third operation, dividing the target virtual items stored in the current storage container into piles according to the number of piles and the number of target virtual items, and storing the piles in storage containers of the number of piles in the other storage areas; wherein the third operation includes a drag operation continuous with the second operation, and the drag operation is used to drag the target virtual items from the current storage container to the other storage areas.
[0209] Optionally, when the graphical user interface includes a first storage area and a second storage area, it may also include: in response to a selection operation on a target virtual item in the first storage area, determining the quantity of the target virtual items; in response to a drag operation of dragging the target virtual items from the first storage area to the second storage area, at least partially stacking and storing the target virtual items in the second storage area based on the quantity of the target virtual items and a stacking rule determined based on the second storage area.
[0210] Optionally, the pile division rule includes at least a predetermined number of piles and a number of target virtual items included in each pile.
[0211] It should be noted that the above is only a brief description of the computer-readable storage medium provided by the present disclosure. The process steps executed and / or the functions implemented when the computer-readable storage medium is working are generally consistent with the step processes and / or the functions implemented in each embodiment of the virtual item stacking control method provided in the previous text disclosure, so they will not be described in detail here.
[0212] Through the above introduction, the computer-readable storage medium described in the present disclosure provides a stacking window for the user after the user selects the target virtual item, so that the user can directly select and determine the required number of stacks from the stacking window, and then automatically stack the target virtual item, thereby simplifying the stacking operation process, improving the stacking operation efficiency, and avoiding the power consumption and performance overhead of the terminal device caused by multiple repeated and complex operations.
[0213] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0214] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present disclosure.
[0215] It should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.
[0216] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0217] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present disclosure is not limited to only one bus or one type of bus.
[0218] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0219] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0220] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A virtual item stacking control method, characterized in that: A graphical user interface of a game is provided through a terminal device, wherein the content displayed by the graphical user interface at least includes one or more storage areas, wherein the storage area includes a plurality of storage containers for storing virtual items, and the method includes: In response to a first operation on a target virtual item stored in a current storage container, determining the quantity of the target virtual item, and displaying a stacking window on the graphical user interface, wherein the stacking window includes one or more selection areas, and the selection area is used to determine a stacking value; In response to a second operation applied to the stacking window, a target selection area is determined from the selection area of the stacking window according to an end position of the second operation; Determining a number of sub-piles according to the sub-piling value determined by the target selection area; According to the number of divided piles and the number of target virtual items, the target virtual items stored in the current storage container are divided into piles and stored in storage containers of the number of divided piles.
2. The method according to claim 1, characterized in that The first operation includes any one of the following operations: a point selection operation, a long press operation, a heavy press operation, and a double-click operation.
3. The method according to claim 1, characterized in that: The step of displaying a stack window in the graphical user interface in response to a first operation on the target virtual item stored in the current storage container includes: In response to the first operation, the stacking window is displayed on the graphical user interface based on an operation occurrence location corresponding to the first operation.
4. The method according to claim 1, characterized in that The selection area includes a preset selection area pre-configured with a preset pile value; When the target selection area is the preset selection area, the step of determining a pile quantity according to the pile value determined by the target selection area includes: A pre-configured preset pile division value of the preset selection area is obtained, and the preset pile division value is determined as the pile division quantity.
5. The method according to claim 4, characterized in that The preconfigured preset pile division value includes a preset pile division value generated according to user input and / or a default pile division value generated according to system settings.
6. The method according to claim 1, characterized in that The selection area includes a custom selection area; When the target selection area is the user-defined selection area, the step of determining a number of piles according to the pile value determined for the target selection area includes: A pile-division value input interface is provided on the graphical user interface, an input pile-division value is received through the pile-division value input interface, and the input pile-division value is determined as the pile-division quantity.
7. The method according to claim 1, characterized in that The selection area includes a blank selection area; When the target selection area is the blank selection area, the step of determining a pile quantity according to the pile value determined for the target selection area includes: Providing a heap value input interface on the graphical user interface, and receiving an input heap value through the heap value input interface; The input pile value is determined as the pile quantity, and the input pile value is configured as a preset pile value corresponding to the blank selection area.
8. The method according to any one of claims 1 to 7, characterized in that: The second operation is continuous with the first operation, and the stacking window is a roulette window or a stacking interface.
9. The method according to claim 8, characterized in that The step of determining a target selection area from the selection area of the stacking window according to the end position of the second operation in response to the second operation includes: In response to a sliding operation that is continuous with the first operation, determining the target selection area from the selection areas of the roulette window according to an end position of the sliding operation in the roulette window; or In response to a drag operation that is continuous with the first operation, the target selection area is determined from the selection areas of the stacking interface according to an end position of the drag operation on the stacking interface.
10. The method according to claim 1, characterized in that Among the storage containers storing the target virtual items in piles, at least some of the storage containers store the same number of target virtual items.
11. The method according to claim 1, characterized in that: The step of storing the target virtual items stored in the current storage container in piles into the storage containers of the number of piles in the storage area according to the number of piles and the number of target virtual items comprises: Obtaining the number of idle storage containers in the storage area; If the number of the idle storage containers is not less than the number of divided piles, the target virtual items stored in the current storage container are divided into piles and stored in the idle storage area in the number of divided piles of storage containers; If the number of idle storage containers is less than the number of piles, the target virtual items stored in the current storage container are split into the number of piles, and the piles of the number of idle storage containers in the piles are stored in the storage area, and the remaining piles in the piles are stored in other storage areas.
12. The method according to claim 1, characterized in that Before the step of storing the target virtual items stored in the current storage container in piles into the storage containers of the number of piles in the storage area according to the number of piles and the number of target virtual items, the method further includes: Detecting whether other storage areas are displayed in the graphical user interface; If yes, then according to the number of sub-piles and the number of target virtual items, the target game props stored in the current storage container are split into one or more sub-piles, and the sub-piles are respectively stored in the storage containers of the number of sub-piles in the other storage area; If not, a step is performed to store the target virtual items stored in the current storage container in piles into the storage containers of the number of piles in the storage area according to the number of piles and the number of target virtual items.
13. The method according to claim 12, characterized in that If other storage areas are displayed, the step of dividing the target virtual items stored in the current storage container into piles according to the pile quantity and the quantity of the target virtual items, and storing the piles in the storage containers of the pile quantity in the other storage areas includes: When the graphical user interface displays other storage areas, in response to a third operation, the target virtual items stored in the current storage container are divided into piles according to the number of piles and the number of target virtual items, and the piles are respectively stored in the storage containers of the number of piles in the other storage area; The third operation includes a drag operation that is continuous with the second operation, and the drag operation is used to drag the target virtual item from the current storage container to the other storage area.
14. The method according to claim 1, characterized in that The method further comprises: In response to a selection operation on a target virtual item, determining a quantity of the target virtual item, wherein the target virtual item is stored in a first storage area of the graphical user interface; In response to a dragging operation of dragging the target virtual item from the first storage area to the second storage area, the target virtual item is at least partially stacked and stored in the second storage area according to the quantity of the target virtual items and a stacking rule determined based on the second storage area.
15. The method according to claim 14, characterized in that The pile division rule determined based on the second storage area at least includes: the number of pile divisions determined based on the second storage area, and the number of target virtual items corresponding to each pile division.
16. A virtual item stacking control device, characterized in that: A graphical user interface of a game is provided through a terminal device, wherein the content displayed by the graphical user interface at least includes one or more storage areas, wherein the storage area includes a plurality of storage containers for storing virtual items, and the apparatus includes: A display module, configured to determine the quantity of the target virtual item stored in the current storage container in response to a first operation on the target virtual item, and to display a stacking window on the graphical user interface, wherein the stacking window includes one or more selection areas, and the selection area is used to determine a stacking value; a confirmation module, configured to respond to a second operation on the stacking window, determine a target selection area from the selection area of the stacking window according to an end position of the second operation, and determine a stacking quantity according to a stacking value determined by the target selection area; The stacking module is used to stack the target virtual items stored in the current storage container into the storage containers of the number of stacks in the storage area according to the number of stacks and the number of target virtual items.
17. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 15 can be implemented.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Information processing method and information processing system for limiting card drawing of game based on mobile terminal
CN111151012A
Call request processing method and device, electronic equipment and storage medium
CN113220482A
Operation control method and device of virtual article and electronic equipment
CN113262484A
Virtual gift sending method, apparatus and device, and storage medium
WO2021109650A1
