CN116841445A - Picture layer adjusting method and device and electronic terminal - Google Patents

Picture layer adjusting method and device and electronic terminal Download PDF

Info

Publication number
CN116841445A
CN116841445A CN202310954798.2A CN202310954798A CN116841445A CN 116841445 A CN116841445 A CN 116841445A CN 202310954798 A CN202310954798 A CN 202310954798A CN 116841445 A CN116841445 A CN 116841445A
Authority
CN
China
Prior art keywords
layers
dragging
layer
target
adjustment control
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.)
Pending
Application number
CN202310954798.2A
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202310954798.2A priority Critical patent/CN116841445A/en
Publication of CN116841445A publication Critical patent/CN116841445A/en
Pending legal-status Critical Current

Links

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/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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a layer adjusting method, a layer adjusting device and an electronic terminal, relates to the technical field of information, and solves the technical problem that the adjusting efficiency of a layer is low when the number of layers is large. The method comprises the following steps: providing a hierarchical adjustment control for a layer to be adjusted among a plurality of layers in the graphical user interface; responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging distance corresponding to the dragging operation; each dragging distance corresponds to a level switching rate, and the larger the dragging distance is, the faster the level switching rate is; and adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance.

Description

Picture layer adjusting method and device and electronic terminal
Technical Field
The disclosure relates to the field of information technology, and in particular relates to a layer adjusting method, a layer adjusting device and an electronic terminal.
Background
Currently, in some applications or games, a user may make adjustments to the hierarchy of any number of layers among the multiple layers. For example, in a racing game, a user may make adjustments to multiple layers of decals on a racing car, with layer adjustment of the decals being performed generally by way of a layer manager.
However, when the number of layers reaches a hundred layers or more, it is difficult for the user to perform layer adjustment in a long list of layers, which affects the level adjustment efficiency of the plurality of layers, and therefore the level adjustment efficiency is low in the case of a large number of layers.
Disclosure of Invention
The disclosure aims to provide a layer adjusting method, a device and an electronic terminal, so as to solve the technical problem that the adjusting efficiency of a layer is low when the number of layers is large.
In a first aspect, an embodiment of the present disclosure provides a method for adjusting a layer, where a graphical user interface is provided by a terminal device, and a virtual scene includes a plurality of layers; the method comprises the following steps:
providing a hierarchical adjustment control for a layer to be adjusted among a plurality of layers in the graphical user interface;
responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging distance corresponding to the dragging operation; each dragging distance corresponds to a level switching rate, and the larger the dragging distance is, the faster the level switching rate is;
and adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance.
In a second aspect, a layer adjusting device is provided, a graphical user interface is provided through a terminal device, and a virtual scene comprises a plurality of layers; comprising the following steps:
a providing module, configured to provide, in the graphical user interface, a hierarchical adjustment control for a layer to be adjusted among a plurality of layers;
a determining module, configured to determine a target dragging distance corresponding to a dragging operation for the hierarchical adjustment control in response to the dragging operation; each dragging distance corresponds to a level switching rate, and the larger the dragging distance is, the faster the level switching rate is;
and the adjusting module is used for adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance.
In a third aspect, an embodiment of the present disclosure further provides an electronic terminal, including a memory, and a processor, where the memory stores a computer program that can be executed on the processor, and the processor executes the method according to the first aspect.
In a fourth aspect, embodiments of the present disclosure further provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method of the first aspect described above.
The embodiment of the disclosure brings the following beneficial effects:
according to the layer adjusting method, the device and the electronic terminal, the layer adjusting control for the layer to be adjusted in the layers can be provided in the graphical user interface, the dragging operation for the layer adjusting control is responded, the target dragging distance corresponding to the dragging operation is determined, each dragging distance corresponds to a layer switching rate, the higher the dragging distance is, the faster the layer switching rate is, and then the layer to be adjusted in the layers is adjusted based on the target layer switching rate corresponding to the target dragging distance. In the scheme, through the dragging operation of the level adjustment control, not only the level of the layer to be adjusted in a plurality of layers can be adjusted, but also the level switching rate in the level adjustment process can be controlled through the target dragging distance corresponding to the dragging operation, namely, the higher the dragging distance is, the faster the level switching rate is, so that the level switching rate in the adjustment process can be controlled by a user, the user can rapidly switch the plurality of levels when adjusting the level, the adjustment efficiency of the plurality of levels when the number of layers is more is improved, and the technical problem that the adjustment efficiency of the level is lower when the number of layers is more is solved.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the prior art, the drawings that are required in the detailed description or the prior art will be briefly described, it will be apparent that the drawings in the following description are some embodiments of the present disclosure, and other drawings may be obtained according to the drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 illustrates an application scenario schematic provided by an embodiment of the present disclosure;
fig. 2 shows a schematic structural diagram of a mobile phone according to an embodiment of the disclosure;
fig. 3 illustrates a schematic usage scenario of a touch terminal provided by an embodiment of the present disclosure;
fig. 4 is a flow chart of a layer adjustment method according to an embodiment of the disclosure;
FIG. 5 shows a schematic diagram of a terminal device displaying a graphical user interface according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a layer adjusting device according to an embodiment of the disclosure;
Fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person of ordinary skill in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
The terms "comprising" and "having" and any variations thereof, as referred to in the embodiments of the disclosure, are intended to cover non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Currently, a pattern layer manager is commonly used in application software or game application with a picture editing function to perform pattern layer adjustment of decals. Taking the racing game applique editing system as an example, when the order of magnitude of the applique reaches hundreds of layers or more, it is difficult for a user to make layer adjustment in a long series of layer lists, resulting in lower adjustment efficiency for the layers with a larger number of layers.
Based on the above, the embodiment of the disclosure provides a layer adjusting method, device and electronic terminal, by which the technical problem that the adjusting efficiency of the layer is low when the number of layers is large can be alleviated.
The layer adjustment method in one embodiment of the present disclosure may be run on a local terminal device or a server. When the layer adjustment method runs on a server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presentation main body are separated, the storage and running of the picture layer regulating method are completed on the cloud game server, and the function of the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When playing the game, the user operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with a user through a graphical user interface, namely, conventionally downloading and installing a game program through the electronic device and running the game program. The way in which the local terminal device provides the graphical user interface to the user may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the user by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In a possible implementation manner, the embodiment of the disclosure provides a layer adjustment method, and a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system.
For example, as shown in fig. 1, fig. 1 is a schematic view of an application scenario provided in an embodiment of the present disclosure. The application scenario may include a touch terminal (e.g., a mobile phone 102) and a server 101, and the touch terminal may communicate with the server 101 through a wired network or a wireless network. The touch terminal is used for running a virtual desktop, and through the virtual desktop, interaction with the server 101 can be performed, so that control over content in the server 101 is achieved.
The touch terminal of the present embodiment is illustrated by taking the mobile phone 102 as an example. The handset 102 includes Radio Frequency (RF) circuitry 110, memory 120, touch screen 130, processor 140, and the like. It will be appreciated by those skilled in the art that the handset construction shown in fig. 2 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or split certain components, or a different arrangement of components. Those skilled in the art will appreciate that the touch screen 130 pertains to a User Interface (UI) and that the handset 102 may include fewer User interfaces than shown or otherwise.
RF circuitry 110 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM for short), general packet radio service (General Packet Radio Service, GPRS for short), code division multiple access (Code Division Multiple Access, CDMA for short), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA for short), long term evolution (Long Term Evolution, LTE for short), email, short message service (Short Messaging Service, SMS for short), and the like.
The memory 120 may be used to store software programs and modules that the processor 140 executes to perform various functional applications and data processing of the handset 102 by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the cell phone 102, etc. In addition, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The touch screen 130 may be used to display a graphical user interface and to receive user operations with respect to the graphical user interface. A particular touch screen 130 may include a display panel and a touch panel. The display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may collect contact or non-contact operations on or near the user (e.g., operations on or near the touch panel by the user using any suitable object or accessory such as a finger 103, a stylus, etc., as shown in fig. 3) and generate preset operation instructions. In addition, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth and the touch gesture of a user, detects signals brought by touch operation and transmits the signals to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into information which can be processed by the processor, sends the information to the processor 140, and can receive and execute commands sent by the processor 140. In addition, the touch panel may be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave, or may be implemented by any technology developed in the future. Further, the touch panel may overlay the display panel, and a user may operate on or near the touch panel overlaid on the display panel according to a graphical user interface displayed by the display panel, and upon detection of an operation thereon or thereabout, the touch panel is transferred to the processor 140 to determine a user input, and the processor 140 then provides a corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel may be implemented as two independent components or may be integrated.
The processor 140 is a control center of the mobile phone 102, and uses various interfaces and lines to connect various parts of the entire mobile phone, and by running or executing software programs and/or modules stored in the memory 120, and invoking data stored in the memory 120, performs various functions of the mobile phone 102 and processes the data, thereby performing overall monitoring of the mobile phone.
Embodiments of the present disclosure are further described below with reference to the accompanying drawings.
Fig. 4 is a flowchart of a layer adjustment method according to an embodiment of the present disclosure. The method can be applied to a terminal device (such as the mobile phone 102 shown in fig. 2) capable of presenting a graphical user interface, the graphical user interface is provided through the terminal device, and the virtual scene comprises a plurality of layers. As shown in fig. 4, the method includes:
step S410, providing a hierarchical adjustment control for a layer to be adjusted among a plurality of layers in a graphical user interface.
In practical applications, the method provided by the embodiment of the disclosure may be applied to multiple virtual scenes with a multi-layer structure and requiring a user to perform layer adjustment. Illustratively, in a game scenario of a racing game, a user may adjust the hierarchical relationship between multiple decal layers on a racing car.
For example, as shown in fig. 5, the multiple layers include a first layer 501, a second layer 502, and a third layer 503, where the first layer 501 is a layer to be adjusted, and a level adjustment control 504 in the gui is used to adjust a level of the first layer 501 in the second layer 502 and the third layer 503.
In an alternative embodiment, the hierarchical adjustment control may be a relatively large area on the graphical user interface or a relatively small area on the graphical user interface. The hierarchical adjustment controls may be square, rectangular, box-shaped, or other shapes (e.g., circular, etc.). The content presented by the graphical user interface may contain all of the hierarchical adjustment controls or may be part of the content hotspots. For example, when the hierarchical adjustment control is displayed enlarged in the graphical user interface, the local content of the content hotspots is displayed on the graphical user interface of the terminal device. The hierarchical adjustment control may be displayed in an upper left, upper right, or other location in the graphical user interface, and the exemplary embodiment is not limiting.
Illustratively, as shown in FIG. 5, the hierarchical adjustment control 504 may be a slider type adjustment control that a user may drag the hierarchical adjustment control 504 to move up or down by a sliding operation up or down.
Step S420, in response to the drag operation for the hierarchical adjustment control, determining a target drag distance corresponding to the drag operation.
It should be noted that, each drag distance corresponds to a level switching rate, and the larger the drag distance is, the faster the level switching rate is. Illustratively, as shown in FIG. 5, a user may make a layer adjustment using a hierarchical adjustment control 504 in the form of a slider, and the user may press the slider control to slide up and down in the progress bar 507 to make a rate determination of layer switching based on the position of the slider on the progress bar 507.
For example, as shown in fig. 5, when the middle level adjustment control 504 moves to the first position 505, it corresponds to a first dragging distance, when the middle level adjustment control 504 moves to the second position 506, it is obvious that the second dragging distance is greater than the first dragging distance, and then the second level switching rate corresponding to the second dragging distance is faster than the first level switching rate corresponding to the first dragging distance.
Step S430, adjusting the layers of the layers to be adjusted in the layers based on the target layer switching rate corresponding to the target dragging distance.
In practical application, the hierarchy adjustment mode can be adjustment of the layer number, so that hierarchy adjustment is more visual, and a user can quickly confirm the hierarchy relation in a plurality of layers. For example, the layer to be adjusted may include a layer number of the layer to be adjusted.
In the embodiment of the disclosure, through the drag operation on the level adjustment control, not only the level of the layer to be adjusted in a plurality of layers can be adjusted, but also the level switching rate in the level adjustment process can be controlled through the target drag distance corresponding to the drag operation, namely, the higher the drag distance is, the faster the level switching rate is, so that the level switching rate in the adjustment process can be controlled by a user, the user can rapidly switch the plurality of levels when adjusting the level, and the adjustment efficiency of the plurality of levels when the number of the layers is more is improved.
The above steps are described in detail below.
In some embodiments, multiple layers of the hierarchical relationship to be determined may be determined by determining whether the multiple layers overlap, making the layer adjustment process more intuitive and efficient. As an example, the step S410 may include the steps of:
step a), at least one target layer which is at least partially overlapped with the layers to be regulated is determined from the layers to be regulated in response to the selection operation of the layers to be regulated in the layers to be regulated;
step b), providing a hierarchical adjustment control for adjusting the hierarchical relationship between the layer to be adjusted and at least one target layer in the graphical user interface.
In practical application, only the layers overlapped with the layers to be adjusted can be focused, the non-overlapped layers are removed, and only the hierarchical relation between the overlapped layers, namely the hierarchical relation of the decal to be adjusted in a plurality of target decals overlapped with the decal to be adjusted, so that the adjustment process is more visual and efficient, and the understanding cost of a user is lower.
The method includes the steps of selecting a current decal to be adjusted as a selection area, selecting all other decals covered in the selection area, wherein the selected decision division rule is that all target decals with partial areas in the selection area are selected, namely all target decals at least partially overlapped with the decal to be adjusted are selected, and then adjusting the hierarchical relation between the decal to be adjusted and all target decals in the selection area.
In the embodiment of the disclosure, whether a plurality of layers are overlapped is judged, and then the hierarchical relation among the overlapped layers is determined, so that the determination accuracy of the hierarchical relation is improved, the adjusting process is more visual and efficient, and the understanding cost of a user is lower.
Based on the steps a) and b), the corresponding relation between the dragging distance and the hierarchy switching rate can be divided proportionally according to the total number of the target layers, so that the hierarchy switching process corresponding to the dragging operation is more flexible and efficient. Based on this, the correspondence between the drag distance and the hierarchy switching rate is determined according to the number of target layers; with the same drag distance, the greater the number of target layers, the faster the hierarchy switching rate.
As one possible implementation, as shown in fig. 5, the rate of hierarchical switching of the hierarchical adjustment control at the third location 508 is a minimum rate, the rate of hierarchical switching of the hierarchical adjustment control at the first location 505 is a medium rate, and the rate of hierarchical switching of the hierarchical adjustment control at the second location 506 is a maximum rate.
For example, the number of target layers is one hundred layers, the layer switching rate of the layer adjustment control at the third location 508 is two layers per second, the layer switching rate of the layer adjustment control at the first location 505 is fifty layers per second, and the layer switching rate of the layer adjustment control at the second location 506 is one hundred layers per second, i.e., is adjusted to the top or bottom layer within one second. Of course, this method is not applicable if the number of target layers is smaller than two.
In the embodiment of the disclosure, the corresponding relation between the dragging distance and the hierarchy switching rate can be proportionally divided according to the total number of the target layers, and the higher the number of the target layers is, the faster the hierarchy switching rate is, so that the hierarchy switching process corresponding to the dragging operation is more flexible and efficient.
In some embodiments, as long as the user is operating the hierarchical adjustment control, the process of switching the layers to be adjusted layer by layer in the multiple layers is continued even if dragging the hierarchical adjustment control is stopped, so that the hierarchical adjustment process is more efficient and flexible. As an example, the step S430 may include the steps of:
step c), continuously adjusting the layers of the layers to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance;
and d), stopping the hierarchical adjustment of the layers to be adjusted in a plurality of layers in response to the control operation of the hierarchical adjustment control.
In practical application, as long as a user is operating the hierarchical adjustment control, the hierarchical switching process is continued even if dragging of the hierarchical adjustment control is stopped, namely, the layer-by-layer switching process of the layers to be adjusted in the layers is continued, and therefore the hierarchical adjustment process is more efficient and flexible.
In some embodiments, the dragging direction may correspond to adjusting the level of the layer to be adjusted to an upper layer or to a lower layer, so that the adjustment manner is flexible and comprehensive. As an example, the step S430 may include the steps of:
Step e), responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging direction corresponding to the dragging operation;
and f), adjusting the layers to be adjusted in the layers to be adjusted to the upper layer or the lower layer according to the target layer switching trend corresponding to the target dragging direction based on the target layer switching rate corresponding to the target dragging distance.
In practical application, each dragging direction corresponds to a level switching trend, and the level switching trend comprises an upper level switching trend and a lower level switching trend, so that the adjusting mode of the level adjusting control is more comprehensive, and the user can flexibly operate the level adjusting control conveniently.
Based on the steps e) and f), the hierarchical adjustment control can be dragged along the designated dragging track by using the up-and-down progress bar, so that the user can control the adjustment direction conveniently. As an example, the above step e) may include the steps of:
and step g), responding to the dragging operation of the hierarchical adjustment control along the designated dragging track, and determining the target track direction of the dragging operation on the designated dragging track.
The designated dragging track corresponds to two track directions, and the two track directions respectively correspond to the switching trend of the upper layer and the switching trend of the lower layer. For example, as shown in fig. 5, if the hierarchical adjustment control 504 is dragged from the middle position to the third position 508 downward along the progress bar 507 (designated dragging track), the hierarchical level of the layer to be adjusted among the multiple layers is adjusted to the upper layer, and if the hierarchical adjustment control 504 is dragged from the middle position to the first position 505 upward along the progress bar 507 (designated dragging track), the hierarchical level of the layer to be adjusted among the multiple layers is adjusted to the lower layer, so that the adjustment mode of the hierarchical adjustment control can be convenient for the user to control the adjustment direction. Alternatively, the correspondence between the track direction and the switching trend may be such that dragging upward corresponds to adjusting to a higher layer and dragging downward corresponds to adjusting to a lower layer. Further, the track direction is not limited to upward and downward, but may be left and right, or other directions.
In some embodiments, if the drag duration of the drag operation on the hierarchical adjustment control is short, the hierarchical rate is not required to be switched according to the drag distance, so that the data processing amount is saved. As an example, the step S420 may include the steps of:
step h), responding to the dragging operation of the hierarchical adjustment control, and determining the dragging duration corresponding to the dragging operation;
and i), determining a target dragging distance corresponding to the dragging operation in response to the dragging time length being longer than the first preset time length.
As an optional implementation manner, when the drag duration of the drag operation on the hierarchical adjustment control exceeds 0.5 seconds (the first preset duration), determining the target drag distance corresponding to the drag operation is started. If the drag duration of the drag operation of the hierarchical adjustment control does not exceed 0.5 seconds (the first preset duration), the hierarchical rate is not required to be switched according to the drag distance, so that the data processing amount is saved.
Based on the above steps h) and i), if the drag duration of the drag operation on the hierarchical level adjustment control is short, the hierarchical level may be adjusted according to the corresponding fixed manner in different situations.
As an example, after step h), the method may further comprise the steps of:
And j), responding to the fact that the dragging time length is smaller than or equal to a first preset time length and the control operation time length for the hierarchical adjustment control is smaller than or equal to a second preset time length, and adjusting the hierarchical layers of the layers to be adjusted in the multiple layers according to the number of the designated switching hierarchical layers.
The second preset time length is longer than the first preset time length, and the control operation time length comprises a dragging time length and a dragging residence time length. For example, if the user drags the hierarchical level adjustment control up or down only once to end the touch of the hierarchical level adjustment control, for example, the drag duration is short and the drag stay duration is less than 0.5S, only one hierarchical level is adjusted (the number of switching hierarchical levels is specified).
As another example, after step h), the method may further comprise the steps of:
and step k), responding to the fact that the dragging time length is smaller than or equal to a first preset time length and the control operation time length of the hierarchy adjustment control is longer than a second preset time length, and adjusting the hierarchy of the layer to be adjusted in the multiple layers based on the specified hierarchy switching rate.
The specified level switching rate is smaller than the target level switching rate, the second preset time length is longer than the first preset time length, and the control operation time length comprises a dragging time length and a dragging residence time length. For example, if the user drags the hierarchical adjustment control up or down only once to stop the dragging, but the user always keeps the touch on the hierarchical adjustment control, the layer to be adjusted is continuously adjusted at the rate of switching one hierarchy per second (the specified hierarchical switching rate) until the user finishes the touch on the hierarchical adjustment control.
In some embodiments, the control may automatically reset to the initial position after the control is finished being operated, so as to facilitate the next drag operation. As an example, the method may further comprise the steps of:
step l), responding to the dragging operation for the adjustment control from the initial position, and controlling the adjustment control to move along with the dragging operation from the initial position;
and m), controlling the display position of the hierarchical adjustment control in the graphical user interface to be restored to the initial position in response to the control operation for the hierarchical adjustment control ending.
As an alternative embodiment, after the user releases his hand after adjusting the level, the slider (level adjustment control) is automatically reset to the original position, as shown in fig. 5, and the level adjustment control 504 is in the middle of the progress bar.
Based on the steps i) and m), the position to which the control is dragged can be determined first, and then the moving distance is determined according to the position to which the control is dragged and the initial position before the control is dragged, so that the determination of the moving distance is more accurate. As an example, the step S420 may include the steps of:
and step n), determining a target movement distance between the target movement position and the initial position in response to a dragging operation of dragging the hierarchical adjustment control from the initial position to the target movement position.
In practical application, the position to which the control is dragged can be determined first, and then the moving distance is determined according to the position to which the control is dragged and the initial position before the control is dragged, so that the moving distance is determined more accurately. For example, as shown in fig. 5, the hierarchical adjustment control is first determined to be dragged to the first position 505, and the distance between the initial position, i.e., the middle position of the progress bar, and the first position 505 is determined.
Fig. 6 provides a schematic structural diagram of a layer adjusting device. And providing a graphical user interface through the terminal equipment, wherein the virtual scene comprises a plurality of layers. As shown in fig. 6, the layer adjusting apparatus 600 includes:
a providing module 601, configured to provide, in the graphical user interface, a hierarchical adjustment control for a layer to be adjusted among a plurality of the layers;
a determining module 602, configured to determine, in response to a drag operation for the hierarchical adjustment control, a target drag distance corresponding to the drag operation; each dragging distance corresponds to a level switching rate, and the larger the dragging distance is, the faster the level switching rate is;
and the adjusting module 603 is configured to adjust the level of the layer to be adjusted in the multiple layers based on the target level switching rate corresponding to the target dragging distance.
In one possible embodiment, a module is provided specifically for:
determining at least one target layer which is at least partially overlapped with the layers to be regulated from the layers in response to the selection operation of the layers to be regulated in the layers;
a hierarchical adjustment control is provided in the graphical user interface for adjusting a hierarchical relationship between the layer to be adjusted and the at least one target layer.
In one possible embodiment, the correspondence between the drag distance and the hierarchical switching rate is determined according to the number of target layers; with the same drag distance, the higher the number of target layers, the faster the hierarchy switching rate.
In one possible embodiment, the adjustment module is specifically for: the step of adjusting the layer to be adjusted in the layers based on the target layer switching rate corresponding to the target dragging distance includes:
continuously adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance;
and stopping the hierarchical adjustment of the layer to be adjusted in a plurality of layers in response to the control operation of the hierarchical adjustment control.
In one possible embodiment, the adjustment module is specifically for:
responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging direction corresponding to the dragging operation; each dragging direction corresponds to a level switching trend, wherein the level switching trend comprises an upper layer switching trend and a lower layer switching trend;
and adjusting the layer to be adjusted in the layers to be adjusted to the upper layer or the lower layer according to the target layer switching trend corresponding to the target dragging direction based on the target layer switching rate corresponding to the target dragging distance.
In one possible embodiment, the adjustment module is further configured to:
determining a target track direction of a drag operation on a specified drag track in response to the drag operation of the hierarchical adjustment control along the specified drag track; the specified dragging track corresponds to two track directions, and the two track directions correspond to the switching trend of the upper layer and the switching trend of the lower layer respectively.
In one possible embodiment, the determining module is specifically configured to:
responding to the dragging operation of the hierarchical adjustment control, and determining the dragging duration corresponding to the dragging operation;
And determining a target dragging distance corresponding to the dragging operation in response to the dragging time length being longer than a first preset time length.
In one possible embodiment, the adjustment module is further configured to: responding to the dragging time length being smaller than or equal to the first preset time length and the control operation time length of the hierarchical adjustment control being smaller than or equal to the second preset time length, and adjusting the hierarchical layers of the to-be-adjusted layers in the layers according to the number of the designated switching hierarchical layers; the second preset time length is longer than the first preset time length, and the control operation time length comprises the dragging time length and the dragging residence time length.
In one possible embodiment, the adjustment module is further configured to: responding to the dragging time length being smaller than or equal to the first preset time length and the control operation time length of the hierarchy adjustment control being longer than the second preset time length, and adjusting the hierarchy of the to-be-adjusted layer in a plurality of layers based on a specified hierarchy switching rate; the specified level switching rate is smaller than the target level switching rate, the second preset time period is longer than the first preset time period, and the control operation time period comprises the dragging time period and the dragging residence time period.
In one possible embodiment, the apparatus further comprises:
a first control module for controlling the adjustment control to move from an initial position following the drag operation in response to the drag operation for the adjustment control starting from the initial position;
and the second control module is used for controlling the display position of the hierarchical adjustment control in the graphical user interface to be restored to the initial position in response to the control operation of the hierarchical adjustment control being ended.
In one possible embodiment, the determining module is specifically configured to:
in response to a drag operation of the hierarchical adjustment control from the initial position to a target movement position, a target movement distance between the target movement position and the initial position is determined.
In one possible implementation, the layer to be adjusted in the layers includes the layer number of the layer to be adjusted in the layer.
Through the mode, the layers of the layers to be regulated in the layers can be regulated through the dragging operation of the layer regulation control, and the layer switching rate in the layer regulation process can be controlled through the target dragging distance corresponding to the dragging operation, namely, the larger the dragging distance is, the faster the layer switching rate is, so that the layer switching rate in the regulation process can be controlled by a user, the user can rapidly switch the layers when regulating the layers, and the regulation efficiency of the layers when the number of the layers is more is improved.
The layer adjusting device provided by the embodiment of the disclosure has the same technical characteristics as the layer adjusting method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the disclosure, including: a processor 701, a storage medium 702 and a bus 703, the storage medium 702 storing machine readable instructions executable by the processor 701, the processor 701 and the storage medium 702 being in communication via the bus 703 when the electronic device runs a layer adjustment method as in the embodiment, the processor 701 executing the machine readable instructions, the preamble of the processor 701 method item to perform the steps of:
providing a hierarchical adjustment control for a layer to be adjusted among a plurality of layers in the graphical user interface;
responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging distance corresponding to the dragging operation; each dragging distance corresponds to a level switching rate, and the larger the dragging distance is, the faster the level switching rate is;
and adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance.
In one possible embodiment, the processor, when executing the step of providing in the graphical user interface a hierarchical adjustment control for a layer to be adjusted among a plurality of the layers, is specifically configured to:
determining at least one target layer which is at least partially overlapped with the layers to be regulated from the layers in response to the selection operation of the layers to be regulated in the layers;
a hierarchical adjustment control is provided in the graphical user interface for adjusting a hierarchical relationship between the layer to be adjusted and the at least one target layer.
In one possible embodiment, the correspondence between the drag distance and the hierarchical switching rate is determined according to the number of target layers; with the same drag distance, the higher the number of target layers, the faster the hierarchy switching rate.
In a possible implementation manner, the processor is specifically configured to, when executing the adjustment of the layer to be adjusted in the layers according to the target layer switching rate corresponding to the target dragging distance, adjust the layer to be adjusted in the layers according to the target layer switching rate:
continuously adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance;
And stopping the hierarchical adjustment of the layer to be adjusted in a plurality of layers in response to the control operation of the hierarchical adjustment control.
In a possible implementation manner, the processor is specifically configured to, when executing the adjustment of the layer to be adjusted in the layers according to the target layer switching rate corresponding to the target dragging distance, adjust the layer to be adjusted in the layers according to the target layer switching rate:
responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging direction corresponding to the dragging operation; each dragging direction corresponds to a level switching trend, wherein the level switching trend comprises an upper layer switching trend and a lower layer switching trend;
and adjusting the layer to be adjusted in the layers to be adjusted to the upper layer or the lower layer according to the target layer switching trend corresponding to the target dragging direction based on the target layer switching rate corresponding to the target dragging distance.
In one possible embodiment, the processor, when executing a drag operation in response to the hierarchical adjustment control, is specifically configured to:
determining a target track direction of a drag operation on a specified drag track in response to the drag operation of the hierarchical adjustment control along the specified drag track; the specified dragging track corresponds to two track directions, and the two track directions correspond to the switching trend of the upper layer and the switching trend of the lower layer respectively.
In one possible embodiment, the processor, when executing a drag operation in response to the hierarchical adjustment control, is specifically configured to:
responding to the dragging operation of the hierarchical adjustment control, and determining the dragging duration corresponding to the dragging operation;
and determining a target dragging distance corresponding to the dragging operation in response to the dragging time length being longer than a first preset time length.
In one possible embodiment, after determining a drag duration corresponding to a drag operation for the hierarchical adjustment control in response to the drag operation, the processor is further configured to:
responding to the dragging time length being smaller than or equal to the first preset time length and the control operation time length of the hierarchical adjustment control being smaller than or equal to the second preset time length, and adjusting the hierarchical layers of the to-be-adjusted layers in the layers according to the number of the designated switching hierarchical layers; the second preset time length is longer than the first preset time length, and the control operation time length comprises the dragging time length and the dragging residence time length.
In one possible embodiment, after determining a drag duration corresponding to a drag operation for the hierarchical adjustment control in response to the drag operation, the processor is further configured to:
Responding to the dragging time length being smaller than or equal to the first preset time length and the control operation time length of the hierarchy adjustment control being longer than the second preset time length, and adjusting the hierarchy of the to-be-adjusted layer in a plurality of layers based on a specified hierarchy switching rate; the specified level switching rate is smaller than the target level switching rate, the second preset time period is longer than the first preset time period, and the control operation time period comprises the dragging time period and the dragging residence time period.
In one possible embodiment, the processor is further configured to:
responsive to the drag operation for the adjustment control starting from an initial position, controlling the adjustment control to move from the initial position following the drag operation;
and controlling the display position of the hierarchical adjustment control in the graphical user interface to be restored to the initial position in response to the control operation for the hierarchical adjustment control ending.
In one possible embodiment, the processor, when executing a drag operation in response to the hierarchical adjustment control, is specifically configured to:
In response to a drag operation of the hierarchical adjustment control from the initial position to a target movement position, a target movement distance between the target movement position and the initial position is determined.
In one possible implementation, the layer to be adjusted in the layers includes the layer number of the layer to be adjusted in the layer.
Through the mode, the layers of the layers to be regulated in the layers can be regulated through the dragging operation of the layer regulation control, and the layer switching rate in the layer regulation process can be controlled through the target dragging distance corresponding to the dragging operation, namely, the larger the dragging distance is, the faster the layer switching rate is, so that the layer switching rate in the regulation process can be controlled by a user, the user can rapidly switch the layers when regulating the layers, and the regulation efficiency of the layers when the number of the layers is more is improved.
In practical applications, the memory 701 may include a high-speed random access memory (Random Access Memory, simply referred to as RAM), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 704 (which may be wired or wireless), which may use the internet, a wide area network, a local network, a metropolitan area network, etc.
Bus 703 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 7, but not only one bus or type of bus.
The memory 701 is configured to store a program, and the processor 702 executes the program after receiving an execution instruction, where a method executed by an apparatus defined by a process disclosed in any embodiment of the disclosure may be applied to the processor 702, or implemented by the processor 702.
The processor 702 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the methods described above may be performed by integrated logic circuitry in hardware or instructions in software in the processor 702. The processor 702 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (Digital Signal Processing, DSP for short), application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks of the disclosure in the embodiments of the disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present disclosure may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 701, and the processor 702 reads the information in the memory 701 and performs the steps of the method in combination with its hardware.
The disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
providing a hierarchical adjustment control for a layer to be adjusted among a plurality of layers in the graphical user interface;
responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging distance corresponding to the dragging operation; each dragging distance corresponds to a level switching rate, and the larger the dragging distance is, the faster the level switching rate is;
and adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance.
In one possible embodiment, the processor, when executing the step of providing in the graphical user interface a hierarchical adjustment control for a layer to be adjusted among a plurality of the layers, is specifically configured to:
determining at least one target layer which is at least partially overlapped with the layers to be regulated from the layers in response to the selection operation of the layers to be regulated in the layers;
A hierarchical adjustment control is provided in the graphical user interface for adjusting a hierarchical relationship between the layer to be adjusted and the at least one target layer.
In one possible embodiment, the correspondence between the drag distance and the hierarchical switching rate is determined according to the number of target layers; with the same drag distance, the higher the number of target layers, the faster the hierarchy switching rate.
In a possible implementation manner, the processor is specifically configured to, when executing the adjustment of the layer to be adjusted in the layers according to the target layer switching rate corresponding to the target dragging distance, adjust the layer to be adjusted in the layers according to the target layer switching rate:
continuously adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance;
and stopping the hierarchical adjustment of the layer to be adjusted in a plurality of layers in response to the control operation of the hierarchical adjustment control.
In a possible implementation manner, the processor is specifically configured to, when executing the adjustment of the layer to be adjusted in the layers according to the target layer switching rate corresponding to the target dragging distance, adjust the layer to be adjusted in the layers according to the target layer switching rate:
Responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging direction corresponding to the dragging operation; each dragging direction corresponds to a level switching trend, wherein the level switching trend comprises an upper layer switching trend and a lower layer switching trend;
and adjusting the layer to be adjusted in the layers to be adjusted to the upper layer or the lower layer according to the target layer switching trend corresponding to the target dragging direction based on the target layer switching rate corresponding to the target dragging distance.
In one possible embodiment, the processor, when executing a drag operation in response to the hierarchical adjustment control, is specifically configured to:
determining a target track direction of a drag operation on a specified drag track in response to the drag operation of the hierarchical adjustment control along the specified drag track; the specified dragging track corresponds to two track directions, and the two track directions correspond to the switching trend of the upper layer and the switching trend of the lower layer respectively.
In one possible embodiment, the processor, when executing a drag operation in response to the hierarchical adjustment control, is specifically configured to:
Responding to the dragging operation of the hierarchical adjustment control, and determining the dragging duration corresponding to the dragging operation;
and determining a target dragging distance corresponding to the dragging operation in response to the dragging time length being longer than a first preset time length.
In one possible embodiment, after determining a drag duration corresponding to a drag operation for the hierarchical adjustment control in response to the drag operation, the processor is further configured to:
responding to the dragging time length being smaller than or equal to the first preset time length and the control operation time length of the hierarchical adjustment control being smaller than or equal to the second preset time length, and adjusting the hierarchical layers of the to-be-adjusted layers in the layers according to the number of the designated switching hierarchical layers; the second preset time length is longer than the first preset time length, and the control operation time length comprises the dragging time length and the dragging residence time length.
In one possible embodiment, after determining a drag duration corresponding to a drag operation for the hierarchical adjustment control in response to the drag operation, the processor is further configured to:
responding to the dragging time length being smaller than or equal to the first preset time length and the control operation time length of the hierarchy adjustment control being longer than the second preset time length, and adjusting the hierarchy of the to-be-adjusted layer in a plurality of layers based on a specified hierarchy switching rate; the specified level switching rate is smaller than the target level switching rate, the second preset time period is longer than the first preset time period, and the control operation time period comprises the dragging time period and the dragging residence time period.
In one possible embodiment, the processor is further configured to:
responsive to the drag operation for the adjustment control starting from an initial position, controlling the adjustment control to move from the initial position following the drag operation;
and controlling the display position of the hierarchical adjustment control in the graphical user interface to be restored to the initial position in response to the control operation for the hierarchical adjustment control ending.
In one possible embodiment, the processor, when executing a drag operation in response to the hierarchical adjustment control, is specifically configured to:
in response to a drag operation of the hierarchical adjustment control from the initial position to a target movement position, a target movement distance between the target movement position and the initial position is determined.
In one possible implementation, the layer to be adjusted in the layers includes the layer number of the layer to be adjusted in the layer.
Through the mode, the layers of the layers to be regulated in the layers can be regulated through the dragging operation of the layer regulation control, and the layer switching rate in the layer regulation process can be controlled through the target dragging distance corresponding to the dragging operation, namely, the larger the dragging distance is, the faster the layer switching rate is, so that the layer switching rate in the regulation process can be controlled by a user, the user can rapidly switch the layers when regulating the layers, and the regulation efficiency of the layers when the number of the layers is more is improved.
In the embodiments of the present disclosure, the computer program may also execute other machine readable instructions when executed by a processor to perform the method as described in other embodiments, and the specific implementation of the method steps and principles are referred to in the description of the embodiments and are not described in detail herein.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
As another example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments provided in the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, or in a form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the layer adjustment method described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that: like reference numerals and letters in the following figures denote like items, and thus once an item is defined in one figure, no further definition or explanation of it is required in the following figures, and furthermore, the terms "first," "second," "third," etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present disclosure, and are not intended to limit the scope of the disclosure, but the present disclosure is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, it is not limited to the disclosure: any person skilled in the art, within the technical scope of the disclosure of the present disclosure, may modify or easily conceive changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features thereof; such modifications, changes or substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present disclosure. Are intended to be within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (15)

