CN110928612B - Display control method and device of virtual resources and electronic equipment - Google Patents

Display control method and device of virtual resources and electronic equipment Download PDF

Info

Publication number
CN110928612B
CN110928612B CN201811103306.4A CN201811103306A CN110928612B CN 110928612 B CN110928612 B CN 110928612B CN 201811103306 A CN201811103306 A CN 201811103306A CN 110928612 B CN110928612 B CN 110928612B
Authority
CN
China
Prior art keywords
virtual resource
display
virtual
preset
hierarchy
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.)
Active
Application number
CN201811103306.4A
Other languages
Chinese (zh)
Other versions
CN110928612A (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.)
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 CN201811103306.4A priority Critical patent/CN110928612B/en
Publication of CN110928612A publication Critical patent/CN110928612A/en
Application granted granted Critical
Publication of CN110928612B publication Critical patent/CN110928612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a display control method and device of virtual resources and electronic equipment. Wherein, the method comprises the following steps: the electronic terminal is applied to an electronic terminal capable of presenting a graphical user interface on a screen, wherein the graphical user interface comprises a first virtual resource and a second virtual resource, and the method comprises the following steps: triggering a hierarchical adjustment mode in response to a first operation of the first virtual resource acted by the first operation medium and a second operation of the second virtual resource acted by the second operation medium, wherein the first operation and the second operation are at least partially overlapped in time sequence; in the hierarchy adjusting mode, the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is adjusted according to a first distance between the first operating medium and the screen and a second distance between the second operating medium and the screen.

Description

