Method, device and electronic equipment for interaction control of virtual props
By displaying and controlling the sub-item configuration of virtual items through a graphical user interface, the problem of tedious bullet reloading in shooting games is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2022-06-17
- Publication Date
- 2026-07-14
Smart Images

Figure CN115300907B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of interface interaction technology, and more specifically, to an interactive control method, device, and electronic device for virtual props. Background Technology
[0002] Most shooting games involve the loading process of firearms. Related technologies typically simulate this process through a complex procedure, such as first opening the ammunition container, loading the bullets into the magazine, and then loading the magazine into the firearm. This process is cumbersome and negatively impacts the user experience. Some games omit the loading process altogether, instead using bullets stored in the player's backpack. This approach lacks the realism of using firearms, resulting in a poor experience. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide an interactive control method, device and electronic device for virtual props, so as to ensure the player's sense of use of the target virtual props, simplify the process of loading sub-props and improve the user experience.
[0004] In a first aspect, embodiments of the present invention provide an interactive control method for virtual props, which provides a graphical user interface through a terminal device; the method includes: displaying a prop operation interface in the graphical user interface, the prop operation interface including a target virtual prop carried by a controlled virtual object, and a sub-prop configuration display area corresponding to the target virtual prop, wherein the sub-prop configuration is a prop launched in a virtual scene through the target virtual prop, and the sub-prop configuration display area is used to display the assembled sub-props of the target virtual prop; responding to an assembly operation, determining the target sub-prop corresponding to the assembly operation, and controlling the assembly of the target sub-prop to the target virtual prop; updating the display information in the sub-prop configuration display area; wherein the updated display information includes information corresponding to the target sub-prop.
[0005] The above assembly operation includes triggering the assembly control; responding to the assembly operation and determining the target sub-prop corresponding to the assembly operation includes: responding to a click operation on the sub-prop configuration display area and displaying the assembly control; responding to a trigger operation on the assembly control and determining the target sub-prop corresponding to the trigger operation.
[0006] The aforementioned graphical user interface also includes a sub-item storage display area; the sub-item storage display area is used to display unassembled sub-items in the item storage equipment of the controlled virtual object; the step of responding to a trigger operation for the assembly control and determining the target sub-item to be assembled includes: responding to a trigger operation for the assembly control, determining the number of target sub-items based on the remaining capacity of the target virtual item and the number of unassembled sub-items; sorting the unassembled sub-items in descending order of their penetration parameters to obtain a sorting result; selecting unassembled sub-items sequentially according to the sorting result until the number of selected unassembled sub-items equals the number of target bullets; and determining the selected unassembled sub-items as target sub-items.
[0007] The graphical user interface described above also includes a sub-item storage display area; the sub-item storage display area is used to display unassembled sub-items in the item storage equipment of the controlled virtual object; the step of responding to an assembly operation and determining the target sub-item corresponding to the assembly operation includes: responding to a selection operation on an unassembled sub-item in the sub-item storage display area, determining the unassembled sub-item corresponding to the selection operation as the target unassembled sub-item; responding to a drag operation on the target unassembled sub-item, determining the target sub-item to be assembled to the target virtual object based on the remaining capacity of the target virtual object and the number of target unassembled sub-items; the end position of the drag operation is located in the sub-item configuration display area.
[0008] The aforementioned remaining capacity indicates the number of equipable sub-items of the target virtual item; the step of determining the target sub-items to be equipped to the target virtual item based on the remaining capacity of the target virtual item and the number of unequipped target sub-items includes: determining the smaller of the number of equipable sub-items of the target virtual item and the number of unequipped target sub-items as the number of target sub-items; selecting unequipped target sub-items in the order of selection until the number of selected unequipped target sub-items equals the number of target bullets; and determining the selected unequipped target sub-items as target sub-items.
[0009] The aforementioned sub-props correspond to multiple types; the prop identifier of the sub-prop corresponds to the type of the sub-prop; the displayed information includes the prop identifier and quantity of the equipped sub-props; the step of updating the display information in the sub-prop configuration display area includes: displaying the updated prop identifier of the equipped sub-props in the sub-prop configuration display area according to the updated assembly order of the equipped sub-props; the updated equipped sub-props include the target sub-prop.
[0010] The display order of the assembled sub-props in the sub-prop configuration display area is the reverse of the assembly order of the assembled sub-props; the method further includes: in response to a launch operation for a target virtual prop, determining the target launch sub-prop corresponding to the launch operation based on the display order of the assembled sub-props, and controlling the target virtual prop to launch the target launch sub-prop in the virtual scene.
[0011] After displaying the updated item identifiers of the equipped sub-items in the sub-item configuration display area according to the updated assembly order of the equipped sub-items, the method further includes: in response to a hover operation on the sub-item configuration display area, displaying the updated quantity and type of the equipped sub-items.
[0012] The aforementioned graphical user interface further includes a sub-item storage display area; the sub-item storage display area is used to display unequipped sub-items in the item storage equipment of the controlled virtual object; the aforementioned method further includes: displaying a remove control in response to a click operation on the sub-item configuration display area; determining whether the remaining capacity of the item storage equipment is greater than or equal to the number of equipped sub-items in the target virtual item in response to a selection operation on the remove control; if it is greater than, determining the equipped sub-items as removed sub-items; updating the display effect of the sub-item configuration display area; the updated display effect indicates that the equipped sub-items in the target virtual item are empty; updating the display of unequipped bullets in the sub-item storage display area; wherein, the updated sub-item configuration display area displays removed sub-items.
[0013] The above method further includes: if the trajectory of the drag operation is detected to be within the sub-item storage display area, determining whether the unequipped sub-item of the target matches the target virtual item; if they match, controlling the sub-item configuration display area to display in a first display format; the first display format indicates that the sub-item configuration display area is in an interactive state; if they do not match, controlling the sub-item configuration display area to display in a second display format; the second display format indicates that the sub-item configuration display area is in a disabled state; if the trajectory of the drag operation is detected to be within the sub-item configuration display area, controlling the sub-item configuration display area to display in a third display format; the third display format indicates that the sub-item configuration display area is in an interactive response state; if the end event of the drag operation is detected, canceling the display of the sub-item configuration display area in the third display format.
[0014] The aforementioned sub-items correspond to multiple item types; the target virtual item matches the sub-item corresponding to the target item type; the target item type includes one or more item types; the step of determining whether the target unequipped sub-item matches the target virtual item includes: determining whether the item type corresponding to the target unequipped sub-item belongs to the target item type corresponding to the target virtual item; if it does, determining that the target unequipped sub-item matches the target virtual item; if it does not, determining that the target unequipped sub-item does not match the target virtual item.
[0015] The above-mentioned display information includes item identifiers of multiple equipped sub-items; the above method further includes: in response to a drag operation on the item identifier of the first sub-item among the multiple equipped sub-items, updating the item identifier of the equipped sub-items in the display sub-item configuration display area based on the display position of the second sub-item corresponding to the end position of the drag operation; in the updated item identifiers, the item identifier of the first sub-item is displayed at the end position of the drag operation.
[0016] The aforementioned sub-item storage and display area includes a first sub-area and at least one second sub-area; the first sub-area displays an unassembled sub-item with a first quantity; the method further includes: in response to a splitting operation of an unassembled sub-item in the first sub-area, displaying a quantity input window corresponding to the unassembled sub-item in the first sub-area; in response to an editing operation applied to the quantity input window, displaying the sub-item quantity corresponding to the editing operation; the quantity input window includes a confirmation control; in response to a selection operation of the confirmation control, deselecting the display of the quantity input window; based on the sub-item quantity, controlling the updating of the first quantity of unassembled sub-items in the first sub-area, and displaying unassembled sub-items with the sub-item quantity in the second sub-area.
[0017] The above-described step of displaying the updated item identifiers of the equipped sub-items in the sub-item configuration display area according to the updated assembly order of the equipped sub-items includes: dividing the equipped sub-items into at least one item display group based on a preset display quantity and the updated assembly order of the equipped sub-items; each item display group includes at least one equipped sub-item; the number of equipped sub-items in each item display group is less than or equal to the display quantity; determining a target item display group from the at least one item display group based on the assembly order of the equipped sub-items, and displaying the item identifiers of the equipped sub-items in the target item display group in the sub-item configuration display area; and responding to a hover operation on the sub-item configuration display area, determining the next target item display group from the at least one item display group, and displaying the item identifiers of the equipped sub-items in the next target item display group in the sub-item configuration display area.
[0018] The aforementioned graphical user interface also includes a sub-item storage display area; the sub-item storage display area displays the item identifiers and quantity information of unassembled sub-items in the item storage equipment of the controlled virtual object; the step of responding to an assembly operation and determining the target sub-item corresponding to the assembly operation includes: responding to a selection operation on the item identifier of an unassembled sub-item in the sub-item storage display area, displaying a target assembly quantity input window corresponding to the unassembled sub-item; responding to an editing operation applied to the target assembly quantity input window, determining the edited content corresponding to the editing operation as the target quantity of the target sub-item, and updating the quantity information of unassembled sub-items displayed in the sub-item storage display area based on the edited content and quantity information; and determining the unassembled sub-items whose quantity matches the target quantity as the target sub-item.
[0019] Secondly, embodiments of the present invention provide an interactive control device for virtual props, which provides a graphical user interface through a terminal device; the device includes: a prop operation interface display module, used to display a prop operation interface in the graphical user interface, the prop operation interface including a target virtual prop carried by a controlled virtual object, and a sub-prop configuration display area corresponding to the target virtual prop, wherein the sub-prop configuration is a prop launched in a virtual scene through the target virtual prop, and the sub-prop configuration display area is used to display the assembled sub-props of the target virtual prop; a target sub-prop determination module, used to respond to an assembly operation, determine the target sub-prop corresponding to the assembly operation, and control the assembly of the target sub-prop to the target virtual prop; and an update module, used to update the display information in the sub-prop configuration display area; wherein the updated display information includes information corresponding to the target sub-prop.
[0020] Thirdly, embodiments of the present invention provide an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned interactive control method for virtual props.
[0021] Fourthly, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to implement the aforementioned interactive control method for virtual props.
[0022] The embodiments of the present invention bring the following beneficial effects:
[0023] The aforementioned interactive control method, device, and electronic device for virtual items displays an item operation interface through a graphical user interface. The item operation interface includes a target virtual item carried by a controlled virtual object and a sub-item configuration display area corresponding to the target virtual item. The sub-item configuration refers to items launched from the target virtual item in a virtual scene. The sub-item configuration display area displays the sub-items already equipped by the target virtual item. In response to an assembly operation, the system determines the target sub-item corresponding to the assembly operation and controls the assembly of the target sub-item to the target virtual item. The system also updates the display information in the sub-item configuration display area, where the updated display information includes information corresponding to the target sub-item. This method simplifies the sub-item loading process while ensuring the player's usability of the target virtual item, thereby improving the user experience.
[0024] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0025] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0026] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0027] Figure 1 A flowchart illustrating an interactive control method for virtual props provided in an embodiment of the present invention;
[0028] Figure 2 This is a schematic diagram of a prop operation interface that displays a sub-prop configuration display area, provided as an embodiment of the present invention;
[0029] Figure 3 This is a schematic diagram of a prop operation interface that displays specific information about sub-props, provided as an embodiment of the present invention.
[0030] Figure 4 This is a schematic diagram of a prop operation interface displaying assembly controls, provided as an embodiment of the present invention.
[0031] Figure 5This is a schematic diagram of an item operation interface with a sub-item storage display area provided in an embodiment of the present invention;
[0032] Figure 6 A schematic diagram of a backpack weapon slot provided in an embodiment of the present invention;
[0033] Figure 7 This is a schematic diagram of a backpack weapon bar displaying a loading icon, provided as an embodiment of the present invention.
[0034] Figure 8 A schematic diagram of a backpack weapon bar with the bullet container in an interactive state, provided for an embodiment of the present invention;
[0035] Figure 9 A schematic diagram of a backpack weapon slot with a bullet container in an interactive response state, provided as an embodiment of the present invention;
[0036] Figure 10 A flowchart of an automatic bullet loading process provided in an embodiment of the present invention;
[0037] Figure 11 A flowchart of a player selecting and loading bullets is provided as an embodiment of the present invention;
[0038] Figure 12 A schematic diagram of the structure of an interactive control device for virtual props provided in an embodiment of the present invention;
[0039] Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] Most shooting games involve the function of reloading firearms (also known as "loading"). Some realistic games simulate the experience of using firearms in this way, for example, by adding a manual loading (also known as "bullet loading") step, through which different types of bullets with different damage powers can be used. One method is as follows: when the user uses the bullet loading function, the process is as follows: the player needs to open the backpack, manually drag the bullets into the magazine, and then drag the magazine into the firearm. This method requires the firearm to have a magazine installed before it can be loaded, and the loading process is cumbersome and time-consuming.
[0042] Some games simplify the use of guns by having players simply place bullets in their inventory. However, this approach lacks realism, and typically, a gun can only hold one type of ammunition, resulting in a poor user experience.
[0043] Based on this, embodiments of the present invention provide an interactive control method, device, and electronic device for virtual props, which can be applied to various game scenarios involving the use of weapons.
[0044] The virtual item interaction control method disclosed in one embodiment of this invention can run on a local terminal device or a server. When the virtual item interaction control method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0045] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separate. The storage and operation of the interactive control methods for virtual items are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0046] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0047] In one possible implementation, embodiments of the present invention provide an interactive control method for virtual props, which provides a graphical user interface through a terminal device. The prop operation interface is as follows: Figure 1 As shown, the method includes the following steps:
[0048] Step 102: The graphical user interface displays the prop operation interface. The prop operation interface includes the target virtual prop carried by the controlled virtual object, and the sub-prop configuration display area corresponding to the target virtual prop. The sub-prop configuration is the prop launched in the virtual scene through the target virtual prop. The sub-prop configuration display area is used to display the sub-props that have been equipped by the target virtual prop.
[0049] The aforementioned target virtual props can typically be weapons or tools of controlled virtual objects. For example, a target virtual prop could be a bow, gun, cannon, tank, or other tools designed by the game developers for throwing bullets or medicine. Sub-props are matched with the target virtual prop and can be fired from it. When the target virtual prop is a bow, the sub-prop is an arrow; when the target virtual prop is a gun, the sub-prop is bullets, and so on. Target virtual props require sub-props to be equipped before use. The number of sub-props in a target virtual prop decreases as the target virtual prop is used; a target virtual prop is generally unusable when it has no sub-props.
[0050] During gameplay, players can access the item setup interface by clicking on item settings controls within the game scene or by pressing pre-defined keyboard keys. This will display the graphical user interface (GUI) for item setup. The GUI shows the target virtual item carried by the controlled virtual object, as well as the corresponding sub-item configuration area. The sub-item configuration area typically displays information such as the identifier and quantity of the sub-items equipped to the target virtual item. Figure 2 As shown, sub-item 1, sub-item 2, and sub-item 3 are displayed in the sub-item configuration display area. When the target virtual item is a gun, the sub-item, i.e., the bullets, needs to be placed into the magazine before the magazine is loaded into the gun. At this time, the content displayed in the sub-item configuration display area is the bullet information in the magazine loaded into the gun.
[0051] In one optional implementation, the sub-item configuration display area includes an identifier of the total number of equipable target virtual sub-items for the current target virtual item. For example, when the target virtual item is a firearm, the sub-item configuration display area displays the total number of bullets that can be equipped for that firearm.
[0052] In an optional implementation, the target virtual item is configured to be able to equip auxiliary items to expand the maximum number of target virtual sub-items that can be equipped with the target virtual item. Taking the magazine expansion item as an example, if the default total number of bullets that a firearm item can equip is 30, equipping the magazine item will increase the original total number of bullets that can be equipped to the firearm item to 50. In this implementation, the sub-item configuration display area includes an indicator of the total number of target virtual sub-items that can be equipped with the current target virtual item after equipping the auxiliary item.
[0053] Step 104: Respond to the assembly operation, determine the target sub-prop corresponding to the assembly operation, and control the assembly of the target sub-prop to the target virtual prop.
[0054] The aforementioned assembly operations are typically performed by players through human-computer interaction devices connected to their terminal devices, such as mice, keyboards, or touchscreens, on a graphical user interface. Different operations can be set according to different needs, such as clicking on the display area of sub-items or clicking on the target virtual item. Different assembly operations can be set; for example, a first assembly operation assembles the target virtual item with the quantity and type of sub-items selected by the player, and a second assembly operation automatically assembles the sub-items into the target virtual item based on a preset sub-item assembly order, until the target virtual item is full.
[0055] When a player equips a sub-item, corresponding to the player's selection of the sub-item to be equipped, the player first needs to select the sub-item from their inventory. Typically, the player's owned sub-items can also be displayed in the item operation window. Specifically, a sub-item storage display area can be set within the virtual item operation window to show sub-items that the player owns but have not yet equipped to the target virtual item. The sub-item storage display area can display a scene from the inventory or equipment library to simulate the storage scenario of sub-items in reality.
[0056] Players can select a sub-item by clicking on its display location in the sub-item storage area using the human-computer interaction device. They can then long-press the sub-item's display area to bring up the corresponding assembly controls in the graphical user interface. The assembly operation confirms the assembly of these controls. Alternatively, after selecting a sub-item, players can drag its icon to the sub-item accessory display area; this dragging action is considered an assembly operation. Players can select one or more sub-items, depending on their needs.
[0057] Generally, after a player selects a sub-item they wish to equip and triggers a sub-item equipment event, that sub-item can be designated as the target sub-item to be equipped to the target virtual item. However, the target virtual item may already contain sub-items or have a small capacity, with its remaining capacity less than the number of sub-items the player wants to equip. In this case, the target sub-item needs to be selected from the sub-items the player wants to equip, based on the remaining capacity of the target virtual item; specifically, it can be selected based on the order in which the player selected the sub-items, choosing the sub-item selected earlier as the target sub-item. The number of target sub-items matches the remaining capacity of the target virtual item. Furthermore, since the types of sub-items that can be equipped to the target virtual item may differ depending on its configuration, it's possible to prevent players from selecting sub-items that cannot be equipped to the target virtual item, or to display a prompt after the player selects a sub-item, and then automatically deselect it.
[0058] When the system needs to automatically equip sub-items to a target virtual item, the player can trigger the assembly control in the sub-item configuration display area. This can be done by double-clicking or long-pressing the area. The player can then confirm the assembly control by clicking it; this confirmation is considered the assembly operation. After a sub-item assembly event occurs, the game system's sub-item assembly logic can be pre-set to automatically equip sub-items to the target virtual item based on a preset assembly order, such as equipping sub-items with high penetration or damage first. Therefore, the system can sort the player's unequipped sub-items according to preset sub-item parameters and select the sub-item that matches the remaining capacity of the target virtual item as the target sub-item. Alternatively, the assembly logic can be based on player preferences, such as equipping sub-items with higher firing frequencies based on historical sub-item firing records.
[0059] During the process of equipping a target sub-item to a target virtual item, preset special effects can be displayed in the graphical user interface. These effects may include animations of the sub-item being loaded into the target virtual item, as well as sound effects. The display duration of the preset effects is determined by the number of target sub-items and is directly proportional to the number of target sub-items. The preset effects can be displayed in the display position of the target virtual item in the virtual item configuration window, thus giving players a more realistic sub-item loading experience.
[0060] Step 106: Update the display information in the display area of the sub-item configuration; the updated display information includes the information corresponding to the target sub-item.
[0061] After a target sub-item is equipped to a target virtual item, the equipped sub-items in the target virtual item change. Therefore, the content displayed in the sub-item configuration display area also needs to be updated accordingly. The updated sub-item configuration display area displays the information corresponding to the equipped sub-items in the target virtual item. At this time, the target sub-item can be displayed as an equipped sub-item in the sub-item configuration display area.
[0062] When displaying equipped sub-items in the sub-item configuration display area, you can either show only the sub-item identifiers according to the assembly order, or you can display both the sub-item type and quantity. If multiple sub-items of the same type are installed in adjacent orders, you can display only one sub-item identifier, along with the quantity of the sub-items corresponding to that identifier. When the sub-item configuration display area only displays sub-item identifiers, you can click on the area or hover the mouse cursor over it to display specific information about the equipped sub-items, such as type, quantity, and damage, in the graphical user interface. Figure 3 As shown.
[0063] The aforementioned interactive control method for virtual items responds to a sub-item loading event for a target virtual item, determines the target sub-item to be loaded into the target virtual item, displays the preset special effects of the target sub-item being loaded into the target virtual item, and updates the loaded sub-item in the sub-item configuration display area. The updated sub-item configuration display area shows the target sub-item. This method simplifies the sub-item loading process while ensuring the player's usability of the target virtual item, thereby improving the user experience.
[0064] The following embodiment provides a response assembly operation to determine the implementation method of the target sub-prop corresponding to the assembly operation.
[0065] When the system needs to automatically load sub-items into a target virtual item, the loading operation can trigger a loading control. Specifically, players can click on the sub-item configuration display area through the human-computer interaction device. Responding to this click operation, the loading control is displayed, such as... Figure 4 As shown; respond to the trigger operation for the assembly control and determine the target sub-prop corresponding to the trigger operation.
[0066] When determining the target sub-item corresponding to the triggering operation, it is necessary to use the sub-items stored in the sub-item storage of the player-controlled virtual object. These sub-items are not equipped to the target virtual item and can be called unloaded sub-items. The graphical user interface may also include a sub-item storage display area; the sub-item storage display area is used to display the unloaded sub-items in the sub-item storage of the controlled virtual object, such as... Figure 5 As shown.
[0067] Specifically, the system can first respond to trigger operations targeting the assembly control, and determine the number of target sub-items based on the remaining capacity of the target virtual item and the number of unloaded sub-items. When the remaining capacity is greater than the number of unloaded sub-items, the number of unloaded sub-items is determined as the number of target sub-items; when the remaining capacity is less than the number of unloaded sub-items, the remaining capacity is determined as the number of target sub-items. Then, the unloaded sub-items are sorted from largest to smallest according to their penetration parameters to obtain a sorting result. Unloaded sub-items are then selected sequentially according to the sorting result until the number of selected unloaded sub-items equals the number of target sub-items. Finally, the selected unloaded sub-items are determined as target sub-items.
[0068] When a player needs to manually select a sub-item to load into a target virtual item, the sub-item loading event can be a drag operation applied to an unloaded sub-item. When the player selects an unloaded sub-item in the sub-item storage display area, in response to the selection operation applied to the unloaded sub-item in the sub-item storage display area, the unloaded sub-item corresponding to the selection operation is identified as the target unloaded sub-item; in response to a drag operation applied to the target unloaded sub-item, based on the remaining capacity of the target virtual item and the number of target unloaded sub-items, the target sub-item to be loaded into the target virtual item is determined; wherein, the end position of this drag operation is located in the sub-item configuration display area.
[0069] The remaining capacity indicates the number of loadable sub-items of the target virtual item. When determining the target sub-items to be loaded into the target virtual item, the smaller of the number of loadable sub-items of the target virtual item and the number of unloaded sub-items can be used as the target sub-item quantity. Then, unloaded sub-items are selected sequentially according to their selection order until the number of selected unloaded sub-items equals the target sub-item quantity. This selection order can be determined based on the selection operation. Finally, the selected unloaded sub-items are designated as the target sub-items.
[0070] The sub-item storage display area typically comprises multiple sub-areas; each sub-area displays unequipped sub-items. The same sub-area usually displays the same type of unequipped sub-item. Unequipped sub-items within a sub-area can be split into other sub-areas. The sub-area to be split can be called the first sub-area, and the sub-areas to which it is split can be called the second sub-area. There can be multiple second sub-areas. The first sub-area displays a first number of unequipped sub-items, for example, 20 bullets.
[0071] Players can perform actions such as clicking or long-pressing on the first sub-area. These actions can be considered as splitting operations. In response to the splitting operation of unequipped sub-items in the first sub-area, a quantity input window corresponding to the unequipped sub-items in the first sub-area is displayed. Players can edit and generate numbers in the quantity input window through the human-computer interaction device. This number is the quantity of sub-items corresponding to the editing operation. In response to the editing operation applied to the quantity input window, the quantity of sub-items corresponding to the editing operation is displayed. This quantity of sub-items is the quantity of unequipped sub-items split into the second sub-area.
[0072] The quantity input window includes a confirmation control. When the player selects the confirmation control, the quantity input window is de-displayed in response to the selection operation. Based on the quantity of sub-items, the system updates the first quantity of unequipped sub-items in the first sub-area and displays the unequipped sub-items with that quantity in the second sub-area. For example, when the quantity of sub-items corresponding to the edit operation is 10, the first quantity of unequipped sub-items in the first sub-area changes from 20 to 10. If there were no unequipped sub-items in the second sub-area originally, then the quantity of unequipped sub-items in the second sub-area is 10.
[0073] Players can split the number of unequipped sub-items in the sub-areas of the sub-item storage display area according to their needs. When equipping, they can directly select the number of unequipped sub-items in the sub-area that meets their needs and drag them to the sub-item configuration display area to equip the unequipped sub-items.
[0074] In some cases, the target virtual item has detachable attachments for equipping sub-items. For example, a gun has a magazine; bullets need to be loaded into the magazine, and then the magazine is attached to the gun so that the bullets can be used by the gun. Since magazines can have different parameters, such as capacity and compatible bullet types, different magazines will result in different compatible bullet types for the gun. Sub-areas in the sub-item storage display area can also display attachments that the controlled virtual object possesses and match the target virtual item. Based on the player's equipping operation on attachments in a sub-area, unequipped sub-items in the sub-area of the sub-item storage display area can be equipped into attachments in that sub-area. Then, based on the player's drag operation on an attachment equipped with a sub-item, that attachment can be equipped into the target virtual item, and the sub-item equipped into the attachment in the target virtual item's attachment will be displayed in the sub-item configuration display area. Simultaneously, the sub-items in the target virtual item before the player's drag operation on the attachment should also be displayed in the sub-item storage display area, indicating that these sub-items have been returned to the storage equipment.
[0075] Furthermore, players can customize the number of sub-items to be equipped to the target virtual item. Since the sub-item storage display area typically shows the item identifiers and quantities of unequipped sub-items in the controlled virtual object's item storage equipment (e.g., the first sub-item has 20 items, the second sub-item has 50 items), players can select the item identifier of a specific sub-item. In response to a selection of an unequipped sub-item's item identifier in the sub-item storage display area, such as a player selecting the first sub-item's item identifier, a window will appear to input the target quantity of the unequipped sub-item. In response to an editing operation applied to the target equipment quantity input window, the edited content is determined as the target quantity of the target sub-item. Based on the edited content and quantity information, the quantity information of unequipped sub-items displayed in the sub-item storage display area is updated. This editing operation allows the player to input a number into the window via a human-computer interaction device, representing the quantity the player wants to equip to the target virtual item (the target quantity). The target quantity is then subtracted from the quantity of the unequipped sub-items displayed in the sub-item storage display area to obtain the updated quantity of sub-items. Finally, unequipped sub-items matching the target quantity are designated as target sub-items and then equipped to the target virtual item.
[0076] While a player is dragging an unloaded sub-item, the display effect of the sub-item configuration display area can be adjusted based on the position of the dragging trajectory. If the dragging trajectory is detected within the sub-item storage display area, it can be determined whether the unloaded sub-item matches the target virtual item. Specifically, it can be determined whether the quantity of the unloaded sub-item is less than the remaining capacity of the target virtual item, and whether the unloaded sub-item can be loaded into the target virtual item. If both conditions are met, it can be determined that the unloaded sub-item matches the target virtual item.
[0077] The aforementioned sub-items typically correspond to multiple item types; the target virtual item matches the sub-item corresponding to the target item type, which includes one or more item types. For example, a certain type of bow can only be matched with a certain size of arrow, and a certain model of gun can only be equipped with a few preset types of bullets. When determining whether the target's unequipped sub-item matches the target virtual item, it can be determined whether the item type corresponding to the target's unequipped sub-item belongs to the target item type corresponding to the target virtual item; if it does, then the target's unequipped sub-item matches the target virtual item; if it does not, then the target's unequipped sub-item does not match the target virtual item.
[0078] If they match, the sub-item configuration display area can be controlled to display in a first display format; the first display format indicates that the sub-item configuration display area is in an interactive state, for example, the edges of the sub-item configuration display area are highlighted; if they do not match, the sub-item configuration display area can be controlled to display in a second display format; the second display format indicates that the sub-item configuration display area is in a disabled state, for example, the sub-item configuration display area is displayed in gray.
[0079] If the drag operation trajectory is detected to be within the sub-item configuration display area, control the sub-item configuration display area to display in a third display format; the third display format indicates that the sub-item configuration display area is in an interactive response state, for example, the edge of the sub-item configuration display area can be in a jittering state; if the end event of the drag operation is detected, cancel the display of the sub-item configuration display area in the third display format.
[0080] The following embodiments provide an implementation method for updating the loaded sub-props in the display area of the sub-prop configuration.
[0081] When displaying loaded sub-items of a target virtual item through the sub-item configuration display area, to save space, the updated sub-item identifiers of the loaded sub-items can be displayed in the sub-item configuration display area according to the updated loading order of the loaded sub-items; the updated loaded sub-items include the target sub-item. In practice, sub-items typically correspond to multiple types; the item identifier of a sub-item corresponds to its type, meaning different types of sub-items have different item identifiers. By viewing the sub-item identifiers displayed in the sub-item configuration display area, one can determine which types of sub-items are equipped in the target virtual item.
[0082] Since the target virtual item may contain a large variety and quantity of sub-items, making it difficult to display them all on a single page, the assembled sub-items can be divided into at least one item display group based on a preset display quantity and the updated assembly order of the assembled sub-items. Each item display group includes at least one assembled sub-item; the number of assembled sub-items in each item display group is less than or equal to the display quantity. Then, based on the assembly order of the assembled sub-items, a target item display group is determined from the at least one item display group, and the item identifiers of the assembled sub-items in the target item display group are displayed in the sub-item configuration display area. Typically, this involves displaying the item identifiers of the last assembled sub-items. In response to a hover operation on the sub-item configuration display area, the next target item display group is determined from the at least one item display group, and the item identifiers of the assembled sub-items in the next target item display group are displayed in the sub-item configuration display area. Specifically, each item display group can be displayed in the reverse order of its assembly.
[0083] In practical implementation, since the later-assembled sub-items are usually launched first, to show the launch order of sub-items, the display order of assembled sub-items in the sub-item configuration display area is usually the reverse of their assembly order; that is, the first assembled sub-item is displayed last among the assembled sub-items. When a player generates a launch operation for a target virtual item through a human-computer interaction device, in response to the launch operation, based on the display order of the assembled sub-items, the target launch sub-item corresponding to the launch operation is determined, and the target virtual item is controlled to launch the target launch sub-item in the virtual scene. For example, a gun can fire the last assembled bullet.
[0084] Furthermore, players can change the display order of sub-items by dragging their item icons in the sub-item configuration display area. For example, when a player drags the first sub-item, in response to the drag operation targeting the item icon of the first sub-item among multiple equipped sub-items, the display area of equipped sub-items is updated based on the display position of the second sub-item corresponding to the end position of the drag operation; in the updated item icons, the item icon of the first sub-item is displayed at the end position of the drag operation. The item icons of other items located between the first and second sub-items can be moved upwards sequentially; alternatively, only the display positions of the first and second sub-items can be swapped, depending on the specific requirements.
[0085] When a player hovers the mouse cursor over the sub-item configuration display area, in response to this hovering action, the updated quantity and type of loaded sub-items can be displayed in the graphical user interface, along with their damage parameters, etc. Specifically, for example... Figure 3 As shown.
[0086] In addition, when players need to unload ammunition, they can click or long-press the sub-item configuration display area. In response to operations on the sub-item configuration display area, the unload control is displayed. In response to the selection of the unload control, it checks if the remaining capacity of the sub-item storage equipment is greater than the number of loaded sub-items in the target virtual item. If it is greater, the loaded sub-items are identified as unloaded sub-items. Then, the display effect of the sub-item configuration display area is updated, indicating that the loaded sub-items in the target virtual item are empty. The unloaded sub-items in the sub-item storage display area are also updated. The updated sub-item configuration display area shows unloaded sub-items.
[0087] This invention also provides another interactive control method for virtual props, which... Figure 1This method is implemented based on the method shown. In this method, the target virtual item is set as a firearm, and the sub-item configuration display area is called the bullet container. This method adds a bullet container to each firearm, with different capacity limits, indicating the number of bullets that can be loaded. The capacity of the bullet container for the same firearm can vary, specifically determined by the capacity parameters of the modified magazine. The bullet container records the loading order of each bullet, displaying the first n bullets sequentially on the interface. The loading and consumption of the bullet container follows a stack method, meaning the first loaded bullet is ejected last, and the last loaded bullet is ejected first. In this method, the types and quantities of bullets in the bullet container can be viewed interactively. Reloading can be done interactively in the graphical user interface, consistent with the effect of using shortcut keys to reload in the combat interface.
[0088] In this method, the firearm itself can be used and fire bullets directly without any attachments. This means the firearm is considered to have a built-in magazine, and as long as there are "usable" bullets in the backpack (equivalent to the aforementioned "bullet storage equipment"), the gun can be loaded. Usable bullets refer to bullet types suitable for this firearm. The bullet slots in the backpack are stackable and can be split into several slots of varying stack sizes, allowing players to load bullets in units of these slots. In the game, after equipping magazine attachments, the firearm's maximum bullet capacity or reload speed can be modified, and players can use bullet containers to mix different types of bullets.
[0089] In one embodiment, the item control interface is referred to as the backpack weapon bar, and unloaded items are referred to as "spare ammunition." Figure 6 As shown, a new ammo container will be added to the weapon inventory, displayed to the right of the weapon icon. Below the weapon icon, an indicator of its magazine capacity will also be displayed. The ammo container can also display the number of bullets in the container and the number of spare bullets in the inventory. When the mouse hovers over the ammo container, a full status indicator will appear, showing the type and quantity of ammo. When dragging in bullets or using the combat interface shortcut to reload, a loading time is required; this process is also called reloading, and the ammo container will display a loading icon, such as... Figure 7 As shown.
[0090] In the inventory interface, bullets can be dragged and dropped from other containers (warehouse, loot box, player's own inventory) to reload. There is no limit to the number of bullets that can be loaded at once, as long as the maximum capacity is not exceeded. If the weapon can use multiple types of ammunition, all types can be loaded, and the loading order is not important. The server will record this order and fire bullets according to the loading order when firing.
[0091] When dragging bullets from other containers, if the bullet type matches the weapon, the bullet container will display an interactive prompt, and the edges of the bullet container will have a shadow effect. Figure 8As shown. When a bullet is dragged onto the bullet container UI, an interactive response will be displayed, and the bullet container can be highlighted. Figure 9 As shown, Figure 9 The highlighted area is in gray. Releasing the left mouse button completes the loading process. If the dragged item type is incompatible or the quantity exceeds the limit, it will be disabled. Releasing the left mouse button in this state has no effect.
[0092] Additionally, right-clicking on the ammo container will bring up an options menu. The menu includes the "Unload Ammo" option. Clicking "Unload Ammo" will return the ammo to an empty slot in your inventory. If there is no empty slot, an error message will appear, and the unloading will fail.
[0093] When loading bullets into the bullet container, there are two methods: automatic bullet loading by the system and bullet loading by the player.
[0094] When the system automatically reloads bullets, such as Figure 10 As shown, the specific process is as follows: a) The player triggers the reload button; b) It is determined whether there are bullets matching this weapon in the player's backpack; c) If not, no action is taken; if so, proceed to d; d) PushGraph plays the reload animation and triggers the relevant UI; e) Record the remaining empty slot X of the bullet slot and the total number N of bullets matching this weapon in all backpack containers; f) Arrange the above N bullets in descending order according to the Penetration field in spell_data and reload them in this order; g) The total number of bullets loaded is Min[X,N]; h) Deduct bullets loaded into the bullet container from the backpack containers, prioritizing deduction by group, and record the bullet information in the weapon items; i) After reloading is completed, the PushGraph reload animation ends.
[0095] When the player selects to reload, such as Figure 11 As shown, the specific process is as follows: a) The player drags the bullet item into the bullet container; b) It is determined whether the bullet obtained by the player can be used by this weapon; c) If not, no action is taken, and a disabled indicator appears; d) PushGraph plays the reload action, triggering the relevant UI; e) It is determined whether the reload action has ended. If not, d is executed; if it has ended, f is executed; f records the remaining empty slot X in the bullet slot and the total number of bullets N obtained by the player; g) The total number of bullets loaded is Min[X,N]; h) The bullets loaded into the bullet container by the player are deducted, and the bullet information is recorded in the weapon item; i) The relevant UI is triggered; j) It is determined whether the player drags the bullet item into the bullet container. If yes, b is executed; if no, k is executed; k) After loading is completed, PushGraph's reload action ends, and the relevant UI is triggered.
[0096] The aforementioned method provides an interactive and realistic experience for weapon modification and ammunition loading, and offers the ability to mix different types of ammunition. It also visually presents ammunition information on the weapon through a graphical user interface, enriching the player's tactical strategies. Furthermore, ammunition loading requires only a single step from the player, ensuring efficiency.
[0097] For the above method embodiments, see Figure 12 The illustrated virtual prop interactive control device provides a graphical user interface via a terminal device; the prop operation interface of the device includes:
[0098] The prop operation interface display module 1202 is used to display the prop operation interface in a graphical user interface. The prop operation interface includes the target virtual prop carried by the controlled virtual object, and the sub-prop configuration display area corresponding to the target virtual prop. The sub-prop configuration is the prop launched in the virtual scene through the target virtual prop. The sub-prop configuration display area is used to display the sub-props that have been equipped by the target virtual prop.
[0099] The target sub-prop determination module 1204 is used to respond to the assembly operation, determine the target sub-prop corresponding to the assembly operation, and control the assembly of the target sub-prop to the target virtual prop.
[0100] The update module 1206 is used to update the display information in the display area of the sub-prop configuration; the updated display information includes the information corresponding to the target sub-prop.
[0101] The aforementioned interactive control device for virtual items displays an item operation interface through a graphical user interface. The interface includes a target virtual item carried by a controlled virtual object and a sub-item configuration display area corresponding to the target virtual item. The sub-item configuration refers to items launched from the target virtual item within a virtual scene. The sub-item configuration display area displays the sub-items already equipped by the target virtual item. In response to an assembly operation, the device identifies the target sub-item corresponding to the assembly operation and controls the assembly of the target sub-item to the target virtual item. The device also updates the display information in the sub-item configuration display area, including information corresponding to the target sub-item. This method simplifies the sub-item loading process while ensuring the player's usability of the target virtual item, thereby improving the user experience.
[0102] The above assembly operation includes triggering operations on the assembly control; the target sub-prop determination module is used to: respond to click operations on the sub-prop configuration display area and display the assembly control; respond to trigger operations on the assembly control and determine the target sub-prop corresponding to the trigger operation.
[0103] The aforementioned graphical user interface also includes a sub-item storage display area; the sub-item storage display area is used to display unequipped sub-items in the item storage equipment of the controlled virtual object; the target sub-item determination module is used to: respond to a trigger operation on the assembly control, determine the number of target sub-items based on the remaining capacity of the target virtual item and the number of unequipped sub-items; sort the unequipped sub-items in descending order of their penetration parameters to obtain a sorting result; select unequipped sub-items sequentially according to the sorting result until the number of selected unequipped sub-items equals the number of target bullets; and determine the selected unequipped sub-items as target sub-items.
[0104] The graphical user interface described above also includes a sub-item storage display area; the sub-item storage display area is used to display unequipped sub-items in the item storage equipment of the controlled virtual object; the target sub-item determination module is used to: respond to a selection operation on an unequipped sub-item in the sub-item storage display area, and determine the unequipped sub-item corresponding to the selection operation as the target unequipped sub-item; respond to a drag operation on the target unequipped sub-item, and determine the target sub-item to be equipped to the target virtual object based on the remaining capacity of the target virtual object and the number of target unequipped sub-items; the end position of the drag operation is located in the sub-item configuration display area.
[0105] The aforementioned remaining capacity indicates the number of equipable sub-items of the target virtual item; the target sub-item determination module is used to: determine the smaller of the number of equipable sub-items of the target virtual item and the number of unequipped sub-items of the target as the number of target sub-items; select unequipped sub-items of the target in the order of selection until the number of selected unequipped sub-items of the target equals the number of target bullets; and determine the selected unequipped sub-items of the target as target sub-items.
[0106] The aforementioned sub-props correspond to multiple types; the prop identifier of the sub-prop corresponds to the type of the sub-prop; the displayed information includes the prop identifier and quantity of the equipped sub-props; the update module is used to display the updated prop identifier of the equipped sub-props in the sub-prop configuration display area according to the updated assembly order of the equipped sub-props; the updated equipped sub-props include the target sub-prop.
[0107] The display order of the assembled sub-props in the sub-prop configuration display area is the reverse of the assembly order of the assembled sub-props; the device further includes: a launching module, used to respond to a launching operation for a target virtual prop, determine the target launching sub-prop corresponding to the launching operation based on the display order of the assembled sub-props, and control the target virtual prop to launch the target launching sub-prop in the virtual scene.
[0108] The aforementioned device also includes a quantity display module, used to: display the updated quantity and type of equipped sub-props in response to a hover operation applied to the sub-prop configuration display area.
[0109] The aforementioned graphical user interface further includes a sub-item storage display area; the sub-item storage display area is used to display unequipped sub-items in the item storage equipment of the controlled virtual object; the aforementioned device further includes: a removal module, used to display a removal control in response to a click operation on the sub-item configuration display area; a quantity judgment module, used to determine whether the remaining capacity of the item storage equipment is greater than or equal to the number of equipped sub-items in the target virtual item in response to a selection operation on the removal control; a removed sub-item determination module, used to determine the equipped sub-items as removed sub-items if the number is greater than the number of equipped sub-items; a configuration effect update module, used to update the display effect of the sub-item configuration display area; the updated display effect indicates that the equipped sub-items in the target virtual item are empty; a storage effect update module, used to update the display of unequipped bullets in the sub-item storage display area; wherein, the updated sub-item configuration display area displays removed sub-items.
[0110] The aforementioned device further includes: a matching judgment module, used to determine whether the target unequipped sub-prop matches the target virtual prop if the trajectory of the drag operation is detected to be located in the sub-prop storage display area; a first format display module, used to control the sub-prop configuration display area to display in a first display format if a match is detected; the first display format indicates that the sub-prop configuration display area is in an interactive state; a second format display module, used to control the sub-prop configuration display area to display in a second display format if a match is detected; the second display format indicates that the sub-prop configuration display area is in a disabled state; a third format display module, used to control the sub-prop configuration display area to display in a third display format if the trajectory of the drag operation is detected to be located in the sub-prop configuration display area; the third display format indicates that the sub-prop configuration display area is in an interactive response state; and a cancel format display module, used to cancel the display of the sub-prop configuration display area in the third display format if the end event of the drag operation is detected.
[0111] The aforementioned sub-items correspond to multiple item types; the target virtual item matches the sub-item corresponding to the target item type; the target item type includes one or more item types; the matching judgment module is also used to: determine whether the item type corresponding to the target unequipped sub-item belongs to the target item type corresponding to the target virtual item; if it does, determine that the target unequipped sub-item matches the target virtual item; if it does not, determine that the target unequipped sub-item does not match the target virtual item.
[0112] The aforementioned display information includes item identifiers for multiple equipped sub-items; the aforementioned device further includes: a position update module, used to respond to a drag operation on the item identifier of the first sub-item among the multiple equipped sub-items, and update the item identifiers of the equipped sub-items in the display sub-item configuration display area based on the display position of the second sub-item corresponding to the end position of the drag operation; in the updated item identifiers, the item identifier of the first sub-item is displayed at the end position of the drag operation.
[0113] The aforementioned sub-item storage and display area includes a first sub-area and at least one second sub-area; the first sub-area displays a first number of unassembled sub-items; the aforementioned device further includes: a first quantity window display module, used to display a quantity input window corresponding to the unassembled sub-items in the first sub-area in response to a splitting operation of the unassembled sub-items in the first sub-area; a sub-item quantity display module, used to display the quantity of sub-items corresponding to an editing operation performed on the quantity input window; the quantity input window includes a confirmation control; a window cancellation display module, used to cancel the display of the quantity input window in response to a selection operation of the confirmation control; and a quantity update module, used to control the updating of the first quantity of unassembled sub-items in the first sub-area based on the quantity of sub-items, and to display the unassembled sub-items with the quantity of sub-items in the second sub-area.
[0114] The aforementioned update module is also used to: divide the assembled sub-props into at least one prop display group based on a preset display quantity and the updated assembly order of the assembled sub-props; the prop display group includes at least one assembled sub-prop; the number of assembled sub-props in the prop display group is less than or equal to the display quantity; determine a target prop display group from the at least one prop display group based on the assembly order of the assembled sub-props, and display the prop identifier of the assembled sub-prop in the target prop display group in the sub-prop configuration display area; in response to a hover operation on the sub-prop configuration display area, determine the next target prop display group from the at least one prop display group, and display the prop identifier of the assembled sub-prop in the next target prop display group in the sub-prop configuration display area.
[0115] The aforementioned graphical user interface also includes a sub-item storage display area; the sub-item storage display area displays the item identifiers and quantity information of unequipped sub-items in the item storage equipment of the controlled virtual object; the aforementioned target sub-item determination module is further configured to: respond to a selection operation on the item identifier of an unequipped sub-item in the sub-item storage display area, display a target equipment quantity input window corresponding to the unequipped sub-item; respond to an editing operation applied to the target equipment quantity input window, determine the editing content corresponding to the editing operation as the target quantity of the target sub-item, update the quantity information of unequipped sub-items displayed in the sub-item storage display area based on the editing content and quantity information; and determine the unequipped sub-items whose quantity matches the target quantity as the target sub-items.
[0116] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the aforementioned interactive control method for virtual props, for example:
[0117] The method provides a graphical user interface (GUI) through a terminal device. The GUI displays a prop operation interface, which includes a target virtual prop carried by a controlled virtual object and a sub-prop configuration display area corresponding to the target virtual prop. The sub-prop configuration is a prop launched in a virtual scene through the target virtual prop, and the sub-prop configuration display area is used to display the assembled sub-props of the target virtual prop. The method responds to an assembly operation, determines the target sub-prop corresponding to the assembly operation, and controls the assembly of the target sub-prop to the target virtual prop. The method updates the display information in the sub-prop configuration display area, where the updated display information includes information corresponding to the target sub-prop.
[0118] Item operation interface
[0119] The above method, while ensuring players' experience with the target virtual item, simplifies the process of loading sub-items, thereby improving the user experience.
[0120] Optionally, the above assembly operation includes a trigger operation on the assembly control; the step of responding to the assembly operation and determining the target sub-prop corresponding to the assembly operation includes: responding to a click operation applied to the sub-prop configuration display area and displaying the assembly control; responding to a trigger operation on the assembly control and determining the target sub-prop corresponding to the trigger operation.
[0121] Optionally, the graphical user interface further includes a sub-item storage display area; the sub-item storage display area is used to display unassembled sub-items in the item storage equipment of the controlled virtual object; the step of determining the target sub-item to be assembled in response to a trigger operation on the assembly control includes: in response to a trigger operation on the assembly control, determining the number of target sub-items based on the remaining capacity of the target virtual item and the number of unassembled sub-items; sorting the unassembled sub-items in descending order of their penetration parameters to obtain a sorting result; selecting unassembled sub-items sequentially according to the sorting result until the number of selected unassembled sub-items equals the number of target bullets; and determining the selected unassembled sub-items as target sub-items.
[0122] Optionally, the graphical user interface further includes a sub-item storage display area; the sub-item storage display area is used to display unassembled sub-items in the item storage equipment of the controlled virtual object; the step of responding to an assembly operation and determining the target sub-item corresponding to the assembly operation includes: responding to a selection operation on an unassembled sub-item in the sub-item storage display area, determining the unassembled sub-item corresponding to the selection operation as the target unassembled sub-item; responding to a drag operation on the target unassembled sub-item, determining the target sub-item to be assembled to the target virtual object based on the remaining capacity of the target virtual object and the number of target unassembled sub-items; the end position of the drag operation is located in the sub-item configuration display area.
[0123] Optionally, the aforementioned remaining capacity indicates the number of equipable sub-items of the target virtual item; the step of determining the target sub-items to be equipped to the target virtual item based on the remaining capacity of the target virtual item and the number of unequipped target sub-items includes: determining the smaller of the number of equipable sub-items of the target virtual item and the number of unequipped target sub-items as the number of target sub-items; selecting unequipped target sub-items in the order of selection until the number of selected unequipped target sub-items equals the number of target bullets; and determining the selected unequipped target sub-items as target sub-items.
[0124] Optionally, the aforementioned sub-props correspond to multiple types; the prop identifier of the sub-prop corresponds to the type of the sub-prop; the displayed information includes the prop identifier and quantity of the equipped sub-props; the step of updating the display information in the sub-prop configuration display area includes: displaying the updated prop identifier of the equipped sub-props in the sub-prop configuration display area according to the updated assembly order of the equipped sub-props; the updated equipped sub-props include the target sub-prop.
[0125] Optionally, the display order of the assembled sub-props in the sub-prop configuration display area is the reverse of the assembly order of the assembled sub-props; the method further includes: in response to a launch operation for a target virtual prop, determining the target launch sub-prop corresponding to the launch operation based on the display order of the assembled sub-props, and controlling the target virtual prop to launch the target launch sub-prop in the virtual scene.
[0126] Optionally, after displaying the updated item identifiers of the equipped sub-items in the sub-item configuration display area according to the updated assembly order of the equipped sub-items, the method further includes: in response to a hover operation on the sub-item configuration display area, displaying the updated quantity and type of the equipped sub-items.
[0127] Optionally, the graphical user interface further includes a sub-item storage display area; the sub-item storage display area is used to display unequipped sub-items in the item storage equipment of the controlled virtual object; the method further includes: displaying a remove control in response to a click operation on the sub-item configuration display area; determining whether the remaining capacity of the item storage equipment is greater than or equal to the number of equipped sub-items in the target virtual item in response to a selection operation on the remove control; if it is greater than, determining the equipped sub-items as removed sub-items; updating the display effect of the sub-item configuration display area; the updated display effect indicates that the equipped sub-items in the target virtual item are empty; updating the display of unequipped bullets in the sub-item storage display area; wherein, the updated sub-item configuration display area displays removed sub-items.
[0128] Optionally, the above method further includes: if the trajectory of the drag operation is detected to be within the sub-item storage display area, determining whether the unequipped sub-item of the target matches the target virtual item; if they match, controlling the sub-item configuration display area to display in a first display format; the first display format indicates that the sub-item configuration display area is in an interactive state; if they do not match, controlling the sub-item configuration display area to display in a second display format; the second display format indicates that the sub-item configuration display area is in a disabled state; if the trajectory of the drag operation is detected to be within the sub-item configuration display area, controlling the sub-item configuration display area to display in a third display format; the third display format indicates that the sub-item configuration display area is in an interactive response state; if the end event of the drag operation is detected, canceling the display of the sub-item configuration display area in the third display format.
[0129] Optionally, the aforementioned sub-items correspond to multiple item types; the target virtual item matches the sub-item corresponding to the target item type; the target item type includes one or more item types; the step of determining whether the target unequipped sub-item matches the target virtual item includes: determining whether the item type corresponding to the target unequipped sub-item belongs to the target item type corresponding to the target virtual item; if it does, determining that the target unequipped sub-item matches the target virtual item; if it does not, determining that the target unequipped sub-item does not match the target virtual item.
[0130] Optionally, the above-mentioned display information includes item identifiers of multiple equipped sub-items; the above method further includes: in response to a drag operation on the item identifier of the first sub-item among the multiple equipped sub-items, updating the item identifier of the equipped sub-items in the display sub-item configuration display area based on the display position of the second sub-item corresponding to the end position of the drag operation; in the updated item identifiers, the item identifier of the first sub-item is displayed at the end position of the drag operation.
[0131] Optionally, the aforementioned sub-item storage display area includes a first sub-area and at least one second sub-area; the first sub-area displays an unassembled sub-item with a first quantity; the method further includes: in response to a splitting operation of an unassembled sub-item in the first sub-area, displaying a quantity input window corresponding to the unassembled sub-item in the first sub-area; in response to an editing operation applied to the quantity input window, displaying the sub-item quantity corresponding to the editing operation; the quantity input window includes a confirmation control; in response to a selection operation of the confirmation control, deselecting the display of the quantity input window; based on the sub-item quantity, controlling the updating of the first quantity of unassembled sub-items in the first sub-area, and displaying unassembled sub-items with the sub-item quantity in the second sub-area.
[0132] Optionally, the step of displaying the updated item identifiers of the equipped sub-items in the sub-item configuration display area according to the updated assembly order of the equipped sub-items includes: dividing the equipped sub-items into at least one item display group based on a preset display quantity and the updated assembly order of the equipped sub-items; each item display group includes at least one equipped sub-item; the number of equipped sub-items in each item display group is less than or equal to the display quantity; determining a target item display group from the at least one item display group based on the assembly order of the equipped sub-items, and displaying the item identifiers of the equipped sub-items in the target item display group in the sub-item configuration display area; and responding to a hover operation on the sub-item configuration display area, determining the next target item display group from the at least one item display group, and displaying the item identifiers of the equipped sub-items in the next target item display group in the sub-item configuration display area.
[0133] Optionally, the graphical user interface further includes a sub-item storage display area; the sub-item storage display area displays the item identifiers and quantity information of unassembled sub-items in the item storage equipment of the controlled virtual object; the step of responding to an assembly operation and determining the target sub-item corresponding to the assembly operation includes: responding to a selection operation on the item identifier of an unassembled sub-item in the sub-item storage display area, displaying a target assembly quantity input window corresponding to the unassembled sub-item; responding to an editing operation on the target assembly quantity input window, determining the edit content corresponding to the editing operation as the target quantity of the target sub-item, and updating the quantity information of unassembled sub-items displayed in the sub-item storage display area based on the edit content and quantity information; and determining the unassembled sub-items whose quantity matches the target quantity as the target sub-item.
[0134] See Figure 13 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-mentioned interactive control method for virtual props.
[0135] Furthermore, Figure 13 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0136] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 13 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0137] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0138] This embodiment also provides a machine-readable storage medium storing machine-executable instructions. When these machine-executable instructions are invoked and executed by a processor, they cause the processor to implement the aforementioned interactive control method for virtual items, for example:
[0139] This method provides a graphical user interface (GUI) via a terminal device. The GUI displays a prop operation interface, which includes a target virtual prop carried by a controlled virtual object and a sub-prop configuration display area corresponding to the target virtual prop. The sub-prop configuration area displays props launched from the target virtual prop within a virtual scene, and shows the assembled sub-props of the target virtual prop. In response to an assembly operation, the method determines the target sub-prop corresponding to the assembly operation and controls the assembly of the target sub-prop to the target virtual prop. The method also updates the display information in the sub-prop configuration display area, including information corresponding to the target sub-prop.
[0140] The above method, while ensuring players' experience with the target virtual item, simplifies the process of loading sub-items, thereby improving the user experience.
[0141] Optionally, the above assembly operation includes a trigger operation on the assembly control; the step of responding to the assembly operation and determining the target sub-prop corresponding to the assembly operation includes: responding to a click operation applied to the sub-prop configuration display area and displaying the assembly control; responding to a trigger operation on the assembly control and determining the target sub-prop corresponding to the trigger operation.
[0142] Optionally, the graphical user interface further includes a sub-item storage display area; the sub-item storage display area is used to display unassembled sub-items in the item storage equipment of the controlled virtual object; the step of determining the target sub-item to be assembled in response to a trigger operation on the assembly control includes: in response to a trigger operation on the assembly control, determining the number of target sub-items based on the remaining capacity of the target virtual item and the number of unassembled sub-items; sorting the unassembled sub-items in descending order of their penetration parameters to obtain a sorting result; selecting unassembled sub-items sequentially according to the sorting result until the number of selected unassembled sub-items equals the number of target bullets; and determining the selected unassembled sub-items as target sub-items.
[0143] Optionally, the graphical user interface further includes a sub-item storage display area; the sub-item storage display area is used to display unassembled sub-items in the item storage equipment of the controlled virtual object; the step of responding to an assembly operation and determining the target sub-item corresponding to the assembly operation includes: responding to a selection operation on an unassembled sub-item in the sub-item storage display area, determining the unassembled sub-item corresponding to the selection operation as the target unassembled sub-item; responding to a drag operation on the target unassembled sub-item, determining the target sub-item to be assembled to the target virtual object based on the remaining capacity of the target virtual object and the number of target unassembled sub-items; the end position of the drag operation is located in the sub-item configuration display area.
[0144] Optionally, the aforementioned remaining capacity indicates the number of equipable sub-items of the target virtual item; the step of determining the target sub-items to be equipped to the target virtual item based on the remaining capacity of the target virtual item and the number of unequipped target sub-items includes: determining the smaller of the number of equipable sub-items of the target virtual item and the number of unequipped target sub-items as the number of target sub-items; selecting unequipped target sub-items in the order of selection until the number of selected unequipped target sub-items equals the number of target bullets; and determining the selected unequipped target sub-items as target sub-items.
[0145] Optionally, the aforementioned sub-props correspond to multiple types; the prop identifier of the sub-prop corresponds to the type of the sub-prop; the displayed information includes the prop identifier and quantity of the equipped sub-props; the step of updating the display information in the sub-prop configuration display area includes: displaying the updated prop identifier of the equipped sub-props in the sub-prop configuration display area according to the updated assembly order of the equipped sub-props; the updated equipped sub-props include the target sub-prop.
[0146] Optionally, the display order of the assembled sub-props in the sub-prop configuration display area is the reverse of the assembly order of the assembled sub-props; the method further includes: in response to a launch operation for a target virtual prop, determining the target launch sub-prop corresponding to the launch operation based on the display order of the assembled sub-props, and controlling the target virtual prop to launch the target launch sub-prop in the virtual scene.
[0147] Optionally, after displaying the updated item identifiers of the equipped sub-items in the sub-item configuration display area according to the updated assembly order of the equipped sub-items, the method further includes: in response to a hover operation on the sub-item configuration display area, displaying the updated quantity and type of the equipped sub-items.
[0148] Optionally, the graphical user interface further includes a sub-item storage display area; the sub-item storage display area is used to display unequipped sub-items in the item storage equipment of the controlled virtual object; the method further includes: displaying a remove control in response to a click operation on the sub-item configuration display area; determining whether the remaining capacity of the item storage equipment is greater than or equal to the number of equipped sub-items in the target virtual item in response to a selection operation on the remove control; if it is greater than, determining the equipped sub-items as removed sub-items; updating the display effect of the sub-item configuration display area; the updated display effect indicates that the equipped sub-items in the target virtual item are empty; updating the display of unequipped bullets in the sub-item storage display area; wherein, the updated sub-item configuration display area displays removed sub-items.
[0149] Optionally, the above method further includes: if the trajectory of the drag operation is detected to be within the sub-item storage display area, determining whether the unequipped sub-item of the target matches the target virtual item; if they match, controlling the sub-item configuration display area to display in a first display format; the first display format indicates that the sub-item configuration display area is in an interactive state; if they do not match, controlling the sub-item configuration display area to display in a second display format; the second display format indicates that the sub-item configuration display area is in a disabled state; if the trajectory of the drag operation is detected to be within the sub-item configuration display area, controlling the sub-item configuration display area to display in a third display format; the third display format indicates that the sub-item configuration display area is in an interactive response state; if the end event of the drag operation is detected, canceling the display of the sub-item configuration display area in the third display format.
[0150] Optionally, the aforementioned sub-items correspond to multiple item types; the target virtual item matches the sub-item corresponding to the target item type; the target item type includes one or more item types; the step of determining whether the target unequipped sub-item matches the target virtual item includes: determining whether the item type corresponding to the target unequipped sub-item belongs to the target item type corresponding to the target virtual item; if it does, determining that the target unequipped sub-item matches the target virtual item; if it does not, determining that the target unequipped sub-item does not match the target virtual item.
[0151] Optionally, the above-mentioned display information includes item identifiers of multiple equipped sub-items; the above method further includes: in response to a drag operation on the item identifier of the first sub-item among the multiple equipped sub-items, updating the item identifier of the equipped sub-items in the display sub-item configuration display area based on the display position of the second sub-item corresponding to the end position of the drag operation; in the updated item identifiers, the item identifier of the first sub-item is displayed at the end position of the drag operation.
[0152] Optionally, the aforementioned sub-item storage display area includes a first sub-area and at least one second sub-area; the first sub-area displays an unassembled sub-item with a first quantity; the method further includes: in response to a splitting operation of an unassembled sub-item in the first sub-area, displaying a quantity input window corresponding to the unassembled sub-item in the first sub-area; in response to an editing operation applied to the quantity input window, displaying the sub-item quantity corresponding to the editing operation; the quantity input window includes a confirmation control; in response to a selection operation of the confirmation control, deselecting the display of the quantity input window; based on the sub-item quantity, controlling the updating of the first quantity of unassembled sub-items in the first sub-area, and displaying unassembled sub-items with the sub-item quantity in the second sub-area.
[0153] Optionally, the step of displaying the updated item identifiers of the equipped sub-items in the sub-item configuration display area according to the updated assembly order of the equipped sub-items includes: dividing the equipped sub-items into at least one item display group based on a preset display quantity and the updated assembly order of the equipped sub-items; each item display group includes at least one equipped sub-item; the number of equipped sub-items in each item display group is less than or equal to the display quantity; determining a target item display group from the at least one item display group based on the assembly order of the equipped sub-items, and displaying the item identifiers of the equipped sub-items in the target item display group in the sub-item configuration display area; and responding to a hover operation on the sub-item configuration display area, determining the next target item display group from the at least one item display group, and displaying the item identifiers of the equipped sub-items in the next target item display group in the sub-item configuration display area.
[0154] Optionally, the graphical user interface further includes a sub-item storage display area; the sub-item storage display area displays the item identifiers and quantity information of unassembled sub-items in the item storage equipment of the controlled virtual object; the step of responding to an assembly operation and determining the target sub-item corresponding to the assembly operation includes: responding to a selection operation on the item identifier of an unassembled sub-item in the sub-item storage display area, displaying a target assembly quantity input window corresponding to the unassembled sub-item; responding to an editing operation on the target assembly quantity input window, determining the edit content corresponding to the editing operation as the target quantity of the target sub-item, and updating the quantity information of unassembled sub-items displayed in the sub-item storage display area based on the edit content and quantity information; and determining the unassembled sub-items whose quantity matches the target quantity as the target sub-item.
[0155] The present invention provides an interactive control method, device, and electronic device for virtual props, including a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0156] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0157] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0158] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0159] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0160] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for interactive control of virtual props, characterized in that, The method includes providing a graphical user interface via a terminal device; the method includes: The graphical user interface displays a prop operation interface, which includes a target virtual prop carried by a controlled virtual object and a sub-prop configuration display area corresponding to the target virtual prop. The sub-prop is configured as a prop launched in the virtual scene through the target virtual prop, and the sub-prop configuration display area is used to display the sub-props that have been equipped by the target virtual prop. In response to the assembly operation, the target sub-prop corresponding to the assembly operation is determined, and the target sub-prop is controlled to be assembled into the target virtual prop; Update the display information in the sub-item configuration display area; wherein the updated display information includes information corresponding to the target sub-item; The sub-props correspond to multiple types; the prop identifier of the sub-prop corresponds to the type of the sub-prop; the display information includes the prop identifier and quantity of the equipped sub-props; The steps for updating the display information in the sub-item configuration display area include: In the sub-item configuration display area, the updated item identifiers of the equipped sub-items are displayed according to the updated assembly order of the equipped sub-items; the updated equipped sub-items include target sub-items; the display order of the equipped sub-items in the sub-item configuration display area is the reverse of the assembly order of the equipped sub-items. In response to a hover operation applied to the sub-prop configuration display area, the updated quantity and type of the equipped sub-props are displayed. The method further includes: In response to a drag operation on the item identifier of the first sub-item among multiple equipped sub-items, the item identifier of the equipped sub-item in the sub-item configuration display area is updated based on the display position of the second sub-item corresponding to the end position of the drag operation; in the updated item identifier, the item identifier of the first sub-item is displayed at the end position of the drag operation.
2. The method according to claim 1, characterized in that, The assembly operation includes triggering the assembly control; The step of responding to an assembly operation and determining the target sub-prop corresponding to the assembly operation includes: In response to a click operation applied to the sub-prop configuration display area, the assembly controls are displayed; In response to a trigger operation on the assembly control, the target sub-prop corresponding to the trigger operation is determined.
3. The method according to claim 2, characterized in that, The graphical user interface also includes a sub-item storage display area; the sub-item storage display area is used to display unequipped sub-items in the item storage equipment of the controlled virtual object; The step of responding to a trigger operation on the assembly control and determining the target sub-prop to be assembled corresponding to the trigger operation includes: In response to a trigger operation on the assembly control, the number of target sub-props is determined based on the remaining capacity of the target virtual prop and the number of unassembled sub-props; The unassembled sub-props are sorted from largest to smallest according to their penetration parameters to obtain the sorting result; Select unequipped sub-items sequentially according to the sorting results until the number of selected unequipped sub-items equals the number of target bullets; The selected unassembled sub-item is designated as the target sub-item.
4. The method according to claim 1, characterized in that, The graphical user interface also includes a sub-item storage display area; the sub-item storage display area is used to display unequipped sub-items in the item storage equipment of the controlled virtual object; The step of responding to an assembly operation and determining the target sub-prop corresponding to the assembly operation includes: In response to a selection operation of an unassembled sub-prop in the sub-prop storage display area, the unassembled sub-prop corresponding to the selection operation is identified as the target unassembled sub-prop; In response to a drag operation targeting an unequipped sub-item, the target sub-item to be equipped to the target virtual item is determined based on the remaining capacity of the target virtual item and the number of unequipped sub-items; the end position of the drag operation is located in the sub-item configuration display area.
5. The method according to claim 4, characterized in that, The remaining capacity indicates the number of equipable sub-props of the target virtual prop; The step of determining the target sub-items to be equipped to the target virtual item based on the remaining capacity of the target virtual item and the number of unequipped sub-items includes: The smaller of the number of equipable sub-items of the target virtual item and the number of unequipped sub-items of the target is determined as the number of target sub-items; Select the target unequipped sub-items in the order they were selected, until the number of selected target unequipped sub-items equals the number of target bullets; The selected unassembled sub-item is designated as the target sub-item.
6. The method according to claim 5, characterized in that, The method further includes: In response to a launch operation targeting the target virtual prop, based on the display order of the assembled sub-props, the target launch sub-prop corresponding to the launch operation is determined, and the target virtual prop is controlled to launch the target launch sub-prop in the virtual scene.
7. The method according to claim 1, characterized in that, The graphical user interface also includes a sub-item storage display area; the sub-item storage display area is used to display unequipped sub-items in the item storage equipment of the controlled virtual object; The method further includes: In response to a click operation applied to the sub-prop configuration display area, the unload control is displayed; In response to the selection operation of the unload control, determine whether the remaining capacity of the item storage equipment is greater than or equal to the number of equipped sub-items in the target virtual item; If the value is greater than the value, the assembled sub-prop is determined to be a disassembled sub-prop; Update the display effect of the sub-item configuration display area; the updated display effect indicates that the equipped sub-items in the target virtual item are empty; The updated display shows the unloaded bullets in the sub-item storage display area; wherein, the updated sub-item configuration display area displays the unloaded sub-items.
8. The method according to claim 4, characterized in that, The method further includes: If the trajectory of the drag operation is detected to be within the sub-item storage display area, determine whether the unequipped sub-item of the target matches the target virtual item; If a match is found, the sub-prop configuration display area is controlled to be displayed in a first display format; the first display format indicates that the sub-prop configuration display area is in an interactive state. If there is a mismatch, the sub-prop configuration display area is controlled to display in a second display format; the second display format indicates that the sub-prop configuration display area is in a disabled state. If the trajectory of the drag operation is detected to be within the sub-item configuration display area, the sub-item configuration display area is controlled to display in a third display format; the third display format indicates that the sub-item configuration display area is in an interactive response state; If the end event of the drag operation is detected, cancel the display of the sub-prop configuration display area in the third display format.
9. The method according to claim 8, characterized in that, The sub-item corresponds to multiple item types; the target virtual item is matched with the sub-item corresponding to the target item type; the target item type includes one or more item types. The step of determining whether the target unequipped sub-item matches the target virtual item includes: Determine whether the item type corresponding to the unequipped sub-item of the target belongs to the target item type corresponding to the virtual item of the target; If so, determine that the target unequipped sub-item matches the target virtual item; If it does not belong to the category, it is determined that the target unequipped sub-item does not match the target virtual item.
10. The method according to claim 4, characterized in that, The sub-item storage and display area includes a first sub-area and at least one second sub-area; the first sub-area displays a first number of unassembled sub-items; the method further includes: In response to the splitting operation of the unassembled sub-props in the first sub-region, the quantity input window corresponding to the unassembled sub-props in the first sub-region is displayed; In response to an editing operation performed on the quantity input window, the quantity of the sub-item corresponding to the editing operation is displayed; the quantity input window includes a confirmation control; In response to the selection operation of the confirmation control, the quantity input window is de-displayed; Based on the number of sub-props, the system controls and updates the first number of unassembled sub-props in the first sub-region, and displays unassembled sub-props with the number of sub-props in the second sub-region.
11. The method according to claim 1, characterized in that, The step of displaying the updated item identifiers of the equipped sub-items in the sub-item configuration display area according to the updated assembly order of the equipped sub-items includes: Based on the preset display quantity and the updated assembly order of the assembled sub-props, the assembled sub-props are divided into at least one prop display group; the prop display group includes at least one assembled sub-prop; the number of assembled sub-props in the prop display group is less than or equal to the display quantity. Based on the assembly order of the assembled sub-props, a target prop display group is determined from the at least one prop display group, and the prop identifiers of the assembled sub-props in the target prop display group are displayed in the sub-prop configuration display area; In response to a hover operation on the sub-item configuration display area, a next target item display group is determined from the at least one item display group, and the item identifier of the equipped sub-item in the next target item display group is displayed in the sub-item configuration display area.
12. The method according to claim 1, characterized in that, The graphical user interface also includes a sub-item storage display area; the sub-item storage display area displays the item identifiers and quantity information of the unequipped sub-items in the item storage equipment of the controlled virtual object; The step of responding to an assembly operation and determining the target sub-prop corresponding to the assembly operation includes: In response to the selection operation of the item identifier of the unequipped sub-item in the sub-item storage display area, the target equipment quantity input window corresponding to the unequipped sub-item is displayed; In response to an editing operation applied to the target assembly quantity input window, the editing content corresponding to the editing operation is determined as the target quantity of the target sub-item. Based on the editing content and the quantity information, the quantity information of the unassembled sub-item displayed in the sub-item storage display area is updated. Unassembled sub-props whose quantity matches the target quantity are identified as target sub-props.
13. An interactive control device for virtual props, characterized in that, A graphical user interface is provided via a terminal device; the device includes: The prop operation interface display module is used to display the prop operation interface in the graphical user interface. The prop operation interface includes a target virtual prop carried by the controlled virtual object and a sub-prop configuration display area corresponding to the target virtual prop. The sub-prop is configured as a prop launched in the virtual scene through the target virtual prop. The sub-prop configuration display area is used to display the sub-props that have been equipped by the target virtual prop. The target sub-prop determination module is used to respond to the assembly operation, determine the target sub-prop corresponding to the assembly operation, and control the assembly of the target sub-prop to the target virtual prop; An update module is used to update the display information in the sub-item configuration display area; wherein the updated display information includes information corresponding to the target sub-item; The sub-props correspond to multiple types; the prop identifier of the sub-prop corresponds to the type of the sub-prop; the display information includes the prop identifier and quantity of the equipped sub-props; The update module is also used for: In the sub-item configuration display area, the updated item identifiers of the equipped sub-items are displayed according to the updated assembly order of the equipped sub-items; the updated equipped sub-items include target sub-items; the display order of the equipped sub-items in the sub-item configuration display area is the reverse of the assembly order of the equipped sub-items. In response to a hover operation applied to the sub-prop configuration display area, the updated quantity and type of the equipped sub-props are displayed. The device further includes: a position update module, configured to respond to a drag operation on the item identifier of a first sub-item among a plurality of assembled sub-items, and update the item identifier of the assembled sub-item in the sub-item configuration display area based on the display position of the second sub-item corresponding to the end position of the drag operation; in the updated item identifier, the item identifier of the first sub-item is displayed at the end position of the drag operation.
14. An electronic device, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the interactive control method for virtual props according to any one of claims 1-12.
15. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the interactive control method for virtual props as described in any one of claims 1-12.