CN113986079A - Virtual button setting method and device, storage medium and electronic equipment - Google Patents

Virtual button setting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113986079A
CN113986079A CN202111267023.5A CN202111267023A CN113986079A CN 113986079 A CN113986079 A CN 113986079A CN 202111267023 A CN202111267023 A CN 202111267023A CN 113986079 A CN113986079 A CN 113986079A
Authority
CN
China
Prior art keywords
target
button
virtual
virtual button
layout
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111267023.5A
Other languages
Chinese (zh)
Other versions
CN113986079B (en
Inventor
李泽言
黄立
岳漪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202111267023.5A priority Critical patent/CN113986079B/en
Publication of CN113986079A publication Critical patent/CN113986079A/en
Application granted granted Critical
Publication of CN113986079B publication Critical patent/CN113986079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Abstract

The invention discloses a method and a device for setting a virtual button, a storage medium and electronic equipment. Wherein, the method comprises the following steps: the method comprises the steps of displaying a group of virtual buttons which are allowed to be set in a button custom layout interface, responding to a selection operation performed on a target virtual button, selecting the target virtual button in the group of virtual buttons, and displaying a target adjusting panel adjacent to the target virtual button in the button custom layout interface, wherein the target adjusting panel is used for adjusting display parameters of the target virtual button, responding to a moving operation performed on the target virtual button, moving the target virtual button to a target display position, and displaying the target adjusting panel adjacent to the target virtual button located on the target display position in the button custom layout interface. The invention solves the technical problem of low setting efficiency of the virtual button.

Description

Virtual button setting method and device, storage medium and electronic equipment
Technical Field
The invention relates to the field of computers, in particular to a method and a device for setting a virtual button, a storage medium and electronic equipment.
Background
In a display picture of an application program, a custom layout setting (hereinafter referred to as a key setting) of a virtual button is a setting option for setting the virtual button, and provides a user with a basic function of customizing parameters of the virtual button.
For example, in the setting process of the virtual button, a setting panel for setting the parameters of the virtual button is too large, occupies a large part of a display interface, and has certain shielding to a setting area, and because the setting panel generally continuously displays at a fixed position, continuous shielding can be caused to the setting area, when a user needs to configure the shielding area, the user can only manually input the parameters for setting, and the setting can not be effectively carried out on the area based on the observed key layout, thereby leading to the technical problem that the setting mode efficiency of the virtual button is lower.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for setting a virtual button, a storage medium and electronic equipment, and aims to at least solve the technical problem of low setting efficiency of the virtual button.
According to an aspect of an embodiment of the present invention, there is provided a method for setting a virtual button, including: displaying a set of virtual buttons that are allowed to be set in a button custom layout interface; in response to the selection operation performed on the target virtual button, selecting the target virtual button in the group of virtual buttons, and displaying a target adjusting panel adjacent to the target virtual button in the button custom layout interface, wherein the target adjusting panel is used for adjusting the display parameter of the target virtual button; in response to the moving operation performed on the target virtual button, moving the target virtual button to a target display position, and displaying the target adjusting panel adjacent to the target virtual button located on the target display position in the button custom layout interface.
According to another aspect of the embodiments of the present invention, there is also provided a setting apparatus of a virtual button, including: the display module is used for displaying a group of virtual buttons which are allowed to be set in the button custom layout interface; the selection module is used for responding to selection operation executed on the target virtual button, selecting the target virtual button from the group of virtual buttons, and displaying a target adjusting panel adjacent to the target virtual button in a button custom layout interface, wherein the target adjusting panel is used for adjusting display parameters of the target virtual button; and the processing module is used for responding to the movement operation executed on the target virtual button, moving the target virtual button to the target display position, and displaying the target adjusting panel adjacent to the target virtual button positioned on the target display position in the button custom layout interface.
Optionally, the apparatus is further configured to: hiding the target adjustment panel in the process of moving the target virtual button to the target display position; the device is used for displaying the target adjusting panel adjacent to the target virtual button positioned on the target display position in the button custom layout interface in the following modes: when the target virtual button moves to the target display position, displaying the target adjusting panel adjacent to the target virtual button on the target display position in the button custom layout interface.
Optionally, the apparatus is further configured to: acquiring a first adjustment operation on the target adjustment panel, wherein the first adjustment operation is used for adjusting the size of the target virtual button to a target size; in response to the first adjustment operation, adjusting the size of the target virtual button to the target size, and displaying the target adjustment panel adjacent to the target virtual button having the size of the target size in the button custom layout interface.
Optionally, the apparatus is further configured to: acquiring a second adjusting operation on the target adjusting panel, wherein the second adjusting operation is used for increasing the transparency of the target virtual button to the first transparency; in response to the second adjustment operation, increasing the transparency of the target virtual button to the first transparency and increasing the transparency of the target adjustment panel; or acquiring a third adjusting operation on the target adjusting panel, wherein the third adjusting operation is used for reducing the transparency of the target virtual button to a second transparency; in response to the third adjustment operation, decreasing the transparency of the target virtual button to the second transparency and decreasing the transparency of the target adjustment panel.
Optionally, the apparatus is further configured to: after a target adjusting panel adjacent to the target virtual button is displayed in the button custom layout interface, setting the target adjusting panel to be in a hidden state in response to a first interactive operation for hiding the target adjusting panel; hiding the target adjustment panel in the process of moving the target virtual button to the target display position; the device is used for displaying the target adjusting panel adjacent to the target virtual button positioned on the target display position in the button custom layout interface in the following modes: after the target virtual button is moved to the target display position, in response to a second interactive operation for displaying the target adjustment panel, displaying the target adjustment panel adjacent to the target virtual button located on the target display position in the button custom layout interface.
Optionally, the apparatus is further configured to: displaying a cancel virtual button and a redo virtual button in the button custom layout interface, wherein the cancel virtual button is used for canceling the setting operation executed for the last time on the group of virtual buttons, and the redo virtual button is used for redoing the setting operation cancelled for the last time on the cancel button; when a third interactive operation performed on the cancel virtual button is acquired, and the setting operation performed on the group of virtual buttons for the last time is a first setting operation performed on a first virtual button in the group of virtual buttons, canceling the first setting operation performed on the first virtual button in response to the third interactive operation, wherein the first setting operation is used for adjusting the display parameter of the first virtual button or adjusting the display position of the first virtual button; when a fourth interactive operation performed on the redo virtual button is acquired, and the setting operation that the undo button undoes last time is a second setting operation performed on a second virtual button in the group of virtual buttons, redoing the second setting operation performed on the second virtual button in response to the fourth interactive operation, wherein the second setting operation is used for adjusting the display parameters of the second virtual button or adjusting the display position of the second virtual button.
Optionally, the apparatus is configured to display a set of virtual buttons in the button custom layout interface that are allowed to be set by: displaying the set of virtual buttons in the target layout template in the button custom layout interface in response to a selection operation for selecting the target layout template, wherein the layout of the set of virtual buttons in the target layout template is used for allowing the set of virtual buttons to be operated by a target number of fingers, and the target number is greater than 2.
Optionally, the apparatus is configured to display the set of virtual buttons in the target layout template in the button custom layout interface by: when the target layout template is a three-finger layout template, displaying the group of virtual buttons in the three-finger layout template in the button custom layout interface, wherein the layout of the group of virtual buttons in the three-finger layout template is used for allowing the group of virtual buttons to be operated by 3 fingers; or when the target layout template is a four-finger layout template, displaying the group of virtual buttons in the four-finger layout template in the button custom layout interface, wherein the layout of the group of virtual buttons in the four-finger layout template is used for allowing the group of virtual buttons to be operated by 4 fingers.
Optionally, the apparatus is configured to display the set of virtual buttons in the three-finger layout template in the button custom layout interface when the target layout template is a three-finger layout template by: when the target layout template is a three-finger layout template, displaying the set of virtual buttons in the three-finger layout template in the button custom layout interface, wherein the layout of the set of virtual buttons in the three-finger layout template is used for allowing the set of virtual buttons to be operated by 3 fingers, and the 3 fingers comprise: left thumb, right thumb and right index finger, or, the 3 digits include: left thumb, right thumb and left index finger.
Optionally, the apparatus is configured to display the set of virtual buttons in the four-finger layout template in the button custom layout interface when the target layout template is a four-finger layout template by: when the target layout template is a four-finger layout template, displaying the set of virtual buttons in the four-finger layout template in the button custom layout interface, wherein the layout of the set of virtual buttons in the four-finger layout template is used for allowing the set of virtual buttons to be operated by 4 fingers, and the 4 fingers comprise: left thumb, right thumb, left index finger and right index finger.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-mentioned setting method of the virtual button when running.
According to yet another aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the setting method of the virtual button as above.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, the memory having a computer program stored therein, the processor being configured to execute the above-mentioned method for setting a virtual button by the computer program.
In the embodiment of the invention, a group of virtual buttons which are allowed to be set is displayed in a button custom layout interface; in response to a selection operation performed on the target virtual button, selecting the target virtual button among a set of virtual buttons, and displays a target adjustment panel adjacent to the target virtual button in the button custom layout interface, moves the target virtual button to a target display position in response to a moving operation performed on the target virtual button, and displaying a target adjustment panel adjacent to the target virtual button located at the target display position in the button custom layout interface, by selecting the target virtual button and displaying the target adjusting panel and the target virtual button adjacently, the aim of avoiding overlarge display of the target adjusting panel caused by the fact that the target adjusting panel needs to be marked is achieved, therefore, the technical effects of reducing the display area of the target adjusting panel and improving the setting efficiency of the virtual button are achieved, and the technical problem that the setting efficiency of the virtual button is low is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a diagram illustrating an application environment of an alternative virtual button setting method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 12 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 13 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 14 is a diagram illustrating an alternative method for setting virtual buttons according to an embodiment of the present invention;
FIG. 15 is a schematic structural diagram of an alternative virtual button setting apparatus according to an embodiment of the present invention;
FIG. 16 is a schematic diagram of an alternative virtual button setup product according to an embodiment of the present invention;
fig. 17 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial nouns or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
a mobile terminal: generally referred to as the handset side, including but not limited to all handheld portable game devices.
Shooting game: including, but not limited to, first person shooter games, third person shooter games, and the like, all games that use hot arms to conduct remote attacks.
Setting the custom layout of the keys: in the shooting game of the mobile terminal, the setting function of self-defining the key position, size, transparency and other parameters is provided for users.
A First-person shooting application (FPS) belongs to a branch of an Action Game (ACT), and as the name suggests, the First-person perspective shooting application is a shooting application that shoots at the subjective perspective of an operator.
A Third person shooter application (TPS), also a type of shooter application, differs from the first person shooter application in that the operator-controlled virtual control object is visible in the application display interface.
The invention is illustrated below with reference to examples:
according to an aspect of the embodiment of the present invention, a setting method of a virtual button is provided, and optionally, in the embodiment, the setting method of the virtual button may be applied to a hardware environment formed by a server 101 and a terminal device 103 as shown in fig. 1. As shown in fig. 1, a server 101 is connected to a terminal 103 via a network, and may be used to provide services for the terminal or applications installed on the terminal, such as video applications, instant messaging applications, browser applications, educational applications, game applications, and the like. The database 105 may be provided on or separate from the server for providing data storage services for the server 101, such as a game data storage server, and the network may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other wireless communication enabled networks, terminal device 103 may be an application configured terminal, and may include, but is not limited to, at least one of: the server may be a single server, or a server cluster composed of a plurality of servers, or a cloud server.
As shown in fig. 1, the method for setting the virtual button may be implemented in the terminal device 103 by the following steps:
s1, displaying a set of virtual buttons allowed to be set in the button custom layout interface on the terminal device 103;
s2, responding to the selection operation executed on the target virtual button on the terminal device 103, selecting the target virtual button from the group of virtual buttons, and displaying a target adjusting panel adjacent to the target virtual button in the button custom layout interface, wherein the target adjusting panel is used for adjusting the display parameters of the target virtual button;
s3, in response to the moving operation performed on the target virtual button, moving the target virtual button to the target display position on the terminal device 103, and displaying a target adjustment panel adjacent to the target virtual button located on the target display position in the button custom layout interface.
Optionally, in this embodiment, the setting method of the virtual button may also be implemented by a server, for example, implemented in the server 101 shown in fig. 1; or by both the user terminal and the server.
The above is merely an example, and the present embodiment is not particularly limited.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for setting the virtual button includes:
s202, displaying a group of virtual buttons allowed to be set in a button custom layout interface;
s204, responding to the selection operation executed on the target virtual button, selecting the target virtual button from the group of virtual buttons, and displaying a target adjusting panel adjacent to the target virtual button in a button custom layout interface, wherein the target adjusting panel is used for adjusting the display parameter of the target virtual button;
s206, responding to the moving operation executed on the target virtual button, moving the target virtual button to the target display position, and displaying the target adjusting panel adjacent to the target virtual button on the target display position in the button custom layout interface.
Alternatively, in this embodiment, the setting method of the virtual button may be applied to a shooting game application installed on a computer device such as a Mobile phone (e.g., an Android Mobile phone, an iOS Mobile phone, etc.), a notebook computer, a tablet computer, a palmtop computer, an MID (Mobile Internet Devices), a PAD, a desktop computer, a smart television, etc., and the target shooting game application includes a first-person shooting game application, a third-person shooting game application, a shooting game application capable of switching between a first person and a third person, etc., where fig. 3 is a schematic diagram of a setting method of a virtual button according to an embodiment of the present invention, as shown in fig. 3, the application display interface may be divided into a first-person display interface 301 and a third-person display interface 303, and includes but is not limited to a display interface for switching between a first person and a third person by using a viewing angle switching key, a first virtual prop controlled by a first virtual operation object may be displayed in a target game application utilizing an environment as shown in fig. 3.
Optionally, in this embodiment, the type of the game application may include, but is not limited to, at least one of the following: two-dimensional (2D) game applications, Three-dimensional (3D) game applications, Virtual Reality (VR) game applications, Augmented Reality (AR) game applications, Mixed Reality (MR) game applications.
Optionally, in this embodiment, the application scenario of the control method for the virtual character may include, but is not limited to, target game applications in various application scenarios such as medical treatment, finance, credit investigation, banking, government affairs, energy, education, security, building, game, traffic, internet of things, industry, and the like.
Optionally, in this embodiment, the button custom layout interface may include, but is not limited to, a setting interface preset by the system for setting the virtual buttons.
For example, fig. 4 is a schematic diagram of another setting method of virtual buttons according to an embodiment of the present invention, as shown in fig. 4, in the process of setting parameters of a conventional virtual button, a setting interface is generally displayed to configure a corresponding virtual button in the setting interface, a tuning panel 402 is included in the setting interface, whether the tuning panel 402 displays display parameters that are not necessarily associated with whether a virtual button is selected, even if the virtual button is not selected, a global virtual button is displayed here, and the display area occupies a game screen that is too large, which may affect a user to observe the overall layout of the virtual buttons in the current game screen, whereas in the present application, a target virtual button 404 is selected from a group of virtual buttons by responding to a selection operation performed on the target virtual button 404, and a target tuning panel 406 adjacent to the target virtual button is displayed in a button custom layout interface, as can be seen from fig. 4, the virtual buttons 408 are shielded by the adjustment panel 402 in the prior art, and the virtual buttons 408 can be normally displayed in the present application, so that the user can conveniently perform the layout of the virtual keys as required, because a certain distance exists between each virtual key in the process of configuring the virtual keys to avoid mistaken touch, at this time, in the process of setting the virtual keys, the gap between each virtual key can be effectively utilized, so as to maximize the utilization of the whole area displayed in the game screen.
In addition, to the direction button of adjustment virtual button position, prior art also shows in adjusting panel, can further increase adjusting panel's display area, has just also further increased adjusting panel and has sheltered from the area of recreation picture, and in this application, has carried out the relation with the virtual button with the direction button, can reduce the content that adjusting panel needs to show, has further reduced adjusting panel's display area to the user sets up virtual button through more succinct recreation interface.
Optionally, in this embodiment, the selection operation may include, but is not limited to, a click, a slide, a long press, a double click, and one or more combined interaction manners such as voice input and gesture input.
Optionally, in this embodiment, the selecting the target virtual button may be understood as determining that the target virtual button is a virtual button to be set from a group of virtual buttons that are allowed to be set, and then adjusting the display parameter of the target virtual button through the target adjustment panel.
Optionally, in this embodiment, the displaying of the target adjustment panel adjacent to the target virtual button in the button custom layout interface may include, but is not limited to, moving the target adjustment panel adjacent to the target virtual button located at the target display position or controlling the target adjustment panel to move along with the target virtual button.
It should be noted that, the moving the target adjustment panel to be adjacent to the target virtual button located at the target display position may include, but is not limited to, the target adjustment panel and the target virtual button being always adjacent before and after the target virtual button moves, for example, the distance between the target adjustment panel and the target virtual button is not changed. The movement of the control target adjustment panel following the target virtual button may include, but is not limited to, the target adjustment panel and the target virtual button being always adjacent before and after the target virtual button moves, for example, the distance and the relative position relationship between the target adjustment panel and the target virtual button are not changed, and the distance is less than or equal to a preset threshold.
Optionally, in this embodiment, the shape of the target adjustment panel may include, but is not limited to, a flexible setting according to actual needs, and specifically, may be a circle or a rectangle, and the transparency may also be a flexible setting, for example, a setting of full transparency, semi-transparency, and non-transparency, and may be any transparency.
Fig. 5 is a schematic diagram of another setting method of a virtual button according to an embodiment of the present invention, and as shown in fig. 5, the setting method of the virtual button may include, but is not limited to, the following flows:
s1, displaying a button custom layout interface and a group of virtual buttons (the virtual buttons 502, 504 and the like);
s2, in response to the selection operation (gesture operation in fig. 5, clicking the virtual button 502) performed on the virtual button 502, selecting the virtual button 502 as the above-mentioned target virtual button in a group of virtual buttons, and displaying a target adjustment panel (panel 506 shown in fig. 5) adjacent to the virtual button 502 in the button custom layout interface;
s3, in response to the moving operation performed on the virtual button 502 (gesture operation in fig. 5, clicking the left shift button on the left side of the virtual button 502), the virtual button 502 is moved to the target display position, and the target adjustment panel (panel 508 shown in fig. 5) adjacent to the target virtual button located on the target display position is displayed in the button custom layout interface.
The above is merely an example, and the present embodiment is not limited in any way.
Optionally, in this embodiment, the display parameters may include, but are not limited to, size, shape, transparency, contrast, display position, display icon, and other parameters of the virtual button.
Optionally, in this embodiment, the moving operation may include, but is not limited to, an interactive operation such as dragging and sliding, and may further include, but is not limited to, directly inputting a coordinate value to move the target virtual button, where the target display position is a position where the target virtual button is located after the user directly inputs the target display position or the user stops moving the target virtual button.
For example, the display of the manipulation target adjustment panel is moved to the virtual button, and the target adjustment panel is displayed when the virtual button is clicked. It can be seen that the shielding area of the target adjusting panel to the operation area is obviously reduced, the target adjusting panel is automatically hidden when the button is pressed to move, and the target adjusting panel is displayed again after the hand is loosened.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment, a group of virtual buttons which are allowed to be set is displayed in a button custom layout interface; in response to a selection operation performed on the target virtual button, selecting the target virtual button among a set of virtual buttons, and displays a target adjustment panel adjacent to the target virtual button in the button custom layout interface, moves the target virtual button to a target display position in response to a moving operation performed on the target virtual button, and displaying a target adjustment panel adjacent to the target virtual button located at the target display position in the button custom layout interface, by selecting the target virtual button and displaying the target adjusting panel and the target virtual button adjacently, the aim of avoiding overlarge display of the target adjusting panel caused by the fact that the target adjusting panel needs to be marked is achieved, therefore, the technical effects of reducing the display area of the target adjusting panel and improving the setting efficiency of the virtual button are achieved, and the technical problem that the setting efficiency of the virtual button is low is solved.
As an alternative to this, it is possible to,
the method further comprises the following steps: hiding the target adjusting panel in the process of moving the target virtual button to the target display position;
displaying a target adjustment panel adjacent to a target virtual button located at a target display location in a button custom layout interface, comprising: and when the target virtual button moves to the target display position, displaying a target adjusting panel adjacent to the target virtual button positioned on the target display position in the button custom layout interface.
Optionally, in this embodiment, the target adjustment panel may be hidden all the time during the movement of the target virtual button, and after the movement of the target virtual button is finished, the target adjustment panel may be displayed again.
Fig. 6 is a schematic diagram of another setting method of a virtual button according to an embodiment of the present invention, and as shown in fig. 6, the setting method of the virtual button may include, but is not limited to, the following:
s1, selecting a virtual button 602 in the button custom layout interface, and moving the virtual button 602 to the left;
s2, hiding the panel 604 during the moving process of the target virtual button;
s3, when the target virtual button moves to the target display position, the adjustment panel 606 adjacent to the target virtual button located at the target display position is displayed in the button custom layout interface.
The above is merely an example, and the present embodiment is not limited in any way.
Optionally, in this embodiment, the moving of the target virtual button to the target display position may include, but is not limited to, detecting that the interaction for controlling the movement of the target virtual button has ended, for example, taking the example that the interaction for controlling the movement of the target virtual button is a drag, when the user holds down the virtual button 602, the virtual button 602 starts to move, and when the user releases the virtual button 602, the virtual button 602 is considered to reach the target display position.
As an optional solution, the method further includes:
acquiring a first adjustment operation on a target adjustment panel, wherein the first adjustment operation is used for adjusting the size of a target virtual button to a target size;
in response to the first adjustment operation, adjusting the size of the target virtual button to a target size, and displaying a target adjustment panel adjacent to the target virtual button having the size of the target size in the button custom layout interface.
Optionally, in this embodiment, the first adjusting operation may include, but is not limited to, a user directly inputting a numerical value of the target size, or a user performing an interactive operation with an interactive object for adjusting the size of the target virtual button, and the first adjusting operation may include, but is not limited to, clicking, dragging, double-clicking, and the like.
For example, fig. 7 is a schematic diagram of another setting method of a virtual button according to an embodiment of the present invention, and as shown in fig. 7, the setting method of the virtual button may include, but is not limited to, the following:
s1, clicking the control 704 for adjusting the size of the virtual button 706 in the adjustment panel 702 and dragging to the right to the target size (70%);
s2, after the size of the virtual button 706 is adjusted to the virtual button 708, the adjustment panel 702 is displayed adjacent to the virtual button 708.
The above is merely an example, and the present embodiment is not limited in any way.
As an optional solution, the method further comprises:
acquiring a second adjusting operation on the target adjusting panel, wherein the second adjusting operation is used for increasing the transparency of the target virtual button to the first transparency; in response to the second adjustment operation, increasing the transparency of the target virtual button to the first transparency and increasing the transparency of the target adjustment panel; or
Acquiring a third adjusting operation on the target adjusting panel, wherein the third adjusting operation is used for reducing the transparency of the target virtual button to a second transparency; in response to the third adjustment operation, the transparency of the target virtual button is decreased to the second transparency, and the transparency of the target adjustment panel is decreased.
Optionally, in this embodiment, the second or third adjusting operation may include, but is not limited to, a user directly inputting a numerical value of the second or third transparency, or a user performing an interactive operation with an interactive object for adjusting the transparency of the target virtual button, and the second or third adjusting operation may include, but is not limited to, clicking, dragging, double-clicking, and the like.
For example, fig. 8 is a schematic diagram of another setting method of a virtual button according to an embodiment of the present invention, and as shown in fig. 8, the setting method of the virtual button may include, but is not limited to, the following:
s1, clicking the control 804 for adjusting the transparency of the virtual button 806 in the dashboard 802, and dragging to the left to a second transparency (15%) or to the right to a third transparency (80%);
s2, after the transparency of the virtual button 806 is adjusted to the virtual button 808 or the virtual button 810, the adjustment panel 802 is displayed adjacent to the virtual button 808 or the virtual button 810.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative to this, it is possible to,
after displaying the target adjustment panel adjacent to the target virtual button in the button custom layout interface, the method further comprises: setting the target adjustment panel to a hidden state in response to a first interactive operation for hiding the target adjustment panel; hiding the target adjusting panel in the process of moving the target virtual button to the target display position;
displaying a target adjustment panel adjacent to a target virtual button located at a target display location in a button custom layout interface, comprising: after the target virtual button is moved to the target display position, a target adjustment panel adjacent to the target virtual button located at the target display position is displayed in the button custom layout interface in response to a second interactive operation for displaying the target adjustment panel.
Optionally, in this embodiment, the first interactive operation may include, but is not limited to, performing a touch action on a control for setting the target adjustment panel in the hidden state, for example, clicking the control, double clicking the control, and the like. The second interactive operation may include, but is not limited to, ending of the interactive operation for controlling the movement of the target virtual button, for example, when the target virtual control is pressed to move the display position of the virtual control, releasing the target virtual control is one of the expressions of the second interactive operation, and when the target virtual control is released, a target adjustment panel adjacent to the target virtual button located in the target display position is displayed in the button custom layout interface.
For example, fig. 9 is a schematic diagram of another setting method of a virtual button according to an embodiment of the present invention, and as shown in fig. 9, the setting method of the virtual button may include, but is not limited to, the following:
s1, clicking a hidden button in the button custom layout interface;
s2, hiding the panel 902 during the movement of dragging the virtual button 904;
s3, when the virtual button 904 is moved to the target display position as the virtual button 906, the adjustment panel 902 adjacent to the virtual button 906 located on the target display position is displayed in the button custom layout interface.
The above is merely an example, and the present embodiment is not limited in any way.
As an optional solution, the method further includes:
displaying a cancel virtual button and a redo virtual button in a button custom layout interface, wherein the cancel virtual button is used for canceling the setting operation executed for the last time on a group of virtual buttons, and the redo virtual button is used for redoing the setting operation cancelled for the last time on the cancel button;
when third interactive operation performed on a cancel virtual button is acquired, and the setting operation performed on a group of virtual buttons for the last time is a first setting operation performed on a first virtual button in the group of virtual buttons, canceling the first setting operation performed on the first virtual button in response to the third interactive operation, wherein the first setting operation is used for adjusting the display parameters of the first virtual button or adjusting the display position of the first virtual button;
and when a fourth interactive operation performed on the redo virtual button is acquired, and the setting operation that the undo button undoes last time is a second setting operation performed on a second virtual button in the group of virtual buttons, redoing the second setting operation performed on the second virtual button in response to the fourth interactive operation, wherein the second setting operation is used for adjusting the display parameters of the second virtual button or adjusting the display position of the second virtual button.
Alternatively, in this embodiment, the undo virtual button is used to undo the last setting operation performed on a group of virtual buttons, and the redo virtual button is used to redo the last undone setting operation of the undo virtual button, for example, when a user adjusts the display parameter of the virtual button from a first parameter value to a second parameter value, and then from the second parameter value to a third parameter value, the third parameter value is adjusted to the second parameter value in response to a third interactive operation performed on the undo virtual button, when the user performs the third interactive operation on the undo virtual button again, the second parameter value is adjusted to the first parameter value, at this time, in response to a fourth interactive operation performed on the redo virtual button, the first parameter value is adjusted to the second parameter value, when the fourth interactive operation is performed on the redo virtual button again, and adjusting the second parameter value to a third parameter value.
For example, fig. 10 is a schematic diagram of another setting method of a virtual button according to an embodiment of the present invention, and as shown in fig. 10, the setting method of the virtual button may include, but is not limited to, the following:
s1, dragging the virtual button 1004 to the left in the button custom layout interface (corresponding to the aforementioned first setting operation);
s2, when the virtual button 1004 is dragged to move to the target display position, displaying the panel 1002, wherein the panel 1002 includes a cancel button and a redo button;
s3, in response to the third interactive operation performed on the cancel button, canceling the first setting operation and displaying the panel 1002 and the virtual button 1004 again as the position before dragging;
s4, in response to the fourth interactive operation performed on the redo button, re-performing the above-described first setting operation (corresponding to the above-described second setting operation), re-displaying the panel 1002 and the virtual button 1004 as the position after the dragging.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, the button custom layout interface displays a set of virtual buttons that are allowed to be set, including:
and in response to the selection operation for selecting the target layout template, displaying a group of virtual buttons in the target layout template in the button custom layout interface, wherein the layout of the group of virtual buttons in the target layout template is used for allowing the group of virtual buttons to be operated by fingers of a target number, and the target number is greater than 2.
Optionally, in this embodiment, the target layout templates may include, but are not limited to, layout templates preset by a system or stored by a user in a cloud, and the layout templates may be distinguished according to the target number, for example, 3 target layout templates may be set, which are a 2-finger template, a 3-finger template, and a 4-finger template, respectively.
It should be noted that each target layout template corresponds to one or more target numbers, and the one target number may also correspond to one or more target layout templates, in other words, for example, two target layout templates may be set for the 2-finger template, or the target layout template a may be set for 2-finger operation or 3-finger operation.
For example, fig. 11 is a schematic diagram of still another setting method of virtual buttons according to an embodiment of the present invention, and as shown in fig. 11, in response to a selection operation for selecting layout 2, a group of virtual buttons in layout 2 is displayed in a button custom layout interface, where the layout of the group of virtual buttons in layout 2 is used to allow the group of virtual buttons to be operated by 3 fingers.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, displaying a set of virtual buttons in the target layout template in the button custom layout interface includes:
when the target layout template is a three-finger layout template, displaying a group of virtual buttons in the three-finger layout template in a button custom layout interface, wherein the layout of the group of virtual buttons in the three-finger layout template is used for allowing the group of virtual buttons to be operated by 3 fingers; or
And when the target layout template is the four-finger layout template, displaying a group of virtual buttons in the four-finger layout template in a button custom layout interface, wherein the layout of the group of virtual buttons in the four-finger layout template is used for allowing the group of virtual buttons to be operated by 4 fingers.
Optionally, in this embodiment, the target layout template is a three-finger layout template, which may be understood as allowing 3 virtual buttons to be touched simultaneously in the game process, and the target layout template is a four-finger layout template, which may be understood as allowing 4 virtual buttons to be touched simultaneously in the game process.
As an optional scheme, when the target layout template is a three-finger layout template, displaying a group of virtual buttons in the three-finger layout template in a button custom layout interface, including:
when the target layout template is a three-finger layout template, displaying a group of virtual buttons in the three-finger layout template in a button custom layout interface, wherein the layout of the group of virtual buttons in the three-finger layout template is used for allowing the group of virtual buttons to be operated by 3 fingers, and the 3 fingers comprise: left thumb, right thumb and right index finger, or, 3 fingers include: left thumb, right thumb and left index finger.
Alternatively, in the present embodiment, the three fingers may include, but are not limited to, any three fingers, and in the target game application, the left thumb, the right thumb and the right index finger, or the left thumb, the right thumb and the left index finger may be used as fingers in a three-finger layout, which is more suitable for human operation habit, wherein the operation mode configured as the left thumb, the right thumb and the right index finger is more suitable for the user using the right hand as the primary usage hand, and the operation mode configured as the left thumb, the right thumb and the left index finger is more suitable for the user using the left hand as the primary usage hand, and the three-finger layout template may be adaptively adjusted through preset virtual buttons in response to the touch operation of the user selecting the primary usage hand.
For example, fig. 12 is a schematic diagram of a setting method of a virtual button according to another embodiment of the present invention, as shown in fig. 12, taking the user as a right-hand player as an example:
s1, selecting a right-hand operation habit in the three-finger layout template;
and S2, when the target layout template is the three-finger layout template, displaying a group of virtual buttons which are allowed to be operated by the left thumb, the right thumb and the right index finger in the three-finger layout template in the button custom layout interface.
The above is merely an example, and the present embodiment is not limited in any way.
As an optional scheme, when the target layout template is a four-finger layout template, displaying a group of virtual buttons in the four-finger layout template in a button custom layout interface, including:
when the target layout template is a four-finger layout template, displaying a group of virtual buttons in the four-finger layout template in a button custom layout interface, wherein the layout of the group of virtual buttons in the four-finger layout template is used for allowing the group of virtual buttons to be operated by 4 fingers, and the 4 fingers comprise: left thumb, right thumb, left index finger and right index finger.
Optionally, in the present embodiment, the four fingers may include, but are not limited to, any four fingers, and in the target game application, the left thumb, the right thumb, the left index finger and the right index finger are more suitable for human operation in a four-finger layout.
For example, fig. 13 is a schematic diagram of still another setting method of virtual buttons according to an embodiment of the present invention, and as shown in fig. 13, when the target layout template is a four-finger layout template, a set of virtual buttons allowed to be operated by a left thumb, a right thumb, a left index finger, and a right index finger in the four-finger layout template is displayed in the button custom layout interface.
The present application is further explained below with reference to specific examples:
in a mobile terminal game, key (virtual button) custom layout settings (hereinafter referred to as key settings) are necessary setting options for a shooting game and provide basic functions of a player for customizing key parameters, but in games on the market, the key settings are not easy to use, and the functions cannot meet the requirements of users.
It should be noted that the following key function panel corresponds to the target adjustment panel, and the following control panel corresponds to the custom layout interface.
By adding the non-shielding key function panel design, withdrawing the redo function and the multi-finger template meeting the requirements of different users, the problems of layout vision shielding, function usability, individuation and the like are solved.
Application scenarios: the key self-defined layout setting function is arranged in the game setting function and is used for setting parameters such as the size, transparency and the like of the key position.
1. The adjusting panel is not shielded and is designed interactively:
in order to prevent the adjusting panel from shielding the operation area, the display of the operation panel is moved to the position adjacent to the button, and the adjusting panel is displayed when the button is clicked, so that the shielding area of the panel to the operation area is obviously reduced.
For example, clicking the upper right X of the panel or closing the blank area, pressing the button to move, automatically hiding the adjusting panel, and displaying after releasing the hand.
2. Undo and redo functions:
buttons of 'undo' and 'redo' are added in the upper control panel.
After any operation is performed on the layout, the 'cancel' button can be clicked, the latest operation after clicking is cancelled, and the progress of opening the layout can be cancelled at most.
When the 'undo' is not clicked, the 'redo' button is in a disabled state, the previous undo operation is repeated after clicking, and after the 'undo' is clicked, the 'redo' button can be used, and the redo times are the clicked undo times.
3. Personalized layout template function:
in the control panel, a user can switch personalized layout templates which comprise default two-finger operation layout, three-finger operation layout and four-finger operation layout, the initial layouts of different templates are different, the default template is more suitable for a user only using left and right thumbs, the three-finger template is suitable for a user using left and right thumbs and right index finger, and the four-finger template is suitable for a user simultaneously using left and right thumbs and index finger.
For example, fig. 14 is a schematic diagram of a setting method of a virtual button according to an embodiment of the present invention, and as shown in fig. 14, the technical side may include, but is not limited to, the following steps:
s1, creating sub-class buttons based on the UButton type and SButton type of UE4, re-clicking the movement release event, and expanding the button to be a draggable button.
And S2, reading the button position, the zoom, the transparency and whether the default is forbidden from the configuration table, uploading the changed layout information to the server if the player changes the layout, and pulling whether the layout information is changed or not from the server by the client when the game is started so as to cover the corresponding button layout.
And S3, the recovery and reentry of the layout are stored by a custom data structure and are divided into a position operation, a zooming operation, a transparency operation and a disabling operation. These player actions, which all have Do and UnDo events, are saved in order, providing recovery and reentry to the current layout.
The above is merely an example, and the present embodiment is not limited in any way. It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiments of the present invention, there is also provided a setting apparatus of a virtual button for implementing the setting method of a virtual button described above. As shown in fig. 15, the apparatus includes:
a display module 1502 for displaying a set of virtual buttons that are allowed to be set in a button custom layout interface;
a selecting module 1504, configured to select a target virtual button from a group of virtual buttons in response to a selection operation performed on the target virtual button, and display a target adjustment panel adjacent to the target virtual button in a button custom layout interface, where the target adjustment panel is used to adjust a display parameter of the target virtual button;
the processing module 1506 is configured to move the target virtual button to the target display position in response to the moving operation performed on the target virtual button, and display a target adjustment panel adjacent to the target virtual button located at the target display position in the button custom layout interface.
As an alternative to this, it is possible to,
the apparatus is further configured to: hiding the target adjusting panel in the process of moving the target virtual button to the target display position;
the device is used for displaying a target adjusting panel adjacent to a target virtual button positioned on a target display position in the button custom layout interface by the following steps: and when the target virtual button moves to the target display position, displaying a target adjusting panel adjacent to the target virtual button positioned on the target display position in the button custom layout interface.
As an optional solution, the apparatus is further configured to:
acquiring a first adjustment operation on a target adjustment panel, wherein the first adjustment operation is used for adjusting the size of a target virtual button to a target size;
in response to the first adjustment operation, adjusting the size of the target virtual button to a target size, and displaying a target adjustment panel adjacent to the target virtual button having the size of the target size in the button custom layout interface.
As an optional solution, the apparatus is further configured to:
acquiring a second adjusting operation on the target adjusting panel, wherein the second adjusting operation is used for increasing the transparency of the target virtual button to the first transparency; in response to the second adjustment operation, increasing the transparency of the target virtual button to the first transparency and increasing the transparency of the target adjustment panel; or
Acquiring a third adjusting operation on the target adjusting panel, wherein the third adjusting operation is used for reducing the transparency of the target virtual button to a second transparency; in response to the third adjustment operation, the transparency of the target virtual button is decreased to the second transparency, and the transparency of the target adjustment panel is decreased.
As an alternative to this, it is possible to,
the apparatus is further configured to: after a target adjusting panel adjacent to a target virtual button is displayed in a button custom layout interface, setting the target adjusting panel to be in a hidden state in response to a first interactive operation for hiding the target adjusting panel; hiding the target adjusting panel in the process of moving the target virtual button to the target display position;
the device is used for displaying a target adjusting panel adjacent to a target virtual button positioned on a target display position in the button custom layout interface by the following steps: after the target virtual button is moved to the target display position, a target adjustment panel adjacent to the target virtual button located at the target display position is displayed in the button custom layout interface in response to a second interactive operation for displaying the target adjustment panel.
As an optional solution, the apparatus is further configured to:
displaying a cancel virtual button and a redo virtual button in a button custom layout interface, wherein the cancel virtual button is used for canceling the setting operation executed for the last time on a group of virtual buttons, and the redo virtual button is used for redoing the setting operation cancelled for the last time on the cancel button;
when third interactive operation performed on a cancel virtual button is acquired, and the setting operation performed on a group of virtual buttons for the last time is a first setting operation performed on a first virtual button in the group of virtual buttons, canceling the first setting operation performed on the first virtual button in response to the third interactive operation, wherein the first setting operation is used for adjusting the display parameters of the first virtual button or adjusting the display position of the first virtual button;
and when a fourth interactive operation performed on the redo virtual button is acquired, and the setting operation that the undo button undoes last time is a second setting operation performed on a second virtual button in the group of virtual buttons, redoing the second setting operation performed on the second virtual button in response to the fourth interactive operation, wherein the second setting operation is used for adjusting the display parameters of the second virtual button or adjusting the display position of the second virtual button.
As an alternative, the apparatus is configured to display a set of virtual buttons that are allowed to be set in the button custom layout interface by:
and in response to the selection operation for selecting the target layout template, displaying a group of virtual buttons in the target layout template in the button custom layout interface, wherein the layout of the group of virtual buttons in the target layout template is used for allowing the group of virtual buttons to be operated by fingers of a target number, and the target number is greater than 2.
As an alternative, the apparatus is configured to display a set of virtual buttons in the target layout template in the button custom layout interface by:
when the target layout template is a three-finger layout template, displaying a group of virtual buttons in the three-finger layout template in a button custom layout interface, wherein the layout of the group of virtual buttons in the three-finger layout template is used for allowing the group of virtual buttons to be operated by 3 fingers; or
And when the target layout template is the four-finger layout template, displaying a group of virtual buttons in the four-finger layout template in a button custom layout interface, wherein the layout of the group of virtual buttons in the four-finger layout template is used for allowing the group of virtual buttons to be operated by 4 fingers.
As an optional scheme, the apparatus is configured to display a set of virtual buttons in the three-finger layout template in the button custom layout interface when the target layout template is the three-finger layout template by:
when the target layout template is a three-finger layout template, displaying a group of virtual buttons in the three-finger layout template in a button custom layout interface, wherein the layout of the group of virtual buttons in the three-finger layout template is used for allowing the group of virtual buttons to be operated by 3 fingers, and the 3 fingers comprise: left thumb, right thumb and right index finger, or, 3 fingers include: left thumb, right thumb and left index finger.
As an optional scheme, the apparatus is configured to display a group of virtual buttons in the four-finger layout template in the button custom layout interface when the target layout template is the four-finger layout template by:
when the target layout template is a four-finger layout template, displaying a group of virtual buttons in the four-finger layout template in a button custom layout interface, wherein the layout of the group of virtual buttons in the four-finger layout template is used for allowing the group of virtual buttons to be operated by 4 fingers, and the 4 fingers comprise: left thumb, right thumb, left index finger and right index finger.
According to an aspect of the application, there is provided a computer program product comprising a computer program/instructions containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 1609, and/or installed from the removable media 1611. When executed by the central processing unit 1601, the computer programs perform various functions provided by the embodiments of the present application.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Fig. 16 schematically shows a block diagram of a computer system of an electronic device for implementing an embodiment of the present application.
It should be noted that the computer system 1600 of the electronic device shown in fig. 16 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 16, the computer system 1600 includes a Central Processing Unit 1601 (CPU) that can perform various appropriate actions and processes according to a program stored in a Read-Only Memory 1602 (ROM) or a program loaded from a storage portion 1608 into a Random Access Memory 1603 (RAM). In random access memory 1603, various programs and data necessary for system operation are also stored. The central processor 1601, the read only memory 1602 and the random access memory 1603 are connected to each other via a bus 1604. An Input/Output interface 1605(Input/Output interface, i.e., I/O interface) is also connected to the bus 1604.
The following components are connected to the input/output interface 1605: an input portion 1606 including a keyboard, a mouse, and the like; an output section 1607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 1608 including a hard disk and the like; and a communication portion 1609 including a network interface card such as a local area network card, modem, or the like. The communication section 1609 performs communication processing via a network such as the internet. The driver 1160 is also connected to the input/output interface 1605 as needed. A removable medium 1611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1160 as necessary, so that a computer program read out therefrom is mounted in the storage portion 1608 as necessary.
In particular, according to embodiments of the present application, the processes described in the various method flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 1609, and/or installed from the removable media 1611. The computer program, when executed by the central processing unit 1601, performs various functions defined in the system of the present application.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the setting method of the virtual button, where the electronic device may be the terminal device or the server shown in fig. 1. The present embodiment takes the electronic device as a terminal device as an example for explanation. As shown in fig. 17, the electronic device comprises a memory 1702 and a processor 1704, the memory 1702 having stored therein a computer program, the processor 1704 being arranged for performing the steps of any of the above-described method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, displaying a group of virtual buttons which are allowed to be set in the button custom layout interface;
s2, responding to the selection operation executed on the target virtual button, selecting the target virtual button from the group of virtual buttons, and displaying a target adjusting panel adjacent to the target virtual button in the button custom layout interface, wherein the target adjusting panel is used for adjusting the display parameter of the target virtual button;
and S3, responding to the moving operation performed on the target virtual button, moving the target virtual button to the target display position, and displaying the target adjusting panel adjacent to the target virtual button positioned on the target display position in the button custom layout interface.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 17 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 17 is a diagram illustrating a structure of the electronic device. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 17, or have a different configuration than shown in FIG. 17.
The memory 1702 may be configured to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for setting a virtual button in the embodiment of the present invention, and the processor 1704 executes various functional applications and data processing by running the software programs and modules stored in the memory 1702, that is, implements the above-mentioned method for setting a virtual button. The memory 1702 may include high-speed random access memory, and may also include 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 1702 may further include memory located remotely from the processor 1704, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1702 may specifically include, but is not limited to, layout templates for virtual buttons, and other information. As an example, as shown in fig. 17, the memory 1702 may include, but is not limited to, a display module 1502, a selection module 1504, and a processing module 1506 in the setting apparatus including the virtual buttons. In addition, other module units in the setting apparatus of the virtual button may also be included, but are not limited to, and are not described in detail in this example.
Optionally, the above-mentioned transmission device 1706 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1706 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 1706 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1708 for displaying the virtual buttons; and a connection bus 1710 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to an aspect of the present application, there is provided a computer-readable storage medium from which a processor of a computer device reads computer instructions, the processor executing the computer instructions, causing the computer device to perform a setting method of a virtual button provided in various alternative implementations of the setting aspect of the virtual button described above.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying a group of virtual buttons which are allowed to be set in the button custom layout interface;
s2, responding to the selection operation executed on the target virtual button, selecting the target virtual button from the group of virtual buttons, and displaying a target adjusting panel adjacent to the target virtual button in the button custom layout interface, wherein the target adjusting panel is used for adjusting the display parameter of the target virtual button;
and S3, responding to the moving operation performed on the target virtual button, moving the target virtual button to the target display position, and displaying the target adjusting panel adjacent to the target virtual button positioned on the target display position in the button custom layout interface.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which 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 method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for setting a virtual button, comprising:
displaying a set of virtual buttons that are allowed to be set in a button custom layout interface;
in response to the selection operation performed on the target virtual button, selecting the target virtual button in the group of virtual buttons, and displaying a target adjusting panel adjacent to the target virtual button in the button custom layout interface, wherein the target adjusting panel is used for adjusting the display parameter of the target virtual button;
in response to the moving operation performed on the target virtual button, moving the target virtual button to a target display position, and displaying the target adjusting panel adjacent to the target virtual button located on the target display position in the button custom layout interface.
2. The method of claim 1,
the method further comprises the following steps: hiding the target adjustment panel in the process of moving the target virtual button to the target display position;
the displaying, in the button custom layout interface, the target adjustment panel adjacent to the target virtual button located at the target display position includes: when the target virtual button moves to the target display position, displaying the target adjusting panel adjacent to the target virtual button on the target display position in the button custom layout interface.
3. The method of claim 1, further comprising:
acquiring a first adjustment operation on the target adjustment panel, wherein the first adjustment operation is used for adjusting the size of the target virtual button to a target size;
in response to the first adjustment operation, adjusting the size of the target virtual button to the target size, and displaying the target adjustment panel adjacent to the target virtual button having the size of the target size in the button custom layout interface.
4. The method of claim 1, further comprising:
acquiring a second adjusting operation on the target adjusting panel, wherein the second adjusting operation is used for increasing the transparency of the target virtual button to the first transparency; in response to the second adjustment operation, increasing the transparency of the target virtual button to the first transparency and increasing the transparency of the target adjustment panel; or
Acquiring a third adjustment operation on the target adjustment panel, wherein the third adjustment operation is used for reducing the transparency of the target virtual button to a second transparency; in response to the third adjustment operation, decreasing the transparency of the target virtual button to the second transparency and decreasing the transparency of the target adjustment panel.
5. The method of claim 1,
after displaying a target adjustment panel adjacent to the target virtual button in the button custom layout interface, the method further comprises: setting the target adjustment panel to a hidden state in response to a first interactive operation for hiding the target adjustment panel; hiding the target adjustment panel in the process of moving the target virtual button to the target display position;
displaying the target adjustment panel adjacent to the target virtual button located at the target display position in the button custom layout interface, including: after the target virtual button is moved to the target display position, in response to a second interactive operation for displaying the target adjustment panel, displaying the target adjustment panel adjacent to the target virtual button located on the target display position in the button custom layout interface.
6. The method of claim 1, further comprising:
displaying a cancel virtual button and a redo virtual button in the button custom layout interface, wherein the cancel virtual button is used for canceling the setting operation executed for the last time on the group of virtual buttons, and the redo virtual button is used for redoing the setting operation cancelled for the last time on the cancel button;
when a third interactive operation performed on the cancel virtual button is acquired, and the setting operation performed on the group of virtual buttons for the last time is a first setting operation performed on a first virtual button in the group of virtual buttons, canceling the first setting operation performed on the first virtual button in response to the third interactive operation, wherein the first setting operation is used for adjusting the display parameter of the first virtual button or adjusting the display position of the first virtual button;
when a fourth interactive operation performed on the redo virtual button is acquired, and the setting operation that the undo button undoes last time is a second setting operation performed on a second virtual button in the group of virtual buttons, redoing the second setting operation performed on the second virtual button in response to the fourth interactive operation, wherein the second setting operation is used for adjusting the display parameters of the second virtual button or adjusting the display position of the second virtual button.
7. The method of any of claims 1-6, wherein displaying a set of virtual buttons in the button custom layout interface that are allowed to be set comprises:
displaying the set of virtual buttons in the target layout template in the button custom layout interface in response to a selection operation for selecting the target layout template, wherein the layout of the set of virtual buttons in the target layout template is used for allowing the set of virtual buttons to be operated by a target number of fingers, and the target number is greater than 2.
8. The method of claim 7, wherein displaying the set of virtual buttons in the target layout template in the button custom layout interface comprises:
when the target layout template is a three-finger layout template, displaying the group of virtual buttons in the three-finger layout template in the button custom layout interface, wherein the layout of the group of virtual buttons in the three-finger layout template is used for allowing the group of virtual buttons to be operated by 3 fingers; or
When the target layout template is a four-finger layout template, displaying the group of virtual buttons in the four-finger layout template in the button custom layout interface, wherein the layout of the group of virtual buttons in the four-finger layout template is used for allowing the group of virtual buttons to be operated by 4 fingers.
9. The method of claim 8, wherein displaying the set of virtual buttons in the three-finger layout template in the button custom layout interface when the target layout template is a three-finger layout template comprises:
when the target layout template is a three-finger layout template, displaying the set of virtual buttons in the three-finger layout template in the button custom layout interface, wherein the layout of the set of virtual buttons in the three-finger layout template is used for allowing the set of virtual buttons to be operated by 3 fingers, and the 3 fingers comprise: left thumb, right thumb and right index finger, or, the 3 digits include: left thumb, right thumb and left index finger.
10. The method of claim 8, wherein displaying the set of virtual buttons in the four-finger layout template in the button custom layout interface when the target layout template is a four-finger layout template comprises:
when the target layout template is a four-finger layout template, displaying the set of virtual buttons in the four-finger layout template in the button custom layout interface, wherein the layout of the set of virtual buttons in the four-finger layout template is used for allowing the set of virtual buttons to be operated by 4 fingers, and the 4 fingers comprise: left thumb, right thumb, left index finger and right index finger.
11. An apparatus for setting a virtual button, comprising:
the display module is used for displaying a group of virtual buttons which are allowed to be set in the button custom layout interface;
the selection module is used for responding to selection operation executed on a target virtual button, selecting the target virtual button from the group of virtual buttons, and displaying a target adjusting panel adjacent to the target virtual button in the button custom layout interface, wherein the target adjusting panel is used for adjusting display parameters of the target virtual button;
and the processing module is used for responding to the movement operation executed on the target virtual button, moving the target virtual button to a target display position, and displaying the target adjusting panel adjacent to the target virtual button positioned on the target display position in the button custom layout interface.
12. The apparatus of claim 11,
the apparatus is further configured to: hiding the target adjustment panel in the process of moving the target virtual button to the target display position;
the device is used for displaying the target adjusting panel adjacent to the target virtual button positioned on the target display position in the button custom layout interface in the following modes: when the target virtual button moves to the target display position, displaying the target adjusting panel adjacent to the target virtual button on the target display position in the button custom layout interface.
13. A computer-readable storage medium, characterized in that it comprises a stored program, wherein the program is executable by a terminal device or a computer to perform the method of any one of claims 1 to 10.
14. A computer program product comprising computer program/instructions, characterized in that the computer program/instructions, when executed by a processor, implement the steps of the method as claimed in any one of claims 1 to 10.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 10 by means of the computer program.
CN202111267023.5A 2021-10-28 2021-10-28 Virtual button setting method and device, storage medium and electronic equipment Active CN113986079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111267023.5A CN113986079B (en) 2021-10-28 2021-10-28 Virtual button setting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111267023.5A CN113986079B (en) 2021-10-28 2021-10-28 Virtual button setting method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113986079A true CN113986079A (en) 2022-01-28
CN113986079B CN113986079B (en) 2023-07-14

Family

ID=79743901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111267023.5A Active CN113986079B (en) 2021-10-28 2021-10-28 Virtual button setting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113986079B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6040817A (en) * 1990-10-10 2000-03-21 Fuji Xerox Co., Ltd. Display apparatus and method for displaying windows on a display
JP2010266513A (en) * 2009-05-12 2010-11-25 Kyocera Mita Corp Image forming apparatus
US20120084689A1 (en) * 2010-09-30 2012-04-05 Raleigh Joseph Ledet Managing Items in a User Interface
US20180369693A1 (en) * 2017-06-26 2018-12-27 Netease (Hangzhou) Network Co.,Ltd. Virtual Character Control Method, Apparatus, Storage Medium and Electronic Device
CN110141869A (en) * 2019-04-11 2019-08-20 腾讯科技(深圳)有限公司 Method of controlling operation thereof, device, electronic equipment and storage medium
CN111760269A (en) * 2020-07-08 2020-10-13 网易(杭州)网络有限公司 Information processing method and device and terminal equipment
CN112190932A (en) * 2020-09-19 2021-01-08 腾讯科技(深圳)有限公司 Virtual key setting method and device, storage medium and electronic device
CN112245918A (en) * 2020-11-13 2021-01-22 腾讯科技(深圳)有限公司 Control method and device of virtual role, storage medium and electronic equipment
CN113552992A (en) * 2021-08-03 2021-10-26 网易(杭州)网络有限公司 Control display control method, device, equipment and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6040817A (en) * 1990-10-10 2000-03-21 Fuji Xerox Co., Ltd. Display apparatus and method for displaying windows on a display
JP2010266513A (en) * 2009-05-12 2010-11-25 Kyocera Mita Corp Image forming apparatus
US20120084689A1 (en) * 2010-09-30 2012-04-05 Raleigh Joseph Ledet Managing Items in a User Interface
US20180369693A1 (en) * 2017-06-26 2018-12-27 Netease (Hangzhou) Network Co.,Ltd. Virtual Character Control Method, Apparatus, Storage Medium and Electronic Device
CN110141869A (en) * 2019-04-11 2019-08-20 腾讯科技(深圳)有限公司 Method of controlling operation thereof, device, electronic equipment and storage medium
CN111760269A (en) * 2020-07-08 2020-10-13 网易(杭州)网络有限公司 Information processing method and device and terminal equipment
CN112190932A (en) * 2020-09-19 2021-01-08 腾讯科技(深圳)有限公司 Virtual key setting method and device, storage medium and electronic device
CN112245918A (en) * 2020-11-13 2021-01-22 腾讯科技(深圳)有限公司 Control method and device of virtual role, storage medium and electronic equipment
CN113552992A (en) * 2021-08-03 2021-10-26 网易(杭州)网络有限公司 Control display control method, device, equipment and medium

Also Published As

Publication number Publication date
CN113986079B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN104360798B (en) The method and terminal of a kind of desktop layouts
JP6529659B2 (en) Information processing method, terminal and computer storage medium
EP3591509B1 (en) Split-screen display method and apparatus, and electronic device thereof
CN112135181B (en) Video preview method and device and electronic equipment
CN112162665B (en) Operation method and device
CN112099707A (en) Display method and device and electronic equipment
CN112370780B (en) Display method and device of virtual control, storage medium and electronic equipment
CN112363658B (en) Interaction method and device for video call
CN113318434A (en) Game information processing method and device and storage medium
JP2023552659A (en) Interface display state adjustment method, apparatus, device, storage medium
CN111475087A (en) Object selling method and device, storage medium and electronic device
CN111228793B (en) Interactive interface display method and device, storage medium and electronic device
CN113908550A (en) Virtual character control method, nonvolatile storage medium, and electronic apparatus
CN113440848A (en) In-game information marking method and device and electronic device
CN113318428A (en) Game display control method, non-volatile storage medium, and electronic device
CN112558851A (en) Object processing method, device, equipment and readable storage medium
CN112181551A (en) Information processing method and related equipment
WO2023078348A1 (en) Application display method and apparatus, and electronic device
CN113986079A (en) Virtual button setting method and device, storage medium and electronic equipment
CN113835578A (en) Display method and device and electronic equipment
CN113996052A (en) Virtual button adjusting method and device, storage medium and electronic equipment
CN115268816A (en) Split screen control method and device, electronic equipment and readable storage medium
CN114995713A (en) Display control method and device, electronic equipment and readable storage medium
CN113440835A (en) Control method and device of virtual unit, processor and electronic device
CN108415570A (en) Control selection method based on augmented reality and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant