Virtual button control method, virtual button control device, computer program, and electronic device
By displaying virtual buttons in distinct states and using visual cues, the method addresses the intuitiveness issue of virtual buttons, improving interaction accuracy and user experience.
Patent Information
- Application Number
- JP2025517297
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-12
- Filing Date
- 2024-04-07
- Publication Date
- 2025-10-09
AI Technical Summary
The display of virtual buttons is not very intuitive, making it difficult for users to determine which button to use for specific interaction operations, especially in complex scenarios, leading to increased user error and reduced experience.
A method and device for controlling virtual buttons by displaying them in active-waiting, active-ready, and activated states, each corresponding to different interaction objects, with distinct visual cues and marks to indicate their functionality and status, allowing users to intuitively understand which button to use for specific interactions.
Improves the accuracy and intuitiveness of virtual button interactions by clearly indicating which button corresponds to which interaction object, reducing user errors and enhancing the overall user experience.
Smart Images

Figure 2025533757000001_ABST
Abstract
Description
[Technical Field]
[0001] This application claims priority from a Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on May 12, 2023, bearing application number 202310541399.3 and entitled "Method and device for displaying virtual buttons, as well as storage medium and electronic device," the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the computer field, and more particularly to a method and device for controlling a virtual button, as well as a storage medium and electronic device. [Background technology]
[0003] A virtual button (also called a virtual key) is a software simulation of a physical key on a mobile device such as a cell phone.
[0004] Virtual buttons are substitutes for physical keys, and are similar in usage to physical keys but lack an actual physical structure. They are implemented on the screen and various operations can be performed by touching the screen. When a user clicks a virtual button, the system triggers the corresponding operation or function and displays the corresponding response on the screen. For example, in some games, virtual buttons can be used to control the movement and attack actions of a game character. Summary of the Invention [Problem to be solved by the invention]
[0005] SUMMARY OF THE INVENTION To solve at least the technical problem that the display of virtual buttons is not very intuitive, the embodiments of the present application provide a method, an apparatus, a storage medium, and an electronic device for controlling virtual buttons. [Means for solving the problem]
[0006] In an embodiment of the present application, a method for controlling a virtual button is provided, the method including the steps of: displaying at least two virtual buttons in a virtual scene, each of the at least two virtual buttons being displayed in an active-waiting state (inactive state) or an active-ready state, each of the at least two virtual buttons being for triggering an interaction operation by a virtual character on an interaction object corresponding to the virtual button, where each of the at least two virtual buttons corresponds to a different interaction object; switching the virtual button in the active-waiting state to an active-ready state when an initial trigger condition corresponding to an interaction operation by the virtual character on the interaction object corresponding to the virtual button is satisfied; and switching the virtual button in the active-ready state to an activated state when a target trigger condition corresponding to an interaction operation by the virtual character on the interaction object corresponding to the virtual button is satisfied, and controlling the virtual character to perform an interaction operation on the interaction object corresponding to the virtual button.
[0007] In an embodiment of the present application, a virtual button control device is further provided, which includes: a first display unit for displaying at least two virtual buttons in a virtual scene, each of the at least two virtual buttons being displayed in an active-waiting mode or an active-ready mode, each of the at least two virtual buttons being for triggering an interaction operation by a virtual character on an interaction object corresponding to the virtual button, wherein each of the at least two virtual buttons corresponds to a different interaction object; a second display unit for switching the virtual button in the active-waiting mode to an active-ready mode when an initial trigger condition corresponding to an interaction operation by the virtual character on the interaction object corresponding to the virtual button is satisfied; and a third display unit for switching the virtual button in the active-ready mode to an activated mode and controlling the virtual character to perform an interaction operation on the interaction object corresponding to the virtual button when a target trigger condition corresponding to an interaction operation by the virtual character on the interaction object corresponding to the virtual button is satisfied when the virtual button in the active-ready mode is satisfied.
[0008] In an embodiment of the present application, there is further provided a computer program product or a computer program including computer instructions stored in a computer-readable storage medium, which are read by a processor of a computer device from the computer-readable storage medium, and which, when executed by the processor, causes the computer device to perform the virtual button control method as described above.
[0009] An embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the virtual button control method according to the computer program.
[0010] In an embodiment of the present application, there is further provided a computer-readable storage medium containing a program stored therein, which, when executed by an electronic device, causes the above-mentioned virtual button control method to be performed. [Brief explanation of the drawings]
[0011] [Figure 1] 1 is a schematic diagram of an application environment of a virtual button control method according to an embodiment of the present application; [Figure 2] 2 is a flow diagram of a virtual button control method according to an embodiment of the present application; [Figure 3] FIG. 2 is a schematic diagram of a virtual button control method according to an embodiment of the present application; [Figure 4] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 5] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 6] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 7] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 8] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 9] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 10] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 11] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 12] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 13] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 14] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 15]FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 16] FIG. 10 is a schematic diagram of another virtual button control method according to an embodiment of the present application; [Figure 17] FIG. 2 is a schematic diagram of a virtual button control device according to an embodiment of the present application. [Figure 18] 1 is a schematic diagram illustrating a configuration of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE INVENTION
[0012] In order to help those skilled in the art understand the present invention better, the present invention will be described in detail below with reference to the drawings of the present invention. It is clear that the described embodiments are only some of the embodiments of the present invention, and not all of the embodiments. All other embodiments that those skilled in the art can obtain from the embodiments of the present invention without creative efforts should fall within the scope of protection of the present invention.
[0013] It should be noted that terms such as "first," "second," and the like in the present specification, claims, and drawings are used to distinguish between similar objects and are not necessarily used to describe a particular order or priority. It should be understood that terms so used are interchangeable where appropriate, such that the embodiments of the present invention described herein may be practiced in orders other than those illustrated or described herein. Furthermore, the terms "comprise," "have," and any variations thereof are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to the explicitly listed steps or units, but may include other steps or units not explicitly listed or that are inherent to the process, method, product, or apparatus.
[0014] In some methods, operations are triggered by virtual buttons. In particular, in a scene where the type of operation to be triggered is complex (for example, an operation type that requires performing interaction operations with multiple interaction objects), it is difficult for a user to know which virtual button to use to perform an interaction operation on which interaction object, and it is even more difficult to know whether the current virtual button can perform an interaction operation on the interaction object. Furthermore, the difficulty of triggering an operation by virtual buttons increases, degrading the user's experience. This is because the display of the virtual buttons in these methods is not very intuitive.
[0015] The virtual button control method provided in the embodiment of the present application may be applied to, but is not limited to, the environment shown in Fig. 1 , where the environment may include, but is not limited to, a user device 102. The user device 102 may include, but is not limited to, a display 104, a processor 106, and a memory 108.
[0016] The specific process may include the following steps:
[0017] In steps S102 to S106, the user device 102, by the processor 106, displays at least two virtual buttons on the display 104, displays each of the at least two virtual buttons in an active waiting mode or an active ready mode, and when an initial trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to the virtual button is satisfied for a virtual button in the active waiting mode, switches the virtual button from the active waiting mode to an active ready mode, and when a target trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to the virtual button is satisfied for a virtual button in the active ready mode, switches the virtual button from the active ready mode to an activated mode, and controls the virtual character to perform an interaction operation on the interaction object corresponding to the virtual button.
[0018] 1, the user equipment 102 may include, but is not limited to, a mobile device (e.g., a mobile phone), a laptop, a tablet computer, a desktop computer, an in-vehicle device, a smart television, etc. This application does not limit the specific implementation of the user equipment 102.
[0019] In some embodiments, as shown in FIG. 2, a virtual button control method may be performed by an electronic device (e.g., the user device shown in FIG. 1). Specific steps include: a step S202 of displaying at least two virtual buttons in a virtual scene, wherein each of the at least two virtual buttons is displayed in an active waiting mode or an active ready mode, and each of the at least two virtual buttons is for triggering an interaction operation by a virtual character on an interaction object corresponding to the virtual button, and the interaction objects corresponding to each of the at least two virtual buttons are different; Step S204: switching a virtual button in an active waiting mode to an active ready mode when an initial trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to the virtual button is satisfied; and step S206, when a target trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to a virtual button in an active preparation form is satisfied, switching to a target virtual button in an activated form and controlling the virtual character to perform an interaction operation on an interaction object corresponding to the virtual button.
[0020] In some embodiments, the above-described virtual button control method may be applied to a virtual game, but is not limited thereto. For example, during the execution of a virtual game, a user controls a virtual character by using virtual buttons to perform interaction operations on each interaction object, and different shapes of the virtual buttons indicate which interaction object the user can currently perform an interaction operation on and whether the interaction operation has been successfully performed. For example, a virtual button in an active waiting mode indicates that the user cannot currently perform an interaction operation on the interaction object corresponding to the virtual button, a virtual button in an active ready mode indicates that the user can currently perform an interaction operation on the interaction object corresponding to the virtual button, and a virtual button in an activated mode indicates that the user is currently performing an interaction operation on the interaction object corresponding to the virtual button.
[0021] In some examples, the virtual character may be a virtual character controlled by a virtual button, such as, but not limited to, a first-person virtual character or a third-person virtual character. In some examples, the interaction object may be a virtual object that is permitted to trigger the execution of an interaction operation with the virtual character, such as, but not limited to, a virtual character, a virtual item, a virtual building, or the like.
[0022] In some embodiments, the interaction object may be, but is not limited to, a virtual object obtained by a virtual character performing a related operation. For example, a virtual character may activate a target item (interaction object) (related operation) and then perform a detonation operation (interaction operation) on the target item to detonate the target item and cause area damage. However, if the interaction object belongs to the example described in the above embodiment, the user must perform not only the activation operation (related operation) to activate the target item but also the interaction operation to detonate the target item, which further increases the probability of user error. In some scenes with higher time constraints, for example, after a virtual character activates or throws a target item, the virtual character must aim at the target item within a short predetermined time to successfully perform the interaction operation. In this case, the user needs to not only perform the activation operation to activate the target item, but also the interaction operation to aim at the target item and detonate it within a short period of time, which further increases the probability of user error and reduces the accuracy of the execution of the interaction operation.
[0023] In this embodiment, the trigger button for the interaction operation is set to a specific virtual button, and after the user performs the activation operation, the corresponding interaction operation can be quickly performed by the virtual button. This not only improves the execution efficiency of the interaction operation, but also reduces the probability of user erroneous operation after the activation operation and the interaction operation are decoupled, thereby improving the execution accuracy of the interaction operation.
[0024] In some embodiments, the virtual button is used to trigger an interaction operation by a virtual character on the corresponding interaction object, and each of the at least two virtual buttons corresponds to a different interaction object. Unlike the generic buttons, the virtual buttons in this embodiment correspond one-to-one to the interaction objects. That is, one virtual button may correspond to, but is not limited to, triggering an interaction operation of one or one type of interaction object. The generic button may correspond to, but is not limited to, triggering interaction operations of multiple or multiple types of interaction objects. Alternatively, in addition to interaction operations, the generic button can also be used to trigger other operations.
[0025] Further explanation will be given with an example. For example, the button "jump" is used to trigger the virtual character to perform a jumping operation. When the virtual character is located around any jumpable interaction object "wall," the button "jump" can also trigger the virtual character to jump over the interaction object "wall" (interaction operation). Furthermore, the button "jump" can be determined as a general-purpose button. The virtual button in this embodiment is used only to trigger the virtual character to jump over the interaction object "wall" (interaction operation), and does not necessarily need to be used to trigger other operations, but is not limited to this.
[0026] In addition, when the virtual character is not located around any jumpable interaction object "wall," the virtual button is displayed in an active waiting mode, and when the virtual character is located around any jumpable interaction object "wall," the virtual button is displayed in an active ready mode. Furthermore, by observing the display mode of the virtual button, the user can more intuitively know the execution status of the jumping-over operation.
[0027] In some embodiments, each virtual button of the at least two virtual buttons may be simultaneously displayed in different forms. For example, virtual button A of the at least two virtual buttons may be displayed in an active-waiting form, virtual button B of the at least two virtual buttons may be displayed in an active-ready form, and virtual button C of the at least two virtual buttons may be displayed in an activated form. Furthermore, to emphasize the differences between the different states, the active-waiting form, the active-ready form, and the activated form may be displayed in forms with significant differences in appearance, but this is not limiting. As shown in FIG. 3 , virtual button A of the at least two virtual buttons 302 may be displayed in an active-waiting form (solid white), virtual button B of the at least two virtual buttons 302 may be displayed in an active-ready form (light shading), and virtual button C of the at least two virtual buttons 302 may be displayed in an activated form (dark shading).
[0028] In some embodiments, the fact that the interaction objects corresponding to each virtual button among the at least two virtual buttons are different may be understood as, but is not limited to, one virtual button corresponding to one or one type of interaction object. As shown in Figure 4, virtual button A among the at least two virtual buttons 302 corresponds to interaction object A among interaction objects 402, virtual button B among the at least two virtual buttons 302 corresponds to interaction object B among interaction objects 402, and virtual button C among the at least two virtual buttons 302 corresponds to interaction object C among interaction objects 402.
[0029] In some embodiments, determining whether an initial trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to a virtual button is satisfied may be based on, but is not limited to, parameter information related to the virtual character, where the parameter information may include information related to the virtual character itself (e.g., an interaction item held by the virtual character) and relative information between the virtual character and the interaction object corresponding to the virtual button (e.g., a relative distance between the virtual character and the interaction object).
[0030] In some embodiments, determining whether a target trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to a virtual button is satisfied may be based on, but is not limited to, an associated operation on the virtual button in the active readiness state, such as a selection operation, a long press operation, a slide operation, a sound control operation, or an activation operation.
[0031] In addition, different virtual buttons are provided to trigger the virtual character's interaction with different interaction objects, thereby improving the accuracy of triggering the interaction operation by the virtual buttons. Furthermore, the representation methods of active waiting mode, active preparation mode, and activated mode are used to help the user determine which trigger stage of the interaction operation they are currently in, intuitively represent the virtual buttons in different trigger states, and further achieve the technical effect of improving the intuitiveness of the display of the virtual buttons.
[0032] An example will be further explained. For example, as shown in (a) of FIG. 5, at least two virtual buttons 502 are displayed in an active waiting state (painted pure white). Here, the at least two virtual buttons 502 are for triggering an interaction operation (e.g., an interaction operation 510 on the interaction object 506) by a virtual character 504 on an interaction object (e.g., an interaction object 506), and each of the at least two virtual buttons 502 corresponds to a different interaction object. For example, virtual button A, virtual button B, and virtual button C correspond to different interaction objects. Furthermore, as shown in (b) of FIG. 5, when an initial trigger condition corresponding to an interaction operation 510 on the interaction object 506 by the virtual character 504 is satisfied for a virtual button 508 in an active waiting state (virtual button C), the virtual button 508 is switched to an active preparation state (shaded in a light color). Here, the interaction object 506 is an interaction object corresponding to the virtual button 508. Furthermore, as shown in (c) of Fig. 5, when a target trigger condition corresponding to an interaction operation 510 by the virtual character 504 to the interaction object 506 is satisfied for the virtual button 508 in the activation preparation form, the virtual button 508 is switched to the activation completed form (dark shading) and the virtual character 504 is controlled to perform the interaction operation 510 to the interaction object 506.
[0033] In an embodiment provided herein, at least two virtual buttons are displayed in a virtual scene, each of which is displayed in an active waiting mode or an active ready mode, and each of the at least two virtual buttons is used to trigger an interaction operation by a virtual character on a corresponding interaction object, where the interaction objects corresponding to the at least two virtual buttons are different. For a virtual button in the active waiting mode, if an initial trigger condition corresponding to an interaction operation by a virtual character on the corresponding interaction object is satisfied, the virtual button is switched to an active ready mode. For a virtual button in the active ready mode, if a target trigger condition corresponding to an interaction operation by a virtual character on the corresponding interaction object is satisfied, the virtual button is switched to an activated mode, and the virtual character is controlled to perform an interaction operation on the corresponding interaction object. By providing different virtual buttons to trigger interaction operations by a virtual character on different interaction objects, the accuracy of triggering interaction operations by virtual buttons is improved. Furthermore, by using the representation methods of the active waiting mode, the active preparation mode, and the activated mode, the present invention helps the user determine which trigger stage of the interaction operation the user is currently in, and further achieves the objective of intuitively representing the virtual buttons in different trigger states, thereby achieving the technical effect of improving the intuitiveness of the display of the virtual buttons and solving the technical problem that the display of the virtual buttons is not very intuitive.
[0034] In some embodiments, the step of displaying at least two virtual buttons comprises: The method includes a step of displaying a first virtual button with a first mark and a second virtual button with a second mark, where the first mark is displayed on the first virtual button and the second mark is displayed on the second virtual button, the first mark is for indicating a first interaction object corresponding to the first virtual button, and the second mark is for indicating a second interaction object corresponding to the second virtual button.
[0035] In some embodiments, the marks are intended to indicate the interaction object corresponding to the virtual button, for example, mark A is intended to indicate that the virtual button corresponds to interaction object A, mark B is intended to indicate that the virtual button corresponds to interaction object B, and mark C is intended to indicate that the virtual button corresponds to interaction object C. As shown in FIG. 5 , the interaction object 506 corresponding to the virtual button 508 marked with mark C may be understood as, but is not limited to, interaction object C.
[0036] The marks can more intuitively indicate the correspondence between the virtual buttons and the interaction objects, further improving the intuitiveness of the display of the virtual buttons.
[0037] In the embodiment provided in the present application, a first virtual button and a second virtual button are displayed, a first mark is displayed on the first virtual button, and a second mark is displayed on the second virtual button, where the first mark is for indicating a first interaction object corresponding to the first virtual button, and the second mark is for indicating a second interaction object corresponding to the second virtual button, thereby achieving the purpose of more intuitively indicating the correspondence between the virtual buttons and the interaction objects through the marks, and achieving the technical effect of improving the intuitiveness of the display of the virtual buttons.
[0038] In some embodiments, the step of displaying a first virtual button with a first mark and a second virtual button with a second mark comprises: The method includes a step of displaying a first virtual button with the first mark before a second virtual button with the second mark if the display order corresponding to the first mark is before the display order corresponding to the second mark, wherein the display order of the first mark and the second mark is determined based on an ordering rule corresponding to the mark type to which the first mark and the second mark belong.
[0039] In some embodiments, marks capable of indicating a display order, such as Mark 1, Mark 2, and Mark 3, belong to number-type marks, and the display order corresponding to Mark 1, Mark 2, and Mark 3 may be determined according to an ordering rule from smallest to largest numbers. Also, for example, Mark A, Mark B, and Mark C belong to letter-type marks, and the display order corresponding to Mark A, Mark B, and Mark C may be determined according to an ordering rule of letters from front to back in the 26-letter alphabet. Also, for example, Mark Rat, Mark Ox, and Mark Tiger belong to zodiac-type marks, and the display order corresponding to Mark Rat, Mark Ox, and Mark Tiger may be determined according to an ordering rule of zodiac signs from front to back in the zodiac ranking table.
[0040] 6, a plurality of virtual buttons 602 (e.g., virtual button 2, virtual button 1, and virtual button 3, where the numbers indicate the marks attached to the virtual buttons) are displayed in order of the size of the numbers. For example, the virtual button 602 with mark 1 is displayed before the virtual button 602 with mark 2, and the virtual button 602 with mark 2 is displayed before the virtual button 602 with mark 3.
[0041] Although multiple virtual buttons corresponding to different interaction objects can improve the accuracy of triggering an interaction operation on an interaction object using the virtual buttons, too many virtual buttons can increase the difficulty for the user and the probability of incorrect operation, thereby reducing the accuracy of triggering an interaction operation on an interaction object using the virtual buttons. In this embodiment, the display of each virtual button is ordered by an ordered mark. Based on the arrangement order of the different virtual buttons, the user can know which virtual button will trigger which interaction operation. This also reduces the probability of incorrect operation and improves the accuracy of triggering an interaction operation on an interaction object using the virtual buttons.
[0042] In the embodiment provided in the present application, if the display order corresponding to the first mark is before the display order corresponding to the second mark, the first virtual button with the first mark will be displayed before the second virtual button with the second mark, thereby achieving the purpose of reducing the probability of erroneous operations and achieving the technical effect of improving the trigger accuracy when the virtual button triggers an interaction operation on the interaction object.
[0043] In some embodiments, the step of displaying a first virtual button with a first mark and a second virtual button with a second mark comprises: if the first interaction object and the second interaction object belong to the same object type, displaying a first virtual button with a first mark and a second virtual button with a first mark of a first format, the first format being for indicating the object types to which the first interaction object and the second interaction object belong; or If the first interaction object and the second interaction object are of different object types, the method includes the step of displaying a first virtual button in a second format with a first mark and a second virtual button in a third format with a second mark, the second format being for indicating the object type to which the first interaction object belongs, and the third format being for indicating the object type to which the second interaction object belongs.
[0044] In some embodiments, the format of a virtual button is intended to indicate the object type to which the interaction object corresponding to the virtual button belongs. For example, a virtual button of format A corresponds to an interaction object of object type A, a virtual button of format B corresponds to an interaction object of object type B, and a virtual button of format C corresponds to an interaction object of object type C. Here, the format may include, but is not limited to, color, shape, special effect, pattern, etc.
[0045] The relationship between the format and the mark may be understood as follows, but is not limited to: When the interaction objects are of a single object type, a mark can be used to indicate each interaction object. However, when the interaction objects are of multiple object types, using only the mark cannot intuitively express the object type to which each interaction object belongs. Moreover, when the number of interaction objects is large, different marks can cause memory difficulties for the user and are detrimental to the intuitive presentation of the virtual button. Furthermore, when the interaction objects are of multiple object types, combining the format and the mark can intuitively express the object type to which each interaction object belongs, and can display different marks for the same object type but the same mark for different object types. This reduces the number of redundant marks, further reduces memory difficulties for the user, and further improves the intuitive presentation of the virtual button.
[0046] 7, each virtual button among the plurality of virtual buttons 702 corresponds to a different interaction object among the plurality of interaction objects 704. For example, the virtual button 702 in blue format (color is indicated by text in the figure) marked with a mark 1 corresponds to the interaction object 1 of the building type, the virtual button 702 in blue format (color is indicated by text in the figure) marked with a mark 2 corresponds to the interaction object 2 of the building type, and the virtual button 702 in green format (color is indicated by text in the figure) marked with a mark 1 corresponds to the interaction object 1 of the item type.
[0047] In the embodiment provided in the present application, if the first interaction object and the second interaction object belong to the same object type, a first virtual button with a first mark in a first format and a second virtual button with a second mark in a first format are displayed, the first format is for indicating the object type to which the first interaction object and the second interaction object belong; or if the first interaction object and the second interaction object are different object types, a first virtual button with a first mark in a second format and a second virtual button with a second mark in a third format are displayed, the second format is for indicating the object type to which the first interaction object belongs, and the third format is for indicating the object type to which the second interaction object belongs. This achieves the objective of intuitively expressing the object type to which each interaction object belongs, and also reduces the number of redundant marks when the number of interaction objects is large, thereby reducing the difficulty for users to remember, and achieves the technical effect of improving the intuitiveness of the display of virtual buttons.
[0048] In some embodiments, if the first interaction object and the second interaction object belong to the same object type, a first virtual button of a first type with a first mark and a second virtual button of the first type with a second mark may be displayed in the same area.
[0049] In some embodiments, if the first interaction object and the second interaction object are different object types, a first virtual button of a second type with a first mark and a second virtual button of a third type with a second mark are displayed in different areas.
[0050] Although multiple virtual buttons corresponding to different interaction objects can improve the accuracy of triggering interaction operations on interaction objects using the virtual buttons, too many virtual buttons can increase the difficulty for users, increase the probability of incorrect operation, and reduce the accuracy of triggering interaction operations on interaction objects using the virtual buttons. In this embodiment, the virtual buttons are ordered in a centralized manner according to the same mark and / or format, making it easier for users to remember the trigger targets corresponding to each virtual button, i.e., the user can more easily know which interaction operations each virtual button will trigger. This also reduces the probability of incorrect operation and improves the accuracy of triggering interaction operations on interaction objects using the virtual buttons.
[0051] 8, a plurality of virtual buttons 802 (e.g., a blue-format virtual button 2, a blue-format virtual button 1, and a green-format virtual button 1, where the numbers indicate the marks on the virtual buttons) are ordered collectively according to their formats. For example, the blue-format virtual button 2 and the blue-format virtual button 1 are concentrated in the same area, and the green-format virtual button 1 is in another area.
[0052] In the embodiment provided in the present application, a first virtual button of a first type with a first mark and a second virtual button of the first type with a second mark are displayed in the same area, and a first virtual button of a second type with a first mark and a second virtual button of a third type with a second mark are displayed in different areas, thereby achieving the objective of reducing the probability of erroneous operations and achieving the technical effect of improving the trigger accuracy when triggering an interaction operation on an interaction object by a virtual button.
[0053] In some embodiments, before the step of switching to the virtual button in an activated form and controlling a virtual character to perform an interaction operation on an interaction object corresponding to the virtual button, the method further comprises: Step S1-1 of obtaining a first selection operation for the virtual button in the active preparation mode; The method further includes a step S1-2 of determining that a target trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to the virtual button is satisfied if a first activation operation on the virtual button in the active preparation mode is obtained after the first selection operation is obtained.
[0054] In some embodiments, the target trigger condition may be, but is not limited to, a restriction condition for the first selection operation of the virtual button. If the first selection operation is a click operation, the target trigger condition may include, but is not limited to, a first activation operation of the virtual button, the number of click operations performed on the virtual button, the click force of the click operation, the duration of the click operation, etc.
[0055] Further explanation will be given below with an example. For example, as shown in (c) of Fig. 5, when a selection operation on the virtual button 508 in the active preparation mode is acquired and then an activation operation on the virtual button 508 in the active preparation mode is acquired, the virtual button 508 in the activated mode is displayed.
[0056] In some embodiments, after the step of obtaining a first selection operation on the virtual button in the active readiness configuration, the method further comprises: Step S2-1: if the number of selectable interaction operations by the virtual character on the interaction object corresponding to the virtual button is two or more, generating and displaying a selectable interaction operation sub-interface, in which operation signs corresponding to each selectable interaction operation by the virtual character on the interaction object corresponding to the virtual button are displayed; a step S2-2 of acquiring a second selection operation for a target operation indicator displayed on the selectable interaction operation sub-interface, the target operation indicator being an operation indicator corresponding to a target selectable interaction operation by a virtual character on an interaction object corresponding to the virtual button; The method further includes step S2-3 of determining, when a second activation operation on the target operation marker is obtained, that a target trigger condition corresponding to an interaction operation by the virtual character on the interaction object corresponding to the virtual button is satisfied.
[0057] In some embodiments, a selectable interaction operation may be understood as, but is not limited to, an interaction operation by a virtual character on an interaction object corresponding to a virtual button, which can be triggered by the virtual button. For example, the virtual button can trigger interaction operation A, interaction operation B, and interaction operation C by the virtual character on the interaction object corresponding to the virtual button. Furthermore, when a first selection operation is obtained on the virtual button in the active ready mode, a selectable interaction operation sub-interface is displayed, and operation indicators for interaction operation A, interaction operation B, and interaction operation C are displayed in the selectable interaction operation sub-interface.
[0058] In some embodiments, the target trigger condition may be, but is not limited to, a restriction condition for a second selection operation on the target operation indicator. If the second selection operation is a click operation, the target trigger condition may include, but is not limited to, a second activation operation on the target operation indicator, the number of click operations on the target operation indicator, the click force of the click operation, the duration of the click operation, etc.
[0059] In some embodiments, controlling a virtual character to switch the virtual button to an activated form and perform an interaction operation on an interaction object corresponding to the virtual button comprises controlling a virtual character to switch the virtual button from an active-ready form to an activated form and perform a target-selectable interaction operation on an interaction object corresponding to the virtual button.
[0060] In some embodiments, to further improve the convenience of the selection operation, the first selection operation may be, but is not limited to, a long press operation. Furthermore, a selectable interaction operation sub-interface is generated and displayed during the long press operation. Furthermore, when the user changes the operation position of the long press operation, i.e., when the operation position of the long press operation is adjusted from the target virtual button to the target operation indicator displayed in the selectable interaction operation sub-interface, it can be determined that the second selection operation has been performed.
[0061] An example will be further explained. Based on the scene shown in Fig. 3, a long press operation (first selection operation) on the virtual button C is subsequently acquired, for example, as shown in Fig. 9, and a selectable interaction operation sub-interface 902 is generated and displayed. Here, the selectable interaction operation sub-interface 902 displays a plurality of operation markers, for example, operation marker C1, operation marker C2, and operation marker C3. It is further acquired that the operation position of the long press operation has been adjusted from the virtual button C to the operation marker C3 displayed on the selectable interaction operation sub-interface 902, and it is further determined that a second selection operation on the operation marker C3 has been acquired.
[0062] In some embodiments, to further improve the convenience of the selection operation, the first selection operation may be, but is not limited to, a long press operation. Furthermore, a selectable interaction operation sub-interface is displayed during the long press operation. Furthermore, the user can change the operation direction of the long press operation to correspond to the operation marker displayed in the selectable interaction operation sub-interface. When a slide operation is acquired during the long press operation, the slide direction of the slide operation is determined. It is assumed that the operation markers displayed in the selectable interaction operation sub-interface are previously associated with different slide directions. For example, operation marker A is associated with the upward direction, and operation marker B is associated with the downward direction. Furthermore, if the slide direction is upward, operation marker A is determined as the target operation marker.
[0063] In addition, considering that the number of interaction operations by the virtual character to the interaction object corresponding to the virtual button that can be triggered by the virtual button may not be unique, if only one selection operation is adopted, the user may not know which interaction operation has been selected and executed. Furthermore, this embodiment provides selectable items for multiple selection operations to help the user know which interaction operation has been selected and executed.
[0064] In the embodiment provided herein, after obtaining a first selection operation on a virtual button in an active preparation mode, if the number of selectable interaction operations by the virtual character on the interaction object corresponding to the virtual button is two or more, a selectable interaction operation sub-interface is generated and displayed. Here, the selectable interaction operation sub-interface displays operation indicators corresponding to each selectable interaction operation by the virtual character on the interaction object corresponding to the virtual button. A second selection operation is obtained on a target operation indicator displayed on the selectable interaction operation sub-interface. Here, the target operation indicator is an operation indicator corresponding to the target selectable interaction operation by the virtual character on the interaction object corresponding to the virtual button. If a second trigger operation on the target operation indicator is obtained, it is determined that a target trigger condition corresponding to the interaction operation by the virtual character on the interaction object corresponding to the virtual button is satisfied. The virtual button is switched to an activated mode, and the virtual character is controlled to perform a target selectable interaction operation on the interaction object corresponding to the virtual button. This achieves the purpose of knowing which interaction operation has been selected and performed, and achieves the technical effect of improving trigger accuracy when performing an interaction operation via a virtual button.
[0065] In some embodiments, after the step of switching to the virtual button in an activated form and controlling a virtual character to perform an interaction operation on an interaction object corresponding to the virtual button, the method further comprises: The method further includes the step of removing the virtual button and the interaction object corresponding to the virtual button displayed in the virtual scene.
[0066] In order to improve the intuitiveness of the display of the interface UI (design), after switching to the virtual button in an activated form and controlling the virtual character to perform an interaction operation on the interaction object corresponding to the virtual button, redundant UI elements in the interface (the virtual button and the interaction object corresponding to the virtual button) are erased, and the virtual button for which an interaction operation has not been triggered and the interaction object for which an interaction operation has not been performed are retained.
[0067] In the embodiments provided in the present application, by eliminating the virtual button displayed in the virtual scene and the interaction object corresponding to the virtual button, the purpose of eliminating redundant UI elements in the interface can be achieved, and the technical effect of improving the intuitiveness of the display of the interface UI is realized.
[0068] In some embodiments, before the step of removing the virtual button and the interaction object corresponding to the virtual button displayed in the virtual scene, the method further comprises: displaying a first special effect on the virtual button in an activated state, the first special effect being for providing feedback on an interaction operation by a virtual character on an interaction object corresponding to the virtual button; Alternatively, the method may further include at least one of the following steps: a step of displaying a second special effect on the interaction object corresponding to the virtual button, the second special effect being for presenting the activation state (which may be indicated by activation progress) of the interaction object corresponding to the virtual button.
[0069] In some embodiments, after activating a virtual button and instructing a virtual character to perform an interaction operation with an interaction object corresponding to the virtual button, a first special effect is displayed on the activated virtual button and a second special effect is displayed on the interaction object corresponding to the virtual button, in order to improve the intuitiveness of the operation experience when performing the interaction operation, wherein the display time of the first special effect / second special effect may be, but is not limited to, positively correlated with the execution time of the interaction operation between the virtual character and the interaction object corresponding to the virtual button.
[0070] In addition, in order to help users know the relevant information of the interaction operation, a first special effect is adopted to feedback the interaction operation of the virtual character on the interaction object corresponding to the virtual button, and in addition, in order to let users know the relevant expression of the interaction object corresponding to the virtual button after the interaction operation is performed, a second special effect is adopted to present the user with the activation state of the interaction object corresponding to the virtual button, further improving the user experience.
[0071] In the embodiment provided herein, a first special effect is displayed on the virtual button in an activated state, where the first special effect is for providing feedback on an interaction operation by a virtual character on an interaction object corresponding to the virtual button. A second special effect is displayed on the interaction object corresponding to the virtual button, where the second special effect is for presenting the activation state of the interaction object corresponding to the virtual button. This achieves the purpose of knowing information related to the interaction operation and the related expression of the interaction object corresponding to the virtual button after the interaction operation is performed, and achieves the technical effect of improving the user experience.
[0072] In some embodiments, the step of displaying at least two virtual buttons includes a step of displaying at least two virtual buttons in a predetermined area, wherein the position of each virtual button among the at least two virtual buttons in the predetermined area is centered according to the center of the predetermined area.
[0073] In some embodiments, the center of a predetermined region may be understood as, but is not limited to, the center point of the predetermined region or the center line of the predetermined region, which may be divided into the center line of the predetermined region in the vertical direction, the center line of the predetermined region in the horizontal direction, or the center line of the predetermined region in another direction.
[0074] After the step of removing the virtual button and the interaction object corresponding to the virtual button displayed in the virtual scene, the method further comprises: Step S3-1: obtaining new position information by centering the at least two virtual buttons that are still displayed according to the center of the predetermined area; The method further includes a step S3-2 of displaying the still-displayed virtual button in the predetermined area according to the new position information.
[0075] In some embodiments, based on the scene shown in Fig. 3 , as shown in Fig. 10 , a plurality of virtual buttons 302 are placed within a predetermined area 1002. Here, each virtual button among the plurality of virtual buttons 302 is arranged according to the center of the predetermined area 1002. The center of the predetermined area 1002 may be understood as, but is not limited to, the center point of the predetermined area 1002 or the center line of the predetermined area 1002. The center line of the predetermined area 1002 may be divided into a center line in the vertical direction of the predetermined area 1002, a center line in the horizontal direction of the predetermined area 1002, or a center line in another direction of the predetermined area 1002.
[0076] Furthermore, erasing a virtual button displayed in a virtual scene leaves a vacant position for the virtual button, which lacks rationality in its placement. Furthermore, the user may habitually click on the vacant position to trigger the original interaction operation, which may lead to an erroneous operation. To avoid the problem of the user not adapting to the current position of the virtual button due to the erasure of the displayed virtual button, this embodiment erases the displayed virtual button and its corresponding interaction object, then obtains new position information by centering the still-displayed virtual button among the at least two virtual buttons according to the center of the predetermined area, and then displays the still-displayed virtual button in the predetermined area according to the new position information.
[0077] 3, as shown in Fig. 11, after the display of virtual button B among the plurality of virtual buttons 302 is cancelled, the positions of virtual buttons A and C are rearranged to fill the vacant space of virtual button B.
[0078] In the embodiment provided herein, at least two virtual buttons are displayed in a predetermined area, where each of the at least two virtual buttons in the predetermined area is positioned in a centered position according to the center of the predetermined area. New position information is obtained by centering the virtual buttons still displayed among the at least two virtual buttons according to the center of the predetermined area. The still displayed virtual buttons are displayed in the predetermined area according to the new position information. This achieves the purpose of avoiding the problem of users not adapting to the current positions of the virtual buttons due to the removal of the virtual buttons displayed in the virtual scene, and achieves the technical effect of improving the rationality of the arrangement of the virtual button positions.
[0079] In the embodiment provided in the present application, at least two virtual buttons are displayed in a predetermined area, and the positions of each of the at least two virtual buttons in the predetermined area are centered according to the center of the predetermined area, thereby achieving the technical effect of improving the rationality of the arrangement of the virtual button positions.
[0080] In some embodiments, prior to the step of switching the virtual button into an active ready configuration, the method further comprises: determining that an initial trigger condition is met if a distance between a virtual character and an interaction object corresponding to the virtual button is less than or equal to a first predetermined threshold; Alternatively, determining that the initial trigger condition is met when the number of obstacles between the virtual character and the interaction object corresponding to the virtual button is less than one, or when the number of obstacles between the virtual character and the interaction object corresponding to the virtual button does not satisfy an occlusion condition; Alternatively, determining that an initial trigger condition is met if a virtual character has an interaction trigger item associated with an interaction object corresponding to the virtual button; Alternatively, determining that an initial trigger condition is met when a virtual character is in an interaction trigger state associated with an interaction object corresponding to the virtual button; Alternatively, determining that the initial trigger condition is met if the target attribute value of the virtual character is greater than or equal to a second predetermined threshold associated with the interaction object corresponding to the virtual button.
[0081] In some embodiments, as shown in FIG. 5(a), there is an obstacle between the interaction object 506 and the virtual character 504, and furthermore, the virtual button C corresponding to the interaction object 506 is still in the active waiting state.
[0082] In some embodiments, during the execution of some virtual tasks, methods such as, but not limited to, interaction trigger items, interaction trigger states, and target attribute values may be required to trigger interaction operations on interaction objects and further complete the virtual tasks.
[0083] In some embodiments, before the step of displaying at least two virtual buttons, the method further includes the step of displaying at least one generic button, the generic button being for triggering at least two types of operations, the at least two types of operations including an interaction operation by a virtual character on an interaction object in the virtual scene; The step of displaying at least two virtual buttons includes the step of displaying at least two virtual buttons in the virtual scene in response to the virtual button activation request, and prohibiting the generic button from triggering an interaction operation by the virtual character on an interaction object in the virtual scene; After the step of displaying at least two virtual buttons, the method further includes the step of, in response to a virtual button closure request, erasing the at least two virtual buttons displayed in the virtual scene and allowing the generic button to trigger an interaction operation by the virtual character on an interaction object in the virtual scene.
[0084] Considering the differences in user operation levels and habits, for example, users with a high operation level are accustomed to using virtual buttons to improve the accuracy of executing interaction operations, but for some users who are not highly accustomed to using general-purpose buttons, the use of virtual buttons may actually reduce the operation efficiency of such users. Furthermore, to improve the flexibility of triggering the virtual buttons, a prohibition / permission method is provided to allow users to selectively use the virtual buttons.
[0085] In the embodiment provided in the present application, in response to a virtual button activation request, at least two virtual buttons are displayed in the virtual scene, and the generic buttons are prohibited from triggering an interaction operation by a virtual character to an interaction object in the virtual scene; in response to a virtual button closure request, at least two virtual buttons displayed in the virtual scene are removed, and the generic buttons are permitted to trigger an interaction operation by a virtual character to an interaction object in the virtual scene, thereby achieving the purpose of selectively providing users with the use of virtual buttons through the prohibition / permission method and improving the flexibility of triggering virtual buttons.
[0086] In some embodiments, for ease of understanding, the above-described virtual button control method is applied to a virtual game scene. In this embodiment, the persistent interaction button (virtual button) is used to quickly interact with multiple objects (interaction objects) in the scene (interaction operation). Interactive objects in the scene are arranged and displayed in an operation hot zone, which makes it convenient for virtual game players to quickly interact with the objects.
[0087] In some implementations, when there are multiple interaction objects of only one type, as shown in FIG. 12 , the purple ovals are the interaction objects, and if an interaction object is behind a wall, interaction is disabled and only the UI (Interaction Object 1) is displayed. The interaction objects in the scene are annotated in the UI in the order they were placed, and the interaction buttons are also arranged down the screen from left to right in the order the interaction objects were placed, e.g., Interaction Button 1, Interaction Button 2, Interaction Button 3. The interaction objects have a one-to-one correspondence with the interaction buttons. If an interaction object meets the interaction enablement conditions, the corresponding (interaction) button is lit. If an interaction object is behind a wall and does not meet the interaction enablement conditions, the corresponding (interaction) button is grayed out. When the player clicks an (interaction) button, the corresponding interaction object lights up, helping the player confirm whether the object to be interacted with is correct. As shown in FIG. 13, clicking button 3 lights up the purple interaction object 3. When triggered, the interaction button uses a dynamic effect to represent the object's activation state. The player can obtain the state of the interaction object even if the interaction object is out of the player's field of view. For example, but not limited to, button 3 shown in FIG. 13 may be understood to light up when triggered.
[0088] In some embodiments, when there are multiple interaction objects of multiple types, colors are used to distinguish between the object types in addition to the numerical annotation. As shown in FIG. 14, there are two interaction objects annotated with the number 1, and they are distinguished by the colors purple and red. Also, interaction buttons of the same type of interaction object are placed together and aligned horizontally in the order in which they were placed. This makes it easier for players to quickly determine the location of the interaction object they want to trigger.
[0089] In some embodiments, when an interaction object has multiple interaction methods, a slide selection trigger method is added to the interaction button. The corresponding selection content is displayed on the screen in the form of a roulette (also called a virtual joystick). Based on the scene shown in FIG. 13, as shown in FIG. 15, the display of the roulette is subsequently triggered by pressing Button 3. The roulette displays selectable interaction operation options related to the interaction object 3. This is convenient for players to quickly select the trigger method for the interaction object when there are multiple objects in the scene and the objects have multiple interaction methods. For example, performing a downward sliding operation on Button 3 triggers the selection operation of the selectable interaction operation option A that matches the downward direction.
[0090] In addition, by placing the interaction buttons of interactable objects in the scene at the bottom of the screen, multiple interaction buttons can be displayed simultaneously, and interaction objects can be categorized by icon and color. Players can complete interactions with just one operation, which is advantageous for players to quickly complete interactions with objects during tense battles.
[0091] Further explanation will be given with an example. For example, as shown in Figure 16, the specific steps are as follows:
[0092] In step 1, it is first determined whether there is an object in the scene that meets the interaction conditions. If there is, it proceeds to step 2; if not, it proceeds to step 3. To determine whether an object is interactable, it must be determined based on the constraints of the actual object type. First, it is determined whether the object is within the interaction range in the field of view. Next, since there are objects that cannot be interacted with because they are separated by walls, it is also necessary to determine whether the object is obstructed by a building.
[0093] In step 2, the corresponding interaction button lights up, and the process proceeds to step 4. The corresponding interaction button controls the activation of the object in the scene. When the player places an object in the scene, a corresponding UI icon and number are displayed above the object according to the type of object displayed, and a corresponding interaction button is generated at the bottom of the screen. The content displayed on the interaction button includes the object's icon, a description of the operation, and the same number as the object being displayed. Different types of objects in the scene use different colored scene icons, and objects of the same type are numbered in the order they were placed. Corresponding interaction buttons use the same color and number, and interaction buttons for objects of the same type are arranged together. The interaction buttons for all objects are arranged in a row and are centered overall.
[0094] In step 3, the interaction buttons are grayed out. As shown in Figure 15, Object 1 is placed behind a wall, but it is an object that cannot be interacted with through the wall, so both the object UI and the interaction buttons are presented in a grayed-out state.
[0095] In step 4, the player holds down the lit interaction button and proceeds to step 5.
[0096] In step 5, it is determined whether the selected object has multiple interaction methods. If the object has multiple interaction methods, proceed to step 6. If the object does not have multiple interaction methods, proceed to step 7.
[0097] In step 6, the pressed interaction button and the object UI in the scene are both displayed as selected, the roulette is expanded, and the annotation numbers are hidden. Multiple interaction methods are presented on the roulette according to the number of interaction methods of the object, and the process proceeds to step 8.
[0098] In step 7, if it is determined that the object has only one interaction method, both the pressed interaction button and the object UI in the scene are represented as selected. When you release your hand (i.e., activate the selected interaction button), proceed to step 11.
[0099] In step 8, it is determined whether the player has slid the ball into the roulette area. If the player has not slid the ball into the roulette area, the player releases the hand and the process proceeds to step 9. If the player has slid the ball into the roulette area, the process proceeds to step 10.
[0100] In step 9, you release your hand to cancel the object interaction and the object UI and interaction buttons return to normal.
[0101] In step 10, the selected interaction method is displayed as a selected state, and the player releases his / her hand and proceeds to step 11. The roulette and the sliding direction and distance of the interaction button correspond to each other, i.e., if the player slides the button up while holding it down, the interaction method above the roulette is selected.
[0102] In step 11, the hand is released to complete the object interaction and determine whether the object generates persistent feedback, i.e., whether the feedback is instantaneous or has a duration. If the feedback is persistent, proceed to step 12. If the feedback is not persistent, proceed to step 13.
[0103] In step 12, a persistent dynamic effect is displayed on the interaction button, and its duration is maintained to match the object activation time. Once the object activation is complete, proceed to step 13.
[0104] In step 13, once the object activation is complete, the object UI and corresponding interaction buttons disappear, and the spacing between the remaining interaction buttons below is adjusted to self-adaptively center the buttons overall.
[0105] Some configurations require players to expend a lot of time and energy. Particularly in FPS games with character skills, the combat rhythm is fast, and if a player wastes too much time on auxiliary combat operations, they are likely to be defeated by the enemy and feel a strong sense of defeat. According to the embodiments provided herein, in games in which a player activates multiple types of interactable objects, the object operation is simplified to one step, thereby solving the problem of complex operations when players interact with objects. This allows players to quickly activate auxiliary skills during combat, improving the effectiveness of skill activation and combat fluency.
[0106] As can be understood, in specific embodiments of the present application, with respect to relevant data such as user information, user permission or consent is required to apply the above examples of the present application to specific products or technologies, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries or regions.
[0107] Although the above-described method embodiments are expressed as a combination of a series of operations for ease of explanation, those skilled in the art should understand that the present application is not limited by the order of operations described, since some steps may be performed in other orders or simultaneously. Next, those skilled in the art should also understand that the operations and modules according to the embodiments described in the specification are not necessarily required for the present application.
[0108] The present application further provides a virtual button control device for implementing the above virtual button control method. As shown in Figure 17, the device includes: a first display unit 1702 for displaying at least two virtual buttons in a virtual scene, wherein each of the at least two virtual buttons is displayed in an active waiting mode or an active ready mode, and each of the at least two virtual buttons is for triggering an interaction operation by a virtual character on an interaction object corresponding to the virtual button, and the interaction objects corresponding to each of the at least two virtual buttons are different; and a second display unit 1704 for switching a virtual button in an active-waiting mode to an active-ready mode when an initial trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to the virtual button is satisfied; and a third display unit 1706, which, when a target trigger condition corresponding to an interaction operation by a virtual character to an interaction object corresponding to a virtual button in an active preparation form is satisfied, switches to the virtual button in an activated form and controls the virtual character to perform an interaction operation on the interaction object corresponding to the virtual button.
[0109] For a specific example, please refer to the example of the virtual button control method described above, and the description of this example will be omitted here.
[0110] In an embodiment of the present application, an electronic device for implementing the above-described virtual button control method is also provided. The electronic device may be, but is not limited to, the user equipment 102 shown in FIG. 1. In this embodiment, the electronic device is the user equipment 102. As shown in FIG. 18 , the electronic device includes a memory 1802 and a processor 1804. A computer program is stored in the memory 1802, and the processor 1804 is configured to execute the steps of any one of the above-described method embodiments in accordance with the computer program.
[0111] In some embodiments, the electronic device may be located on at least one network device of a plurality of network devices of a computer network.
[0112] In some embodiments, the processor is configured by a computer program to: a step S1 of displaying at least two virtual buttons in a virtual scene, wherein each of the at least two virtual buttons is displayed in an active waiting mode or an active ready mode, and each of the at least two virtual buttons is for triggering an interaction operation by a virtual character on an interaction object corresponding to the virtual button, and the interaction objects corresponding to each of the at least two virtual buttons are different; a step S2 of switching a virtual button in an active waiting mode to an active ready mode when an initial trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to the virtual button is satisfied; and step S3 of switching to an activated virtual button and controlling the virtual character to perform an interaction operation on the interaction object corresponding to the virtual button when a target trigger condition corresponding to an interaction operation by the virtual character on the interaction object corresponding to the virtual button in the activated preparation form is satisfied.
[0113] As will be appreciated by those skilled in the art, the configuration shown in Figure 18 is merely schematic, and Figure 18 is not intended to limit the configuration of the electronic devices. For example, the electronic devices may include more or fewer components (e.g., network interfaces, etc.) than those shown in Figure 18, or may be arranged differently than those shown in Figure 18.
[0114] The memory 1802 can be used to store software programs and modules, such as program instructions / modules corresponding to the virtual button control method and device of the present embodiment. The processor 1804 executes the software programs and modules stored in the memory 1802 to perform various functional applications and data processing, i.e., to implement the virtual button control method. The memory 1802 may include high-speed random access memory or non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1802 may further include memory located remotely from the processor 1804, which can be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, a corporate intranet, a local area network, a mobile communication network, and combinations thereof. The memory 1802 may be used to store information such as, but not limited to, virtual buttons, interaction objects, and interaction operations. 18, the memory 1802 may include, but is not limited to, a first display unit 1702, a second display unit 1704, and a third display unit 1706 in the virtual button control device. The memory 1802 may also include, but is not limited to, other module units in the virtual button control device, and the description thereof will be omitted in this example.
[0115] In some embodiments, the transmission device 1806 transmits and receives data over a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1806 includes a network interface controller (NIC) that can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network. In one example, the transmission device 1806 is a radio frequency (RF) module used to communicate with the Internet wirelessly.
[0116] The electronic device further includes a display 1808 that displays information such as the virtual buttons, interaction objects, and interaction operations, and a connection bus 1810 that connects the modular components of the electronic device.
[0117] In another embodiment, the user device or server may be a node of a distributed system. Here, the distributed system may be a blockchain system. The blockchain system may be a distributed system in which multiple nodes are connected in the form of network communication. Here, the nodes may form a peer-to-peer (P2P) network, and any type of computing device, for example, a server, user device, or other electronic device, may become a node of the blockchain system by joining the peer-to-peer network.
[0118] In some embodiments of the present application, a computer program product is provided that includes computer programs / instructions, which include program code for performing the methods illustrated in the flowcharts. In such embodiments, the computer program may be downloaded and installed from a network via a communication unit and / or installed from a removable medium. When executed by a central processing unit, the computer program performs various functions provided in the embodiments of the present application.
[0119] The numbers of the above-mentioned embodiments of the present application are for illustrative purposes only and do not indicate the superiority or inferiority of the embodiments.
[0120] It should be noted that the computer system of the electronic device is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
[0121] The computer system includes a central processing unit (CPU), which can perform various appropriate operations and processes based on programs stored in a read-only memory (ROM) or programs loaded from a storage unit into a random access memory (RAM). The random access memory also stores various programs and data necessary for system operation. The central processing unit, read-only memory, and random access memory are connected to one another via a bus. An input / output interface (I / O interface) is also connected to the bus.
[0122] The input / output interface is connected to an input unit including a keyboard, a mouse, etc., an output unit including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, a storage unit including a hard disk, etc., and a communication unit including, for example, a network interface card such as a local area network card or a modem. The communication unit performs communication processing via a network such as the Internet. A driver is also connected to the input / output interface as needed. For example, removable media such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory may be attached to the driver as needed so that a computer program read from the removable media is installed in the storage unit as needed.
[0123] In particular, according to embodiments of the present application, the steps illustrated in the flowcharts of each method may be implemented as a computer software program. For example, embodiments of the present application include a computer program product including a computer program stored on a computer-readable medium, the computer program including program code for executing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from a network via a communication unit and / or installed from a removable medium. When executed by a central processing unit, the computer program causes the system of the present application to perform various functions defined therein.
[0124] In an embodiment of the present application, a computer-readable storage medium is further provided, wherein a processor of the computer device reads the computer instructions from the computer-readable storage medium, and when the processor executes the computer instructions, causes the computer device to perform the methods provided in the various implementations above.
[0125] In some embodiments, the computer-readable storage medium comprises: a step S1 of displaying at least two virtual buttons in a virtual scene, wherein each of the at least two virtual buttons is displayed in an active waiting mode or an active ready mode, and each of the at least two virtual buttons is for triggering an interaction operation by a virtual character on an interaction object corresponding to the virtual button, and the interaction objects corresponding to each of the at least two virtual buttons are different; a step S2 of switching a virtual button in an active waiting mode to an active ready mode when an initial trigger condition corresponding to an interaction operation by a virtual character on an interaction object corresponding to the virtual button is satisfied; and step S3 of controlling the virtual character to switch to the virtual button in an activated form and perform an interaction operation on the interaction object corresponding to the virtual button when a target trigger condition corresponding to an interaction operation by the virtual character on the interaction object corresponding to the virtual button in an activated form is satisfied.
[0126] In some embodiments, as can be understood by those skilled in the art, all or part of the steps of each method in the above embodiments may be executed by instructing relevant hardware of an electronic device through a program. The program may be stored in a computer-readable storage medium. The storage medium may include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, etc.
[0127] The numbers of the above-mentioned embodiments of the present application are for illustrative purposes only and do not indicate the superiority or inferiority of the embodiments.
[0128] The integrated units in the above embodiments may be realized in the form of a software functional unit and stored in the above computer-readable storage medium when sold or used as an independent product. Based on this understanding, the configurations of the present application may essentially, in other words, the portion contributing to the prior art, or all or part of the configurations, be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application.
[0129] In the above embodiments of the present application, the description of each embodiment has its own focus, and for the parts not described in detail in one embodiment, reference can be made to the relevant descriptions of other embodiments.
[0130] In some embodiments provided herein, it should be understood that the displayed user equipment may be implemented in other ways. The above-described device embodiments are merely schematic. For example, the division of the units is merely a logical division of functions, and actual implementation may involve other divisions. For example, multiple units or components may be combined or incorporated into other systems, or some features may be ignored or not implemented. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be via some interfaces, and the indirect couplings or communication connections of units or modules may be electrical or other forms.
[0131] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple units on a network. Depending on actual needs, some or all of the units may be selected to achieve the objectives of the invention according to this embodiment.
[0132] Furthermore, the functional units in each embodiment of the present application may be integrated into one processing unit, each unit may exist as a separate physical unit, or two or more units may be integrated into one unit. The above-mentioned integrated units may be realized in the form of hardware or in the form of a software functional unit.
[0133] The above is only a preferred embodiment of the present application. It should be noted that those skilled in the art can make some improvements and modifications without departing from the principle of the present application. These improvements and modifications should also be considered as part of the protection scope of the present application.
Claims
1. A virtual button control method executed by an electronic device, comprising: displaying at least two virtual buttons in a virtual scene, each of the at least two virtual buttons being displayed in an active waiting mode or an active ready mode, each of the at least two virtual buttons being for triggering an interaction operation by a virtual character on an interaction object corresponding to the virtual button, and each of the at least two virtual buttons being a different interaction object; When an initial trigger condition corresponding to an interaction operation by the virtual character on an interaction object corresponding to the virtual button is satisfied for the virtual button in the active waiting mode, switching the virtual button to the active ready mode; When a target trigger condition corresponding to an interaction operation by the virtual character to an interaction object corresponding to a virtual button in an active preparation mode is satisfied, switching to the virtual button in an activated mode and controlling the virtual character to perform an interaction operation on the interaction object corresponding to the virtual button, How to control virtual buttons.
2. The step of displaying at least two virtual buttons comprises: displaying a first virtual button and a second virtual button, wherein a first mark is displayed on the first virtual button and a second mark is displayed on the second virtual button, the first mark is for indicating a first interaction object corresponding to the first virtual button, and the second mark is for indicating a second interaction object corresponding to the second virtual button; The method for controlling a virtual button according to claim 1 .
3. The step of displaying a first virtual button and a second virtual button comprises: displaying the first virtual button with the first mark before the second virtual button with the second mark if the display order corresponding to the first mark is before the display order corresponding to the second mark, wherein the display order of the first mark and the second mark is determined based on an ordering rule corresponding to a mark type to which the first mark and the second mark belong; The method for controlling a virtual button according to claim 2 .
4. The step of displaying a first virtual button and a second virtual button comprises: or if the first interaction object and the second interaction object belong to the same object type, displaying the first virtual button in a first format and the second virtual button in the first format, the first format being for indicating the object types to which the first interaction object and the second interaction object belong; if the first interaction object and the second interaction object are of different object types, displaying the first virtual button in a second format and the second virtual button in a third format, the second format being for indicating the object type to which the first interaction object belongs, and the third format being for indicating the object type to which the second interaction object belongs; The method for controlling a virtual button according to claim 2 .
5. If the first interaction object and the second interaction object belong to the same object type, displaying the first virtual button of the first type and the second virtual button of the first type in the same area; When the first interaction object and the second interaction object are of different object types, the first virtual button of the second format and the second virtual button of the third format are displayed in different areas. The method for controlling a virtual button according to claim 4.
6. before the step of switching to the virtual button in an activated state and controlling the virtual character to perform an interaction operation on an interaction object corresponding to the virtual button; obtaining a first selection operation for the virtual button in an active ready configuration; and determining that the target trigger condition is satisfied when a first activation operation for the virtual button in an active ready form is obtained after the first selection operation is obtained. The method for controlling a virtual button according to claim 1 .
7. After the step of obtaining a first selection operation for the virtual button in the active ready form, a step of generating and displaying a selectable interaction operation sub-interface when the number of selectable interaction operations by the virtual character on the interaction object corresponding to the virtual button is two or more, in which an operation sign corresponding to each selectable interaction operation by the virtual character on the interaction object corresponding to the virtual button is displayed on the selectable interaction operation sub-interface; a step of acquiring a second selection operation for a target operation marker among the operation markers, the target operation marker being an operation marker corresponding to a target selectable interaction operation by the virtual character on an interaction object corresponding to the virtual button; and determining that the target trigger condition is satisfied when a second activation operation on the target operation indicator is acquired after the second selection operation is acquired. the step of switching the virtual button to an activated state and controlling the virtual character to perform an interaction operation on an interaction object corresponding to the virtual button includes the step of switching the virtual button to an activated state and controlling the virtual character to perform the target selectable interaction operation on an interaction object corresponding to the virtual button; The method for controlling a virtual button according to claim 6.
8. After the step of switching to the virtual button in an activated state and controlling the virtual character to perform an interaction operation on an interaction object corresponding to the virtual button, and further comprising the step of removing the virtual button and the interaction object corresponding to the virtual button displayed in the virtual scene. The method for controlling a virtual button according to claim 1 .
9. before the step of erasing the virtual button and the interaction object corresponding to the virtual button displayed in the virtual scene, displaying a first special effect on the virtual button in an activated state, the first special effect being for providing feedback on an interaction operation by the virtual character on an interaction object corresponding to the virtual button; and a step of displaying a second special effect on the interaction object corresponding to the virtual button, the second special effect being for presenting an activation state of the interaction object corresponding to the virtual button. The method for controlling a virtual button according to claim 8.
10. The step of displaying at least two virtual buttons comprises: a step of displaying the at least two virtual buttons in a predetermined area, wherein a position of each of the at least two virtual buttons in the predetermined area is a position that is centered according to a center of the predetermined area; The method for controlling a virtual button according to claim 8.
11. The step of displaying at least two virtual buttons comprises: a step of displaying the at least two virtual buttons in a predetermined area, wherein a position of each of the at least two virtual buttons in the predetermined area is a center-aligned position according to a center of the predetermined area; After the step of erasing the virtual button displayed in the virtual scene and the interaction object corresponding to the virtual button, the virtual button control method includes: obtaining new position information by centering the still-displayed virtual button among the at least two virtual buttons according to the center of the predetermined area; and displaying the still-displayed virtual button in the predetermined area according to the new position information. The method for controlling a virtual button according to claim 1 .
12. before the step of switching the virtual button into an active ready configuration, determining that the initial trigger condition is met if a distance between the virtual character and an interaction object corresponding to the virtual button is less than or equal to a first predetermined threshold; determining that the initial trigger condition is met when the number of obstacles between the virtual character and the interaction object corresponding to the virtual button is less than one or the obstacles between the virtual character and the interaction object corresponding to the virtual button do not satisfy an occlusion condition; determining that the initial trigger condition is met if the virtual character has an interaction trigger item associated with an interaction object corresponding to the virtual button; determining that the initial trigger condition is met when the virtual character is in an interaction trigger state associated with an interaction object corresponding to the virtual button; determining that the initial trigger condition is met if a target attribute value of the virtual character is greater than or equal to a second predetermined threshold associated with an interaction object corresponding to the virtual button. The method for controlling a virtual button according to claim 1 .
13. before the step of displaying at least two virtual buttons, displaying at least one generic button, the generic button being for triggering at least two types of operations, the at least two types of operations including an interaction operation by the virtual character to an interaction object in a virtual scene; the step of displaying at least two virtual buttons includes the step of displaying the at least two virtual buttons in response to a virtual button activation request, and prohibiting the generic button from triggering an interaction operation by the virtual character to an interaction object; After the step of displaying at least two virtual buttons, the virtual button control method further includes the step of erasing the at least two virtual buttons displayed in the virtual scene in response to a virtual button closure request, and allowing the generic button to trigger an interaction operation on an interaction object by the virtual character. The method for controlling a virtual button according to claim 1 .
14. A control device for virtual buttons, comprising: a first display unit that displays at least two virtual buttons in a virtual scene, each of the at least two virtual buttons being displayed in an active waiting mode or an active ready mode, each of the at least two virtual buttons being for triggering an interaction operation by a virtual character on an interaction object corresponding to the virtual button, and each of the at least two virtual buttons being a different interaction object; a second display unit for switching a virtual button in an active waiting mode to an active ready mode when an initial trigger condition corresponding to an interaction operation by the virtual character on an interaction object corresponding to the virtual button is satisfied; a third display unit for controlling the virtual character to switch to the virtual button in an activated state and perform an interaction operation on the interaction object corresponding to the virtual button when a target trigger condition corresponding to an interaction operation by the virtual character on the interaction object corresponding to the virtual button is satisfied for the virtual button in an activated state; Virtual button control device.
15. A computer program causing a computer to execute the virtual button control method according to any one of claims 1 to 13.
16. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the virtual button control method according to any one of claims 1 to 13 using the computer program.
Citation Information
Patent Citations
Display control method and device for game
CN109589605A
Game program and game device
JP2017109071A