1. The layer adjusting method is characterized in that a graphical user interface is provided through terminal equipment, and a virtual scene comprises a plurality of layers; the method comprises the following steps:
providing a hierarchical adjustment control for a layer to be adjusted among a plurality of layers in the graphical user interface;
responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging distance corresponding to the dragging operation; each dragging distance corresponds to a level switching rate, and the larger the dragging distance is, the faster the level switching rate is;
and adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance.
2. The method of claim 1, wherein the step of providing in the graphical user interface a hierarchical adjustment control for a layer to be adjusted among a plurality of the layers comprises:
determining at least one target layer which is at least partially overlapped with the layers to be regulated from the layers in response to the selection operation of the layers to be regulated in the layers;
a hierarchical adjustment control is provided in the graphical user interface for adjusting a hierarchical relationship between the layer to be adjusted and the at least one target layer.
3. The method of claim 2, wherein the correspondence between the drag distance and the hierarchical switching rate is determined according to the number of target layers; with the same drag distance, the higher the number of target layers, the faster the hierarchy switching rate.
4. The method according to claim 1, wherein the step of adjusting the level of the layer to be adjusted among the plurality of layers based on the target level switching rate corresponding to the target drag distance includes:
continuously adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance;
and stopping the hierarchical adjustment of the layer to be adjusted in a plurality of layers in response to the control operation of the hierarchical adjustment control.
5. The method according to claim 1, wherein adjusting the level of the layer to be adjusted among the plurality of layers based on the target level switching rate corresponding to the target drag distance comprises:
responding to the dragging operation of the hierarchical adjustment control, and determining a target dragging direction corresponding to the dragging operation; each dragging direction corresponds to a level switching trend, wherein the level switching trend comprises an upper layer switching trend and a lower layer switching trend;
And adjusting the layer to be adjusted in the layers to be adjusted to the upper layer or the lower layer according to the target layer switching trend corresponding to the target dragging direction based on the target layer switching rate corresponding to the target dragging distance.
6. The method of claim 5, wherein the step of determining a target drag direction corresponding to a drag operation for the hierarchical adjustment control in response to the drag operation comprises:
determining a target track direction of a drag operation on a specified drag track in response to the drag operation of the hierarchical adjustment control along the specified drag track; the specified dragging track corresponds to two track directions, and the two track directions correspond to the switching trend of the upper layer and the switching trend of the lower layer respectively.
7. The method of claim 1, wherein the step of determining a target drag distance corresponding to a drag operation for the hierarchical adjustment control in response to the drag operation comprises:
responding to the dragging operation of the hierarchical adjustment control, and determining the dragging duration corresponding to the dragging operation;
and determining a target dragging distance corresponding to the dragging operation in response to the dragging time length being longer than a first preset time length.
8. The method of claim 7, further comprising, after the step of determining a drag duration corresponding to the drag operation in response to the drag operation for the hierarchical adjustment control:
responding to the dragging time length being smaller than or equal to the first preset time length and the control operation time length of the hierarchical adjustment control being smaller than or equal to the second preset time length, and adjusting the hierarchical layers of the to-be-adjusted layers in the layers according to the number of the designated switching hierarchical layers; the second preset time length is longer than the first preset time length, and the control operation time length comprises the dragging time length and the dragging residence time length.
9. The method of claim 7, further comprising, after the step of determining a drag duration corresponding to the drag operation in response to the drag operation for the hierarchical adjustment control:
responding to the dragging time length being smaller than or equal to the first preset time length and the control operation time length of the hierarchy adjustment control being longer than the second preset time length, and adjusting the hierarchy of the to-be-adjusted layer in a plurality of layers based on a specified hierarchy switching rate; the specified level switching rate is smaller than the target level switching rate, the second preset time period is longer than the first preset time period, and the control operation time period comprises the dragging time period and the dragging residence time period.
10. The method as recited in claim 1, further comprising:
responsive to the drag operation for the adjustment control starting from an initial position, controlling the adjustment control to move from the initial position following the drag operation;
and controlling the display position of the hierarchical adjustment control in the graphical user interface to be restored to the initial position in response to the control operation for the hierarchical adjustment control ending.
11. The method of claim 10, wherein the step of determining a target drag distance corresponding to a drag operation for the hierarchical adjustment control in response to the drag operation comprises:
in response to a drag operation of the hierarchical adjustment control from the initial position to a target movement position, a target movement distance between the target movement position and the initial position is determined.
12. The method of claim 1, wherein the hierarchy of the layers to be adjusted in the plurality of layers comprises the number of layers of the hierarchy in which the layers to be adjusted are located in the plurality of layers.
13. The layer adjusting device is characterized in that a graphical user interface is provided through terminal equipment, and a virtual scene comprises a plurality of layers; comprising the following steps:
A providing module, configured to provide, in the graphical user interface, a hierarchical adjustment control for a layer to be adjusted among a plurality of layers;
a determining module, configured to determine a target dragging distance corresponding to a dragging operation for the hierarchical adjustment control in response to the dragging operation; each dragging distance corresponds to a level switching rate, and the larger the dragging distance is, the faster the level switching rate is;
and the adjusting module is used for adjusting the layers of the layer to be adjusted in a plurality of layers based on the target layer switching rate corresponding to the target dragging distance.
14. An electronic terminal comprising a memory, a processor, the memory having stored therein a computer program executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1 to 12 when executing the computer program.
15. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any one of claims 1 to 12.
CN202310954798.2A 2023-07-31 2023-07-31 Picture layer adjusting method and device and electronic terminal Pending CN116841445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310954798.2A CN116841445A (en) 2023-07-31 2023-07-31 Picture layer adjusting method and device and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310954798.2A CN116841445A (en) 2023-07-31 2023-07-31 Picture layer adjusting method and device and electronic terminal