Display control method and device of virtual resources and electronic equipment
Technical Field
The invention relates to the technical field of software interface control, in particular to a display control method and device of virtual resources and electronic equipment.
Background
In the related art, for the control display aspect in the game or software control aspect, an arrangement hierarchy is provided, the arrangement level indicates the display sequence of the virtual resources (such as controls, text boxes, pictures and the like) displayed in the interface in the longitudinal structure of the interface, fig. 1a is a schematic diagram of an alternative display control method for virtual resources according to the prior art, as shown in fig. 1a, the virtual resources include text boxes and pictures, wherein the arrangement level of the text box in fig. 1a is above the picture, a part of the area above the picture is covered by the text box, and figure 1b is a second schematic diagram of an alternative display control method for virtual resources according to the prior art, as shown in fig. 1b, the virtual resource still includes a text box and a picture, but the text box in fig. 1b is below the picture with respect to fig. 1 a. The display mode of the virtual resource in the interface in the related art is shown by fig. 1a and fig. 1 b.
As can be known by those skilled in the art, the virtual resources in the current game or software interface are all fixedly displayed when displaying the hierarchy, and cannot be modified, that is, in the same overall frame, the display mode of each virtual resource is determined in advance, if the virtual resources are to be modified, a user needs to click the overall space through a mouse to start "canceling combination", and then find the virtual resources to be adjusted one by one through the mouse, and adjust the virtual resources layer by layer, if there is a combination situation of multiple virtual resources, much time is wasted when adjusting the display order of the virtual resources. For example, in the related art, the Office software is defaulted to sort the virtual resources according to the created time sequence, the shorter the time is, the higher the displayed level is, and when the user wants to adjust the arrangement sequence, the user needs to click each virtual resource and then click "one layer up" or "one layer down", and for the case of many layers, the overall operation process is complex and the operation steps are complicated, and the user needs to move many times, which results in much time waste and lower efficiency.
In addition, for displaying virtual resources in the related art, the setting positions of the hair, the coat, the skirt, and the shoes are often set in advance, for example, for designing the costume of the virtual character in the animation, the user can only select the style and the color, and the display sequence and the setting position of the virtual resources cannot be changed, so that the experience of the user in experiencing the game is reduced.
In view of the technical problems of complex operation and time waste resulting in low operation efficiency in the foregoing related art regarding the movement of the display sequence of the virtual resource, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a display control method and device for virtual resources and electronic equipment, and aims to at least solve the technical problems of complex operation, more time waste and low operation efficiency of the movement of a display sequence of the virtual resources in the related art.
According to an aspect of an embodiment of the present invention, there is provided a display control method for virtual resources, including: the method is applied to the electronic terminal capable of presenting a graphical user interface on a screen, wherein the graphical user interface comprises a first virtual resource and a second virtual resource, and comprises the following steps: triggering a hierarchical adjustment mode in response to a first operation of a first operating medium acting on a first virtual resource and a second operation of a second operating medium acting on a second virtual resource, wherein the first operation and the second operation are at least partially overlapped in time sequence; in the hierarchy adjustment mode, adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface according to a first distance of the first operating medium from the screen and a second distance of the second operating medium from the screen.
Further, before triggering the hierarchical adjustment mode in response to a first operation of the first virtual resource by the first operating medium and a second operation of the second virtual resource by the second operating medium, the method further comprises: receiving a first operation of a first operating medium acting on a first virtual resource and a second operation of a second operating medium acting on a second virtual resource; detecting an overlapping region of the first virtual resource and the second virtual resource.
Further, the method further comprises: when the overlapping area meets a first preset condition, according to the received first operation and/or the second operation, controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode so as to reduce the overlapping area.
Further, the overlapping area satisfies a first preset condition, including that a ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a first preset value and less than a second preset value.
Further, the method further comprises: when the overlapping area meets a second preset condition, detecting a third operation which acts on the overlapping area and meets a third preset condition; and controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the third operation so as to reduce the overlapping area.
Further, the overlapping area meets a second preset condition, including that the ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a second preset value.
Further, the third operation meeting the third preset condition includes at least one of: the touch control operation meeting the preset touch control time length, the touch control operation meeting the preset touch control pressure and the non-contact operation meeting the preset hovering time length.
Further, adjusting a display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface includes: interchanging a display hierarchy of the first virtual resource with the second virtual resource when the initial display hierarchy indicates that the first virtual resource is above the second virtual resource and the first distance is less than the second distance.
Further, after triggering the hierarchical adjustment mode, the method further comprises: displaying the first virtual resource and the second virtual resource through a third preset display mode, wherein the third preset display mode includes at least one of: bold, highlight, color.
Further, after adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface, the method further comprises: detecting a fourth operation acting on the screen; according to the fourth operation, the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is determined.
According to another aspect of the embodiments of the present invention, there is provided a display control apparatus for virtual resources, which is applied to an electronic terminal capable of presenting a graphical user interface on a screen, where the graphical user interface includes a first virtual resource and a second virtual resource, and includes: a triggering unit configured to trigger a hierarchical adjustment mode in response to a first operation in which a first operating medium acts on a first virtual resource and a second operation in which a second operating medium acts on a second virtual resource, wherein the first operation and the second operation overlap at least partially in time sequence; an adjusting unit, configured to, in the hierarchy adjustment mode, adjust a display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface according to a first distance from the first operating medium to the screen and a second distance from the second operating medium to the screen.
Further, the display control apparatus for virtual resources further includes: a receiving unit, configured to receive a first operation in which a first operating medium acts on a first virtual resource and a second operation in which a second operating medium acts on a second virtual resource before triggering a hierarchy adjustment mode in response to the first operation in which the first operating medium acts on the first virtual resource and the second operation in which the second operating medium acts on the second virtual resource; a detecting unit, configured to detect an overlapping area of the first virtual resource and the second virtual resource.
Further, the display control apparatus for virtual resources further includes: and the control unit is used for controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the received first operation and/or the second operation when the overlapping area meets a first preset condition so as to reduce the overlapping area.
Further, the overlapping area satisfies a first preset condition, including: the ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a first preset value and less than a second preset value.
Further, the display control apparatus for virtual resources further includes: the first detection module is used for detecting a third operation which is acted on the overlapping area and meets a third preset condition when the overlapping area meets a second preset condition; and the first control module is used for controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the third operation so as to reduce the overlapping area.
Further, the overlapping area meets a second preset condition, including that the ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a second preset value.
Further, the third operation meeting the third preset condition includes at least one of: the touch control operation meeting the preset touch control time length, the touch control operation meeting the preset touch control pressure and the non-contact operation meeting the preset hovering time length.
Further, the display control apparatus for virtual resources further includes: a second detection module to detect an initial display level of the first virtual resource and the second virtual resource before triggering a level adjustment mode.
Further, the display control apparatus for virtual resources further includes: and the first display module is used for displaying the initial display levels of the first virtual resource and the second virtual resource in a second preset display mode.
Further, the first display module includes: the first display submodule is used for displaying the first virtual resource with a first transparency and displaying the second virtual resource with a second transparency; and the indicating module is used for indicating the initial display level according to the occlusion relation of the first virtual resource and the second virtual resource.
Further, the adjusting unit includes: an adjustment module to interchange the display levels of the first virtual resource and the second virtual resource when the initial display level indicates that the first virtual resource is above the second virtual resource and the first distance is less than the second distance.
Further, the display control apparatus for virtual resources further includes: a second display module, configured to display the first virtual resource and the second virtual resource in a third preset display manner after triggering the hierarchical adjustment mode, where the third preset display manner includes at least one of: bold, highlight, color.
Further, the display control apparatus for virtual resources further includes: a third detection module, configured to detect a fourth operation acting on the screen after adjusting a display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface; a determining module, configured to determine, according to the fourth operation, a display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above virtual resource display control methods via execution of the executable instructions.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and when the program runs, a device on which the storage medium is located is controlled to execute the method for controlling display of a virtual resource according to any one of the foregoing items.
In the embodiment of the invention, the hierarchical adjustment mode is triggered in response to a first operation of a first operation medium acting on a first virtual resource and a second operation of a second operation medium acting on a second virtual resource, wherein the first operation and the second operation are at least partially overlapped in time sequence; in the hierarchy adjusting mode, the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is adjusted according to a first distance between the first operating medium and the screen and a second distance between the second operating medium and the screen. In this embodiment, the first operation and the second operation may be operations that do not act on a terminal screen, that is, non-contact operations, and the virtual resource displayed on the graphical user interface may be adjusted through the first operation and the second operation, specifically, the display level of the virtual resource in the graphical user interface may be adjusted according to the distance between the first operation and the screen and the distance between the second operation and the screen, and the user does not need to adjust the display level of the virtual resource layer by layer through a mouse, which is faster in an adjustment manner, thereby solving the technical problems of tedious operation and more time waste and low operation efficiency in the related art for the movement of the display sequence of the virtual resource.
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. 1a is a first schematic diagram of an alternative method for controlling display of virtual resources according to the prior art;
FIG. 1b is a diagram illustrating another alternative method for controlling display of virtual resources according to the prior art;
FIG. 2 is a diagram illustrating an alternative method for controlling display of virtual resources, according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative virtual resource on an electronic terminal according to an embodiment of the invention;
FIG. 4 is a display control diagram (one) of an alternative virtual resource in accordance with an example of the present invention;
FIG. 5 is a schematic view (two) of an alternative display control of a virtual resource according to an example of the present invention;
FIG. 6 is a schematic illustration (III) of an alternative display control of a virtual resource in accordance with an example of the present invention;
FIG. 7 is an alternative display control diagram of a virtual resource according to an example of the present invention;
FIG. 8 is a schematic illustration of display control of an alternative virtual resource in accordance with an example of the present invention (V);
FIG. 9 is an alternative display control diagram of a virtual resource according to an example of the present invention;
FIG. 10 is a schematic diagram of another alternative display control apparatus for virtual resources, in accordance with an embodiment of the present invention;
FIG. 11 is a schematic view of an alternative electronic device according to embodiments of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, 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 obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, 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 other sequences 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.
To facilitate the understanding of the present invention, some terms or nouns related to the embodiments of the present invention are explained below:
and (3) displaying the hierarchy: the display sequence of the interface needs to be determined in the longitudinal structure, and the controls on the lower layer are shielded by the controls on the upper layer.
The non-contact operation is an operation indicating non-contact with a terminal screen in the application, and the operation of an operation medium in front of the terminal screen is detected through a sensor (or other screen distance sensing devices) carried in the terminal, and the detected operation is the non-contact operation. The terminal generates a corresponding control signal according to the received non-contact operation, namely the operation medium can send a control instruction without contacting a terminal screen, and if the operation medium is a three-dimensional substance such as a finger, the position of the whole operation medium, which is closest to the terminal screen, can be detected.
And touch operation, in the application, indicating an operation of contacting an operation medium with a terminal screen, and generating a touch instruction corresponding to the operation when the terminal receives the operation.
The devices or apparatuses to which the following embodiments of the present invention are applied may include, but are not limited to: mobile terminals and fixed terminals, wherein the mobile terminals include but are not limited to: the device and the equipment can be provided with an interactive interface or an interactive screen so as to conveniently receive the operation of a user.
Optionally, the interactive operation in the present invention includes a non-contact operation (or a non-contact interactive operation) and a touch operation, that is, the operation medium may issue an instruction through the non-contact interactive operation, may also issue an instruction through the touch operation, and implement a related action through the non-contact interactive operation, or through a combination of the non-contact interactive operation and the touch operation. For example, the virtual resources of the arrangement hierarchy to be adjusted may be determined through touch operation, and if there are 5 virtual resources in one adjustment and the display hierarchies of two of the virtual resources need to be adjusted, the virtual resources to be adjusted may be selected through touch operation, the display hierarchies of the virtual resources may be adjusted through non-contact interaction operation, and then the adjusted display hierarchies may be determined through touch operation again.
In addition, the operation medium in the present invention may be a user's limb, such as a finger, or another touch object, such as a touch pen, and the display level of the virtual resource is adjusted by the touch pen.
In the present invention, if the operation medium is a finger, it may be determined whether to adjust the display mode of the virtual resource through an action of the finger and a terminal screen (expressed as a graphical user interface in the following embodiment), for example, the priority of the display hierarchy is determined according to a distance between the finger and the terminal screen, and if the distance is set to be a long distance, the upper layer is set, and the distance is set to be a short distance, the lower layer is set, so that the display hierarchy of the virtual resource may be quickly adjusted through the operation medium. The present invention will be described in detail below with reference to examples.
Example one
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for controlling display of virtual resources, where the steps illustrated in the flowchart of the figure may be performed in a computer system, such as a set of computer-executable instructions, and where a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The exemplary embodiment first discloses a display control method for virtual resources, which may be applied to an electronic terminal capable of presenting a graphical user interface on a screen, and the graphical user interface is obtained by executing a software application on a processor of the electronic terminal and rendering the software application on a display screen of the electronic terminal, where the software application may be editing software such as office, PPT, picture processing, video clip, and the like, or game application software such as changing equipment, placing equipment, and the like.
Fig. 2 is a schematic diagram of a display control method for optional virtual resources, applied to an electronic terminal capable of presenting a graphical user interface on a screen, where the graphical user interface includes a first virtual resource and a second virtual resource, according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step S202, responding to a first operation of a first operating medium acting on a first virtual resource and a second operation of a second operating medium acting on a second virtual resource, triggering a hierarchy adjustment mode, wherein the first operation and the second operation are at least partially overlapped in time sequence.
Step S204, in the hierarchy adjusting mode, according to a first distance between the first operating medium and the screen and a second distance between the second operating medium and the screen, adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface.
According to the method provided by the embodiment of the invention, the display level of the virtual resources in the graphical user interface is adjusted according to the distance between the first operation and the screen, the user does not need to adjust the display level of the virtual resources layer by layer, the operation habit of the user is met, the visibility and the operability are improved, the learning cost is reduced, and the adjustment mode is faster, so that the technical problems of complicated operation, more time waste and low operation efficiency caused by the movement of the display sequence of the virtual resources in the related technology are solved.
Next, each step of the display control method of the virtual resource in the present exemplary embodiment is further described with reference to fig. 2 to 9.
In the present exemplary embodiment, fig. 3 is a schematic diagram of an optional virtual resource on an electronic terminal according to an embodiment of the present invention, and as shown in fig. 3, an application is executed on a processor of the electronic terminal 100 and rendered on a screen of the electronic terminal to obtain a graphical user interface 110, and content presented by the graphical user interface 110 at least partially includes a first virtual resource 310 and a second virtual resource 320.
First, for step S202, a hierarchical adjustment mode is triggered in response to a first operation of a first operating medium acting on a first virtual resource and a second operation of a second operating medium acting on a second virtual resource, wherein the first operation and the second operation overlap at least partially in time sequence.
In the present exemplary embodiment, the first operation may be a touch operation of contacting the first virtual resource or contacting a response range of the first virtual resource, the touch operation including at least one of: long press, heavy press, click and slide; the method can also be a contactless operation without contacting the first virtual resource, wherein a projection point of an operation point of the contactless operation in the graphical user interface is located within the first virtual resource or within a response range of the first virtual resource, and the contactless operation includes at least one of the following operations: hover and hover movements. The first virtual resource is a touch icon (e.g., a circular icon or a square icon in fig. 1) rendered on the gui and having a visual effect, the response range of the first virtual resource is an area capable of responding to touch operation/non-contact operation, and the area of the response range of the first virtual resource may be equal to or larger than the area of the first virtual resource. For the second operation, similar to the first operation, the second operation may be a touch operation in which the second virtual resource is contacted, or a non-contact operation in which the second virtual resource is not contacted, which is not described herein.
In the present exemplary embodiment, at least a partial time sequence coincidence of the first operation and the second operation may be that the first operation medium acts on the first virtual resource to perform the first operation first, and before the first operation is finished, the second operation medium acts on the second virtual resource to perform the second operation; the second operating medium may act on the second virtual resource first to execute the second operation, and before the second operation is finished, the first operating medium acts on the first virtual resource to execute the first operation; it is also possible that the second operating medium acts on the second virtual resource to perform the second operation while the first operating medium acts on the first virtual resource to perform the first operation.
Take the first operating medium and the second operating medium as the left hand and the right hand of the user, respectively, as an example.
In an alternative embodiment of the present invention, the first operation is a long press operation to contact the first virtual resource, and the second operation is a long press operation to contact the second virtual resource. Fig. 4 is a schematic view (a) of display control of an optional virtual resource according to an embodiment of the present invention, as shown in fig. 4, which is specifically expressed as: when detecting that the left hand finger presses on the first virtual resource 310 for a long time and the right hand finger presses on the second virtual resource 320 for a long time, the hierarchy adjustment mode is triggered. The touch duration of the long press operation is not limited in the present invention, and may be set by itself according to the actual application condition, for example, the touch duration of the long press operation is set to be 1 second or 1.5 seconds, that is, in this embodiment, the user needs to trigger the hierarchy adjustment mode according to the first virtual resource and the second virtual resource, and if the first virtual resource and the second virtual resource are clicked only for a short time, the system determines that the user has an incorrect operation, the hierarchy adjustment mode is not triggered.
In another optional embodiment of the invention, the first operation is a hover operation that does not contact the first virtual resource, and the second operation is a hover operation that does not contact the second virtual resource. The concrete expression is as follows: and when detecting that the left finger hovers in a preset distance range (such as 0-5cm in the Z-axis direction) in front of the first virtual resource for more than a preset time length and the right finger hovers in a preset distance range in front of the second virtual resource for more than a preset time length, triggering the hierarchy adjustment mode. The hovering duration is not limited in this respect, and may be set by itself according to the actual application, for example, the hovering duration is set to 1 second or 2 seconds. As shown in FIG. 4, the hierarchical adjustment mode is triggered, for example, when the left-hand finger is detected to hover at the position 311 for a preset duration and the right-hand finger is detected to hover at the position 321 for a preset duration, where the position 311 is a position of the first virtual resource 310 within a preset distance range in the positive direction of the Z-axis, and the position 321 is a position of the second virtual resource 320 within a preset distance range in the positive direction of the Z-axis.
The preset length of time that the hovering length of the left finger in a preset distance range in front of the first virtual resource exceeds, or the preset length of time that the hovering length of the right finger in a preset distance range in front of the second virtual resource exceeds, where the preset length of time and the length of time of the long pressing operation may be the same, such as 1 second or 2 seconds, or may be different, and are set by the user.
In the present exemplary embodiment, the virtual resource may be a combined virtual frame, control, art resource, and the like. In an alternative embodiment of the present invention, the virtual resource may be an operation control in a game, a virtual character, a dress of the virtual character, a virtual object (such as a virtual racing car, a virtual house, etc.), a scene element in a game scene (such as a flower, a grass, a mountain, a stone, etc.), a text box, etc. The display hierarchy of the virtual resource needs to be adjusted, and particularly, when the display hierarchy of the virtual resource is adjusted, the operation mode in the present invention is used more for the case where the combination content of the virtual character and the virtual object is more.
Specifically, taking a change-over game as an example, the virtual resource is clothes of a virtual character, and in the change-over game, the related operations on the contents of clothes, trousers and the like can be performed, such as inserting clothes into the trousers or placing the clothes outside the trousers, stacking the skirt and the clothes and the like. For the placement type game, the virtual resource is a scene element in a game scene, such as virtual furniture, and the front-back sequence and the stacking mode of the furniture can be set. For edit class software: the context between pictures can be set.
In the graphical user interface, the graphical user interface can be directly acted on by the operation medium, and the invention does not limit the type of the operation medium, such as a touch pen, a finger of a user, and the like. In the following examples, the embodiments of the present invention are described by taking a finger as an operation medium, and the operation medium may include one or more of a first operation medium corresponding to a first virtual resource in the present invention and a second operation medium corresponding to a second virtual resource in the present invention.
In this exemplary embodiment, before triggering the hierarchy adjustment mode in response to a first operation in which the first operating medium acts on the first virtual resource and a second operation in which the second operating medium acts on the second virtual resource, the method further includes: receiving a first operation of a first operating medium acting on a first virtual resource and a second operation of a second operating medium acting on a second virtual resource; an overlapping region of the first virtual resource and the second virtual resource is detected.
When the virtual resources are more than or equal to two, the virtual resources may overlap, and then the range and the proportion of the overlapping area need to be detected, and the virtual resources are controlled to be displayed in a first preset mode according to the range and the proportion of the overlapping area. Fig. 5 is a schematic diagram (ii) illustrating display control of an alternative virtual resource according to an embodiment of the present invention, and as shown in fig. 5, the graphical user interface 110 includes three virtual resources, such as a first virtual resource 310, a second virtual resource 320, and a third virtual resource 330, where the first virtual resource 310 and the second virtual resource 320 overlap and have an overlapping area 312.
In the present exemplary embodiment, the first preset manner may be a spread-out to reduce the overlapping area; or may be color-labeled or transparency-labeled (e.g., labeling the first virtual resource and the second virtual resource to be adjusted with different colors or different transparencies) to visually distinguish the first virtual resource from the second virtual resource.
In an optional embodiment of the present invention, the display control method further includes: and when the overlapping area meets a first preset condition, controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the received first operation and/or second operation so as to reduce the overlapping area.
In this embodiment, the overlapping area satisfies a first predetermined condition, which includes that a ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a first predetermined value and smaller than a second predetermined value.
In the embodiment of the present invention, the first preset value and the second preset value may be values set by a user, for example, the first preset value is set to be 0%, and the second preset value is set to be 50%. For example, when the ratio of the overlapping area to the first virtual resource is greater than 0% and less than 50%, or when the ratio of the overlapping area to the second virtual resource is greater than 0% and less than 50%, the first virtual resource and the second virtual resource are controlled to be displayed in a tiled manner according to the received first operation and/or second operation, fig. 6 is a display control schematic diagram (iii) of an optional virtual resource according to an example of the present invention, and as shown in fig. 6, the first virtual resource 310 and the second virtual resource 320 are controlled to be switched from the overlapped display shown in fig. 5 to the tiled display according to the received first operation and/or second operation, so as to reduce the overlapping area 312, and facilitate adjustment of a subsequent display level. The received first operation comprises an operation acting on a non-overlapping area of the first virtual resource and the second virtual resource and/or an operation on an overlapping area of the first virtual resource and the second virtual resource; it will be appreciated that the received second operation includes an operation on a non-overlapping region of the second virtual resource with the first virtual resource and/or an operation on an overlapping region of the second virtual resource with the first virtual resource.
In another optional embodiment of the invention, the method further comprises: when the overlapping area meets a second preset condition, detecting a third operation which acts on the overlapping area and meets a third preset condition; and controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the third operation so as to reduce the overlapping area.
In this embodiment, the overlap area satisfies a second preset condition, which includes that a ratio of the overlap area to the first virtual resource or the second virtual resource is greater than a second preset value. Specifically, when it is detected that the ratio of the overlapping area to the first virtual resource is greater than a second preset value, or the ratio of the overlapping area to the second virtual resource is greater than the second preset value, the first virtual resource and the second virtual resource are controlled to be displayed in a tiled manner according to a third operation. The third operation satisfying the third preset condition includes at least one of: the touch control method comprises the following steps of meeting touch control operation with preset touch control duration, meeting touch control operation with preset touch control pressure and meeting non-contact operation with preset hovering duration. The preset touch duration and the preset touch pressure magnitude can indicate touch operation, the hovering duration indicates non-contact operation of an operation medium hovering in a preset range in front of a screen, and the touch operation meeting the preset touch duration can be long-time pressing operation or clicking operation.
In conjunction with the contents shown in fig. 5 and 6, when the finger is detected to press the overlap area 312 for a long time, the first virtual resource 310 and the second virtual resource 320 are controlled to be displayed in a tiled manner; for another example, when it is detected that the finger is hovering in front of the overlap area 312 (i.e., a non-contact operation), and the hovering time reaches a preset time period, the first virtual resource 310 and the second virtual resource 320 are controlled to be displayed in a tiled manner.
The first virtual resource and the second virtual resource can be distinguished through the third operation, and the overlapping area of the two virtual resources is reduced, so that a user can clearly see the positions of the two virtual resources to be adjusted.
In this exemplary embodiment, before triggering the adjustment mode, the method further comprises: an initial display hierarchy of the first virtual resource and the second virtual resource is detected.
The initial display hierarchy indicates the display hierarchy of each virtual resource at the beginning, and a plurality of virtual resources may be involved in one adjustment process, so that the initial display hierarchy of each virtual resource needs to be determined before the virtual resources are adjusted.
In the present exemplary embodiment, the method further includes: and displaying the initial display levels of the first virtual resource and the second virtual resource in a second preset display mode.
In this exemplary embodiment, the second preset display mode may be a display mode defined by a user, and in an optional embodiment of the present invention, displaying the initial display hierarchy of the first virtual resource and the second virtual resource in the second preset display mode includes: displaying the first virtual resource with a first transparency, and displaying the second virtual resource with a second transparency; and indicating an initial display level according to the occlusion relation of the first virtual resource and the second virtual resource.
For the embodiment, the first transparency and the second transparency may be preset, and the first transparency and the second transparency may be the same or different. Of course, the corresponding transparency may also be determined according to the levels of the first virtual resource and the second virtual resource, where the transparency of the virtual resource located at the upper layer (indicating that the display level is at the upper level) may be set to be lower than the transparency of the virtual resource located at the lower layer, or the transparency of the virtual resource located at the upper layer may be set to be higher than the transparency of the virtual resource located at the lower layer. If the first virtual resource is located on the upper layer of the second virtual resource, the first transparency of the first virtual resource is set to 50%, and the second transparency of the second virtual resource is set to 60%.
Step S204, in the hierarchical adjustment mode, according to the first distance between the first operation medium and the screen and the second distance between the second operation medium and the screen, adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface.
In the present exemplary embodiment, adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface according to a first distance of the first operating medium from the screen and a second distance of the second operating medium from the screen includes: if the first distance is greater than the second distance, adjusting the display level of the first virtual resource to be positioned above the second virtual resource; and if the first distance is smaller than the second distance, adjusting the display level of the first virtual resource to be positioned below the second virtual resource.
Fig. 7 is a schematic diagram (four) of display control of an alternative virtual resource according to an example of the present invention, as shown in fig. 7, where a first operating medium acting on a first virtual resource 310 is located at a position 311, a second operating medium acting on a second virtual resource 320 is located at a position 321, and display hierarchies of the first virtual resource 310 and the second virtual resource 320 in the graphical user interface 110 are adjusted according to a first distance from the first operating medium to the screen and a second distance from the second operating medium to the screen, that is, the first distance is greater than the second distance, and then the display hierarchy of the first virtual resource 310 is located above the second virtual resource 320. At this time, if the first virtual resource 310 and the second virtual resource 320 have an overlapping region, the first virtual resource 310 blocks a portion of the second virtual resource 320.
In the present exemplary embodiment, adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface comprises: the display hierarchy of the first virtual resource and the second virtual resource is interchanged when the initial display hierarchy indicates that the first virtual resource is above the second virtual resource and the first distance is less than the second distance.
In this exemplary embodiment, in adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface, the display hierarchy of the first virtual resource and the second virtual resource may be maintained unchanged when the initial display hierarchy indicates that the first virtual resource is above the second virtual resource and the first distance is greater than the second distance, and the display hierarchy of the first virtual resource and the second virtual resource may be interchanged when the initial display hierarchy indicates that the first virtual resource is above the second virtual resource and the first distance is less than the second distance. The display level of the virtual resource can be adjusted according to the initial display level of the virtual resource, the first distance and the second distance.
In this exemplary embodiment, after triggering the hierarchical adjustment mode, the method further comprises: displaying the first virtual resource and the second virtual resource through a third preset display mode, wherein the third preset display mode comprises at least one of the following modes: bold, highlight, color.
The third preset display mode indicates how to display the two virtual resources in the process of adjusting the display levels of the virtual resources, and the third preset display mode further comprises displaying each level through the three-dimensional arrangement of the user UI interface. The first virtual resource and the second virtual resource are highlighted by various display manners.
When the third preset display mode is to display the virtual resources through three-dimensional arrangement, the combined virtual resources can be displayed in a stretching mode, that is, a plurality of virtual resources are combined together, and when the display hierarchy where each virtual resource is located cannot be effectively distinguished, each display hierarchy can be arranged through three-dimensional arrangement, and each virtual resource is separated from each other in the longitudinal direction, so that two adjacent virtual resources can be stretched from each other, and thus, when displaying, a user can view each virtual resource displayed in three-dimensional separation. In the hierarchy adjustment mode, after each virtual resource is displayed in a three-dimensional manner, the distances between the first operating medium and the terminal screen and the distances between the second operating medium and the terminal screen can be detected, so that the display hierarchies of the first virtual resource and the second virtual resource in the graphical user interface are adjusted. Optionally, in this example, all the virtual resources in the area touched by the operating medium in the current graphical user interface may be displayed in a third preset display manner, where during the display, the virtual resources of each hierarchy may be displayed in a three-dimensional manner, so that the user can clearly know the hierarchy where each virtual resource is currently located.
In the present exemplary embodiment, after adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface, a fourth operation acting on the screen may also be detected; according to a fourth operation, a display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is determined.
In the present exemplary embodiment, the fourth operation may be at least one of: click operation, long press operation and re-press operation. The fourth operation indicates that the hierarchy adjustment of the virtual resource is completed, that is, if the fourth operation is detected, which represents that the operation of adjusting the hierarchy of the virtual resource is completed, the display hierarchies of the first virtual resource and the second virtual resource in the graphical user interface may be determined, and the display hierarchies may be displayed in the graphical user interface according to the adjusted display hierarchy relationship.
In the present exemplary embodiment, the fourth operation is an operation performed by an operation medium that is a shorter distance from the screen, out of the first operation medium and the second operation medium, so as to implement determination of completion of virtual resource adjustment.
For example, the initial display hierarchy of the first virtual resource and the second virtual resource is that the first virtual resource is located above the second display resource; adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface through a first distance from the first operating medium to the screen and a second distance from the second operating medium to the screen, for example, if the first operating medium is 2cm away from the screen and the second operating medium is 4cm away from the screen, adjusting the display hierarchy of the second virtual resource to be positioned above the first virtual resource; at this time, if the distance from the first operating medium to the screen is small, a fourth operation (for example, a click operation) in which the first operating medium acts on the screen determines that the display hierarchy of the second virtual resource is located above the first virtual resource.
For the embodiment of the present invention, when performing the fourth operation, the fourth operation may be issued by using the operation medium closest to the terminal screen, so as to determine that the adjustment of the virtual resource is completed.
In this exemplary embodiment, after the adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is completed, the method further includes: the first virtual resource and the second virtual resource are combined.
Specifically, after the display levels of the first virtual resource and the second virtual resource in the graphical user interface are adjusted, the virtual resources may be combined by combining at least one virtual resource and combining the virtual resources according to the adjusted positions of the respective virtual resources, so as to complete the adjustment operation of the virtual resources. The adjusted display hierarchical relationship can be displayed according to the initial display position of each virtual resource; and displaying the adjusted display hierarchical relationship according to the preset display position of each virtual resource by the system.
In this exemplary embodiment, a terminal screen corresponding to the graphical user interface may have a corresponding touch sensor and a corresponding contactless sensor, and the contactless sensor may detect a contactless operation when the operating medium is not in contact with the terminal screen, so as to send a corresponding control signal, for example, when a user adjusts the arrangement level of the control by using a finger, the arrangement level of the control may be determined by using a distance between the finger and the terminal screen.
In the embodiment of the present invention, only the display levels of two virtual resources may be adjusted in one adjustment process, and certainly, the number of virtual resources adjusted in one adjustment process is not limited in the present invention, and may be one, two, or more. Here, the adjustment of the display levels of two virtual resources is described as an example, and the adjustment of the display levels of more than two virtual resources may be realized.
In addition, a tracker (such as an infrared tracker) can be further arranged on the terminal where the graphical user interface is located in the embodiment of the present invention, and the tracker can track the position of the finger when the finger is interacted through the non-contact operation, that is, the distance value between the finger and the terminal screen can be tracked, and the contents of the first operation and the second operation can be determined through the distance value.
Fig. 8 is a schematic diagram (five) illustrating display control of an alternative virtual resource according to an example of the present invention, as shown in fig. 8, an application is executed on a processor of the electronic terminal 100 and rendered on a screen of the electronic terminal to obtain the graphical user interface 110, content presented by the graphical user interface 110 at least partially includes a first virtual resource 310 and a second virtual resource 320, and in fig. 8, it is shown that the first virtual resource 310 and the second virtual resource 320 are partially overlapped, and an initial display level of the first virtual resource 310 is above a display level of the second virtual resource 320. Taking the finger a and the finger B as the operation media (corresponding to the first operation medium and the second operation medium described above), to adjust the display level of the virtual resource, as shown in fig. 8, the distance value between the finger a and the first virtual resource 310 is a, the distance value between the finger B and the second virtual resource is B, and it is shown in fig. 8 that a is greater than B, at this time, it indicates that the distance value between the finger a and the first virtual resource 310 is greater than the distance value between the finger B and the second virtual resource 320, and the display level of the first virtual resource 310 is above the display level of the second virtual resource 320, at this time, it is determined that the display levels of the first virtual resource 310 and the second virtual resource 320 do not need to be adjusted.
Fig. 9 is a display control diagram (vi) of an alternative virtual resource according to an example of the present invention, where the initial display hierarchy of the first virtual resource 310 is above the display hierarchy of the second virtual resource 320, as shown in fig. 9. Taking the finger a and the finger B as the operation media (corresponding to the first operation medium and the second operation medium described above), to adjust the display level of the virtual resource, as shown in fig. 9, the distance value between the finger a and the first virtual resource 310 is a, the distance value between the finger B and the second virtual resource is B, and it is shown in fig. 9 that a is smaller than B, at this time, the distance value between the finger a and the first virtual resource 310 is indicated to be smaller than the distance value between the finger B and the second virtual resource 320, and since the initial display level of the first virtual resource 310 is above the display level of the second virtual resource 320, the display level of the second virtual resource 320 is adjusted to be above the first virtual resource 310 at this time.
The adjustment of the display hierarchy in the example of the present invention is not limited to the adjustment of the display hierarchy of the bottom-most virtual resource and the top-most virtual resource, and may be the adjustment of the display hierarchy of any two virtual resources on the graphical user interface, for example, the two virtual resources that need to be adjusted in the display hierarchy are selected from the multiple virtual resources according to the first operation and the second operation, and the display hierarchy of the two selected virtual resources is adjusted according to the above-described example, that is, the two virtual resources triggering the hierarchy adjustment are exchanged.
In an optional embodiment of the present invention, if the virtual resource that needs to be adjusted is in the middle layer, each virtual resource may be displayed in a first preset manner, for example, each virtual resource is directly tiled, and then the user may select two virtual resources that need to be adjusted through the first operation and the second operation. In this embodiment, an expansion control may be provided in the graphical user interface, and according to a fifth operation applied to the expansion control, all virtual resources in the graphical user interface are tiled and displayed, so that a user can select a virtual resource whose display level is to be adjusted.
For the condition that the graphical user interface comprises a plurality of virtual resources (more than or equal to two), adjusting the display levels of the first virtual resource and the second virtual resource in the graphical user interface according to the first distance from the first operating medium to the screen and the second distance from the second operating medium to the screen comprises the following steps: and the display levels of the first virtual resource and the second virtual resource are interchanged, the first virtual resource is adjusted to the upper layer or the lower layer adjacent to the second virtual resource, or the second virtual resource is adjusted to the upper layer or the lower layer adjacent to the first virtual resource.
In an alternative embodiment of the present invention, the display hierarchy of the first virtual resource and the second virtual resource may be interchanged according to a first distance of the first operating medium from the screen and a second distance of the second operating medium from the screen, which may be adjusted by directly interchanging the display hierarchies of the two virtual resources (through a non-contact operation). If a plurality of virtual resources, namely, virtual resources C, D, E and F, exist between the current first virtual resource A and the second virtual resource B, if the initial display level sequence of the virtual resources is A-C-D-E-F-B (A is the uppermost layer), detecting a first operation of a first operating medium acting on the first virtual resource A and a second operation of a second operating medium acting on the second virtual resource B, and triggering a level adjustment mode; in a hierarchy adjustment mode, adjusting display hierarchies of a first virtual resource and a second virtual resource in the graphical user interface according to a first distance from a first operating medium to a screen and a second distance from a second operating medium to the screen, wherein when the first distance is greater than the second distance, the display hierarchies of the virtual resources remain unchanged as A-C-D-E-F-B (A is the uppermost layer); when the first distance is smaller than the second distance, the display level of the virtual resource is adjusted to be B-C-D-E-F-A (B is the uppermost layer).
In another optional embodiment of the present invention, the first virtual resource is adjusted to an upper layer or a lower layer adjacent to the second virtual resource according to a first distance between the first operating medium and the screen and a second distance between the second operating medium and the screen. For example, the graphical user interface includes virtual resources a, B, C, D, E, and F, and the initial display level sequence of the virtual resources is a-C-D-E-F-B (a is the uppermost layer), and a level adjustment mode is triggered by detecting a first operation performed by a first operating medium on the first virtual resource a and a second operation performed by a second operating medium on the second virtual resource B; in a hierarchy adjusting mode, adjusting the display hierarchy of a first virtual resource and a second virtual resource in a graphical user interface according to a first distance between a first operating medium and a screen and a second distance between a second operating medium and the screen, wherein when the second distance is kept unchanged and the first distance is greater than the second distance, the first virtual resource A is adjusted to a layer above the second virtual resource B, namely the display hierarchy of the virtual resource is adjusted to be C-D-E-F-A-B (C is the uppermost layer); when the second distance is kept constant and the first distance is smaller than the second distance, the first virtual resource A is adjusted to a next layer adjacent to the second virtual resource B, namely the display level of the virtual resource is adjusted to be C-D-E-F-B-A (C is the uppermost layer).
It is understood that, in yet another alternative embodiment of the present invention, the second virtual resource is adjusted to the upper layer or the lower layer adjacent to the first virtual resource according to the first distance from the screen by the first operating medium and the second distance from the screen by the second operating medium. For example, the graphical user interface comprises virtual resources a, B, C, D, E, F, and the initial display level sequence of the virtual resources is a-C-D-E-F-B (a is the uppermost layer), a first operation of a first operating medium acting on the first virtual resource a and a second operation of a second operating medium acting on the second virtual resource B are detected, and a level adjustment mode is triggered; in a hierarchy adjusting mode, adjusting the display hierarchy of a first virtual resource and a second virtual resource in a graphical user interface according to a first distance between a first operating medium and a screen and a second distance between a second operating medium and the screen, wherein when the first distance is kept unchanged and the second distance is greater than the first distance, the second virtual resource B is adjusted to a layer above the first virtual resource A, namely the display hierarchy of the virtual resource is adjusted to be B-A-C-D-E-F (B is the uppermost layer); when the first distance is kept unchanged and the second distance is smaller than the first distance, the second virtual resource B is adjusted to the next layer adjacent to the first virtual resource A, namely the display level of the virtual resource is adjusted to A-B-C-D-E-F (A is the uppermost layer)
Through the steps, the hierarchical adjustment mode is triggered in response to a first operation of the first operation medium acting on the first virtual resource and a second operation of the second operation medium acting on the second virtual resource, wherein the first operation and the second operation are at least partially overlapped in time sequence; in the hierarchy adjusting mode, the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is adjusted according to a first distance between the first operating medium and the screen and a second distance between the second operating medium and the screen. In this embodiment, the first operation and the second operation may be operations that do not act on a terminal screen, that is, non-contact operations, and the virtual resource displayed on the graphical user interface may be adjusted through the first operation and the second operation, specifically, the display level of the virtual resource in the graphical user interface may be adjusted according to the distance between the first operation and the screen and the distance between the second operation and the screen, and the user does not need to adjust the display level of the virtual resource layer by layer through a mouse, which is faster in an adjustment manner, thereby solving the technical problems of tedious operation and more time waste and low operation efficiency in the related art for the movement of the display sequence of the virtual resource.
Meanwhile, the two virtual resources can be adjusted in a hierarchy mode through non-contact operation orientation without adjusting layer by layer, operation steps are reduced, and the whole process is simplified.
Optionally, in the invention, the priority can be judged according to the distance between the operating medium (such as a user finger) and the graphical user interface (terminal screen), wherein the upper layer can be arranged at a far distance, and the lower layer can be arranged at a near distance, so that the hierarchy conforming to the habit of the user can be conveniently and quickly adjusted, the visibility is stronger, and the feeling is intuitive.
The invention is illustrated below by means of a further example.
Example two
In the display control device for virtual resources in the following embodiments, each unit and module thereof corresponds to the content in the display control method for virtual resources, and in the implementation, the arrangement device in the following embodiments of the present invention is similarly applicable to the specific description of the environment, the terminal, and the virtual resources described above.
Fig. 10 is a schematic diagram of another display control apparatus for optionally displaying virtual resources, which is applied to an electronic terminal capable of presenting a graphical user interface on a screen, where the graphical user interface includes a first virtual resource and a second virtual resource, as shown in fig. 10, where the display control apparatus includes: a trigger unit 101, an adjusting unit 103, wherein,
the trigger unit 101 is configured to trigger the hierarchical adjustment mode in response to a first operation performed by the first operating medium on the first virtual resource and a second operation performed by the second operating medium on the second virtual resource, where the first operation and the second operation overlap at least partially in time sequence.
An adjusting unit 103, configured to adjust, in the hierarchy adjustment mode, a display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface according to a first distance from the screen to the first operating medium and a second distance from the screen to the second operating medium.
The display control apparatus triggers the hierarchy adjustment mode by the trigger unit 101 in response to a first operation of the first operation medium on the first virtual resource and a second operation of the second operation medium on the second virtual resource, wherein the first operation and the second operation are at least partially overlapped in time sequence; in the hierarchical adjustment mode, the adjustment unit 103 adjusts the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface according to a first distance of the first operating medium from the screen and a second distance of the second operating medium from the screen. In this embodiment, the first operation and the second operation may be operations that do not act on a terminal screen, that is, non-contact operations, and the virtual resource displayed on the graphical user interface may be adjusted through the first operation and the second operation, specifically, the display level of the virtual resource in the graphical user interface may be adjusted according to the distance between the first operation and the screen and the distance between the second operation and the screen, and the user does not need to adjust the display level of the virtual resource layer by layer through a mouse, so that the adjustment mode is faster, and therefore, the technical problem that the operation is complicated and time is wasted, which causes the operation efficiency to be low, in the movement of the display sequence of the virtual resource in the related art is solved.
The display control apparatus of virtual resources further includes: a receiving unit, configured to receive a first operation performed by a first operating medium on a first virtual resource and a second operation performed by a second operating medium on a second virtual resource before triggering a hierarchical adjustment mode in response to a first operation performed by the first operating medium on the first virtual resource and a second operation performed by the second operating medium on the second virtual resource; a detection unit configured to detect an overlapping area of the first virtual resource and the second virtual resource.
As an alternative example of the present invention, the display control apparatus for virtual resources further includes: and the control unit is used for controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the received first operation and/or second operation when the overlapping area meets a first preset condition so as to reduce the overlapping area.
Optionally, the overlapping area satisfies a first preset condition, including: the ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a first preset value and less than a second preset value.
Optionally, the display control apparatus for virtual resources further includes: the first detection module is used for detecting a third operation which is acted on the overlapping area and meets a third preset condition when the overlapping area meets the second preset condition; the first control module is used for controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the third operation so as to reduce the overlapping area.
The overlapping area meets a second preset condition, and the ratio of the overlapping area to the first virtual resource or the second virtual resource is larger than a second preset value.
As another alternative example of the present invention, the third operation satisfying the third preset condition includes at least one of: the touch control operation meeting the preset touch control time length, the touch control operation meeting the preset touch control pressure and the non-contact operation meeting the preset hovering time length.
Further, the display control apparatus of virtual resources further includes: and the second detection module is used for detecting the initial display hierarchy of the first virtual resource and the second virtual resource before triggering the hierarchy adjustment mode.
The display control apparatus for virtual resources described above further includes: and the first display module is used for displaying the initial display hierarchy of the first virtual resource and the second virtual resource in a second preset display mode.
Optionally, the first display module includes: the first display submodule is used for displaying the first virtual resource with first transparency and displaying the second virtual resource with second transparency; and the indicating module is used for indicating the initial display level according to the shielding relation between the first virtual resource and the second virtual resource.
Preferably, the adjusting unit includes: and the adjusting module is used for interchanging the display levels of the first virtual resource and the second virtual resource when the initial display level indicates that the first virtual resource is above the second virtual resource and the first distance is less than the second distance.
The display control apparatus of virtual resources further includes: the second display module is configured to display the first virtual resource and the second virtual resource in a third preset display manner after the hierarchical adjustment mode is triggered, where the third preset display manner includes at least one of the following: bold, highlight, color.
Optionally, the display control apparatus for virtual resources further includes: the third detection module is used for detecting a fourth operation acting on the screen after the display levels of the first virtual resource and the second virtual resource in the graphical user interface are adjusted; and the determining module is used for determining the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface according to the fourth operation.
The display control device of the virtual resource may further include a processor and a memory, where the trigger unit 101, the adjustment unit 103, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can set one or more, and the display level of the virtual resource is adjusted by adjusting the kernel parameter.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to another aspect of the embodiment of the present invention, there is further provided an electronic device, fig. 11 is a schematic diagram of an alternative electronic device according to the embodiment of the present invention, as shown in fig. 11, the electronic device 110 includes a processor 120 and a memory 130, where the memory is used for storing executable instructions of the processor, and the processor is configured to execute a program of the following steps by executing the executable instructions: triggering a hierarchical adjustment mode in response to a first operation of a first operating medium acting on a first virtual resource and a second operation of a second operating medium acting on a second virtual resource, wherein the first operation and the second operation are at least partially overlapped in time sequence; in the hierarchy adjusting mode, the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is adjusted according to a first distance between the first operating medium and the screen and a second distance between the second operating medium and the screen.
Optionally, the processor executes a program, and further includes the following steps: receiving a first operation of a first operating medium acting on a first virtual resource and a second operation of a second operating medium acting on a second virtual resource before triggering a hierarchical adjustment mode in response to the first operation of the first operating medium acting on the first virtual resource and the second operation of the second operating medium acting on the second virtual resource; an overlapping region of the first virtual resource and the second virtual resource is detected.
Optionally, the processor executes a program, and further includes the following steps: and when the overlapping area meets a first preset condition, controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the received first operation and/or second operation so as to reduce the overlapping area.
Optionally, the overlapping area satisfies a first preset condition, including: the ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a first preset value and less than a second preset value.
Optionally, the processor executes a program, and further includes the following steps: when the overlapping area meets a second preset condition, detecting a third operation which acts on the overlapping area and meets a third preset condition; and controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the third operation so as to reduce the overlapping area.
Optionally, the overlapping area satisfies a second preset condition, including that a ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a second preset value.
Optionally, the third operation satisfying the third preset condition includes at least one of: the touch control operation meeting the preset touch control time length, the touch control operation meeting the preset touch control pressure and the non-contact operation meeting the preset hovering time length.
Optionally, the processor executes a program, and further includes the following steps: an initial display hierarchy of the first virtual resource and the second virtual resource is detected prior to triggering the hierarchy adjustment mode.
Optionally, the processor executes a program, and further includes the following steps: and displaying the initial display levels of the first virtual resource and the second virtual resource in a second preset display mode.
Optionally, the processor executes a program, and further includes the following steps: displaying the first virtual resource with a first transparency, and displaying the second virtual resource with a second transparency; and indicating the initial display level according to the occlusion relation of the first virtual resource and the second virtual resource.
Optionally, the processor executes a program, and further includes the following steps: the display hierarchy of the first virtual resource and the second virtual resource is interchanged when the initial display hierarchy indicates that the first virtual resource is above the second virtual resource and the first distance is less than the second distance.
Optionally, the processor executes a program, and further includes the following steps: after the hierarchical adjustment mode is triggered, displaying the first virtual resource and the second virtual resource in a third preset display mode, wherein the third preset display mode includes at least one of the following modes: bold, highlight, color.
Optionally, the processor executes a program, and further includes the following steps: after adjusting the display levels of the first virtual resource and the second virtual resource in the graphical user interface, detecting a fourth operation acting on the screen; according to a fourth operation, a display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is determined.
According to another aspect of the embodiments of the present invention, there is provided a storage medium, where the storage medium includes a stored program, and when the program runs, a device on which the storage medium is located is controlled to execute any one of the above methods for controlling display of virtual resources.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
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 embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or 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 position, or may be distributed on a plurality of 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 integrated unit, if implemented in the form of a software functional unit 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 invention, which is substantially or partly contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
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 (16)

