Virtual weapon processing method, apparatus, computer device and storage medium
The method and apparatus facilitate quick attachment of virtual weapon accessories through touch operations on a graphical user interface, addressing the cumbersome process in existing games and enhancing interaction efficiency and gaming experience.
Patent Information
- Application Number
- JP2025539685
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-01-03
- Filing Date
- 2023-06-06
- Publication Date
- 2026-02-24
AI Technical Summary
The existing methods for attaching accessories to virtual weapons in games are cumbersome, affecting the speed of personalization and reducing the interaction efficiency and gaming experience.
A method and apparatus that allows players to perform touch operations on virtual weapon mounting areas to display an accessory display page, enabling quick mounting and replacement of accessories by selecting and attaching virtual weapon accessories through touch operations on a graphical user interface.
Simplifies the process of attaching virtual weapon accessories, enhancing game interaction efficiency and improving the gaming experience by allowing quick mounting and replacement of accessories.
Smart Images

Figure 2026506323000001_ABST
Abstract
Description
Cross-Citation of Related Applications
[0001] This disclosure claims priority to a Chinese patent application filed with the China Patent Office on January 3, 2023, application number 2023100004864.X, entitled "Virtual weapon processing method, apparatus, computer device and storage medium," the entire contents of which are hereby incorporated by reference. [Technical Field]
[0002] The present disclosure relates to the field of gaming technology, and in particular to a method, apparatus, computer device and storage medium for processing virtual weapons. [Background technology]
[0003] With the development of computer communication technology, smartphones, tablets, laptops, and other devices have become widespread and increasingly diverse and personalized, becoming indispensable in people's daily lives and work. To satisfy people's pursuit of spiritual life, entertainment games that can be played on devices have emerged. For example, multiplayer online action games developed based on client-server architecture are one example. In action games, players control virtual characters on the screen and can perform related actions such as walking, running, jumping, and fighting in the game scene from the player's third-person perspective. This allows players to immerse themselves in the game and experience the visual impact of the game, greatly enhancing the game's spontaneity and realism.
[0004] Currently, in some shooting games, players can equip and use game items during intra-station combat, such as virtual weapons and virtual explosives. Typically, a player can have one virtual weapon and another virtual weapon as a backup, allowing the player to switch between them during intra-station combat. Game item controls corresponding to the two virtual weapons equipped by the player are typically fixedly displayed below the game interface, allowing the player to switch between the two virtual weapons by touching the screen to select the virtual weapon they want to use.
[0005] In the related art, when a player wants to attach an accessory to a virtual weapon, he or she needs to open a game backpack interface on the current game screen, and then find and attach a suitable game accessory to the virtual weapon from the many game items displayed in the game backpack interface. The steps of attaching accessories to a virtual weapon are relatively cumbersome, which affects the speed at which the player can personalize the virtual weapon during the game, thereby affecting the player's game experience and reducing the interaction efficiency of the game. Summary of the Invention
[0006] The embodiments of the present disclosure provide a method, apparatus, computer device, and storage medium for processing a virtual weapon, allowing a player to perform touch operations on different virtual weapon mounting areas, thereby displaying an accessory display page corresponding to the virtual weapon selected by the user on the user interface, and displaying virtual weapon accessories that can be mounted on the virtual weapon through the accessory display page, thereby quickly completing the mounting and replacement of accessories on the virtual weapon, simplifying the procedure for mounting virtual weapon accessories on the virtual weapon, improving game interaction efficiency, and enhancing the player's gaming experience.
[0007] In a first aspect, an embodiment of the present disclosure provides a method for processing a virtual weapon, the method comprising: providing a graphical user interface by a terminal; the graphical user interface including at least a portion of a virtual scene, a first virtual character located in the virtual scene and controlled by the terminal device, and a virtual weapon mounting area, the virtual weapon mounting area being used to display a virtual weapon to be mounted for the first virtual character; displaying an accessory display page for the virtual weapon in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon attachment area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon; In response to a second touch operation on the accessory display page, determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories with the second touch operation and attaching the target virtual weapon accessory to the virtual weapon.
[0008] In a second aspect, an embodiment of the present disclosure provides a virtual weapon processing device, including a first response unit and a second response unit; a first response unit configured to display an accessory display page for the virtual weapon in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon attachment area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon; A second response unit is configured to, in response to a second touch operation on the accessory display page, determine a target virtual weapon accessory selected by the second touch operation from the plurality of candidate virtual weapon accessories, and attach the target virtual weapon accessory to the virtual weapon.
[0009] In a third aspect, an embodiment of the present disclosure provides a computer device including a processor, a memory, and a computer program stored in the memory and executable on the processor, the computer program providing steps to implement any of the methods for processing a virtual weapon when executed by the processor.
[0010] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs steps to realize any of the methods for processing a virtual weapon.
[0011] The present disclosure provides a virtual weapon processing method, apparatus, computer device, and storage medium, which, in response to a first touch operation on a virtual weapon in the virtual weapon mounting area, displays an accessory display page for the virtual weapon on the graphical user interface, where the accessory display page is used to display a plurality of candidate virtual weapon accessories that can be mounted on the virtual weapon, and, in response to a second touch operation on the accessory display page, determines a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories using the second touch operation and mounts the target virtual weapon accessory on the virtual weapon. In embodiments of the present disclosure, a player can perform touch operations on different virtual weapon mounting areas, whereby an accessory display page corresponding to the virtual weapon selected by the user is displayed on the user interface, and virtual weapon accessories that can be mounted on the virtual weapon are displayed through the accessory display page, thereby enabling quick mounting and replacement of accessories on the virtual weapon, simplifying the procedure for mounting virtual weapon accessories on the virtual weapon, improving game interaction efficiency, and enhancing the player's gaming experience. [Brief explanation of the drawings]
[0012] In order to more clearly describe the technical aspects of the embodiments of the present disclosure, the following briefly describes the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those skilled in the art can obtain other drawings based on these drawings without paying creative labor. [Figure 1] 1 is a schematic scene diagram of a virtual weapon processing system according to an embodiment of the present disclosure; [Figure 2] 1 is a flowchart of a method for processing a virtual weapon according to an embodiment of the present disclosure. [Figure 3] 1 is a schematic diagram illustrating an application scene of a virtual weapon processing method according to an embodiment of the present disclosure; [Figure 4] FIG. 10 is a schematic diagram of another application scene of the virtual weapon processing method according to an embodiment of the present disclosure. [Figure 5] FIG. 10 is a schematic diagram of another application scene of the virtual weapon processing method according to an embodiment of the present disclosure. [Figure 6] FIG. 10 is a schematic diagram of another application scene of the virtual weapon processing method according to an embodiment of the present disclosure. [Figure 7] FIG. 10 is a schematic diagram of another application scene of the virtual weapon processing method according to an embodiment of the present disclosure. [Figure 8] FIG. 10 is a schematic diagram of another application scene of the virtual weapon processing method according to an embodiment of the present disclosure. [Figure 9] 1 is a schematic configuration diagram of a virtual weapon processing device according to an embodiment of the present disclosure. [Figure 10] FIG. 1 is a schematic configuration diagram of a computer device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION
[0013] The following clearly and completely describes the technical approaches in the embodiments of the present disclosure with the aid of drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present disclosure.
[0014] The presently disclosed embodiments provide a method, apparatus, computer device, and storage medium for processing virtual weapons. Specifically, the virtual weapon processing method of the presently disclosed embodiments can be executed by a computer device, which can be a device such as a terminal or a server. The terminal can be a terminal device such as a smartphone, tablet, laptop, touchscreen, game console, personal computer (PC), or personal digital assistant (PDA). The terminal can include a client, which can be a game application client, a browser client with a game program, or an instant communication client. The server can be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server for underlying cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDNs, and big data and artificial intelligence platforms.
[0015] For example, when this virtual weapon processing method is executed on a terminal, the terminal device stores a game application and is used to present a virtual scene within the game screen. The terminal device is used to interact with a user through a graphical user interface, for example, by downloading, installing, and executing the game application via the terminal device. The method by which the terminal device provides the graphical user interface to the user can include various methods, such as rendering the graphical user interface on a display screen of the terminal device or rendering the graphical user interface through holographic projection. For example, the terminal device can include a touch display and a processor, where the touch display is used to present the graphical user interface and receive operation instructions for the user to act on the graphical user interface, and the processor is used to execute the game, generate the graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the graphical user interface.
[0016] For example, if a virtual weapon processing method is executed on a server, it can be considered a cloud game. Cloud gaming is a gaming method based on cloud computing. In cloud gaming, the execution entity of the game app and the entity presenting the game screen are separated, and the virtual weapon processing method is stored and executed on the cloud game server. Meanwhile, the game screen is presented on the cloud game client, which is mainly used to receive and transmit game data and present the game screen. For example, the cloud game client may be a display device with data transfer capabilities close to the user, such as a mobile terminal, television, computer, handheld computer, or personal digital assistant, but the terminal device that processes the game data is the cloud game server. When playing a game, the user operates the cloud game client to send operation commands to the cloud game server, which executes the game based on the operation commands, encodes and compresses data such as game screens, returns the data to the cloud game client via a network, and finally decodes the data through the cloud game client to output the game screen.
[0017] Referring to FIG. 1, FIG. 1 is a schematic scene diagram of a game item control system according to an embodiment of the present disclosure. The system may include at least one terminal, at least one server, at least one database, and a network. A terminal owned by a user can connect to different game servers via the network. A terminal is any device having computing hardware capable of supporting and executing software products corresponding to a game. Furthermore, when the system includes multiple terminals, multiple servers, and multiple networks, different terminals can be connected to each other via different networks and different servers. The network may be a wireless network, such as a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, or a 5G network, or a wired network. Different terminals may also connect to other terminals or to a server using their own Bluetooth network or a hotspot network. For example, to support a multiplayer game, multiple users can be connected to each other via an appropriate network and go online through different terminals to synchronize with each other. Furthermore, the system may include multiple databases coupled to different servers, and information about the game environment can be continuously stored in the database when different users play a multiplayer game online.
[0018] An embodiment of the present disclosure provides a virtual weapon processing method that can be executed by a terminal or a server. In the embodiment of the present disclosure, the virtual weapon processing method is described using an example in which the terminal executes the method. Here, the terminal may include a touch display and a processor for presenting a graphical user interface and receiving operation instructions for generating the graphical user interface. (Of course, peripheral devices such as a mouse and a keyboard can also be used as input devices; the description here uses a touch display as an example.) When a user operates the graphical user interface through the touch display, the graphical user interface can control local content of the terminal in response to the received operation instructions, or control content of an opposing server in response to the received operation instructions. For example, the operation instructions generated by the user to function as the graphical user interface include instructions for launching a game application, configured to launch the game application after receiving an instruction to launch a game application provided by the user. Furthermore, the processor is configured to render and draw a graphical user interface related to a game on the touch screen. The touch display is a multi-touch sensitive screen that can sense touch or slide operations performed simultaneously at multiple points on the screen. A user performs a touch operation on the graphical user interface with a finger. When the graphical user interface detects the touch operation, different virtual objects in the graphical user interface that control the game perform actions corresponding to the touch operation. For example, the game may be any of a casual game, an action game, a role-playing game, a strategy game, a sports game, a puzzle game, etc. Here, the game may include a virtual scene of the game depicted on a graphical user interface. Further, the virtual scene of the game may include one or more virtual objects, such as a virtual character, controlled by a user (or player).The virtual scene of the game may also include one or more obstacles, such as handrails, grooves, or walls, that restrict the movement of virtual objects, e.g., restricting the movement of one or more objects to a specific area within the virtual scene. Optionally, the virtual scene of the game may also include one or more elements, such as skills, scores, character health, or energy, that may provide help to the player, provide virtual services, or increase the score associated with the player's performance. Furthermore, the graphical user interface may present one or more indicators to provide instructional information to the user. For example, a game may include a player-controlled virtual object and one or more other virtual objects, such as enemy characters. In one embodiment, one or more other virtual objects are controlled by other players of the game. For example, one or more other virtual objects may be controlled by a computer, such as a robot using an artificial intelligence (AI) algorithm, to achieve a human-to-human battle mode. For example, the virtual objects have various skills and abilities that game players use to achieve their goals. For example, the virtual objects may include one or more weapons, items, tools, etc., that can be used to eliminate other objects from the game. Such skills or abilities can be activated by a player of the game using one of a plurality of preset touch operations with the touch display of the terminal, and the processor can be configured to present a corresponding game screen in response to an operation command generated by the user's touch operation.
[0019] It should be noted that the scene schematic diagram of the game item control system shown in Figure 1 is only an example, and the game item control system and scene described in the embodiments of the present disclosure are intended to more clearly explain the technical solutions of the embodiments of the present disclosure, and do not constitute limitations on the technical solutions provided by the embodiments of the present disclosure. Those skilled in the art will understand that with the emergence of new business scenarios, the technical solutions provided by the embodiments of the present disclosure can be similarly applied to similar technical problems.
[0020] Based on the above problems, the embodiments of the present disclosure provide a method, apparatus, computer device, and storage medium for processing a virtual weapon, which can save the space occupied by display controls on a game interface and improve the display effect of the game screen. Each of these will be described in detail below. Note that the order in which the following embodiments are described does not limit the preferred order of the embodiments.
[0021] An embodiment of the present disclosure provides a virtual weapon processing method executable by a terminal or a server. The embodiment of the present disclosure can be described using a virtual weapon processing method executed by a terminal, which provides a graphical user interface by the terminal, the graphical user interface including at least a portion of a virtual scene, a first virtual character located in the virtual scene and controlled by the terminal device, and a virtual weapon mounting area, the virtual weapon mounting area being used to display a virtual weapon to be mounted for the first virtual character, the portion of the virtual scene being determined based on a viewing angle of the first virtual character controlled by the terminal device, and the graphical user interface can also display a portion of the virtual scene, which is a virtual object displayed in the portion of the virtual scene. The virtual weapon assembled for the first virtual character may be a virtual weapon currently being held and used by the first virtual character, or may be a virtual weapon not being held and used by the first virtual character.
[0022] In an embodiment of the present disclosure, a virtual scene is a virtual environment displayed (or provided) while an application is running on a terminal. This virtual environment may be a simulation environment of the real world, a semi-simulated, semi-fictional three-dimensional environment, or a purely fictional three-dimensional environment. This virtual environment is used for a virtual environment battle between at least two virtual characters with virtual resources available to the at least two virtual characters. One or more virtual characters are displayed in the virtual scene. The virtual character may be a first virtual character, i.e., a master virtual character controlled by a player via a terminal, a friendly virtual character on the same side as the first virtual character, an enemy virtual character on the opposing side to the first virtual character, or a normal virtual character on another side that is invincible to the first virtual character. The first virtual character, the friendly virtual character, and the enemy virtual character may exist simultaneously in the virtual scene, which is described here by way of example and not by way of limitation.
[0023] A virtual character (or hero) refers to an active object in a virtual environment. A virtual character refers to a virtual object in a game that a user or player controls via a terminal. In an embodiment of the present disclosure, a master virtual character refers to a virtual object in a game that a current player controls via a terminal, i.e., a virtual character controlled by a native player. Friendly virtual characters and enemy virtual characters refer to virtual objects in a game that other players control via their terminals, i.e., virtual characters controlled by other end players.
[0024] Referring to FIG. 2, FIG. 2 is a flowchart of a method for processing a virtual weapon in an embodiment of the present disclosure, and a specific flowchart of the method for processing a virtual weapon can proceed to the following steps 101 to 102.
[0025] At 101, in response to a first touch operation on a virtual weapon in the virtual weapon attachment area, an accessory display page for the virtual weapon is displayed in the graphical user interface, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon.
[0026] Here, the virtual weapon may be a virtual firearm, a virtual weapon, or the like, and the virtual weapon can inflict damage on a virtual character in a virtual scene and can increase the attack value of a virtual character equipped with the virtual weapon. The virtual weapon accessories can be auxiliary possession accessories and auxiliary attack accessories that are attached to the virtual weapon in the virtual scene and can adjust the attribute value of the virtual character. For example, the virtual weapon accessories include various types of auxiliary accessory equipment such as a magnifying mirror, a chin rest, a silencer, and a wrist guard, as well as attack accessory equipment such as different types of bullets and different types of medicine, and the medicine can be medicine that adds attack value to the virtual weapon. The equipment can be used to configure the virtual weapon so that it can be attached to the virtual weapon and used to increase the attribute value of the virtual weapon.
[0027] 3, a graphical user interface is displayed on a touchscreen display of a computer device, the graphical user interface displaying a virtual scene, a first virtual character located in the virtual scene and controlled by the terminal device, and a virtual weapon mounting area, the virtual weapon mounting area being used to display a first virtual weapon to be mounted for the first virtual character and a second virtual weapon to be mounted for the second virtual character, respectively, with the first virtual weapon mounted in the first virtual weapon mounting area and the second virtual weapon mounted in the second virtual weapon mounting area.
[0028] Specifically, referring to FIG. 4, a player triggers a touch operation on a first virtual weapon in a graphical user interface, and the computer device, in response to the first touch operation on the first virtual weapon in the virtual weapon attachment area, can display an accessory display page for the first virtual weapon in the graphical user interface for displaying a plurality of candidate virtual weapon accessories that can be attached to the first virtual weapon, wherein the first virtual weapon is a virtual firearm, and the plurality of candidate virtual weapon accessories that can be displayed on the accessory display page for the first virtual weapon include a first candidate virtual weapon accessory (magnifying mirror), a second candidate virtual weapon accessory (silencer), and a third candidate virtual weapon accessory (bullets).
[0029] Optionally, the player can trigger a touch operation on a second virtual weapon in the graphical user interface, and the computing device can display an accessory display page for the second virtual weapon in the graphical user interface in response to the first touch operation on the second virtual weapon in the virtual weapon attachment area, the accessory display page for displaying a plurality of candidate virtual weapon accessories that can be attached to the second virtual weapon, the second virtual weapon being a virtual weapon, and the plurality of candidate virtual weapon accessories that can be displayed on the accessory display page for the second virtual weapon include a first candidate virtual weapon accessory (bracelet), a second candidate virtual weapon accessory (first medicine), and a third candidate virtual weapon accessory (second medicine).
[0030] For example, the first touch operation may be a pressure operation, and the player may trigger a pressure operation on a virtual weapon in a virtual weapon mounting area in a graphical user interface, and the computing device may display an accessory display page for the virtual weapon in the graphical user interface in response to the pressure operation on the virtual weapon in the virtual weapon mounting area, and the accessory display page is used to display a plurality of candidate virtual weapon accessories that can be mounted on the virtual weapon.
[0031] In an embodiment of the present disclosure, the virtual weapon mounting area includes a first weapon mounting area and a second weapon mounting area, the first weapon mounting area is used to display a first virtual weapon to be mounted for the first virtual character, and the second weapon mounting area is used to display a second virtual weapon to be mounted for the first virtual character, and the method further comprises: In response to a first switching operation on the first weapon mounting area, control is performed so that the first virtual character uses a first virtual weapon corresponding to the first weapon mounting area; In response to a second switching operation on the second weapon mounting area, determining that the first virtual character will currently use the virtual weapon corresponding to the second weapon mounting area, thereby controlling the first virtual character to use the second virtual weapon corresponding to the second weapon mounting area.
[0032] Here, the first switching operation and the second switching operation may be an operation such as a click, a slide, or a double click.
[0033] Specifically, the graphical user interface provided by the terminal device according to the embodiment of the present disclosure also includes a backpack control, and the player can touch and click the backpack control to open the backpack of the first virtual character and display the backpack interface of the first virtual character, which is composed of an accessory attachment subpage and an accessory display subpage, and the player can select a target weapon accessory on the accessory display subpage and then attach the target weapon accessory to the virtual weapon displayed on the accessory display subpage.
[0034] In a specific embodiment, the first touch operation is: a contact area between the touch point of the first touch operation and the graphical user interface satisfies a predetermined area threshold; the pressure value of the first touch operation satisfies a predetermined pressure threshold; the first touch operation satisfies a predetermined touch time threshold; The first touch operation is an operation that satisfies at least one predetermined condition of operating the graphical user interface a predetermined number of times within a predetermined time.
[0035] In order to avoid occupying a large amount of the display screen on the graphical user interface, "in response to a first touch operation on the virtual weapon in the virtual weapon attachment area, displaying an accessory display page for the virtual weapon on the graphical user interface" is determining a target display position based on a display position of the virtual weapon mounting area in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the target display position being a position at which an accessory display page of the virtual weapon is displayed; obtaining predetermined page size parameters and accessory information, and generating an accessory display page for the virtual weapon based on the predetermined page size parameters and the accessory information, wherein the accessory information is accessory information for a virtual weapon accessory that can be attached to the virtual weapon in an item backpack.
[0036] For example, a graphical user interface may be displayed on a touch screen of a computer device, the graphical user interface may display a virtual scene, a first virtual character located in the virtual scene and controlled by the terminal device, and a virtual weapon mounting area, the virtual weapon mounting area including a first virtual weapon mounting area and a second virtual weapon mounting area, respectively displaying a first virtual weapon and a second virtual weapon to be mounted on the first virtual character, with the first virtual weapon mounted in the first virtual weapon mounting area and the second virtual weapon mounted in the second virtual weapon mounting area. A player triggers a touch operation on a first virtual weapon in the graphical user interface, and the computer device, in response to the first touch operation on the first virtual weapon in the first virtual weapon mounting area, determines a target display position based on the display position of the first virtual weapon mounting area, then obtains a predetermined page size parameter and first accessory information, and generates a first accessory display page for the first virtual weapon based on the predetermined page size parameter and the first accessory information, the first accessory display page displays accessory information of virtual weapon accessories that can be mounted on the first virtual weapon, for example, accessory indicators, and the accessory indicators include a first accessory indicator, a second accessory indicator, and a third accessory indicator.
[0037] In a specific embodiment, after "responding to a first touch operation on a virtual weapon in the virtual weapon mounting area," and before "displaying an accessory display page for the virtual weapon in the graphical user interface," the method includes: determining whether a virtual weapon is mounted in the virtual weapon mounting area; If so, displaying an accessory display page for the virtual weapon in the graphical user interface; If not, displaying a weapon selection page in the graphical user interface, the weapon selection page being used to display virtual weapons that can be attached to the virtual weapon attachment area in the item backpack.
[0038] 5, a graphical user interface is displayed on a touch screen of a computer device, the graphical user interface displays a virtual scene, a first virtual character located in the virtual scene and controlled by the terminal device, and a virtual weapon mounting area, the virtual weapon mounting area including a first virtual weapon mounting area and a second virtual weapon mounting area, respectively displaying a first virtual weapon and a second virtual weapon mounted for the first virtual character, where the first virtual weapon is mounted in the first virtual weapon mounting area, a presentation icon is displayed in the second virtual weapon mounting area, and a presentation icon is displayed in the second virtual weapon mounting area to indicate that no virtual weapon is mounted. The player triggers a touch operation on a second virtual weapon in the graphical user interface, and the computing device, in response to the first touch operation on the second virtual weapon mounting area, determines that no virtual weapon is mounted in the second virtual weapon mounting area, and displays a weapon selection page on one side of the second virtual weapon mounting area in the graphical user interface, displaying virtual weapons that can be mounted in the second virtual weapon mounting area in the item backpack, including a first candidate virtual weapon, a third candidate virtual weapon, and a third candidate virtual weapon, all of which are virtual weapons present in the item backpack of the first virtual character.
[0039] "Displaying a weapon selection page in the graphical user interface" for quick page switching; after responding to a selection operation for a target virtual weapon on the weapon selection page, equipping the target virtual weapon for the first virtual character, displaying the target virtual weapon in the virtual weapon attachment area, and generating a page switch command for the weapon selection page; In response to the page switching command for the weapon selection page, canceling the display of the weapon selection page on the graphical user interface and displaying an accessory display page for the target virtual weapon on the graphical user interface.
[0040] To quickly display a target display page in the graphical user interface, the computer device can determine a target display page from a plurality of candidate display pages based on an operation type of a first touch operation on a virtual weapon mounting area. Specifically, a first virtual weapon is mounted in the first virtual weapon mounting area, and a player triggers a touch operation on the first virtual weapon in the graphical user interface. In response to the first touch operation on the first virtual weapon mounting area, the computer device displays an accessory display page for the virtual weapon in the graphical user interface if the first touch operation is a click operation, and displays the weapon selection page in the graphical user interface if the first touch operation is a double click. After responding to a selection operation on a target virtual weapon in the weapon selection page, the computer device switches the first virtual weapon to the target virtual weapon, cancels the display of the weapon selection page in the graphical user interface, and displays the accessory display page for the target virtual weapon in the graphical user interface. To facilitate a user's quick selection of a display page, after "responding to a first touch operation on a virtual weapon in the virtual weapon mounting area," and before "displaying an accessory display page for the virtual weapon in the graphical user interface," the method displaying a page selection window in the graphical user interface in response to a first touch operation on a virtual weapon in the virtual weapon mounting area, the page selection window displaying candidate page indicators, the candidate page indicators including an accessory display page indicator and / or a weapon selection page indicator; In response to an end operation of the first touch operation, a candidate page indicator corresponding to an end position of the end operation on the page selection window is determined as a target page indicator, and a display page corresponding to the target page indicator is displayed on the graphical user interface.
[0041] For example, a graphical user interface may be displayed on a touch screen of a computer device, and the graphical user interface may display a virtual scene, a first virtual character located in the virtual scene and controlled by the terminal device, and a virtual weapon mounting area, the virtual weapon mounting area including a first virtual weapon mounting area and a second virtual weapon mounting area, displaying a first virtual weapon and a second virtual weapon to be mounted for the first virtual character, respectively. At this time, the first virtual weapon is mounted in the first virtual weapon mounting area, and the second virtual weapon is mounted in the second virtual weapon mounting area. A player triggers a touch operation on the first virtual weapon in the graphical user interface, and in response to the first touch operation on the first virtual weapon in the virtual weapon mounting area, the computer device may display a page selection window in the graphical user interface and display candidate page indicators in the page selection window, the candidate page indicators including an accessory display page indicator and a weapon selection page indicator. The player can perform a selection operation on the user interface, and in response to an end operation of the first touch operation, the computer device determines an accessory display page indicator corresponding to the end position of the end operation on the page selection window as a target page indicator, and displays a display page corresponding to the accessory display page indicator on the graphical user interface.
[0042] At 102, in response to a second touch operation on the accessory display page, a target virtual weapon accessory selected by the second touch operation from the plurality of candidate virtual weapon accessories is determined, and the target virtual weapon accessory is attached to the virtual weapon.
[0043] In one embodiment of the present disclosure, a player can trigger a click operation on a target virtual weapon accessory in the accessory selection area, and the computer device responds to the click operation on the target virtual weapon accessory in the accessory selection area by equipping the target virtual weapon accessory in the accessory use area. If a blank slot is present in the accessory use area, the target virtual weapon accessory is automatically equipped in that blank slot. If a blank slot is not present in the accessory use area and another weapon accessory already exists in that slot, the weapon accessory in a certain slot is switched and equipped in that slot with the target virtual weapon accessory. For example, the first or last weapon accessory in the accessory use area can be replaced with the target virtual weapon accessory, or a weapon accessory of the same type as the target virtual weapon accessory can be replaced with the target virtual weapon accessory in the accessory use area.
[0044] Furthermore, the player may trigger a pressure action on the target virtual weapon accessory in the accessory selection area, and the computer device may display an information display area on the accessory display page displayed on the graphical user interface in response to the pressure action on the target virtual weapon accessory in the accessory selection area, and display accessory information corresponding to the target virtual weapon accessory in the information display area, wherein the accessory information may include a detailed description of the target virtual weapon accessory and attribute data for adjusting the virtual weapon to which the target virtual weapon accessory is attached.
[0045] To allow the user to easily distinguish between unequipped and attached accessories, the accessory display page includes an accessory selection area and an accessory use area, the accessory selection area being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon, and the accessory use area being used to display the virtual weapon accessories currently attached to the virtual weapon. "In response to a second touch operation on the accessory display page, determining a target virtual weapon accessory selected from the plurality of virtual weapon accessories by the second touch operation, and attaching the target virtual weapon accessory to the virtual weapon" means In response to a second touch operation on the accessory selection area, a target virtual weapon accessory selected by the second touch operation from the plurality of candidate virtual weapon accessories is determined, the target virtual weapon accessory is added to the accessory use area, and the target virtual weapon accessory is attached to the virtual weapon.
[0046] For example, referring to FIG. 6 , a player triggers a touch operation on a first virtual weapon in a graphical user interface. In response to the first touch operation on the first virtual weapon in the virtual weapon attachment area, the computer device displays an accessory display page for the first virtual weapon in the graphical user interface, and displays an accessory selection area and an accessory use area on the accessory display page. A plurality of candidate virtual weapon accessories that can be displayed in the accessory selection area include a magnifying mirror, a silencer, and ammunition. At this time, since no accessories are attached to the first virtual weapon, each slot in the accessory use area is empty. The player performs a touch operation on the graphical user interface on the first candidate virtual weapon accessory “magnifying mirror” in the accessory selection area. In response to a second touch operation on the first candidate virtual weapon accessory “magnifying mirror” in the accessory selection area, the computer device determines a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories using the second touch operation. The target virtual weapon accessory is “magnifying mirror.” The computer device adds the target virtual weapon accessory to the accessory use area and attaches the target virtual weapon accessory to the virtual weapon.
[0047] In a specific embodiment, the method further comprises: In response to a third touch operation on a virtual weapon accessory to be explained among the plurality of candidate virtual weapon accessories, an information display area is displayed in the graphical user interface, and accessory information corresponding to the virtual weapon accessory to be explained is displayed in the information display area, wherein the third touch operation is different from the second touch operation.
[0048] Here, the third touch operation may be a pressing operation that satisfies a preset pressure value, or may be a long pressing operation that satisfies a preset touch duration.
[0049] The second touch operation includes a pressing operation and a lifting operation, in which the pressing operation is an operation in which the touch medium contacts the graphical user interface, and the lifting operation is an operation in which the touch medium separates from the graphical user interface, so as to display accessory information corresponding to a candidate virtual weapon accessory corresponding to a position of a current touch point of the second touch operation in an information display area. In response to the second touch operation on the accessory display page, determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation, and attaching the target virtual weapon accessory to the virtual weapon, receiving a pressing operation on the accessory display page; In response to the lifting operation, a virtual weapon accessory corresponding to an operation position of the lifting operation from among the plurality of candidate virtual weapon accessories is attached to the virtual weapon.
[0050] In one embodiment, the method further comprises: In response to the touch operation parameter of the pressing operation satisfying a parameter threshold, an information display area is displayed on an accessory display page displayed on the graphical user interface, and accessory information corresponding to the candidate virtual weapon accessory is displayed in the information display area.
[0051] For example, when a computer device detects a pressure operation by a player on a graphical user interface, the computer device responds to the pressure operation by displaying an information display area on an accessory display page displayed on the graphical user interface, and displaying accessory information corresponding to the candidate virtual weapon accessory in the information display area, where the parameter threshold satisfied by the touch operation parameter of the pressure operation may be pressure or touch duration.
[0052] In order for the user to easily refer to attribute information of each virtual weapon accessory, the accessory display page further includes an information display area, and the information display area is used to display accessory information corresponding to the candidate virtual weapon accessory. and displaying accessory information corresponding to the candidate virtual weapon accessory in the information display area in response to a third touch operation on the candidate virtual weapon accessory before the second touch operation is completed.
[0053] For example, referring to FIG. 7 , a player triggers a touch operation on a first virtual weapon in the graphical user interface. In response to the first touch operation on the first virtual weapon in the virtual weapon mounting area, the computer device displays an accessory display page for the first virtual weapon in the graphical user interface. The accessory display page displays an accessory selection area and an accessory use area. A plurality of candidate virtual weapon accessories that can be displayed in the accessory selection area include a magnifying glass, a silencer, and ammunition. At this time, since no accessories are mounted on the first virtual weapon, each slot in the accessory use area is empty. The player then performs a touch operation on a second candidate virtual weapon accessory, a "chin rest," in the accessory selection area of the graphical user interface. Before the second touch operation is completed, the computer device can display accessory information corresponding to the second candidate virtual weapon accessory in the information display area in response to a third touch operation on the second candidate virtual weapon accessory.
[0054] In one embodiment, after "displaying accessory information corresponding to the candidate virtual weapon accessory in the information display area in response to a third touch operation on the candidate virtual weapon accessory before the second touch operation has ended," the method When it is detected that the second touch operation has ended, a candidate virtual weapon accessory corresponding to the end position on the accessory display page of the end of the second touch operation is determined as a target virtual weapon accessory, and the target virtual weapon accessory is attached to the virtual weapon.
[0055] In one embodiment, the accessory display page further includes an information display area, the information display area is used to display accessory information and use controls corresponding to the candidate virtual weapon accessory, and the use controls are used to equip the virtual weapon accessory to the virtual weapon. After "displaying the accessory display page for the virtual weapon in the graphical user interface," the method further comprises: In response to a third touch operation on the candidate virtual weapon accessory on the accessory display page, the method displays accessory information and usage controls corresponding to the candidate virtual weapon accessory in the information display area.
[0056] In another embodiment, "in response to a second touch operation on the accessory display page, determining a target virtual weapon accessory selected by the second touch operation from the plurality of candidate virtual weapon accessories, and attaching the target virtual weapon accessory to the virtual weapon" is In response to a second touch operation on a use control in the information display area of the accessory display page, the candidate virtual weapon accessory corresponding to the use control is determined as a target virtual weapon accessory, and the target virtual weapon accessory is attached to the virtual weapon.
[0057] Optionally, "responding to a second touch operation on the accessory display page" includes: In response to a fourth touch operation on the accessory display page before the second touch operation ends, a candidate virtual weapon accessory corresponding to a stopping position of the fourth touch operation on the accessory display page is determined, and an accessory information display window for the candidate virtual weapon accessory is displayed, wherein detailed information of the candidate virtual weapon accessory is displayed in the accessory information display window.
[0058] Based on the above introduction, the virtual weapon processing method of the present disclosure will be further described below by taking an example. For example, a specific embodiment of the virtual weapon processing method is as follows:
[0059] (1) Displaying a graphical user interface on a touch screen of a computer device, the graphical user interface displaying a virtual scene, a first virtual character located in the virtual scene and controlled by the terminal device, and a virtual weapon mounting area, the virtual weapon mounting area including a first virtual weapon mounting area and a second virtual weapon mounting area, respectively displaying a first virtual weapon and a second virtual weapon to be mounted for the first virtual character, wherein the first virtual weapon is mounted in the first virtual weapon mounting area and the second virtual weapon is mounted in the second virtual weapon mounting area. The player triggers a touch operation on a first virtual weapon in the graphical user interface, and the computing device, in response to the first touch operation on the first virtual weapon in the virtual weapon attachment area, displays an accessory display page for the first virtual weapon in the graphical user interface, where the accessory display page is used to display a plurality of candidate virtual weapon accessories that can be attached to the first virtual weapon, where the first virtual weapon may be a virtual firearm, and the accessory display page displays an accessory selection area and an accessory use area, where the plurality of candidate virtual weapon accessories that can be displayed in the accessory selection area for the first virtual weapon include a first candidate virtual weapon accessory (a magnifying mirror), a second candidate virtual weapon accessory (a silencer), and a third candidate virtual weapon accessory (a lead). At this time, because no accessories are attached to the first virtual weapon, each slot in the accessory use area is displayed blank.
[0060] (2) The player performs a touch operation on a first virtual weapon accessory "double mirror" in the accessory selection area on the graphical user interface, and in response to a second touch operation on the virtual weapon accessory "double mirror" in the accessory selection area, determines a target virtual weapon accessory selected from a plurality of candidate virtual weapon accessories by the second touch operation, the target virtual weapon accessory being "double mirror," adds the target virtual weapon accessory to the accessory use area, and attaches the target virtual weapon accessory to the virtual weapon.
[0061] As described above, an embodiment of the present disclosure provides a virtual weapon processing method, which displays an accessory display page for the virtual weapon on the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be mounted on the virtual weapon, and in response to a second touch operation on the accessory display page, determines a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation, and mounts the target virtual weapon accessory on the virtual weapon. In an embodiment of the present disclosure, a player can perform touch operations on different virtual weapon mounting areas, thereby displaying an accessory display page on the user interface corresponding to the virtual weapon selected by the user, and displaying virtual weapon accessories that can be mounted on the virtual weapon through the accessory display page, thereby enabling quick mounting and replacement of accessories on the virtual weapon, simplifying the procedure for mounting virtual weapon accessories on the virtual weapon, improving game interaction efficiency, and enhancing the player's gaming experience.
[0062] To facilitate implementation of the virtual weapon processing method provided by the embodiments of the present disclosure, the embodiments of the present disclosure further provide a virtual object display device based on the above virtual weapon processing method, where the meaning of the nouns is the same as in the above-mentioned virtual weapon processing method, and specific implementation details can be referred to in the description of the method embodiments.
[0063] Next, an application scenario of this embodiment is provided. A schematic diagram of a graphical user interface is shown in FIG. 8. This interface includes a game scene and virtual objects in the game scene, which are not shown in FIG. 8. A player controls the movement of the virtual objects within the game scene. The interface in FIG. 8 shows multiple controls displayed above the game scene.
[0064] Here, 1000 is a backpack control, and a touch operation acting on this control triggers the display of a backpack interface in the graphical user interface and is used to view the items in the backpack, which may include, but are not limited to, items such as medicines, weapons, accessories, and armor. In an alternative embodiment, the edge of the backpack control is provided with a border line to indicate the amount of items in the backpack. Here, the touch operation acting on the backpack control may be an operation such as clicking, double-clicking, long-pressing, or sliding.
[0065] Reference numeral 1002 denotes a movement control, and the shaded circle is the movement control's rocker. In an alternative embodiment, the movement control forms a movement response area, where the movement response area is the same size as the movement control, i.e., the area in the graphical user interface corresponding to the movement control, i.e., the movement response area. In an alternative embodiment, the size of the movement response area may be larger than the size of the movement control, i.e., the movement control is set within the movement response area, and the graphical user interface is divided into left and right areas from the center in terms of distance, where the left area is the movement response area of the movement control. A touch operation acting on the movement response area of the movement control triggers a movement control command, and the movement direction of the virtual object is controlled based on the movement control command. Here, the touch operation acting on the movement response area of the movement control may be an operation such as clicking, double-clicking, long-pressing, or sliding.
[0066] When it is detected that the touch operation that triggers the movement control command satisfies a preset condition, a "sprint" command is triggered, and the virtual object is controlled to automatically continue running within the game scene. As shown in FIG. 8 , in an optional embodiment, when the touch operation that triggers the movement control command satisfies a preset condition, the touch operation acting on the rocker region slides along a preset direction to a preset distance or a preset area (e.g., the position indicated by the up arrow on the rocker). For example, when the touch operation drags the rocker lever upward, the sprint control 1006 is displayed, and when this sprint control is triggered, the virtual object enters high-speed running mode. At the same time, the 1030 control is also a sprint control, and when the 1030 control is clicked, the virtual object enters high-speed running mode. In an alternative embodiment, when the touch operation that triggers the movement control command satisfies a preset condition, the touch operation acting on the rocker region satisfies a preset time length or a preset pressure, etc.
[0067] Both 1004 and 1014 are attack controls. A touch operation acting on the attack response area of the attack control triggers an attack command, and the virtual character is controlled to perform an attack operation in the game scene based on the attack command. The attack action performed by the attack control corresponds to the current equipped state of the virtual object. For example, if the virtual object is equipped with a ranged weapon, the attack action performed by the attack control is a shooting action. That is, the left hand can trigger control 1004 to perform a shooting operation, and the right hand can trigger control 1014 to perform a shooting operation. If the virtual character is equipped with a melee weapon, the attack action performed by the attack control is a decapitation action. In an optional embodiment, only one of the attack controls 1004 and 1014 is displayed. The display position of the attack control can be adjusted based on a position setting command triggered either in the setting interface or during the game. The touch operation acting on the attack control may be a click, double-click, long press, slide, or the like.
[0068] Reference numerals 1008 and 1010 denote attitude controls, and attitude adjustment commands are triggered by touch operations acting on the attitude controls to adjust the attitude of a virtual object in a game scene. Here, triggering control 1008 can control the weapon to be at the position of the virtual object's left arm and the virtual object to stand with its head turned to the left, while triggering control 1010 can control the weapon to be at the position of the virtual object's right arm and the virtual object to stand with its head turned to the right. 1008 and 1010 are often used to control the attitude of a virtual object after avoiding obstacles such as walls or large trees. Here, the touch operations acting on the attitude controls can be clicks, double-clicks, long presses, slides, etc.
[0069] Reference numeral 1012 denotes the weapon slot, i.e., the virtual weapon mounting area described in this scheme. Triggering the weapon slot allows the player to switch between virtual weapons. The "Rapid Fire" symbol on the left indicates the current firing mode. In "Rapid Fire" mode, multiple bullets are fired continuously. In addition to "Rapid Fire," the player can switch to "Single Fire" mode, in which a single bullet is fired. The lower shadow bar indicates the amount of bullets in the weapon. When firing, the amount of bullets decreases continuously. When the amount of bullets reaches zero, the weapon automatically replaces the bullets, and the amount of bullets is at its maximum. Also, control 1016 is the bullet replacement control. Triggering the bullet replacement control adds bullets to the currently used weapon. After the bullet replacement, the amount of bullets is at its maximum. Here, the touch operation acting on the weapon slot may be a click, double-click, long press, slide, or other operation.
[0070] Controls 1018 and 1020 are action controls, and a touch operation acting on the action controls controls the virtual object to perform a corresponding action in a game scene. For example, triggering 1018 can control the virtual object to squat, and triggering 1020 can control the virtual object to take a ground position. Control 1022 can control the virtual object to perform a jump action. Here, the touch operation acting on the action controls may be a click, double-click, long press, slide, etc.
[0071] The 1024 control is used to control the current game scene to enter mirror mode. When a first touch operation acting on the control 1024 is detected, the control controls entering mirror mode. In mirror mode, a aiming lens is displayed on the game scene, and the game scene as seen by the virtual object through this aiming lens is also displayed. In mirror mode, the mirror mode can improve shooting accuracy. When a second touch operation acting on the control 1024 is detected, the control exits mirror mode. In an alternative embodiment, the first touch operation and the second touch operation are independent touch operations. For example, clicking the 1024 control controls entering mirror mode for the current game scene, and clicking the 1024 control again exits mirror mode and displays the game scene again as a game scene photographed by a virtual camera following the virtual object. In an alternative embodiment, the first touch operation and the second touch operation may be start and end operations of the touch operation, for example, when the control of the touch operation 1024 is detected, the game scene is controlled to open mirror mode, and the game scene is continuously controlled to open mirror mode during the sustained pressing, and when the touch-off that triggers the touch operation is detected to have left the touch detection area, the open mirror mode is controlled to end.
[0072] The 1026 control is used to control the shooting parameters of a virtual camera that renders the game screen and adjust the field of view of the game scene displayed in the graphical user interface. In an alternative embodiment, it is determined that a touch operation acting on the 1026 control has been detected, and the shooting parameters of the virtual camera are adjusted in response to the touch operation. The shooting parameters include, but are not limited to, the position, orientation, and angle of view of the virtual camera. Here, the touch operation acting on the 1026 control may be an operation such as clicking, double-clicking, long pressing, or sliding.
[0073] The 1028 control is a marker control, and a touch operation acting on the marker control marks a virtual target, virtual object, etc. in a game scene. The 1032 control is a setting control, and clicking the 1032 control displays a setting menu for setting basic functions of the current game. The touch operation acting on the 1028 control may be an operation such as clicking, double-clicking, long pressing, or sliding.
[0074] Controls 1034 and 1036 are message controls, 1034 can be used to display system notifications, 1036 can be used to display messages sent by teammates or can be used to send messages to teammates, 1038 is a small map for displaying the location of the virtual object controlled by the player, and can also display some of the locations of other players' virtual objects.
[0075] In addition to the above application scenarios, the player can perform a first touch operation on the virtual weapon mounting area 1012 to continue executing the virtual weapon processing method of this embodiment.
[0076] Referring to FIG. 9, FIG. 9 is a structural schematic diagram of a processing device of a virtual weapon in an embodiment of the present disclosure, the device including: a first response unit 201 and a second response unit 202; a first response unit (201) configured to display an accessory display page of the virtual weapon on the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon attachment area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon; The second response unit 202 is configured to, in response to a second touch operation on the accessory display page, determine a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation, and attach the target virtual weapon accessory to the virtual weapon.
[0077] In some embodiments, the virtual weapon processor includes a first response subunit and a second response subunit; a first response subunit configured to control the first virtual character to use a first virtual weapon corresponding to the first weapon mounting area in response to a first switching operation on the first weapon mounting area; The second response subunit is configured to, in response to a second switching operation on the second weapon mounting area, determine that the first virtual character currently uses the virtual weapon corresponding to the second weapon mounting area, and thereby control the first virtual character to use the second virtual weapon corresponding to the second weapon mounting area.
[0078] In some embodiments, the virtual weapon processor includes a first determination subunit; A first determination subunit is configured to, in response to a second touch operation on the accessory selection area, determine a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation, add the target virtual weapon accessory to the accessory use area, and attach the target virtual weapon accessory to the virtual weapon.
[0079] In some embodiments, the virtual weapon processor includes a third response subunit; The third response subunit is configured to display an information display area in the graphical user interface in response to a third touch operation on a virtual weapon accessory to be explained among the plurality of candidate virtual weapon accessories, and to display accessory information corresponding to the virtual weapon accessory to be explained in the information display area, wherein the third touch operation is different from the second touch operation.
[0080] In some embodiments, the virtual weapon processing device includes a receiving subunit and a fourth responding subunit; the receiving subunit is configured to receive a pressing operation on the accessory display page; The fourth response subunit is configured to, in response to the lifting operation, attach to the virtual weapon a virtual weapon accessory corresponding to an operation position of the lifting operation from among the plurality of candidate virtual weapon accessories.
[0081] In some embodiments, the virtual weapon processor includes a fifth response subunit; A fifth response subunit is configured to, in response to the touch operation parameters of the pressing operation satisfying a parameter threshold, display an information display area on an accessory display page displayed on the graphical user interface, and display accessory information corresponding to the candidate virtual weapon accessory in the information display area.
[0082] In some embodiments, the virtual weapon processor includes a sixth response subunit; A sixth response subunit is configured to display accessory information and usage controls corresponding to the candidate virtual weapon accessory in the information display area in response to a third touch operation on the candidate virtual weapon accessory on the accessory display page.
[0083] In some embodiments, the virtual weapon processor includes a seventh response subunit; The seventh response subunit is configured to, in response to a second touch operation on a use control in the information display area of the accessory display page, determine the candidate virtual weapon accessory corresponding to the use control as a target virtual weapon accessory and attach the target virtual weapon accessory to the virtual weapon.
[0084] In some embodiments, the virtual weapon processing device includes an eighth response subunit, an acquisition subunit, and an acquisition subunit; an eighth response subunit is configured to determine a target display position based on a display position of the virtual weapon mounting area in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the target display position being a position at which an accessory display page of the virtual weapon is displayed; The acquisition subunit is configured to acquire a predetermined page size parameter and accessory information, and generate an accessory display page for the virtual weapon based on the predetermined page size parameter and the accessory information, where the accessory information is accessory information of a virtual weapon accessory that can be attached to the virtual weapon in an item backpack.
[0085] In some embodiments, the virtual weapon processor includes a second determination subunit and a display subunit; a second determination subunit configured to determine whether a virtual weapon is mounted in the virtual weapon mounting area; a display subunit configured, when attached, to display an accessory display page of the virtual weapon in the graphical user interface; The display subunit is further configured to display a weapon selection page in the graphical user interface when not equipped, the weapon selection page being used to display virtual weapons that can be equipped in the virtual weapon mounting area in the item backpack.
[0086] In some embodiments, the virtual weapon processor includes a ninth response subunit; a ninth response subunit configured, after responding to a selection operation for a target virtual weapon on the weapon selection page, to equip the target virtual weapon for the first virtual character, display the target virtual weapon in the virtual weapon equip area, and generate a page switching command for the weapon selection page; The ninth response subunit is further configured to, in response to the page switching command for the weapon selection page, cancel the display of the weapon selection page on the graphical user interface and display an accessory display page of the target virtual weapon on the graphical user interface.
[0087] In some embodiments, the virtual weapon processor includes a tenth response subunit; a tenth response subunit configured to display a page selection window in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the page selection window displaying candidate page indicators, the candidate page indicators including an accessory display page indicator and / or a weapon selection page indicator; The tenth response subunit is further configured to, in response to an end operation of the first touch operation, determine a candidate page indicator corresponding to an end position of the end operation on the page selection window as a target page indicator, and display a display page corresponding to the target page indicator on the graphical user interface.
[0088] An embodiment of the present disclosure discloses a virtual weapon processing device, wherein a first response unit 201 displays an accessory display page for the virtual weapon on the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be mounted on the virtual weapon, and a second response unit 202 determines a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation in response to a second touch operation on the accessory display page, and mounts the target virtual weapon accessory on the virtual weapon. In the embodiment of the present disclosure, a player can perform touch operations on different virtual weapon mounting areas, thereby displaying an accessory display page corresponding to the virtual weapon selected by the user on the user interface, and displaying virtual weapon accessories that can be mounted on the virtual weapon through the accessory display page, thereby enabling quick mounting and replacement of accessories on the virtual weapon, simplifying the procedure for mounting virtual weapon accessories on the virtual weapon, improving game interaction efficiency, and enhancing the player's gaming experience.
[0089] Therefore, an embodiment of the present disclosure provides a computing device, which may be a terminal or a server, such as a smartphone, tablet, laptop, touchscreen, game console, personal computer (PC), personal digital assistant (PDA), etc. FIG. 10 is a schematic configuration diagram of a computing device according to an embodiment of the present disclosure. The computing device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored on the memory 302 and operable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the computing device structure shown in the figure does not constitute a limitation on the computing device, and may include more or fewer components than those shown, or a combination of some components, or a different component arrangement.
[0090] The processor 301 is the control center of the computer device 300, and monitors the entire computer device 300 by connecting each part of the entire computer device 300 using various interfaces and lines, executing or loading software programs and / or modules stored in the memory 302, calling up data stored in the memory 302, and executing various functions and processing data of the computer device 300.
[0091] In an embodiment of the present disclosure, the processor 301 in the computing device 300 performs various functions by loading instructions corresponding to the processes of one or more applications into the memory 302 and executing the applications stored in the memory 302 by the processor 301.
[0092] displaying an accessory display page for the virtual weapon in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon attachment area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon; In response to a second touch operation on the accessory display page, determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories with the second touch operation and attaching the target virtual weapon accessory to the virtual weapon.
[0093] In one embodiment, the virtual weapon mounting area includes a first weapon mounting area and a second weapon mounting area, the first weapon mounting area being used to display a first virtual weapon to be mounted for the first virtual character, and the second weapon mounting area being used to display a second virtual weapon to be mounted for the first virtual character; The method further comprises: In response to a first switching operation on the first weapon mounting area, control is performed so that the first virtual character uses a first virtual weapon corresponding to the first weapon mounting area; In response to a second switching operation on the second weapon mounting area, determining that the first virtual character will currently use the virtual weapon corresponding to the second weapon mounting area, thereby controlling the first virtual character to use the second virtual weapon corresponding to the second weapon mounting area.
[0094] In one embodiment, the first touch operation is a contact area between the touch point of the first touch operation and the graphical user interface satisfies a predetermined area threshold; the pressure value of the first touch operation satisfies a predetermined pressure threshold; the first touch operation satisfies a predetermined touch time threshold; The first touch operation is an operation that satisfies at least one predetermined condition of operating the graphical user interface a predetermined number of times within a predetermined time.
[0095] In one embodiment, the accessory display page includes an accessory selection area and an accessory use area, the accessory selection area being used to display a plurality of candidate virtual weapon accessories that may be equipped to the virtual weapon, and the accessory use area being used to display virtual weapon accessories currently equipped to the virtual weapon; determining a target virtual weapon accessory selected from the plurality of virtual weapon accessories by a second touch operation on the accessory display page and attaching the target virtual weapon accessory to the virtual weapon; In response to a second touch operation on the accessory selection area, a target virtual weapon accessory selected by the second touch operation from the plurality of candidate virtual weapon accessories is determined, the target virtual weapon accessory is added to the accessory use area, and the target virtual weapon accessory is attached to the virtual weapon.
[0096] In one embodiment, the method further comprises: In response to a third touch operation on a virtual weapon accessory to be explained among the plurality of candidate virtual weapon accessories, an information display area is displayed in the graphical user interface, and accessory information corresponding to the virtual weapon accessory to be explained is displayed in the information display area, wherein the third touch operation is different from the second touch operation.
[0097] In one embodiment, the second touch operation includes a pressing operation and a lifting operation, the pressing operation being an operation in which a touch medium contacts the graphical user interface, and the lifting operation being an operation in which the touch medium separates from the graphical user interface; determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by a second touch operation on the accessory display page, and attaching the target virtual weapon accessory to the virtual weapon; receiving a pressing operation on the accessory display page; In response to the lifting operation, a virtual weapon accessory corresponding to an operation position of the lifting operation from among the plurality of candidate virtual weapon accessories is attached to the virtual weapon.
[0098] In one embodiment, the method further comprises: In response to the touch operation parameter of the pressing operation satisfying a parameter threshold, an information display area is displayed on an accessory display page displayed on the graphical user interface, and accessory information corresponding to the candidate virtual weapon accessory is displayed in the information display area.
[0099] In one embodiment, the accessory display page further includes an information display area, the information display area used to display accessory information and usage controls corresponding to the candidate virtual weapon accessories, the usage controls used to equip the virtual weapon accessories to the virtual weapon; after displaying the virtual weapon-like accessory display page in the graphical user interface, In response to a third touch operation on the candidate virtual weapon accessory on the accessory display page, the method displays accessory information and usage controls corresponding to the candidate virtual weapon accessory in the information display area.
[0100] In one embodiment, in response to a second touch operation on the accessory display page, determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation and attaching the target virtual weapon accessory to the virtual weapon includes: In response to a second touch operation on a use control in the information display area of the accessory display page, the candidate virtual weapon accessory corresponding to the use control is determined as a target virtual weapon accessory, and the target virtual weapon accessory is attached to the virtual weapon.
[0101] In one embodiment, displaying an accessory display page for the virtual weapon in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon mounting area includes: determining a target display position based on a display position of the virtual weapon mounting area in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the target display position being a position at which an accessory display page of the virtual weapon is displayed; obtaining predetermined page size parameters and accessory information, and generating an accessory display page for the virtual weapon based on the predetermined page size parameters and the accessory information, wherein the accessory information is accessory information for a virtual weapon accessory that can be attached to the virtual weapon in an item backpack.
[0102] In one embodiment, after responding to a first touch operation on a virtual weapon in the virtual weapon mounting area and before displaying an accessory display page for the virtual weapon in the graphical user interface, the method further comprises: determining whether a virtual weapon is mounted in the virtual weapon mounting area; If so, displaying an accessory display page for the virtual weapon in the graphical user interface; If not, displaying a weapon selection page in the graphical user interface, the weapon selection page being used to display virtual weapons that can be attached to the virtual weapon attachment area in the item backpack.
[0103] In one embodiment, displaying a weapon selection page in the graphical user interface comprises: after responding to a selection operation for a target virtual weapon on the weapon selection page, equipping the target virtual weapon for the first virtual character, displaying the target virtual weapon in the virtual weapon attachment area, and generating a page switch command for the weapon selection page; In response to the page switching command for the weapon selection page, canceling the display of the weapon selection page on the graphical user interface and displaying an accessory display page for the target virtual weapon on the graphical user interface.
[0104] In one embodiment, after responding to a first touch operation on a virtual weapon in the virtual weapon mounting area and before displaying an accessory display page for the virtual weapon in the graphical user interface, the method further comprises: displaying a page selection window in the graphical user interface in response to a first touch operation on a virtual weapon in the virtual weapon mounting area, the page selection window displaying candidate page indicators, the candidate page indicators including an accessory display page indicator and / or a weapon selection page indicator; In response to an end operation of the first touch operation, a candidate page indicator corresponding to an end position of the end operation on the page selection window is determined as a target page indicator, and a display page corresponding to the target page indicator is displayed on the graphical user interface.
[0105] For specific implementation of each of the above operations, reference can be made to the above-described embodiments, and further description will be omitted here.
[0106] Optionally, as shown in Fig. 10, the computing device 300 further includes a touch display 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. Here, the processor 301 is electrically connected to the touch display 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art will understand that the structure of the computing device shown in Fig. 10 does not constitute a limitation of the computing device, and that the computing device may include more or fewer accessories than those shown, or may combine some accessories or different accessory arrangements.
[0107] The touch display 303 can be used to display a graphical user interface and receive operation instructions for a user to act on the graphical user interface. The touch display 303 can include a display panel and a touch panel. The display panel can be used to display information input by or provided to a user, as well as various graphical user interfaces of a computer device. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. The display panel can be selectively arranged in a form such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The touch panel can collect touch operations on or near the user, such as when the user operates on or near the touch panel using an appropriate object or accessory, such as a finger or a touch pen, generate corresponding operation instructions, and execute procedures corresponding to the operation instructions. Optionally, the touch panel can include two parts: a touch detection device and a touch controller. Here, the touch detection device detects the user's touch direction, detects a signal due to the touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into contact point coordinates, and sends them to the processor 301, which can receive and execute instructions from the processor 301. The touch panel covers the display panel, and after the touch panel detects a touch operation on or near it, it transmits it to the processor 301 to determine the type of touch event. The processor 301 can then provide a corresponding visual output on the display panel in response to the type of touch event. In embodiments of the present disclosure, the touch panel and the display panel can be integrated into the touch display 303 to achieve input / output functions. However, in some embodiments, the touch panel and the display panel can be two separate components to achieve input / output functions.That is, the touch display 303 may realize the input function as a part of the input unit 306 .
[0108] In an embodiment of the present disclosure, a game application is executed via the processor 301 to generate a graphical user interface on the touch display 303. The touch display 303 is used to present the graphical user interface and to receive operation instructions for a user to act on the graphical user interface.
[0109] The radio frequency circuitry 304 can be used to transmit and receive radio frequency signals to establish wireless communication with a network device or other computer device via wireless communication and to transmit and receive signals to and from the network device or other computer device.
[0110] The audio circuit 305 can be used to provide an audio interface between a user and the computer device via a speaker and a microphone. The audio circuit 305 converts received audio data into an electrical signal and sends it to the speaker, which converts it into an audio signal and outputs it. Meanwhile, the microphone converts collected audio signals into an electrical signal, which the audio circuit 305 receives and converts into audio data. After processing by the audio data output processor 301, the audio data is transmitted to another computer device or output to the memory 302 for further processing via the radio frequency circuit 304. The audio circuit 305 can also include an earplug jack to provide communication between peripheral headphones and the computer device.
[0111] The input unit 306 can be used to receive input numeric, character information or user characteristic information (e.g., fingerprint, iris, face information, etc.) and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0112] The power supply 307 is used to provide power to each component of the computing device 300. Optionally, the power supply 307 may be logically connected to the processor 301 via a power management system, and functions such as charging, discharging, and power consumption management may be managed through the power management system. The power supply 307 may also include any components such as one or more DC or AC power sources, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, etc.
[0113] Although not shown in FIG. 10, computing device 300 may also include cameras, sensors, wireless fidelity modules, Bluetooth modules, etc., not described herein.
[0114] In the above embodiments, emphasis is placed on the description of each embodiment, and some embodiments do not have details, and reference can be made to the description of other embodiments.
[0115] As described above, a computer device according to an embodiment of the present disclosure displays an accessory display page for the virtual weapon on the graphical user interface in response to a first touch operation on a virtual weapon in the virtual weapon attachment area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon, and in response to a second touch operation on the accessory display page, determines a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation and attaches the target virtual weapon accessory to the virtual weapon. In an embodiment of the present disclosure, a player can perform touch operations on different virtual weapon attachment areas, thereby displaying an accessory display page on the user interface corresponding to the virtual weapon selected by the user, and displaying virtual weapon accessories that can be attached to the virtual weapon through the accessory display page, thereby enabling quick attachment and replacement of accessories to the virtual weapon, simplifying the procedure for attaching virtual weapon accessories to the virtual weapon, improving game interaction efficiency, and enhancing the player's gaming experience.
[0116] Those skilled in the art can understand that all or some of the steps of the various methods in the above-described embodiments can be performed by instructions stored in a computer-readable storage medium and executed by a processor, or by instructions that control associated hardware.
[0117] For this reason, an embodiment of the present disclosure provides a computer-readable storage medium having stored thereon a plurality of computer programs loadable by a processor to execute steps in any of the virtual weapon processing methods provided by the embodiment of the present disclosure. For example, the computer programs may execute the following steps:
[0118] displaying an accessory display page for the virtual weapon in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon attachment area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon; In response to a second touch operation on the accessory display page, determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories with the second touch operation and attaching the target virtual weapon accessory to the virtual weapon.
[0119] In one embodiment, the virtual weapon mounting area includes a first weapon mounting area and a second weapon mounting area, the first weapon mounting area being used to display a first virtual weapon to be mounted for the first virtual character, and the second weapon mounting area being used to display a second virtual weapon to be mounted for the first virtual character; The method further comprises: In response to a first switching operation on the first weapon mounting area, control is performed so that the first virtual character uses a first virtual weapon corresponding to the first weapon mounting area; In response to a second switching operation on the second weapon mounting area, determining that the first virtual character will currently use the virtual weapon corresponding to the second weapon mounting area, thereby controlling the first virtual character to use the second virtual weapon corresponding to the second weapon mounting area.
[0120] In one embodiment, the first touch operation is a contact area between the touch point of the first touch operation and the graphical user interface satisfies a predetermined area threshold; the pressure value of the first touch operation satisfies a predetermined pressure threshold; the first touch operation satisfies a predetermined touch time threshold; The first touch operation is an operation that satisfies at least one predetermined condition of operating the graphical user interface a predetermined number of times within a predetermined time.
[0121] In one embodiment, the accessory display page includes an accessory selection area and an accessory use area, the accessory selection area being used to display a plurality of candidate virtual weapon accessories that may be equipped to the virtual weapon, and the accessory use area being used to display virtual weapon accessories currently equipped to the virtual weapon; determining a target virtual weapon accessory selected from the plurality of virtual weapon accessories by a second touch operation on the accessory display page and attaching the target virtual weapon accessory to the virtual weapon; In response to a second touch operation on the accessory selection area, a target virtual weapon accessory selected by the second touch operation from the plurality of candidate virtual weapon accessories is determined, the target virtual weapon accessory is added to the accessory use area, and the target virtual weapon accessory is attached to the virtual weapon.
[0122] In one embodiment, the method further comprises: In response to a third touch operation on a virtual weapon accessory to be explained among the plurality of candidate virtual weapon accessories, an information display area is displayed in the graphical user interface, and accessory information corresponding to the virtual weapon accessory to be explained is displayed in the information display area, wherein the third touch operation is different from the second touch operation.
[0123] In one embodiment, the second touch operation includes a pressing operation and a lifting operation, the pressing operation being an operation in which a touch medium contacts the graphical user interface, and the lifting operation being an operation in which the touch medium separates from the graphical user interface; determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by a second touch operation on the accessory display page, and attaching the target virtual weapon accessory to the virtual weapon; receiving a pressing operation on the accessory display page; In response to the lifting operation, a virtual weapon accessory corresponding to an operation position of the lifting operation from among the plurality of candidate virtual weapon accessories is attached to the virtual weapon.
[0124] In one embodiment, the method further comprises: In response to the touch operation parameter of the pressing operation satisfying a parameter threshold, an information display area is displayed on an accessory display page displayed on the graphical user interface, and accessory information corresponding to the candidate virtual weapon accessory is displayed in the information display area.
[0125] In one embodiment, the accessory display page further includes an information display area, the information display area used to display accessory information and usage controls corresponding to the candidate virtual weapon accessories, the usage controls used to equip the virtual weapon accessories to the virtual weapon; after displaying the virtual weapon-like accessory display page in the graphical user interface, In response to a third touch operation on the candidate virtual weapon accessory on the accessory display page, the method displays accessory information and usage controls corresponding to the candidate virtual weapon accessory in the information display area.
[0126] In one embodiment, in response to a second touch operation on the accessory display page, determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation and attaching the target virtual weapon accessory to the virtual weapon includes: In response to a second touch operation on a use control in the information display area of the accessory display page, the candidate virtual weapon accessory corresponding to the use control is determined as a target virtual weapon accessory, and the target virtual weapon accessory is attached to the virtual weapon.
[0127] In one embodiment, displaying an accessory display page for the virtual weapon in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon mounting area includes: determining a target display position based on a display position of the virtual weapon mounting area in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the target display position being a position at which an accessory display page of the virtual weapon is displayed; obtaining predetermined page size parameters and accessory information, and generating an accessory display page for the virtual weapon based on the predetermined page size parameters and the accessory information, wherein the accessory information is accessory information for a virtual weapon accessory that can be attached to the virtual weapon in an item backpack.
[0128] In one embodiment, after responding to a first touch operation on a virtual weapon in the virtual weapon mounting area and before displaying an accessory display page for the virtual weapon in the graphical user interface, the method further comprises: determining whether a virtual weapon is mounted in the virtual weapon mounting area; If so, displaying an accessory display page for the virtual weapon in the graphical user interface; If not, displaying a weapon selection page in the graphical user interface, the weapon selection page being used to display virtual weapons that can be attached to the virtual weapon attachment area in the item backpack.
[0129] In one embodiment, displaying a weapon selection page in the graphical user interface comprises: after responding to a selection operation for a target virtual weapon on the weapon selection page, equipping the target virtual weapon for the first virtual character, displaying the target virtual weapon in the virtual weapon attachment area, and generating a page switch command for the weapon selection page; In response to the page switching command for the weapon selection page, canceling the display of the weapon selection page on the graphical user interface and displaying an accessory display page for the target virtual weapon on the graphical user interface.
[0130] In one embodiment, after responding to a first touch operation on a virtual weapon in the virtual weapon mounting area and before displaying an accessory display page for the virtual weapon in the graphical user interface, the method further comprises: displaying a page selection window in the graphical user interface in response to a first touch operation on a virtual weapon in the virtual weapon mounting area, the page selection window displaying candidate page indicators, the candidate page indicators including an accessory display page indicator and / or a weapon selection page indicator; In response to an end operation of the first touch operation, a candidate page indicator corresponding to an end position of the end operation on the page selection window is determined as a target page indicator, and a display page corresponding to the target page indicator is displayed on the graphical user interface.
[0131] For specific implementation of each of the above operations, reference can be made to the above-described embodiments, and further description will be omitted here.
[0132] Here, the storage medium may include a read only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.
[0133] The computer program stored on the storage medium is configured to display an accessory display page for the virtual weapon on the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be mounted on the virtual weapon, and to determine a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation on the accessory display page and mount the target virtual weapon accessory on the virtual weapon in response to a second touch operation on the accessory display page. In an embodiment of the present disclosure, a player can perform touch operations on different virtual weapon mounting areas, causing an accessory display page corresponding to the virtual weapon selected by the user to be displayed on the user interface, and displaying virtual weapon accessories that can be mounted on the virtual weapon through the accessory display page, thereby enabling quick mounting and replacement of accessories on the virtual weapon, simplifying the procedure for mounting virtual weapon accessories on the virtual weapon, improving game interaction efficiency, and enhancing the player's gaming experience.
[0134] In the above embodiments, emphasis is placed on the description of each embodiment, and some embodiments do not have details, and reference can be made to the description of other embodiments.
[0135] The above provides a detailed introduction to the virtual weapon processing method, apparatus, computer device, and storage medium provided by the embodiments of the present disclosure. Specific examples are used herein to illustrate the principles and embodiments of the present disclosure. The above description of the embodiments is only intended to assist in understanding the technical solutions and core ideas of the present disclosure. Those skilled in the art should understand that the technical solutions described in the above embodiments may be modified or some of the technical features may be replaced with equivalents. These modifications or substitutions do not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. 1. A method for processing a virtual weapon, comprising: providing a graphical user interface by a terminal device, the graphical user interface including at least a portion of a virtual scene, a first virtual character located in the virtual scene and controlled by the terminal device, and a virtual weapon mounting area, the virtual weapon mounting area being used to display a virtual weapon to be mounted for the first virtual character, the method comprising: displaying an accessory display page for the virtual weapon in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon attachment area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon; and in response to a second touch operation on the accessory display page, determining a target virtual weapon accessory selected by the second touch operation from the plurality of candidate virtual weapon accessories, and attaching the target virtual weapon accessory to the virtual weapon. A method for processing a virtual weapon.
2. the virtual weapon mounting area includes a first weapon mounting area and a second weapon mounting area, the first weapon mounting area being used to display a first virtual weapon to be mounted for the first virtual character, and the second weapon mounting area being used to display a second virtual weapon to be mounted for the first virtual character; The method further comprises: In response to a first switching operation on the first weapon mounting area, control is performed so that the first virtual character uses a first virtual weapon corresponding to the first weapon mounting area; and determining, in response to a second switching operation on the second weapon mounting area, that the first virtual character will currently use the virtual weapon corresponding to the second weapon mounting area, thereby controlling the first virtual character to use the second virtual weapon corresponding to the second weapon mounting area.
2. The method of claim 1, wherein the virtual weapon is a virtual weapon.
3. The first touch operation includes: a contact area between the touch point of the first touch operation and the graphical user interface satisfies a predetermined area threshold; the pressure value of the first touch operation satisfies a predetermined pressure threshold; the first touch operation satisfies a predetermined touch time threshold; The first touch operation is an operation that satisfies at least one predetermined condition: the first touch operation is an operation that operates the graphical user interface a predetermined number of times within a predetermined time period.
3. The method of claim 2, wherein the virtual weapon is a virtual weapon.
4. the accessory display page includes an accessory selection area and an accessory use area, the accessory selection area being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon, and the accessory use area being used to display a virtual weapon accessory currently attached to the virtual weapon; determining a target virtual weapon accessory selected from the plurality of virtual weapon accessories by a second touch operation on the accessory display page and attaching the target virtual weapon accessory to the virtual weapon; In response to a second touch operation on the accessory selection area, determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by the second touch operation, adding the target virtual weapon accessory to the accessory use area, and attaching the target virtual weapon accessory to the virtual weapon.
4. The method of claim 3, wherein the virtual weapon is a virtual weapon.
5. The method further comprises: In response to a third touch operation on a target virtual weapon accessory among the plurality of candidate virtual weapon accessories, an information display area is displayed on the graphical user interface, and accessory information corresponding to the target virtual weapon accessory is displayed in the information display area, wherein the third touch operation is different from the second touch operation.
2. The method of claim 1, wherein the virtual weapon is a virtual weapon.
6. the second touch operation includes a pressing operation and a lifting operation, the pressing operation being an operation in which a touch medium comes into contact with the graphical user interface, and the lifting operation being an operation in which the touch medium separates from the graphical user interface; determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by a second touch operation on the accessory display page, and attaching the target virtual weapon accessory to the virtual weapon; receiving a pressing operation on the accessory display page; and in response to the lifting operation, attaching to the virtual weapon a virtual weapon accessory corresponding to an operation position of the lifting operation from among the plurality of candidate virtual weapon accessories.
2. The method of claim 1, wherein the virtual weapon is a virtual weapon.
7. The method further comprises: and displaying an information display area on an accessory display page displayed on the graphical user interface in response to a touch operation parameter of the pressing operation satisfying a parameter threshold, and displaying accessory information corresponding to the candidate virtual weapon accessory in the information display area.
7. The method of claim 6, wherein the virtual weapon is a virtual weapon.
8. the accessory display page further includes an information display area, the information display area being used to display accessory information and usage controls corresponding to the candidate virtual weapon accessories, and the usage controls being used to equip the virtual weapon accessories to the virtual weapon; after displaying the virtual weapon-like accessory display page in the graphical user interface, and displaying accessory information and a usage control corresponding to the candidate virtual weapon accessory in the information display area in response to a third touch operation on the candidate virtual weapon accessory in the accessory display page.
2. The method of claim 1, wherein the virtual weapon is a virtual weapon.
9. determining a target virtual weapon accessory selected from the plurality of candidate virtual weapon accessories by a second touch operation on the accessory display page, and attaching the target virtual weapon accessory to the virtual weapon; and determining, in response to a second touch operation on a use control in the information display area of the accessory display page, a candidate virtual weapon accessory corresponding to the use control as a target virtual weapon accessory, and attaching the target virtual weapon accessory to the virtual weapon.
9. The method of claim 8, wherein the virtual weapon is a virtual weapon.
10. displaying an accessory display page for the virtual weapon in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, determining a target display position based on a display position of the virtual weapon mounting area in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the target display position being a position at which an accessory display page of the virtual weapon is displayed; and acquiring predetermined page size parameters and accessory information, and generating an accessory display page for the virtual weapon based on the predetermined page size parameters and the accessory information, wherein the accessory information is accessory information for a virtual weapon accessory that can be attached to the virtual weapon in an item backpack.
2. The method of claim 1, wherein the virtual weapon is a virtual weapon.
11. after responding to a first touch operation on the virtual weapon in the virtual weapon mounting area and before displaying an accessory display page for the virtual weapon in the graphical user interface, determining whether a virtual weapon is mounted in the virtual weapon mounting area; If so, displaying an accessory display page for the virtual weapon in the graphical user interface; if not, displaying a weapon selection page in the graphical user interface; The weapon selection page is used to display virtual weapons that can be attached to the virtual weapon attachment area in the item backpack.
2. The method of claim 1, wherein the virtual weapon is a virtual weapon.
12. Displaying a weapon selection page in the graphical user interface includes: after responding to a selection operation for a target virtual weapon on the weapon selection page, equipping the target virtual weapon for the first virtual character, displaying the target virtual weapon in the virtual weapon attachment area, and generating a page switch command for the weapon selection page; and in response to the page switching command for the weapon selection page, canceling the display of the weapon selection page on the graphical user interface and displaying an accessory display page for the target virtual weapon on the graphical user interface.
12. The method of claim 11, wherein the virtual weapon is a virtual weapon.
13. after responding to a first touch operation on the virtual weapon in the virtual weapon mounting area and before displaying an accessory display page for the virtual weapon in the graphical user interface, displaying a page selection window in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon mounting area, the page selection window displaying candidate page indicators, the candidate page indicators including an accessory display page indicator and / or a weapon selection page indicator; In response to an end operation of the first touch operation, determining a candidate page indicator corresponding to an end position of the end operation on the page selection window as a target page indicator, and displaying a display page corresponding to the target page indicator on the graphical user interface.
2. The method of claim 1, wherein the virtual weapon is a virtual weapon.
14. A virtual weapon processor including a first response unit and a second response unit, the first response unit is configured to display an accessory display page for the virtual weapon in the graphical user interface in response to a first touch operation on the virtual weapon in the virtual weapon attachment area, the accessory display page being used to display a plurality of candidate virtual weapon accessories that can be attached to the virtual weapon; The second response unit is configured to, in response to a second touch operation on the accessory display page, determine a target virtual weapon accessory selected by the second touch operation from the plurality of candidate virtual weapon accessories, and attach the target virtual weapon accessory to the virtual weapon.
10. A virtual weapon processing device comprising:
15. A computing device including a processor and a memory, the memory stores a plurality of instructions; The processor loads instructions from the memory to perform the steps of the virtual weapon processing method of any one of claims 1 to 13.
1. A computing device comprising:
16. Storing a plurality of instructions that are loaded by a processor to perform the steps of the virtual weapon processing method of any one of claims 1 to 13. A computer-readable storage medium comprising: