Page switching method and apparatus, storage medium, and electronic device
Patent Information
- Application Number
- CN202211336842.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2042-10-28
AI Technical Summary
[0006]本申请实施例提供了一种页面切换方法和装置、存储介质及电子设备,以至少解决在页面切换过程中出现的操作效率较低的技术问题
[0024]通过本申请提供的上述实施例,通过对第一页面执行第一放大操作,并在第一放大操作触发了进入第一虚拟场景中的第一虚拟对象对应的第二页面的情况下,将显示的第一页面切换到显示第一虚拟对象对应的第二页面。换言之,仅需要对第一页面中执行单一地放大操作,即可将第一页面切换成第二页面,减少了操作步骤,降低了操作的复杂性,从而解决了页面切换过程中出现的操作效率较低的技术问题,实现了提高操作效率的技术效果。
Smart Images

Figure CN117991935B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically, to a page switching method and apparatus, a storage medium, and an electronic device. Background Technology
[0002] Virtual social scenarios typically include different scene areas, virtual characters, and other elements. Different scene areas represent different social situations. To increase the fun of virtual social interaction, users can choose which scene area to enter based on their needs, such as entering a friends' square or a study room for learning purposes.
[0003] In related technologies, users primarily navigate to the next or previous level of a scene by clicking on interactive elements. In other words, page switching is achieved through click operations. For example, clicking on a target virtual character allows the user to interact with that character and access their details page, thus enabling interaction. However, if the user wants to interact within a zoomed-in page and continue interacting on the switched page, performing a zoom operation (e.g., a zoom-in operation) on the current page only allows interaction within the zoomed-in current page; they cannot access the switched page.
[0004] To address the aforementioned issues, users need to perform a zoom operation (e.g., zoom in) on the current page before clicking. In other words, they need to switch between zooming and clicking to switch pages, resulting in low operational efficiency during page switching.
[0005] There is currently no effective solution to the above problems. Summary of the Invention
[0006] This application provides a page switching method and apparatus, storage medium and electronic device to at least solve the technical problem of low operating efficiency during page switching.
[0007] According to one aspect of the embodiments of this application, a page switching method is provided, comprising: displaying a first page, wherein the first page displays virtual objects in a first virtual scene; in response to a first zoom-in operation, zooming in on the first page and displaying the zoomed-in page; and, if the first zoom-in operation triggers entry into a second page corresponding to the first virtual object in the first virtual scene, switching the display of the first page to the display of the second page corresponding to the first virtual object.
[0008] Optionally, if the first zoom-in operation triggers the entry into the second page corresponding to the first virtual object in the first virtual scene, the first page will be switched to the second page corresponding to the first virtual object, including: if the zoom factor of the first page is greater than or equal to a first preset factor and the zoom center of the first zoom-in operation is located on the first virtual object, the first page will be switched to the second page; or if the zoom factor of the first page is greater than or equal to a first preset factor and the center of the zoomed-in page is located on the first virtual object, the first page will be switched to the second page.
[0009] Optionally, the above method further includes: when the first magnification operation is a magnification operation triggered by two fingers on the screen, determining the center of the two fingers on the screen as the magnification center of the first magnification operation.
[0010] Optionally, the above-mentioned switching from displaying the first page to displaying the second page corresponding to the first virtual object includes: gradually hiding the enlarged version of the first page while gradually displaying the second page during the process of the first page being enlarged.
[0011] Optionally, the above method further includes: when a virtual object in the second virtual scene is displayed on the second page, in response to the second zoom-in operation, zooming in on the second page and displaying the zoomed-in page; when the second zoom-in operation triggers entry into the third page corresponding to the second virtual object in the second virtual scene, switching the display of the second page to display the third page corresponding to the second virtual object.
[0012] Optionally, the above method further includes: if a virtual object in the second virtual scene is displayed on the second page, and the first zoom-in operation has not ended and is continuously executed, in response to the continuously executed first zoom-in operation, zooming in on the second page and displaying the zoomed-in page; if the continuously executed first zoom-in operation triggers entry into the third page corresponding to the second virtual object in the second virtual scene, switching the display of the second page to display the third page corresponding to the second virtual object.
[0013] Optionally, the first zoom-in operation is a zoom-in operation triggered by two fingers on the screen, and after switching the display of the first page to the display of the second page, the two fingers continue to remain in contact with the screen;
[0014] Specifically, when virtual objects in the second virtual scene are displayed on the second page, and the first zoom-in operation continues to be executed without ending, in response to the continuously executing first zoom-in operation, the second page is zoomed in, and the zoomed-in second page is displayed, including:
[0015] When virtual objects in the second virtual scene are displayed on the second page, and two fingers move away from each other on the screen, the second page is magnified in response to the first zoom-in operation triggered by the two fingers on the screen, and the magnified second page is displayed.
[0016] Optionally, the above-mentioned switching from displaying the first page to displaying the second page corresponding to the first virtual object includes: if the first virtual object is a virtual building, displaying the second page corresponding to the virtual building, wherein the second page is the details page of the virtual building, and the details page of the virtual building displays a second virtual scene in the virtual building, and the second virtual scene contains virtual characters and / or virtual objects in the virtual building; or if the first virtual object is a virtual character, displaying the second page corresponding to the virtual character, wherein the second page is the details page of the virtual character, and the details page of the virtual character displays the character information of the virtual character.
[0017] Optionally, the above method further includes: displaying a third page; in response to a first zoom-out operation, zooming out the third page and displaying the zoomed-out version of the third page; and, if the first zoom-out operation triggers entry into the second page, switching from displaying the third page to displaying the second page.
[0018] Optionally, the above-mentioned switching from displaying the third page to displaying the second page when the first zoom-out operation triggers entry into the second page includes: switching from displaying the third page to displaying the second page when the zoom-out ratio of the third page is less than or equal to the first preset ratio.
[0019] Optionally, the above method further includes: when the second page is displayed and the first zoom-out operation has not ended and is continuously executed, in response to the continuously executed first zoom-out operation, zooming out the second page and displaying the zoomed-out page; when the first zoom-out operation triggers entry into the first page, switching from displaying the second page to displaying the first page.
[0020] According to another aspect of the embodiments of this application, a page switching device is also provided, including: a first display unit for displaying a first page, wherein the first page displays virtual objects in a first virtual scene; a first processing unit for magnifying the first page in response to a first zoom-in operation and displaying the magnified page; and a second processing unit for switching the display of the first page to the display of the second page corresponding to the first virtual object when the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene.
[0021] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described page switching method when it is run.
[0022] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program / instructions that, when executed by a processor, implement the steps of the above-described method.
[0023] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the page switching method described above through the computer program.
[0024] Through the embodiments provided in this application, by performing a first zoom-in operation on the first page, and when the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the displayed first page is switched to the displayed second page corresponding to the first virtual object. In other words, only a single zoom-in operation needs to be performed on the first page to switch the first page to the second page, reducing the number of operation steps and the complexity of the operation, thereby solving the technical problem of low operation efficiency during page switching and achieving the technical effect of improving operation efficiency. Attached Figure Description
[0025] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0026] Figure 1 This is a schematic diagram illustrating an application scenario of an optional page switching method according to an embodiment of this application;
[0027] Figure 2 This is a flowchart of an optional page switching method according to an embodiment of this application;
[0028] Figure 3 This is a schematic diagram (a) of an optional page switching method according to an embodiment of this application;
[0029] Figure 4 This is a schematic diagram of the magnification center of an optional first magnification operation according to an embodiment of this application;
[0030] Figure 5 This is a schematic diagram (II) of an optional page switching method according to an embodiment of this application;
[0031] Figure 6This is a schematic diagram (iii) of an optional page switching method according to an embodiment of this application;
[0032] Figure 7 This is a schematic diagram (four) of an optional page switching method according to an embodiment of this application;
[0033] Figure 8 This is a schematic diagram illustrating an optional method of page switching by continuously performing a first zoom-in operation according to an embodiment of this application;
[0034] Figure 9 This is a schematic diagram (V) of an optional page switching method according to an embodiment of this application;
[0035] Figure 10 This is a schematic diagram illustrating an optional method of switching pages by continuously performing a first zoom-out operation according to an embodiment of this application;
[0036] Figure 11 This is an overall flowchart of an optional page switching method according to an embodiment of this application;
[0037] Figure 12 This is a timing diagram of an optional page switching method according to an embodiment of this application;
[0038] Figure 13 This is a schematic diagram of an optional page switching device according to an embodiment of this application;
[0039] Figure 14 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of this application. Detailed Implementation
[0040] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0041] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0042] According to one aspect of the embodiments of this application, a page switching method is provided. As an optional implementation, the above-described page switching method may be applied to, but is not limited to, [examples of other methods]. Figure 1 The application scenarios shown are as follows. In, for example... Figure 1 In the application scenario shown, terminal device 102 can communicate with server 106 via network 104, but is not limited to this. Server 106 can perform operations on database 108, such as write or read data operations. Terminal device 102 may include, but is not limited to, a human-computer interaction screen, a processor, and a memory. The human-computer interaction screen may be used to display virtual objects in a first virtual scene on terminal device 102, a second page corresponding to the first virtual object, etc. The processor may be used to respond to the human-computer interaction operation, execute corresponding operations, or generate corresponding instructions and send the generated instructions to server 106. The memory is used to store relevant processing data, such as the triggering conditions for the first zoom-in operation, the correspondence between the first virtual object and the second page, etc.
[0043] As an optional approach, the following steps in the page switching method can be executed on server 106: Step S102, display the first page, wherein the first page displays virtual objects in the first virtual scene; Step S104, in response to the first zoom-in operation, zoom in on the first page and display the zoomed-in page; Step S106, if the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, switch the display of the first page to the display of the second page corresponding to the first virtual object.
[0044] As an optional example, this embodiment does not limit the execution subject of the above steps S102 to S106. For example, the above steps S102 to S106 can be executed on the terminal device 102 or the server 106, or they can be partially executed on the terminal device 102 and partially executed on the computing server communicating with the server 106.
[0045] By employing the above method, a first zoom-in operation is performed on the first page. If this operation triggers entry into the second page corresponding to the first virtual object within the first virtual scene, the first page will be switched to the second page. In other words, only a single zoom-in operation is required on the first page to switch to the second page, reducing the number of steps and complexity. This solves the technical problem of low operational efficiency during page switching and achieves the technical effect of improving operational efficiency.
[0046] To address the aforementioned issue of low operational efficiency during page switching, this application provides a page switching method. Figure 2 This is a flowchart of a page switching method according to an embodiment of this application, which includes the following steps:
[0047] Step S202: Display the first page, wherein the first page displays virtual objects from the first virtual scene;
[0048] Step S204: In response to the first zoom-in operation, zoom in on the first page and display the zoomed-in page.
[0049] In step S206, if the first zoom-in operation triggers the entry into the second page corresponding to the first virtual object in the first virtual scene, the first page will be switched to display the second page corresponding to the first virtual object.
[0050] In such Figure 3 In the first virtual scene of the first page shown in (a), there are virtual objects including but not limited to virtual buildings and virtual characters. In the first virtual scene, the virtual objects carry various social entry points in the form of a map. For example, one can enter the friends square through a virtual building; one can enter the details page of the virtual character through a virtual character to interact with the characters.
[0051] By zooming in on the first page, the display is as follows: Figure 3 The first page shown in (b) is enlarged, and if the first zoom-in operation meets the trigger condition, the currently displayed first page is switched to the one shown in (b). Figure 3 The second page of (c), wherein the second page is the page corresponding to the first virtual object in the first page.
[0052] It should be noted that in the virtual scene, users start from the top-level virtual scene page and can navigate to the next level page by using specified operations, such as zooming in and out. Figure 3 The first page shown in (a) is switched to the second page corresponding to the first virtual object.
[0053] As an optional example, if the aforementioned first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the display of the first page will be switched to displaying the second page corresponding to the first virtual object, including:
[0054] If the magnification of the first page is greater than or equal to a first preset magnification, and the magnification center of the first magnification operation is located on the first virtual object, the display of the first page will switch to displaying the second page; or
[0055] If the magnification factor of the first page is greater than or equal to the first preset factor, and the center of the magnified first page is located on the first virtual object, the display of the first page will switch to displaying the second page.
[0056] Assuming the default magnification is 1, if the magnification of the first page is greater than or equal to 2 and the magnification center of the first magnification operation is located on the first virtual object, the page switching trigger condition is met, and the first page to be displayed will be switched to the second page.
[0057] For example, such as Figure 4 As shown in (a), if a first zoom-in operation is performed on the first page, and the zoom-in factor of the first page is equal to 2, and the zoom-in center A of the first zoom-in operation is located on the virtual building, the page will be switched, that is, the currently displayed first page will be switched to the second page.
[0058] For example, such as Figure 4 As shown in (b), if the first zoom-in operation is performed on the first page, and the zoom-in factor of the first page is equal to 3, and the center point B of the zoomed-in page is located on the virtual building, the page will also be triggered, that is, the currently displayed first page will be switched to the second page.
[0059] As an optional embodiment, when the first magnification operation is a magnification operation triggered by two fingers on the screen, the center of the two fingers on the screen is determined as the magnification center of the first magnification operation.
[0060] like Figure 4 As shown in (a), the first page is zoomed in by moving two fingers. Then, the center point A of the connecting line between the two fingers can be used as the zoom center of the first zoom operation, but is not limited to.
[0061] It is easy to understand that the two-finger movement operation can, but is not limited to, keeping the position of the first finger unchanged and moving the second finger away from the first finger; or, moving the first and second fingers at the same time to make the distance between the fingers greater.
[0062] In one alternative example, the center point of the connecting line formed by the initial positions of the two fingers on the first page can be determined as the magnification center of the first magnification operation, but is not limited to. Alternatively, the center point of the connecting line formed by the positions of the two fingers after they have moved a specified distance away from each other can be determined as the magnification center of the first magnification operation.
[0063] In another alternative example, the above will switch from displaying the first page to displaying the second page corresponding to the first virtual object, including:
[0064] If the first virtual object is a virtual building, a second page corresponding to the virtual building is displayed. This second page is the virtual building's details page, which displays a second virtual scene within the virtual building. This second virtual scene contains virtual characters and / or virtual objects from the virtual building; or
[0065] If the first virtual object is a virtual character, the second page corresponding to the virtual character is displayed. The second page is the details page of the virtual character, which displays the character information of the virtual character.
[0066] In such Figure 3 The first virtual scene shown in (a) includes, but is not limited to, virtual objects such as virtual buildings and virtual characters. These virtual objects are represented as a map, carrying various social entry points. For example, when the first virtual object is a virtual building, executing the first zoom-in operation will switch the display from the first page to the second page displaying the virtual building. Figure 3 As shown in (c), multiple virtual characters in the Friends Square are displayed, and interactions between these virtual characters occur within the Friends Square. When the first virtual object is a virtual character, executing the first zoom-in operation will display the second page corresponding to that virtual character, for example, as shown in (c). Figure 7 As shown, by performing a first zoom-in operation on the page where the second virtual object (virtual character) is located, the details page of the virtual character will be displayed, and the character information of the virtual character (e.g., the clothing information of the virtual character) will be displayed on the details page.
[0067] It should be noted that the character information of a virtual character may include, but is not limited to, the virtual character's status information (e.g., online or offline), attribute information (e.g., level, gender, age), and clothing information (e.g., hat, glasses).
[0068] from Figure 3 As can be clearly seen, the second page is the details page of the virtual building. That is, the second page is the next level page of the first page, and the second virtual scene in the virtual building is displayed on the details page. The second virtual scene includes, but is not limited to, virtual characters and virtual objects. Figure 3 The second page shown in (c) is merely an example and is not intended to limit the scope of the example.
[0069] Through the embodiments provided in this application, by performing a zoom-in operation on the first page, and when the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the displayed first page is switched to the displayed second page corresponding to the first virtual object. In other words, only a single zoom-in operation needs to be performed on the first page to switch the first page to the second page, reducing the number of operation steps and the complexity of the operation, thereby solving the technical problem of low operation efficiency during page switching and achieving the technical effect of improving operation efficiency.
[0070] As an optional example, the above will switch the display from the first page to the second page corresponding to the first virtual object, including:
[0071] As the first page is zoomed in, the zoomed-in version of the first page is gradually hidden, and the second page is gradually displayed.
[0072] During the execution of the first amplification operation, suppose the following occurs: Figure 5 If, after the first page shown in (a) is zoomed in, the first zoom-in operation continues, then the first page will gradually hide while the second page gradually appears. Before the page switch, a screen like the one shown in (a) will appear. Figure 5 As shown in Figure (b), the transition page contains both the virtual objects from the first page and the virtual objects from the second page. In other words, the content displayed on the transition page is a superposition of the virtual objects from the first page and the virtual objects from the second page.
[0073] When such as Figure 5 After the transition page shown in (b), if the first zoom-in operation continues, causing the zoom level of the first page to be greater than or equal to the zoom level threshold a (first preset zoom level), and the zoom center of the first zoom-in operation is located on the first virtual object, the display of the first page will switch to displaying the second page. For details, please refer to [example image]. Figure 5 (c)
[0074] By using the above method, the page changes from different perspectives can be observed during the first zoom-in operation. Based on the page changes from different perspectives, the first zoom-in operation can be controlled to continue or be canceled, which more intuitively shows the detailed process of page switching and improves the flexibility of page switching.
[0075] As an optional example, the above method also includes:
[0076] When virtual objects in the second virtual scene are displayed on the second page, in response to the second zoom-in operation, the second page is zoomed in and the zoomed-in page is displayed.
[0077] If the second zoom-in operation triggers entry into the third page corresponding to the second virtual object in the second virtual scene, the display of the second page will switch to displaying the third page corresponding to the second virtual object.
[0078] As can be seen from the description of the above embodiments, by performing a first zoom-in operation on the first page, the currently displayed page is switched from the first page to the page shown above. Figure 5 After the second page shown in (c), if a second zoom-in operation is performed on the second page, for example, as Figure 6 As shown in (a), the second page can be zoomed in by moving two fingers.
[0079] If the magnification factor of the second page is greater than or equal to the magnification threshold b, and the magnification center of the second magnification operation is located on the second virtual object, the display of the second page will be switched to displaying the third page corresponding to the second virtual object.
[0080] For example, when performing a second zoom-in operation on the second page, if the zoom level of the second page meets the zoom level threshold b (e.g., zoomed in 2 times), and the zoom center of the second zoom-in operation is located on the second virtual object, then the page switching trigger condition is met, and the page will switch from the currently displayed second page to the third page corresponding to the second virtual object. For example, switching from the friends square to the details page of the target virtual character. See the example below for details. Figure 6 (b)
[0081] It should be noted that the execution process of the second zoom-in operation is the same as that of the first zoom-in operation, but the triggering conditions for switching from the first page to the second page and from the second page to the third page can be the same or different. For example, the magnification threshold 'a' required for the first page to be zoomed in can be the same as or different from the preset magnification threshold 'b' required for the second page to be zoomed in.
[0082] For any two page transitions, the preset multiplier threshold is usually set according to the specific scenario. For example, the multiplier threshold to be met for page transition is set according to the size of the currently magnified page. When the currently magnified page is small, the preset multiplier threshold can be set to a smaller value; when the currently magnified page is large, the preset multiplier threshold can be set to a larger value.
[0083] As an optional example, following the same execution process as the first and second amplification operations described above, if for such Figure 6 The third page shown in (b) performs a third zoom-in operation. If the zoom level of the third page is greater than or equal to the zoom level threshold c, and the zoom center of the third zoom-in operation is located on the second virtual object, the third page will be switched to display the clothing details page showing the image of the second virtual object (virtual character). For details, please refer to [example page]. Figure 7 As shown in (a) and (b).
[0084] By performing different zoom-in operations on different pages, and switching from the zoomed-in page to the next level page when the corresponding trigger conditions are met, the operation steps for page switching are simplified and the operation efficiency is improved.
[0085] As an optional example, the above method also includes:
[0086] If the virtual objects in the second virtual scene are displayed on the second page, and the first zoom-in operation has not ended and is being continuously executed, in response to the continuously executed first zoom-in operation, the second page is zoomed in and the zoomed-in page is displayed.
[0087] If the continuous execution of the first zoom-in operation triggers the entry into the third page corresponding to the second virtual object in the second virtual scene, the display of the second page will be switched to display the third page corresponding to the second virtual object.
[0088] like Figure 8 As shown in (a), when the first zoom-in operation is performed on the first page, and the first page is zoomed in to 2 times, the display of the first page will switch to the position shown in (a). Figure 8 The second page shown in (b) will be switched to the third page after the first zoom-in operation is continuously performed and the second page is zoomed in 3 times. See the example below for details. Figure 8 (c) and (d) in the middle.
[0089] In other words, after responding to the first zoom-in operation, zooming in on the first page, and switching from displaying the first page to displaying the second page, the system continues to respond to the first zoom-in operation, zooming in on the second page, and displaying the zoomed-in second page until the zoom level of the page exceeds a preset threshold, at which point the system switches from the zoomed-in second page to the third page.
[0090] It should be noted that, in this embodiment, continuously performing the first zoom-in operation can be understood, but is not limited to, as continuously moving two fingers on the screen to make the screen continuously zoom in, and during the continuous zoom-in process, switching from the first page to the second page and from the second page to the third page.
[0091] As an optional implementation, the specific process of continuously performing the first amplification operation as described above includes:
[0092] The first zoom-in operation is triggered by two fingers on the screen, and after switching from displaying the first page to displaying the second page, the two fingers continue to remain in contact with the screen;
[0093] Specifically, when virtual objects in the second virtual scene are displayed on the second page, and the first zoom-in operation continues to be executed without ending, in response to the continuously executing first zoom-in operation, the second page is zoomed in, and the zoomed-in second page is displayed, including:
[0094] When virtual objects in the second virtual scene are displayed on the second page, and two fingers move away from each other on the screen, the second page is magnified in response to the first zoom-in operation triggered by the two fingers on the screen, and the magnified second page is displayed.
[0095] like Figure 8 As shown in (a) and (b), assuming the first zoom-in operation is triggered by two fingers on the screen, and if the first zoom-in operation triggers entry into the second page, the display will switch from the first page to the second page, and the two fingers will continue to remain in contact with the screen on the second page, as shown in (a) and (b). Figure 8 As shown in (b).
[0096] While the first zoom-in operation is still in progress and being continuously executed, by continuously moving two fingers, the two fingers are moved away from each other on the screen, and the following is displayed: Figure 8 The second page is magnified as shown in (c). Finally, if the magnification of the second page exceeds a preset threshold, the display will switch from the second page to the third page corresponding to the second virtual object. See example [example image]. Figure 8 (d)
[0097] It's important to note that moving two fingers away from each other on the screen triggers the first zoom-in operation, causing the currently displayed page to switch from the first page to the second page. After entering the second page, the two fingers continue moving away from each other on the screen, further increasing the distance between them, thus zooming in on the second page. In other words, when displaying the second page, the distance d2 between the two fingers is greater than the distance d1 when displaying the first page; and when displaying the zoomed-in second page, the distance d3 between the two fingers is greater than the distance d2 when displaying the second page.
[0098] As another alternative example, in a virtual scene where human-computer interaction is achieved using extended reality (XR) technology, the implementation of the first magnification operation described above includes, but is not limited to, one of the following methods:
[0099] (1) When a user engages in social interaction in a virtual scene through a wearable device, the first zoom-in operation mentioned above can be achieved through gesture operation; for example, when a user wears a head-mounted display device, a fully enclosed view is provided to the user, and the first page or the second page is zoomed in by the user's outstretched hand gesture based on the second page in the virtual scene seen by the user.
[0100] (2) The first magnification operation is achieved by operating the device with a gamepad; for example, the first page or the second page is magnified by operating the buttons on the Bluetooth gamepad or by a combination of button operations.
[0101] (3) In the virtual scene of the game, the first page can be magnified by using motion-sensing game devices and the user's body movements; for example, by using video motion capture technology, the user's body movements can be analyzed through camera data, and the first page or the second page can be magnified when the body movements meet the preset instructions (e.g., opening arms).
[0102] By continuously performing the first zoom-in operation, you can smoothly switch from the first page to the third page, avoiding performing multiple zoom-in operations on multiple pages, improving the continuity of page switching operations, and enhancing the fun of virtual social interaction.
[0103] As described in the above embodiments, in a virtual scene, a user can zoom down from the top-level scene (or the page containing the scene) to the next level of page. Conversely, through zooming, a user can also return to the previous level of page from the bottom-level page, specifically including:
[0104] Display the third page;
[0105] In response to the first zoom-out operation, the third page is zoomed out and the zoomed-out version of the third page is displayed;
[0106] If the first zoom-out operation triggers entry into the second page, the display will switch from the third page to the second page.
[0107] like Figure 9 As shown, when the first zoom-out operation is performed on the third page, the following will be displayed: Figure 9 The third page shown in (b) is a scaled-down version, wherein the first scaling-down operation can be, but is not limited to, moving two fingers toward each other on the screen, such that the display ratio of the currently displayed page decreases as the two fingers move.
[0108] If the first zoom-out operation triggers the transition to the second page, the display will switch from the third page to the second page. As an optional example, the triggering conditions for the first zoom-out operation when switching from the third page to the second page include:
[0109] If the third page is shrunk to a ratio less than or equal to the first preset ratio, the display will switch from the third page to the second page.
[0110] like Figure 9 As shown in (a) and (b), assuming that when the third page is shrunk to 50% of the original page, the trigger condition for the first shrinking operation is met, the user will return from the currently displayed third page to the second page.
[0111] Following the same operation, when the virtual object in the second virtual scene is displayed on the second page, in response to the second zoom-out operation, the second page is zoomed out and the zoomed-out page is displayed; furthermore, if the second zoom-out operation triggers entry into the third page displaying the first virtual object, the display of the second page is switched to displaying the first page.
[0112] Through the embodiments provided in this application, by performing a first zoom-out operation on the third page, and if the first zoom-out operation triggers entry into the second page, the displayed third page is switched to the displayed second page. In other words, only a single zoom-out operation needs to be performed on the third page to switch to the second page, reducing the number of operation steps, lowering the complexity of the operation, and achieving the technical effect of improving operation efficiency.
[0113] As an alternative example, following the process of continuously performing the first zoom-in operation as described above, a smooth return from the third page to the first page can also be achieved by continuously performing the first zoom-out operation, specifically including:
[0114] If the second page is displayed and the first zoom-out operation has not ended and is being continuously executed, in response to the continuously executed first zoom-out operation, the second page is zoomed out and the zoomed-out page is displayed;
[0115] If the first zoom-out operation triggers entry into the first page, the display will switch from the second page to the first page.
[0116] like Figure 10 As shown in (a) and (b), assuming the first zoom-out operation is triggered by two fingers on the screen, and if the first zoom-out operation triggers entry into the second page, the display will switch from the third page to the second page, and the two fingers will continue to remain in contact with the screen on the second page, as shown in (a) and (b). Figure 10 As shown in (b).
[0117] As an alternative example, the first zoom-out operation described above is a zoom-out operation triggered by two fingers on the screen, and after the third page is switched to the second page, the two fingers continue to remain in contact with the screen;
[0118] Wherein, when the second page is displayed and the first zoom-out operation has not ended and is continuously executed, in response to the continuously executed first zoom-out operation, the second page is zoomed out and the zoomed-out page is displayed, including:
[0119] When the second page is displayed and two fingers are moved toward each other on the screen, the second page is shrunk in response to the first zoom-out operation triggered by the two fingers on the screen, and the shrunk second page is displayed.
[0120] For example, if the first zoom-out operation is not finished and is continuously executed, by continuously moving two fingers, the two fingers are moved closer to each other on the screen, and the following is displayed: Figure 10 The second page is shown in (c) after being scaled down. Finally, if the scaled-down ratio of the second page is less than or equal to the second preset ratio, the display will switch from showing the second page to showing the first page. See [example image] for details. Figure 10 (d)
[0121] It's important to note that moving two fingers closer together on the screen triggers the first zoom-out operation, causing the currently displayed page to switch from the third page to the second page. After entering the second page, the two fingers continue to move closer together on the screen, meaning the distance between the two fingers further decreases, thus zooming out of the second page. In other words, the distance between the two fingers when displaying the second page is less than the distance between the two fingers when displaying the first page.
[0122] Using the above method, after responding to the first zoom-out operation, the third page is zoomed out and the display of the third page is switched to the display of the second page. Then, responding to the first zoom-out operation again, the second page is zoomed out and the zoomed-out page is displayed. Finally, when the triggering condition is met, the display of the second page is switched back to the first page.
[0123] By continuously performing the first zoom-in operation, you can smoothly return from the third page to the first page, avoiding performing multiple zoom-in operations on multiple pages and improving the continuity of page switching operations.
[0124] To more clearly understand the page switching method in the embodiments of this application, the following is combined with, for example... Figure 11 The overall flowchart shown and Figure 12 The timing diagram shown is described in further detail.
[0125] like Figure 11 As shown, taking the method of switching pages by performing a zoom-in operation as an example, the specific steps of the above page switching method include:
[0126] S1102, Enter the scene map;
[0127] For reference Figure 3 As shown in (a), the scene map can be represented in, but is not limited to, the following forms: Figure 3 As shown in (a), it includes virtual buildings, virtual characters, etc.
[0128] S1104, The user performs a zoom-in operation in the current scene;
[0129] like Figure 3 As shown in (a) and (b), assuming the user performs the first zoom-in operation in the first virtual scene, it can be seen from the figure that as the two fingers move, the display ratio of the first page increases, and the virtual objects in the virtual scene also become larger.
[0130] It should be noted that the first virtual scene may be, but is not limited to, a partial virtual scene on the first page. In addition, the first page may include other virtual scenes.
[0131] S1106, Determine whether the virtual scene being magnified to the page multiple meets the preset multiple threshold.
[0132] For example, such as Figure 3 As shown in (b), it is assumed that when the first virtual scene is magnified to twice the size of the first page, the condition of being greater than or equal to the preset multiple threshold of 2 is met.
[0133] S1108, Determine if there is a next-level page at the zoom-in center;
[0134] For example, such as Figure 3 As shown in (b), if the first virtual scene is magnified to twice the size of the first page and the magnification center is located on the first virtual object, then step S1110 is executed; otherwise, step S1112 is executed.
[0135] The first virtual object is one of the entry points to the social area. That is, there is a next-level page corresponding to the first virtual object, such as the details page (second page) corresponding to the first virtual object.
[0136] S1110, proceed to the next page;
[0137] For example, from such Figure 3 The first page shown in (b) switches to the page as follows: Figure 3 The second page shown in (c); or, from such Figure 6 The second page shown in (a) switches to the page as follows: Figure 6 The third page shown in (b).
[0138] Specifically, when switching pages, the initial magnification factor for entering the next page level is set; for example, the default magnification factor is set to 1.
[0139] S1112, No operation is performed;
[0140] For example, suppose the first page is magnified by a value such as Figure 3 When the magnification multiplied as shown in (b) is not located on the first virtual object, the operation will remain at the multiplier shown in (b). Figure 3 The first page, as shown in (b), is enlarged and does not perform any operation.
[0141] To more clearly understand the page switching method described above, the following will combine... Figure 12 The sequence diagram shown describes the interaction process between the user, the client presentation layer, and the backend logic layer.
[0142] S1202, The user performs a zoom-in operation in the current scene;
[0143] In this method, through the interaction between the user side and the client side, two fingers are moved on the screen in a direction away from each other, thereby performing a zoom-in operation, such as performing the first zoom-in operation in the above embodiment.
[0144] S1204, determine whether the scene magnification threshold has been reached;
[0145] On the client side, it is determined whether the magnification of the virtual scene on the current page meets a preset magnification threshold, for example, Figure 3 Check whether the magnification factor of the first page shown is greater than or equal to a first preset factor. If it is satisfied, proceed to step S1206.
[0146] S1206, if the magnification threshold is reached, determine whether there is a next-level page at the magnification center;
[0147] If, as shown in step 4, the magnification of the first page meets the first preset magnification and the magnification center A or B of the first magnification operation is located on the first virtual object, then the trigger condition is met and step S1208 is executed; otherwise, step S1210 is executed.
[0148] S1208, if available, request the address of the next-level page from the backend logic layer;
[0149] If, as shown in step 4, the magnification of the first page meets the first preset magnification and the magnification center A or B of the first magnification operation is located on the first virtual object, then the access address of the second page is requested from the background, and step S1212 is executed.
[0150] S1210, if not, no operation is performed;
[0151] S1212, return the access address of the second page to the client;
[0152] S1214: In the client's display interface, hide the current scene page and display the next level page.
[0153] For example, such as Figure 3 As shown, switch from the first page to the second page.
[0154] Through the embodiments provided in this application, by performing a zoom-in operation on the first page, and when the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the displayed first page is switched to the displayed second page corresponding to the first virtual object. In other words, only a single zoom-in operation needs to be performed on the first page to switch the first page to the second page, reducing the number of operation steps and the complexity of the operation, thereby solving the technical problem of low operation efficiency during page switching and achieving the technical effect of improving operation efficiency.
[0155] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0156] According to another aspect of the embodiments of this application, as follows is also provided Figure 13 The page switching device shown includes:
[0157] The first display unit 1302 is used to display a first page, wherein the first page displays virtual objects in a first virtual scene;
[0158] The first processing unit 1304 is configured to, in response to the first zoom-in operation, zoom in on the first page and display the zoomed-in page.
[0159] The second processing unit 1306 is used to switch the display of the first page to the display of the second page corresponding to the first virtual object when the first zoom-in operation triggers the entry into the second page corresponding to the first virtual object in the first virtual scene.
[0160] In such Figure 3 In the first virtual scene of the first page shown in (a), there are virtual objects including but not limited to virtual buildings and virtual characters. In the first virtual scene, the virtual objects carry various social entry points in the form of a map. For example, one can enter the friends square through a virtual building; one can enter the details page of the virtual character through a virtual character to interact with the characters.
[0161] By zooming in on the first page, the display is as follows: Figure 3 The first page shown in (b) is enlarged, and if the first zoom-in operation meets the trigger condition, the currently displayed first page is switched to the one shown in (b). Figure 3 The second page of (c), wherein the second page is the page corresponding to the first virtual object in the first page.
[0162] from Figure 3 As can be clearly seen, the second page is the details page of the virtual building. That is, the second page is the next level page of the first page, and the second virtual scene in the virtual building is displayed on the details page. The second virtual scene includes, but is not limited to, virtual characters and virtual objects. Figure 3 The second page shown in (c) is merely an example and is not intended to limit the scope of the example.
[0163] By applying the aforementioned device to perform a zoom-in operation on a first page, and when the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the displayed first page is switched to the displayed second page corresponding to the first virtual object. In other words, only a single zoom-in operation is required on the first page to switch to the second page, reducing the number of operation steps and the complexity of the operation. This solves the technical problem of low operation efficiency during page switching and achieves the technical effect of improving operation efficiency.
[0164] Optionally, the second processing unit 1306 includes:
[0165] The first processing module is configured to switch from displaying the first page to displaying the second page when the magnification factor of the first page is greater than or equal to a first preset factor and the magnification center of the first magnification operation is located on the first virtual object; or
[0166] If the magnification factor of the first page is greater than or equal to the first preset factor, and the center of the magnified first page is located on the first virtual object, the display of the first page will switch to displaying the second page.
[0167] Optionally, the above-mentioned device further includes:
[0168] The third processing unit is used to determine the center of the two fingers on the screen as the magnification center of the first magnification operation when the first magnification operation is a magnification operation triggered by two fingers on the screen.
[0169] Optionally, the second processing unit includes:
[0170] The second processing module is used to gradually hide and display the enlarged version of the first page while gradually displaying the second page.
[0171] Optionally, the above-mentioned device further includes:
[0172] The fourth processing unit is used to, in response to the second zoom-in operation, zoom in on the second page and display the zoomed-in page when displaying virtual objects in the second virtual scene on the second page;
[0173] The first switching unit is used to switch the display of the second page to the display of the third page corresponding to the second virtual object when the second zoom-in operation triggers entry into the third page corresponding to the second virtual object in the second virtual scene.
[0174] Optionally, the above-mentioned device further includes:
[0175] The fifth processing unit is used to enlarge the second page and display the enlarged page in response to the continuously executed first zoom-in operation when the virtual objects in the second virtual scene are displayed on the second page and the first zoom-in operation has not ended and is continuously executed.
[0176] The second switching unit is used to switch the display of the second page to the display of the third page corresponding to the second virtual object when the continuously executed first zoom-in operation triggers the entry into the third page corresponding to the second virtual object in the second virtual scene.
[0177] Optionally, the fifth processing unit mentioned above includes:
[0178] The third processing module is used to enlarge the second page and display the enlarged page in response to the first zoom-in operation triggered by the two fingers on the screen when the virtual objects in the second virtual scene are displayed on the second page and the two fingers move away from each other on the screen.
[0179] The first zoom-in operation is triggered by two fingers on the screen, and after switching from displaying the first page to displaying the second page, the two fingers continue to remain in contact with the screen.
[0180] Optionally, the second processing unit 1306 includes:
[0181] The first display module is used to display a second page corresponding to the virtual building when the first virtual object is a virtual building. The second page is a details page for the virtual building, which displays a second virtual scene within the virtual building. This second virtual scene contains virtual characters and / or virtual objects from the virtual building.
[0182] The second display module is used to display a second page corresponding to the virtual character when the first virtual object is a virtual character. The second page is the details page of the virtual character, which displays the character information of the virtual character.
[0183] Optionally, the above-mentioned device further includes:
[0184] The second display unit is used to display the third page;
[0185] The sixth processing unit is configured to respond to the first zoom-out operation by zooming out the third page and displaying the zoomed-out version of the third page.
[0186] The third display unit is used to switch from displaying the third page to displaying the second page when the first zoom-out operation triggers entry into the second page.
[0187] Optionally, the third display unit mentioned above includes:
[0188] The fourth processing module is used to switch the display of the third page to the display of the second page when the ratio of the reduction of the third page is less than or equal to the first preset ratio.
[0189] Optionally, the above-mentioned device further includes:
[0190] The seventh processing unit is configured to, in response to the continuously executed first zoom-out operation, zoom out the second page and display the zoomed-out version of the second page when the second page is displayed and the first zoom-out operation has not ended and is being continuously executed;
[0191] The eighth processing unit is used to switch from displaying the second page to displaying the first page when the first zoom-out operation triggers entry into the first page.
[0192] By applying the aforementioned device to perform a first zoom-in operation on a first page, and when the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the displayed first page is switched to the displayed second page corresponding to the first virtual object. In other words, only a single zoom-in operation needs to be performed on the first page to switch to the second page, reducing the number of operation steps and the complexity of the operation, thereby solving the technical problem of low operation efficiency during page switching and achieving the technical effect of improving operation efficiency.
[0193] It should be noted that the embodiments of the page switching device here can refer to the embodiments of the page switching method described above, and will not be repeated here.
[0194] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described page switching method is also provided. This electronic device may be... Figure 14 The terminal device shown is illustrated in this embodiment, which uses this electronic device as an example of a backend device. Figure 14 As shown, the electronic device includes a memory 1402 and a processor 1404. The memory 1402 stores a computer program, and the processor 1404 is configured to execute the steps of any of the above method embodiments via the computer program.
[0195] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0196] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0197] S1, Display the first page, where virtual objects from the first virtual scene are displayed;
[0198] S2, in response to the first zoom-in operation, zoom in on the first page and display the zoomed-in page;
[0199] S3, if the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the first page will be switched to display the second page corresponding to the first virtual object.
[0200] Alternatively, as those skilled in the art will understand, Figure 14The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other target terminals. Figure 14 This does not limit the structure of the aforementioned electronic devices or electronic equipment. For example, electronic devices or electronic equipment may also include components that are more... Figure 14 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 14 The different configurations shown.
[0201] The memory 1402 can be used to store software programs and modules, such as the program instructions / modules corresponding to the page switching method and apparatus in this embodiment. The processor 1404 executes various functional applications and data processing by running the software programs and modules stored in the memory 1402, thereby implementing the page switching method described above. The memory 1402 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1402 may further include memory remotely located relative to the processor 1404, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1402 may be used, but is not limited to, to store the triggering conditions of the first amplification operation, the correspondence between the first virtual object and the second page, etc. As an example, such as Figure 14 As shown, the memory 1402 may include, but is not limited to, the first display unit 1302, the first processing unit 1304, and the second processing unit 1306 in the page switching device. Furthermore, it may include, but is not limited to, other module units in the page switching device, which will not be elaborated upon in this example.
[0202] Optionally, the transmission device 1406 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1406 includes a Network Interface Controller (NIC), which can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1406 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0203] In addition, the aforementioned electronic device also includes: a display 1408 for displaying target messages sent by the target account; and a connection bus 1410 for connecting the various module components in the aforementioned electronic device.
[0204] In other embodiments, the target terminal or server can be a node in a distributed system, which can be a blockchain system. This blockchain system is formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any type of computing device, such as a server or terminal, can become a node in the blockchain system by joining this peer-to-peer network.
[0205] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the page switching method provided in various optional implementations of the above-described server verification processing, wherein the computer program is configured to execute the steps in any of the above-described method embodiments at runtime.
[0206] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps:
[0207] S1, Display the first page, where virtual objects from the first virtual scene are displayed;
[0208] S2, in response to the first zoom-in operation, zoom in on the first page and display the zoomed-in page;
[0209] S3, if the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the first page will be switched to display the second page corresponding to the first virtual object.
[0210] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the target terminal. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0211] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0212] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods of the various embodiments of this application.
[0213] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0214] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or the indirect coupling or communication connection of units or modules may be electrical or other forms.
[0215] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0216] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0217] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A page switching method, characterized in that, include: Displays a first page including virtual objects in the first virtual scene used to host the social entry point; In response to a first zoom-in operation on the first page, the first page is zoomed in according to the zoom factor indicated by the first zoom-in operation, and the zoomed-in first page is displayed. If the first page is associated with multiple levels of pages, the magnification reaches a first preset magnification, and the midpoint of the first connecting line determined based on the first touch point on the magnified first page is located in the display area where the first virtual object is located, the first page is canceled and a second page corresponding to the first virtual object is displayed. The second page is the next level page after the first page. If the first virtual object is a virtual character, the second page is a details page of the virtual character used to interact with the first virtual object. The details page of the virtual character displays controls for performing character interaction operations with the first virtual object and the character information of the virtual character. In response to the first zoom-in operation continuously performed on the second page, and when the second connecting line determined by the second touch point on the second page based on the first zoom-in operation reaches a second length, the second page is canceled and a third page is displayed, wherein the third page is the next level page of the second page, and the second length is greater than the first length of the first connecting line.
2. The method according to claim 1, characterized in that, When the first zoom-in operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the display of the first page will be switched to displaying the second page corresponding to the first virtual object, including: If the magnification of the first page is greater than or equal to a first preset magnification, and the magnification center of the first magnification operation is located on the first virtual object, the display of the first page will be switched to display of the second page; or If the magnification factor of the first page is greater than or equal to the first preset factor, and the center of the magnified first page is located on the first virtual object, the display of the first page will be switched to display of the second page.
3. The method according to claim 2, characterized in that, The method further includes: When the first magnification operation is a magnification operation triggered by two fingers on the screen, the center of the two fingers on the screen is determined as the magnification center of the first magnification operation.
4. The method according to claim 1, characterized in that, Switching the display from the first page to the second page corresponding to the first virtual object includes: As the first page is zoomed in, the zoomed-in version of the first page is gradually hidden, and the second page is gradually displayed.
5. The method according to claim 1, characterized in that, The method further includes: When virtual objects in the second virtual scene are displayed on the second page, in response to the second zoom-in operation, the second page is zoomed in and the zoomed-in page is displayed; If the second zoom-in operation triggers entry into the third page corresponding to the second virtual object in the second virtual scene, the display of the second page will be switched to displaying the third page corresponding to the second virtual object.
6. The method according to claim 1, characterized in that, The method further includes: When virtual objects in the second virtual scene are displayed on the second page, and the first zoom-in operation has not ended and is continuously executed, in response to the continuously executed first zoom-in operation, the second page is zoomed in and the zoomed-in page is displayed; If the continuously executed first zoom-in operation triggers entry into the third page corresponding to the second virtual object in the second virtual scene, the display of the second page will be switched to displaying the third page corresponding to the second virtual object.
7. The method according to claim 6, characterized in that, The first zoom-in operation is a zoom-in operation triggered by two fingers on the screen, and after switching the display of the first page to the display of the second page, the two fingers continue to remain in contact with the screen; Wherein, when virtual objects in the second virtual scene are displayed on the second page, and the first zoom-in operation has not ended and is continuously executed, in response to the continuously executed first zoom-in operation, the second page is zoomed in, and the zoomed-in page is displayed, including: When virtual objects in the second virtual scene are displayed on the second page, and the two fingers move away from each other on the screen, the second page is magnified in response to the first zoom-in operation triggered by the two fingers on the screen, and the magnified page is displayed.
8. The method according to any one of claims 1 to 7, characterized in that, Switching the display from the first page to the second page corresponding to the first virtual object includes: If the first virtual object is a virtual building, the second page corresponding to the virtual building is displayed. The second page is a details page for the virtual building, which displays a second virtual scene within the virtual building. This second virtual scene contains virtual characters and / or virtual objects from the virtual building. If the first virtual object is a virtual character, the second page corresponding to the virtual character is displayed, wherein the second page is the details page of the virtual character.
9. The method according to claim 5 or 6, characterized in that, The method further includes: Display the third page; In response to the first zoom-out operation, the third page is zoomed out and the zoomed-out version of the third page is displayed; If the first zoom-out operation triggers entry into the second page, the display of the third page will switch to displaying the second page.
10. The method according to claim 9, characterized in that, When the first zoom-out operation triggers entry into the second page, the third page will be displayed, switching to the second page, including: If the third page is shrunk to a ratio less than or equal to the first preset ratio, the display of the third page will switch to displaying the second page.
11. The method according to claim 9, characterized in that, The method further includes: If the second page is displayed and the first zoom-out operation has not ended and is continuously executed, in response to the continuously executed first zoom-out operation, the second page is zoomed out and the zoomed-out page is displayed; If the first zoom-out operation triggers entry into the first page, the display of the second page will switch to displaying the first page.
12. A page switching device, characterized in that, include: The first display unit is used to display a first page including a virtual object in the first virtual scene used to carry a social entry point; The first processing unit is configured to respond to a first zoom-in operation on the first page, zoom in on the first page according to the zoom factor indicated by the first zoom-in operation, and display the zoomed-in first page. The second processing unit is configured to, when the first page is associated with multiple levels of pages, the magnification reaches a first preset magnification, and the midpoint of the first connecting line determined by the first touch point on the magnified first page is located in the display area where the first virtual object is located, cancel the display of the first page and display a second page corresponding to the first virtual object, wherein the second page is the next level page after the first page, and when the first virtual object is a virtual character, the second page is a details page of the virtual character for interacting with the first virtual object, the details page of the virtual character displays controls for performing character interaction operations with the first virtual object and the character information of the virtual character; in response to the first magnification operation continuously executed on the second page, and when the second connecting line determined by the second touch point on the second page based on the first magnification operation reaches a second length, cancel the display of the second page and display a third page, wherein the third page is the next level page of the second page, and the second length is greater than the first length of the first connecting line.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program is executed by a processor to perform the method of any one of claims 1 to 11.
14. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method of any one of claims 1 to 11.
15. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 11 via the computer program.
Citation Information
Patent Citations
Interface display method and device, terminal and storage medium
CN114177614A
Stereoscopic scene switching method and device, terminal and storage medium
CN114764295A