1. A method for controlling display of virtual resources is applied to an electronic terminal capable of presenting a graphical user interface on a screen, wherein the graphical user interface comprises a first virtual resource and a second virtual resource, and comprises the following steps:
triggering a hierarchical adjustment mode in response to a first operation of a first operating medium on a first virtual resource and a second operation of a second operating medium on a second virtual resource, wherein the first operation and the second operation are at least partially overlapped in time sequence;
in the hierarchy adjustment mode, the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is adjusted according to a first distance between the first operating medium and the screen and a second distance between the second operating medium and the screen.
2. The method of claim 1, wherein before triggering the hierarchical adjustment mode in response to a first operation on the first virtual resource by the first operating medium and a second operation on the second virtual resource by the second operating medium, the method further comprises:
receiving a first operation acted on the first virtual resource by a first operation medium and a second operation acted on the second virtual resource by a second operation medium;
an overlapping region of the first virtual resource and the second virtual resource is detected.
3. The method of claim 2, further comprising:
when the overlapping area meets a first preset condition, according to the received first operation and/or the second operation, controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode so as to reduce the overlapping area.
4. The method according to claim 3, wherein the overlapping area satisfies a first preset condition, and the ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a first preset value and less than a second preset value.
5. The method of claim 2, further comprising:
when the overlapping area meets a second preset condition, detecting a third operation which acts on the overlapping area and meets a third preset condition;
and controlling the first virtual resource and the second virtual resource to be displayed in a first preset display mode according to the third operation so as to reduce the overlapping area.
6. The method according to claim 5, wherein the overlapping area satisfies a second preset condition, and the ratio of the overlapping area to the first virtual resource or the second virtual resource is greater than a second preset value.
7. The method according to claim 5, wherein the third operation satisfying the third preset condition comprises at least one of:
the touch control operation meeting the preset touch control time length, the touch control operation meeting the preset touch control pressure and the non-contact operation meeting the preset hovering time length.
8. The method of claim 1, wherein prior to triggering a hierarchical adjustment mode, the method further comprises:
an initial display hierarchy of the first virtual resource and the second virtual resource is detected.
9. The method of claim 8, further comprising:
and displaying the initial display levels of the first virtual resource and the second virtual resource in a second preset display mode.
10. The method of claim 9, wherein displaying the initial display hierarchy of the first virtual resource and the second virtual resource in a second predetermined display manner comprises:
displaying the first virtual resource with a first transparency and the second virtual resource with a second transparency;
indicating the initial display level according to the occlusion relationship of the first virtual resource and the second virtual resource.
11. The method of claim 8, wherein adjusting a display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface comprises:
interchanging a display hierarchy of the first virtual resource with the second virtual resource when the initial display hierarchy indicates that the first virtual resource is above the second virtual resource and the first distance is less than the second distance.
12. The method of claim 1, wherein after triggering a hierarchical adjustment mode, the method further comprises:
displaying the first virtual resource and the second virtual resource through a third preset display mode, wherein the third preset display mode includes at least one of the following modes: bold, highlight, color.
13. The method of claim 1, wherein after adjusting the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface, the method further comprises:
detecting a fourth operation acting on the screen;
according to the fourth operation, the display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface is determined.
14. A display control device of virtual resources is applied to an electronic terminal capable of presenting a graphical user interface on a screen, wherein the graphical user interface comprises a first virtual resource and a second virtual resource, and the display control device comprises:
a triggering unit configured to trigger a hierarchical adjustment mode in response to a first operation in which a first operating medium acts on a first virtual resource and a second operation in which a second operating medium acts on a second virtual resource, wherein the first operation and the second operation overlap at least partially in time sequence;
an adjusting unit, configured to, in the hierarchy adjustment mode, adjust a display hierarchy of the first virtual resource and the second virtual resource in the graphical user interface according to a first distance from the screen to the first operating medium and a second distance from the screen to the second operating medium.
15. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the display control method of the virtual resource of any one of claims 1 to 13 via execution of the executable instructions.
16. A storage medium, comprising a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the display control method for virtual resources according to any one of claims 1 to 13.
CN201811103306.4A 2018-09-20 2018-09-20 Display control method and device of virtual resources and electronic equipment Active CN110928612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811103306.4A CN110928612B (en) 2018-09-20 2018-09-20 Display control method and device of virtual resources and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811103306.4A CN110928612B (en) 2018-09-20 2018-09-20 Display control method and device of virtual resources and electronic equipment