Publications (1)

Publication Number Publication Date
CN116841445A true CN116841445A (en) 2023-10-03

Family

ID=88174432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310954798.2A Pending CN116841445A (en) 2023-07-31 2023-07-31 Picture layer adjusting method and device and electronic terminal

Country Status (1)

Country Link
CN (1) CN116841445A (en)

Similar Documents

Publication Publication Date Title
CN110955370B (en) Switching method and device of skill control in game and touch terminal
CN107466077B (en) Network switching method and mobile terminal
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
RU2601173C2 (en) Split-screen display method and device, and electronic apparatus thereof
US10437442B2 (en) Method, apparatus, and terminal for processing notification information
CN105677305B (en) Icon management method and device and terminal
CN111228810B (en) Control method and device of virtual rocker, electronic equipment and storage medium
CN101872284A (en) Display mode switching method of functional keys and terminal
CN108228020B (en) Information processing method and terminal
CN113452744B (en) File sharing method, device, equipment and storage medium
CN107479818B (en) Information interaction method and mobile terminal
CN112817676B (en) Information processing method and electronic device
CN112188001B (en) Shortcut setting method, shortcut setting device, electronic equipment and readable storage medium
CN107562262B (en) Method for responding touch operation, terminal and computer readable storage medium
CN116841445A (en) Picture layer adjusting method and device and electronic terminal
CN107728898B (en) Information processing method and mobile terminal
CN113093971B (en) Object display control method and device
CN113926186A (en) Method and device for selecting virtual object in game and touch terminal
CN112764862A (en) Application program control method and device and electronic equipment
CN114397989A (en) Parameter value setting method and device, electronic equipment and storage medium
CN111782381A (en) Task management method and device, mobile terminal and storage medium
CN109101502B (en) Page flow configuration method, switching method and device
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium
CN113687922A (en) Task switching control method and device and related equipment
CN116850577A (en) Method and device for processing layers in game and electronic terminal

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