Publications (2)

Publication Number Publication Date
CN110928612A CN110928612A (en) 2020-03-27
CN110928612B true CN110928612B (en) 2022-08-19

Family

ID=69856317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811103306.4A Active CN110928612B (en) 2018-09-20 2018-09-20 Display control method and device of virtual resources and electronic equipment

Country Status (1)

Country Link
CN (1) CN110928612B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778580B (en) * 2021-07-28 2023-12-08 赤子城网络技术(北京)有限公司 Modal user interface display method, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246430A (en) * 2013-04-24 2013-08-14 深圳市同洲电子股份有限公司 Terminal and method for managing multiple windows
CN104956301A (en) * 2012-12-06 2015-09-30 三星电子株式会社 Display device and method of controlling the same
CN105320502A (en) * 2014-06-24 2016-02-10 中兴通讯股份有限公司 Terminal and multi-window displaying method for terminal
CN106250034A (en) * 2016-07-18 2016-12-21 深圳市金立通信设备有限公司 A kind of method of windows exchange and terminal
CN107562344A (en) * 2017-08-31 2018-01-09 网易(杭州)网络有限公司 interface display method, device, storage medium, processor and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110181521A1 (en) * 2010-01-26 2011-07-28 Apple Inc. Techniques for controlling z-ordering in a user interface
US8775958B2 (en) * 2010-04-14 2014-07-08 Microsoft Corporation Assigning Z-order to user interface elements
US8972879B2 (en) * 2010-07-30 2015-03-03 Apple Inc. Device, method, and graphical user interface for reordering the front-to-back positions of objects
US9740384B2 (en) * 2015-06-25 2017-08-22 Morega Systems Inc. Media device with radial gesture control and methods for use therewith

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104956301A (en) * 2012-12-06 2015-09-30 三星电子株式会社 Display device and method of controlling the same
CN107967087A (en) * 2012-12-06 2018-04-27 三星电子株式会社 The method of display device and control display device
CN103246430A (en) * 2013-04-24 2013-08-14 深圳市同洲电子股份有限公司 Terminal and method for managing multiple windows
CN105320502A (en) * 2014-06-24 2016-02-10 中兴通讯股份有限公司 Terminal and multi-window displaying method for terminal
CN106250034A (en) * 2016-07-18 2016-12-21 深圳市金立通信设备有限公司 A kind of method of windows exchange and terminal
CN107562344A (en) * 2017-08-31 2018-01-09 网易(杭州)网络有限公司 interface display method, device, storage medium, processor and terminal

Also Published As

Publication number Publication date
CN110928612A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
US11412292B2 (en) Video processing method, video processing device, and storage medium
US10056113B2 (en) Video processing method and associated electronic device
JP6659644B2 (en) Low latency visual response to input by pre-generation of alternative graphic representations of application elements and input processing of graphic processing unit
WO2018192394A1 (en) Interaction method and apparatus for virtual reality scene, storage medium and electronic apparatus
CN108804002B (en) Text annotation method and device for interactive intelligent equipment
CN105144058B (en) Prompt is placed in delay
CN104063128B (en) A kind of information processing method and electronic equipment
US11604580B2 (en) Configuration of application execution spaces and sub-spaces for sharing data on a mobile touch screen device
CN107479818B (en) Information interaction method and mobile terminal
KR102205283B1 (en) Electro device executing at least one application and method for controlling thereof
CN105739879A (en) Virtual reality application method and terminal
CN110413187B (en) Method and device for processing annotations of interactive intelligent equipment
CN113996060A (en) Display picture adjusting method and device, storage medium and electronic equipment
US9542764B2 (en) Displaying contents of a file in different regions
US20160012859A1 (en) System and method for generating and using spatial and temporal metadata
CN110928612B (en) Display control method and device of virtual resources and electronic equipment
CN109547623B (en) Interface switching method and device
CN113268182A (en) Application icon management method and electronic equipment
JP6131004B2 (en) Object display method, program, and apparatus
WO2014023148A1 (en) Electronic equipment and method and device for controlling electronic device
US11847294B2 (en) Method for generating desktop of mobile terminal, device and electronic device
CN113835578A (en) Display method and device and electronic equipment
CN105046748A (en) 3D photo frame apparatus capable of forming images in 3D geological body scenarios
CN113760170A (en) APP page quick jump method, device, equipment and medium
JP5762075B2 (en) Information processing apparatus, information processing method, and program

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