Position marking method, device and equipment in virtual scene and storage medium
By dragging and releasing virtual resource icons, rapid marking is achieved in virtual scenes, solving the problem of frequent human-computer interaction in existing technologies and improving marking efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2022-02-25
- Publication Date
- 2026-06-12
Smart Images

Figure CN116688502B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of virtualization and human-computer interaction technology, and in particular to a method, apparatus, device, computer-readable storage medium, and computer program product for location marking in a virtual scene. Background Technology
[0002] With the increasing prevalence of open-world games, players typically undertake various system-recommended quests within a vast open world. These quests are diverse, and the interactive scenarios and non-player characters often differ for each quest. To view a quest's location, players usually need to open the map using the in-game map function, locate the corresponding quest icon, and then navigate using auto-navigation or by setting a marker before following in-game guidance to the quest point.
[0003] In related technologies, marking a location on a map requires multiple clicks, and repeating the marking process requires even more clicks, resulting in frequent human-computer interaction and low marking efficiency. Summary of the Invention
[0004] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for marking locations in a virtual scene, which can enable rapid marking of virtual resource icons, reduce the number of human-computer interactions, and improve the control efficiency of the virtual scene.
[0005] The technical solution of this application embodiment is implemented as follows:
[0006] This application provides a method for location marking in a virtual scene, including:
[0007] The virtual scene's interface displays a map of the virtual scene;
[0008] In response to a location marking instruction for a virtual resource in the virtual scene, at least one virtual resource icon is displayed;
[0009] In response to a drag operation on a target virtual resource icon among the at least one virtual resource icons, the target virtual resource icon is controlled to move in the map along with the execution of the drag operation;
[0010] In response to a release command for the drag operation, the target virtual resource icon is marked at its current location on the map.
[0011] This application provides a location marking device in a virtual scene, including:
[0012] The display module is used to display a map of the virtual scene in the interface of the virtual scene;
[0013] The display module is further configured to display at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene;
[0014] A control module is configured to, in response to a drag operation on a target virtual resource icon among the at least one virtual resource icons, control the target virtual resource icon to move in the map as the drag operation is executed;
[0015] A marking module is used to mark the target virtual resource icon at its current position on the map in response to a release command for the drag operation.
[0016] In the above scheme, the display module is also used to display a location marker function item in the interface of the virtual scene;
[0017] In response to a first trigger operation for the location marking function item, a location marking instruction for virtual resources in the virtual scene is received.
[0018] In the above scheme, the display module is also used to receive a graphics drawing operation triggered by the interface based on the virtual scene;
[0019] When the graphic drawn by the graphic drawing operation matches a preset graphic, a location marking instruction for the virtual resource in the virtual scene is received.
[0020] In the above scheme, the display module is further used to obtain the icon display length of the virtual resource icon and the name display length of the resource name of the virtual resource indicated by the virtual resource icon;
[0021] When the sum of the icon display length and the name length does not reach the length threshold, the resource name of the virtual resource indicated by the virtual resource icon is displayed during the display of the virtual resource icon.
[0022] In the above scheme, the display module is further configured to hide the resource name of the corresponding virtual resource during the display of the virtual resource icon when the sum of the icon display length and the name display length reaches a width threshold, and
[0023] When the virtual resource icon is selected, the resource name of the virtual resource indicated by the virtual resource icon is displayed in the form of a floating layer.
[0024] In the above scheme, the display module is also used to control the resource name of the virtual resource indicated by the virtual resource icon to be in an editable state in response to the trigger operation of the virtual resource icon;
[0025] In response to an edit operation on a resource name that is in the editable state, the edited resource name is displayed.
[0026] In the above scheme, the control module is further configured to respond to a drag operation on the target virtual resource icon in the floating state among the at least one virtual resource icons, and control the target virtual resource icon in the floating state to move in the map along with the execution of the drag operation;
[0027] Accordingly, in the above scheme, the control module is also used to respond to a pressing operation on a target virtual resource icon in the at least one virtual resource icon, and to obtain the operation parameters of the pressing operation, wherein the operation parameters include at least one of the following: operation duration and pressure magnitude;
[0028] When the operation duration reaches a duration threshold or the pressure level reaches a pressure threshold, the target virtual resource icon is controlled to be in a floating state.
[0029] In the above scheme, the display module is further configured to display at least one virtual resource icon in a movable state in response to a location marking instruction for a virtual resource in the virtual scene;
[0030] Accordingly, in the above scheme, the control module is further configured to generate a copy of the icon in the movable state corresponding to the target virtual resource icon in response to a drag operation on the target virtual resource icon in the at least one movable virtual resource icon.
[0031] The icon copy, which is in a movable state, is moved within the map as the drag operation is executed.
[0032] In the above solution, the display module is further configured to, when there is a disabled virtual resource icon among the at least one virtual resource icon;
[0033] In response to a triggered operation on the virtual resource icon that is in a disabled state, a prompt message is displayed;
[0034] The prompt information is used to indicate that the number of tags for the virtual resources corresponding to the virtual resource icons that are in a disabled state has reached a threshold.
[0035] In the above scheme, the display module is also used to obtain the real-time position of the target virtual resource icon while controlling the target virtual resource icon to move in the map along with the execution of the drag operation;
[0036] A magnified view of the real-time location is displayed synchronously.
[0037] In the above scheme, the marking module is also used to display the target area in the interface of the virtual scene;
[0038] Within the target area, a magnified view of the real-time location is displayed synchronously.
[0039] In the above scheme, the marking module is also used to synchronously display an accompanying overlay associated with the target virtual resource icon, and to display a magnified interface including the real-time location within the accompanying overlay.
[0040] In the above scheme, the display module is further configured to respond to the location marking instruction for the virtual resources in the virtual scene, display an icon floating layer in the interface, and display at least one virtual resource icon in the icon floating layer using a target display style;
[0041] The target display style includes at least one of a list display style and a carousel style.
[0042] In the above scheme, the control module is further configured to respond to a first trigger operation on a target virtual resource icon among the at least one virtual resource icons, and control the entry into a multi-point marking mode for the target virtual resource icon;
[0043] Accordingly, in the above scheme, the marking module is also used to control the target virtual resource icon to be in a cursor following state in the multi-point marking mode;
[0044] In response to a click operation on a first location in the map, the target virtual resource icon is marked at the first location in the map, and
[0045] After marking the target virtual resource icon at the first location, when a click operation is received for the second location in the map, the target virtual resource icon is marked at the second location.
[0046] In the above scheme, the control module is also used to switch the display style of the target virtual resource icon from the first display style to the second display style;
[0047] Accordingly, in the above scheme, the control module is further configured to, in response to a second trigger operation on the target virtual resource icon, control the exit from the multi-point marking mode, and
[0048] Switch the display style of the target virtual resource icon from the second display style to the first display style.
[0049] In the above scheme, the control module is also used to display the drag trajectory corresponding to the drag operation in the virtual scene;
[0050] When the drag trajectory corresponds to a closed shape on the map, the area corresponding to the closed shape is used as a multi-point marked area;
[0051] Accordingly, in the above scheme, the marking module is also used to mark the target virtual resource icon at each unmarked markable resource location within the multi-point marking area in response to the release command for the drag operation.
[0052] This application provides an electronic device, including:
[0053] Memory, used to store executable instructions;
[0054] The processor, when executing executable instructions stored in the memory, implements the location marking method in the virtual scene provided in the embodiments of this application.
[0055] This application provides a computer-readable storage medium storing executable instructions for inducing a processor to execute and implement the location marking method in a virtual scene provided in this application.
[0056] This application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the location marking method in a virtual scene provided in this application.
[0057] The embodiments of this application have the following beneficial effects:
[0058] By applying the embodiments of this application, the target virtual resource icon displayed in the virtual scene is controlled to move on the map by dragging the target virtual resource icon, and the marking process of the target virtual resource icon is completed after receiving the release command for the dragging operation. In this way, the marking of virtual resource icons can be achieved quickly by dragging the target virtual resource icon and releasing the dragging operation, reducing the number of human-computer interactions, improving the marking efficiency of virtual resource icons on the map, and improving the control efficiency of the virtual scene. Attached Figure Description
[0059] Figure 1 This is a schematic diagram of the architecture of a location marking system in a virtual scene provided in an embodiment of this application;
[0060] Figure 2 This is a schematic diagram of the structure of an electronic device that implements a location marking method in a virtual scene, as provided in an embodiment of this application.
[0061] Figure 3 This is a flowchart illustrating the location marking method in a virtual scene provided in an embodiment of this application;
[0062] Figure 4 This is a schematic diagram of the virtual scene map interface provided in an embodiment of this application;
[0063] Figure 5 This is a schematic diagram of a graphic drawing provided in an embodiment of this application;
[0064] Figures 6A-6B This is a schematic diagram showing the display of virtual resource icons provided in an embodiment of this application;
[0065] Figure 7 This is a schematic diagram of the target display style provided in the embodiments of this application;
[0066] Figure 8 This is a schematic diagram of the roulette wheel display style provided in the embodiments of this application;
[0067] Figure 9 This is a schematic diagram illustrating the information prompts provided in the embodiments of this application;
[0068] Figure 10 This is a schematic diagram illustrating the modification of resource names provided in an embodiment of this application;
[0069] Figure 11 This is a partially enlarged interface schematic diagram provided in an embodiment of this application;
[0070] Figure 12 This is a schematic diagram of a fixed, partially enlarged interface provided in an embodiment of this application;
[0071] Figure 13 This is a schematic diagram of the multi-point marking pattern provided in an embodiment of this application;
[0072] Figure 14 This is a schematic diagram of the multi-point marked area provided in the embodiments of this application;
[0073] Figure 15 This is a schematic diagram of map markings provided by related technologies;
[0074] Figure 16 This is a flowchart of the location marking operation for virtual resources provided in an embodiment of this application;
[0075] Figure 17 This is a flowchart of the editing operation for the tag name provided in the embodiments of this application;
[0076] Figure 18 This is a flowchart of the location marking method provided in the embodiments of this application. Detailed Implementation
[0077] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0078] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0079] If the application documents contain similar descriptions such as "first / second", the following explanation shall be added: In the following description, the terms "first / second / third" are used only to distinguish similar objects and do not represent a specific order of objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0080] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0081] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0082] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0083] 1) Client: An application that runs on a terminal and provides various services, such as an instant messaging client or a video playback client.
[0084] 2) In response, used to indicate the conditions or states on which the operation performed depends. When the conditions or states on which it depends are met, one or more operations performed may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.
[0085] 3) A virtual scene is a virtual scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of a two-dimensional, 2.5-dimensional, or three-dimensional virtual scene; this application does not limit the dimension of the virtual scene. For example, a virtual scene can include the sky, land, ocean, etc., and the land can include environmental elements such as deserts and cities. Users can control virtual objects to perform activities in this virtual scene, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing at least one of these activities. The virtual scene can be displayed from a first-person perspective (e.g., the player plays the role of a virtual object in the game from their own perspective); it can also be displayed from a third-person perspective (e.g., the player chases after a virtual object in the game); or it can be displayed from a bird's-eye view; wherein, the above perspectives can be switched arbitrarily.
[0086] Taking a first-person perspective virtual scene as an example, the virtual scene displayed in the human-computer interaction interface can include: determining the field of view area of the virtual object based on its viewing position and field of view angle within the complete virtual scene, and presenting a portion of the virtual scene located within that field of view area. In other words, the displayed virtual scene can be a portion of the virtual scene relative to the panoramic virtual scene. Because the first-person perspective is the most impactful viewing angle for users, this allows for an immersive experience during operation. Taking a bird's-eye view virtual scene as another example, the interface of the virtual scene presented in the human-computer interaction interface can include: responding to zoom operations on the panoramic virtual scene, presenting a portion of the virtual scene corresponding to the zoom operation in the human-computer interaction interface. In other words, the displayed virtual scene can be a portion of the virtual scene relative to the panoramic virtual scene. This improves user operability during operation, thereby increasing the efficiency of human-computer interaction.
[0087] 4) Scene data represents the various characteristics exhibited by objects in a virtual scene during interaction. For example, it can include the position of an object in the virtual scene. Of course, different types of characteristics can be included depending on the type of virtual scene; for example, in a game's virtual scene, scene data can include the waiting time required for various functions configured in the virtual scene (depending on the number of times the same function can be used within a specific time), and it can also represent the attribute values of various states of game characters, such as health points (also known as red points), mana points (also known as blue points), status values, and health points.
[0088] 5) Open-world games, also known as free roaming games, are a type of game level design in which players can freely roam in a virtual world and freely choose when and how to complete game tasks.
[0089] Based on the above explanation of the nouns and terms used in the embodiments of this application, the location marking system in the virtual scene provided in the embodiments of this application is described below. See also Figure 1 , Figure 1 This is a schematic diagram of the architecture of a location marking system in a virtual scene provided in the embodiments of this application. In order to support an exemplary application, the terminal (terminal 400-1 and terminal 400-2 are shown as examples) connects to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two, and data transmission is achieved using wireless or wired links.
[0090] Terminals (such as terminal 400-1 and terminal 400-2) are used to send a request to the server 200 to obtain scene data of the virtual scene after receiving a trigger operation to enter the virtual scene based on the view interface.
[0091] Server 200 is used to receive a request for scene data acquisition and, in response to the request, return the scene data of the virtual scene to the terminal.
[0092] The terminal (such as terminal 400-1 and terminal 400-2) is used to receive scene data of the virtual scene, render the screen of the virtual scene based on the obtained scene data, and present the screen of the virtual scene in the graphical interface (graphical interface 410-1 and graphical interface 410-2 are shown as examples); wherein, the corresponding map information is presented in the screen of the virtual scene, and the content presented in the screen of the virtual scene is all rendered based on the returned scene data of the virtual scene.
[0093] In practical applications, server 200 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. Terminals (such as terminals 400-1 and 400-2) can be smartphones, tablets, laptops, desktop computers, smart speakers, smart TVs, smartwatches, etc., but are not limited to these. Terminals (such as terminals 400-1 and 400-2) and server 200 can be directly or indirectly connected via wired or wireless communication; this application does not impose any restrictions on this connection.
[0094] In practical applications, the terminals (including Terminal 400-1 and Terminal 400-2) have applications that support virtual scenes installed and running. These applications can be any of the following: first-person shooter (FPS) games, third-person shooter games, driving games with steering as the primary action, multiplayer online battle arena (MOBA) games, two-dimensional (2D) games, three-dimensional (3D) games, virtual reality applications, 3D mapping programs, or multiplayer survival games. The application can also be a standalone application, such as a standalone 3D game program.
[0095] Taking a video game scenario as an example, a user can perform operations on the terminal in advance. After detecting the user's operation, the terminal can download the video game's configuration file. This configuration file can include the video game's application, interface display data, or virtual scene data, so that when the user logs into the video game on the terminal, the configuration file can be invoked to render and display the video game interface. The user can also perform touch operations on the terminal. After detecting the touch operation, the terminal can determine the corresponding game data and render and display that game data. This game data can include virtual scene data and behavioral data of virtual objects within the virtual scene.
[0096] In practical applications, the terminals (including terminals 400-1 and 400-2) receive a trigger operation to enter the virtual scene based on the view interface and send a request to the server 200 to obtain the scene data of the virtual scene. Upon receiving the request, the server 200 returns the scene data of the virtual scene to the terminal. The terminal receives the scene data and renders the virtual scene based on it, displaying a map of the virtual scene in the virtual scene interface. In response to a location marking instruction for a virtual resource in the virtual scene, at least one virtual resource icon is displayed. In response to a drag operation on a target virtual resource icon among the at least one virtual resource icon, the target virtual resource icon is controlled to move on the map along with the drag operation. In response to a release instruction for the drag operation, the target virtual resource icon is marked at its current location on the map. Thus, any location on the entire open-world map can be marked simply by dragging a target virtual resource icon.
[0097] The embodiments of this application can also be implemented with the help of cloud technology, which refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to realize the calculation, storage, processing, and sharing of data.
[0098] Cloud technology is a general term encompassing network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form resource pools, allowing for on-demand use with flexibility and convenience. Cloud computing technology will become a crucial support. The backend services of cloud computing systems require substantial computing and storage resources.
[0099] See Figure 2 , Figure 2 This is a schematic diagram of the structure of an electronic device implementing a location marking method in a virtual scene, as provided in an embodiment of this application. In practical applications, the electronic device 500 can be... Figure 1 The server or terminal shown is exemplified by electronic device 500. Figure 1 Taking the terminal shown as an example, an electronic device implementing the location marking method in a virtual scene according to an embodiment of this application will be described. The electronic device 500 provided in this embodiment includes: at least one processor 510, a memory 550, at least one network interface 520, and a user interface 530. The various components in the electronic device 500 are coupled together through a bus system 540. It is understood that the bus system 540 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 540 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 2 The general labeled all buses as Bus System 540.
[0100] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0101] User interface 530 includes one or more output devices 531 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0102] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 550 may optionally include one or more storage devices physically located away from the processor 510.
[0103] The memory 550 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 550 described in this application embodiment is intended to include any suitable type of memory.
[0104] In some embodiments, memory 550 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.
[0105] Operating system 551 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks;
[0106] The network communication module 552 is used to reach other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc.
[0107] Presentation module 553 is used to enable the presentation of information (e.g., user interface for operating peripheral devices and displaying content and information) via one or more output devices 531 (e.g., display screen, speaker, etc.) associated with user interface 530.
[0108] The input processing module 554 is used to detect and translate one or more user inputs or interactions from one or more input devices 532.
[0109] In some embodiments, the location marking device in the virtual scene provided in this application can be implemented in software. Figure 2A location marking device 555 in a virtual scene stored in memory 550 is shown. It can be software in the form of programs and plug-ins, including the following software modules: display module 5551, control module 5552 and marking module 5553. These modules are logical and can therefore be arbitrarily combined or further divided according to the functions they implement. The functions of each module will be described below.
[0110] In other embodiments, the location marking device in the virtual scene provided in this application can be implemented using a combination of hardware and software. As an example, the location marking device in the virtual scene provided in this application can be a processor in the form of a hardware decoding processor, which is programmed to execute the location marking method in the virtual scene provided in this application. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0111] Based on the above description of the location marking system and electronic device in the virtual scene provided in the embodiments of this application, the location marking method in the virtual scene provided in the embodiments of this application is described below. In some embodiments, the location marking method in the virtual scene provided in the embodiments of this application can be implemented by a server or a terminal alone, or by a server and a terminal working together. In some embodiments, the terminal or server can implement the location marking method in the virtual scene provided in the embodiments of this application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as a client that supports virtual scenes, such as a game APP; it can also be a mini-program, that is, a program that only needs to be downloaded to the browser environment to run; or it can be a mini-program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of application, module or plugin.
[0112] The following uses a terminal implementation as an example to illustrate the location marking method in a virtual scene provided in this application. See also: Figure 3 , Figure 3This is a flowchart illustrating a location marking method in a virtual scene provided in this application embodiment. The location marking method in a virtual scene provided in this application embodiment includes:
[0113] In step 101, the terminal displays a map of the virtual scene in the virtual scene interface.
[0114] In practice, the terminal can have an application client that supports virtual scenes installed. When the user opens the application client on the terminal and the application client is running, the terminal displays a virtual scene interface (such as an open-world adventure game). Within the virtual scene interface, a corresponding map (scene map) is displayed. This map contains numerous virtual resources for players to collect, and players can also mark various virtual resources at location points on the map. Common virtual resources may include treasure chests, energy bars, etc.
[0115] For example, see Figure 4 , Figure 4 This is a schematic diagram of a virtual scene map interface provided in an embodiment of this application. The map of the virtual scene can display the location points of virtual resources.
[0116] In step 102, in response to a location marking instruction for a virtual resource in the virtual scene, at least one virtual resource icon is displayed.
[0117] In actual implementation, after receiving a location marking instruction for virtual resources in a virtual scene, the terminal can display at least one virtual resource icon.
[0118] The triggering method for the location marking instruction is described below. In some embodiments, before displaying at least one virtual resource icon, the terminal may receive a location marking instruction for a virtual resource in a virtual scene in the following ways: the terminal displays a location marking function item in the interface of the virtual scene; in response to a first triggering operation for the location marking function item, the terminal receives a location marking instruction for a virtual resource in the virtual scene.
[0119] In practice, the virtual scene interface displays a location marking function, which is presented as a button. When the user triggers the location marking function, the terminal receives a location marking command for the virtual resource.
[0120] For example, see Figure 4 The location marker button shown in Figure 1 can be clicked by the user to receive a location marker command on the terminal.
[0121] In some embodiments, before displaying at least one virtual resource icon, the terminal may receive a location marking instruction for the virtual resource in the following manner: the terminal receives a graphics drawing operation triggered by the interface based on the virtual scene; when the graphics drawn by the graphics drawing operation matches a preset graphics, the terminal receives a location marking instruction for the virtual resource in the virtual scene.
[0122] In practice, users can perform graphic drawing operations on the virtual scene interface from any position on the terminal screen. The terminal responds to the user's drawing operation by acquiring the position information of each point in the drawing operation, generating the drawn graphic, and matching the drawn graphic with preset graphics in a pre-stored graphics library used to trigger position marking commands. If at least one preset graphic matches the drawn graphic, it indicates that a position marking command for the virtual resource can be triggered after the drawing operation is completed. Additionally, the terminal can predict the drawn graphic's category using an AI-based multi-classification model deployed on the terminal. The input information for the multi-classification model is the position information of the drawn graphic, and the output information is the graphic category in the preset graphics library.
[0123] For example, see Figure 5 , Figure 5 This is a schematic diagram of graphic drawing provided in an embodiment of this application. The user performs a graphic drawing operation on the virtual scene interface to obtain the graphic shown as number 1 in the diagram (the specific style of the graphic can be various, such as a circle, triangle, etc.). It should be noted that, in order not to affect the user's viewing experience, the graphic obtained from the graphic drawing operation may not be displayed in the virtual scene interface; that is, the graphic shown as number 1 in the diagram may not be displayed in the actual virtual live streaming room interface.
[0124] The method described above, which triggers position marking instructions through graphical drawing, can effectively reduce the screen occupancy of controls in the virtual scene interface and save screen space.
[0125] In some embodiments, the terminal may display the resource name of the virtual resource indicated by the virtual resource icon in the following manner: the terminal obtains the icon display length of the virtual resource icon and the name display length of the resource name of the virtual resource indicated by the virtual resource icon; when the sum of the icon display length and the name length does not reach the length threshold, the resource name of the virtual resource indicated by the virtual resource icon is displayed during the display of the virtual resource icon.
[0126] In practice, upon receiving a location marker instruction for a virtual resource triggered via the aforementioned method, the terminal displays at least one virtual resource icon and the resource name of the virtual resource indicated by the icon in the virtual scene interface, based on the actual situation of the virtual scene displayed on the terminal screen. It should be noted that the virtual resource icon and the resource name of the virtual resource indicated by the icon can be displayed simultaneously, or only the virtual resource icon can be displayed. The terminal can determine whether to display the virtual resource icon and its corresponding resource name simultaneously based on the icon length and the resource name length. The terminal determines a length threshold for synchronously displaying the virtual resource icon and its corresponding resource name based on the distribution of elements (controls, titles, etc.) in the virtual scene. When the sum of the icon length and the resource name length does not reach the threshold, the virtual resource icon and its corresponding resource name are displayed simultaneously.
[0127] For example, Figures 6A-6B This is a schematic diagram showing the display of the virtual resource icon provided in an embodiment of this application. See also... Figure 6A , Figure 6A The system simultaneously displays the virtual resource icon and the corresponding resource name.
[0128] The above method of simultaneously displaying virtual resource icons and their corresponding resource names can intuitively display virtual resource names and improve the human-computer interaction experience.
[0129] In some embodiments, the terminal may display the resource name of the virtual resource indicated by the virtual resource icon in the following manner: when the sum of the icon display length and the name display length reaches the width threshold, the terminal hides the resource name of the corresponding virtual resource during the display of the virtual resource icon, and when the virtual resource icon is selected, the terminal displays the resource name of the virtual resource indicated by the virtual resource icon in the form of a floating layer.
[0130] In practice, when the terminal determines that the sum of the icon display length and the name display length reaches the width threshold, it can display only the virtual resource icon. That is, while displaying the virtual resource icon, the name of the corresponding virtual resource is hidden. When the user moves the cursor to any virtual resource icon, the resource name of the virtual resource indicated by the current icon can be displayed as a floating layer. It should be noted that the terminal can also provide a settings interface for the virtual resource icon display mode and display the virtual resource icons in the virtual interface using the set target display mode.
[0131] For example, see Figure 6B , Figure 6BThe virtual resource icon shown in Figure 1 is displayed in a way that only shows the virtual resource icon and hides the resource name. When the cursor moves over any virtual resource icon, the resource name is displayed as a floating layer, as shown in Figure 2.
[0132] The above method of displaying only virtual resource icons can reduce the space utilization of the virtual interface and improve the human-computer interaction experience.
[0133] In some embodiments, the terminal may display virtual resource icons in the following manner: in response to a location marking instruction for virtual resources in a virtual scene, the terminal displays an icon floating layer in the interface of the virtual scene, and displays at least one virtual resource icon in the icon floating layer using a target display style; wherein, the target display style includes at least one of a list display style and a wheel display style.
[0134] In practical implementation, the terminal provides a settings interface for setting the display style of at least one virtual resource icon. This interface presents at least one display style option, including but not limited to list display style options and wheel display style options. In response to the selection of a target display style option from the at least one display style options, the terminal determines the target display style corresponding to that option as the display style for at least one virtual resource icon. After determining the target display style, the terminal can display at least one virtual resource icon in the virtual scene interface using the target display style, in the form of a floating layer.
[0135] For example, see Figure 7 , Figure 7 This is a schematic diagram of the target display style provided in an embodiment of this application. The diagram shows two target display style options and provides example diagrams corresponding to each target display style option. When the target display style is a list display style, the display style of at least one virtual resource icon is as follows: Figures 6A-6B As shown; see also Figure 8 , Figure 8 This is a schematic diagram of the roulette wheel display style provided in the embodiments of this application. Figure 8 In this process, the terminal determines that the target display style for at least one virtual resource icon is a wheel display style. Responding to a long press operation on the location function item (shown as number 1 in the figure), the terminal brings up a wheel (shown as number 2 in the figure) to display at least one virtual resource icon. When the cursor is slid from the location function item to any virtual resource icon in the wheel, the resource name of the virtual resource indicated by the icon can be displayed as a floating layer. It should be noted that the at least one virtual resource icon in the wheel display style can be located anywhere within the virtual interface.
[0136] The above-mentioned display styles for at least one virtual resource icon can meet users' personalized needs and improve the human-computer interaction experience.
[0137] In some embodiments, the terminal may display virtual resource icons in the following manner: when at least one virtual resource icon is in a disabled state; the terminal displays a prompt message in response to a trigger operation on the disabled virtual resource icon; wherein the prompt message is used to indicate that the number of tags for the virtual resource corresponding to the disabled virtual resource icon has reached a threshold.
[0138] In practice, there is a limit to the number of marks that can be placed on any virtual resource icon. When the number of marks placed on a virtual resource in the map of the virtual scene reaches the corresponding threshold, the virtual resource indicated by that icon can no longer be marked. Accordingly, the virtual resource icon can be disabled to indicate to the user that the number of marks placed on the virtual resource indicated by the current icon has reached the threshold.
[0139] For example, see Figure 9 , Figure 9 This is a schematic diagram of an information prompt provided in an embodiment of this application. The diagram displays virtual resource icons and resource names (shown as number 1 in the diagram) in a list format. "Resource Name 1" and "Resource Name 2" are disabled, while other virtual resource icons are available. In response to a trigger operation (click operation) targeting the disabled "Resource Name 1," the terminal displays a floating layer (shown as number 2 in the diagram) in the virtual scene interface. The floating layer displays the prompt message "The number of markers for Resource Name 1 is full; the current icon is unavailable."
[0140] In some embodiments, the terminal can edit the resource name of a virtual resource in the following ways: in response to a trigger operation on a virtual resource icon, the terminal controls the resource name of the virtual resource indicated by the virtual resource icon to be in an editable state; in response to an editing operation on the resource name in the editable state, the terminal displays the edited resource name.
[0141] In actual implementation, the terminal can provide editing operations for the resource name indicated by the virtual resource icon. The terminal responds to the trigger operation for the resource name (such as double-clicking the virtual resource name), controls the resource name to be in an editable state, receives the editing operation (re-entry) for the selected resource name, and confirms the modified resource name.
[0142] For example, see Figure 10 , Figure 10This is a schematic diagram of resource name modification provided in an embodiment of this application. In the diagram, the terminal receives a double-click operation on "Resource Name 4" and controls "Resource Name 4" to be in an editable state. At this time, the cursor flashes in the input box where "Resource Name 4" is located, prompting the user to enter a new resource name. After the input is completed, the new resource name is displayed.
[0143] In step 103, in response to a drag operation on a target virtual resource icon among at least one virtual resource icon, the target virtual resource icon is controlled to move in the map along with the execution of the drag operation.
[0144] In actual implementation, the terminal can respond to the drag operation of the target virtual resource icon and control the virtual resource icon to move along the drag trajectory of the drag operation on the map as the drag operation is executed.
[0145] In some embodiments, the terminal can control the target virtual resource icon to move in the map in the following manner: in response to a drag operation on a target virtual resource icon that is in a floating state among at least one virtual resource icon, the terminal controls the target virtual resource icon in the floating state to move in the map along with the execution of the drag operation.
[0146] In practice, the terminal can drag the target virtual resource icon that is in a floating state. There are several ways to control the virtual resource icon to be in a floating state. In some embodiments, the terminal can provide settings for whether the virtual resource icon is in a floating state.
[0147] In some embodiments, the terminal can control the virtual resource icon to be in a floating state in the following manner: in response to a pressing operation on a target virtual resource icon among at least one virtual resource icon, the terminal obtains the operation parameters of the pressing operation, wherein the operation parameters include at least one of the following: operation duration and pressure magnitude; when the operation duration reaches a duration threshold or the pressure magnitude reaches a pressure threshold, the terminal controls the target virtual resource icon to be in a floating state.
[0148] In actual implementation, the terminal can obtain parameters such as the operation duration and pressure of the pressing operation on the virtual resource icon, and compare the operation duration with a preset duration threshold or the pressure with a preset pressure threshold. When the operation duration is greater than the preset duration threshold or the pressure is greater than the pressure threshold, the target virtual resource icon can be controlled to be in a floating state.
[0149] For example, see Figure 8When the terminal responds to a long press on the location marker button shown in Figure 1, it brings up a wheel displaying virtual resource icons (Figure 2). At this point, the long press operation is directly switched to a swipe operation starting from the location marker button, swiping to the icon of "Resource Name 2" (the target virtual resource icon). If the icon of "Resource Name 2" is already in a floating state, the swipe operation is switched to a drag operation on the target resource icon (Figure 3), controlling the icon of "Resource Name 2" to move on the map as the drag operation is executed. If the icon of "Resource Name 2" is not in a floating state (fixed state), then the terminal swipes to the icon of "Resource Name 2" and performs a press operation on the icon of "Resource Name 2" until the icon of "Resource Name 2" is in a floating state. Then, the long press operation on the icon of "Resource Name 2" is switched to a drag operation on the icon of "Resource Name 2", thereby controlling the icon of "Resource Name 2" to move on the map as the drag operation is executed.
[0150] The above-described method of controlling the movement of target virtual resource icons on the map can quickly and conveniently achieve the operation of moving target virtual resource icons on the map through uninterrupted continuous actions, thereby improving the human-computer interaction experience.
[0151] In some embodiments, the terminal can also control the target virtual resource icon to move in the map in the following ways: in response to a location marking instruction for a virtual resource in a virtual scene, the terminal displays at least one virtual resource icon in a movable state; correspondingly, in response to a drag operation on the target virtual resource icon among the at least one movable virtual resource icon, the terminal generates a movable icon copy of the corresponding target virtual resource icon; and controls the movable icon copy to move in the map as the drag operation is executed.
[0152] In practice, when the virtual resource icon is in a movable state, an icon copy of the virtual resource icon can be created. In response to dragging operations on the icon copy, the icon copy can be controlled to move on the map. In this way, the original virtual resource icon is not missing and the aesthetics of the virtual resource icon are guaranteed when it is displayed.
[0153] In some embodiments, the terminal can display the real-time location of the target resource icon in the following manner: while controlling the target virtual resource icon to move on the map along with the execution of the drag operation, the terminal obtains the real-time location of the target virtual resource icon; and simultaneously displays a magnified interface including the real-time location.
[0154] In actual implementation, when the terminal controls the target virtual resource icon to move on the map, in order to display the real-time position of the target virtual resource icon on the map without changing the map scale or requiring manual dragging and moving of the map, a local magnified interface including the real-time position of the target virtual resource can be displayed synchronously on the map.
[0155] For example, see Figure 11 , Figure 11 This is a partial magnified interface diagram provided in an embodiment of this application. In the diagram, the terminal responds to the drag operation of the target resource icon (shown as number 1 in the diagram) and controls the target resource icon to move in the map. At the same time, in order to determine the real-time position of the target resource in the map, a partial magnified interface including the real-time position is displayed in the virtual scene interface (shown as number 2 in the diagram). In the partial magnified interface shown as number 2, the current position of the target resource icon and the surrounding situation can be clearly displayed.
[0156] The above method of displaying the real-time location of the target resource icon by zooming in on a portion of the interface can accurately display the real-time location of the virtual resource icon without moving the map or changing the map scale, i.e., at the smallest map scale. This eliminates the need for users to manually change the map scale or drag and move the map, thus improving the human-computer interaction experience.
[0157] In some embodiments, the terminal may display a magnified interface in the following manner: the terminal displays a target area in the interface of a virtual scene; and in the target area, a magnified interface including the real-time location is displayed synchronously.
[0158] In practical implementation, the terminal can adopt a fixed approach, synchronously displaying a magnified portion of the interface, including its real-time location. The terminal can provide a settings interface for the display format of the magnified portion, offering at least two display format options, such as following and fixed. In response to the selection of the fixed option, the fixed magnified portion is displayed within the virtual scene interface. That is, a magnified portion, including the real-time location of the target virtual icon, is displayed in a suitable area of the virtual scene interface. It should be noted that the target area can be rectangular, circular, etc., and the target area is movable, meaning its position can be moved according to the user's actual needs.
[0159] For example, see Figure 12 , Figure 12 This is a schematic diagram of a fixed partial magnification interface provided in an embodiment of this application. In the diagram, in response to a drag operation on the target virtual resource icon shown in number 1, the terminal synchronously displays a partial magnification interface showing the real-time position of the target virtual icon within the target area (circular area) shown in number 2.
[0160] In some embodiments, the terminal may also display a magnified interface in the following manner: the terminal synchronously displays an accompanying overlay associated with the target virtual resource icon, and displays a magnified interface including the real-time location within the accompanying overlay.
[0161] In practical implementation, the terminal can adopt a following approach, synchronously displaying a magnified portion of the interface, including the real-time location. The terminal can provide a settings interface for the display format of the magnified portion of the interface, offering at least two display format options, such as following and fixed. In response to the selection of the following option, the following magnified portion of the interface is displayed in the virtual scene.
[0162] For example, see Figure 11 The zoomed-in interface shown in Figure 2 is a follow-up type. When the terminal controls the virtual resource icon corresponding to "Resource Name 2" to move on the map, it synchronously displays an accompanying floating layer associated with the virtual resource icon corresponding to "Resource Name 2". This accompanying floating layer can move with the virtual resource icon corresponding to "Resource Name 2" and displays a zoomed-in interface in real time, including the real-time position of the virtual resource icon corresponding to "Resource Name 2".
[0163] In step 104, in response to the release command for the drag operation, the target virtual resource icon is marked at its current location on the map.
[0164] In practice, when the terminal controls the movement of the target virtual resource icon on the map, in response to the release command for the drag operation, the target virtual resource icon is marked at its current position. This marking mode can be understood as a single-point marking mode, meaning that the marking operation for the target virtual resource icon marks only one location at a time.
[0165] In some embodiments, the terminal can enter a multi-point marking mode for a target virtual resource icon by responding to a first triggering operation for a target virtual resource icon among at least one virtual resource icon;
[0166] In practice, the terminal can also enable a multi-point marking mode for the target virtual resource icon. In multi-point marking mode, the marking operation for the target resource icon can be executed multiple times consecutively. The terminal can control entry into the multi-point marking mode for the target virtual resource icon in response to a trigger operation on the target resource icon (such as double-clicking).
[0167] Accordingly, in some embodiments, the terminal can mark a target virtual resource icon on the map in the following manner: in multi-point marking mode, the terminal controls the target virtual resource icon to be in a cursor following state; in response to a click operation on a first location on the map, the terminal marks the target virtual resource icon at the first location on the map, and after marking the target virtual resource icon at the first location, when a click operation on a second location on the map is received, the terminal marks the target virtual resource icon at the second location.
[0168] In actual implementation, in multi-point marking mode, the terminal controls the target virtual resource icon to move with the cursor, and in response to a click operation on location A on the map, marks the target virtual resource icon at location A. Subsequently, the target virtual resource icon continues to move with the cursor, and in response to a click operation on location B on the map, marks the target virtual resource icon at location B.
[0169] For example, see Figure 13 , Figure 13 This is a schematic diagram of the multi-point marking mode provided in the embodiment of this application. In response to the double-click operation on the resource icon of "resource name 2", the terminal controls the multi-point marking mode to mark the resource icon at the position shown in number 1. Then, the drag operation on the resource icon is continued to be performed, and the resource icon is marked again at the position shown in number 2. Finally, the resource icon is marked for the third time at the position shown in number 3. That is, in the multi-point marking mode, the resource icon of "resource name 2" is marked three times in succession.
[0170] The above-mentioned method of enabling multi-point marking mode to mark target virtual resource icons at multiple points effectively improves the marking efficiency of resource icons, reduces the number of operations, and enhances the human-computer interaction experience.
[0171] In some embodiments, the terminal can control the exit from the multi-point marking mode in the following manner: the terminal switches the display style of the target virtual resource icon from the first display style to the second display style; correspondingly, after the terminal marks the target virtual resource icon at the second position, in response to the second trigger operation on the target virtual resource icon, it controls the exit from the multi-point marking mode and switches the display style of the target virtual resource icon from the second display style to the first display style.
[0172] In practice, the terminal can control the exit from the multi-point marking mode for the target resource icon and change the display style of the target resource icon by responding to other trigger operations for the target virtual resource icon. Here, the first display style is the style of the target resource icon when entering the multi-point marking mode; the second display style is the style of the target resource icon when exiting the multi-point marking mode (normal marking mode or single-point marking mode).
[0173] For example, see Figure 13 During the dragging operation of the target resource icon in the figure (shown as number 4 in the figure), when the target resource icon in the icon wheel receives a click operation again, the multi-point marking mode for the target resource icon is exited and the display style of the target resource icon is restored to the first display style.
[0174] The above-mentioned methods for exiting multi-point marking mode allow for flexible control over the opening and closing of multi-point marking mode, thereby improving marking efficiency.
[0175] In some embodiments, the terminal can implement multi-point marking of the target resource icon in the following way: the terminal displays the drag trajectory corresponding to the drag operation in the virtual scene; when the shape corresponding to the drag trajectory on the map is a closed shape, the area corresponding to the closed shape is taken as the multi-point marking area; accordingly, in response to the release command for the drag operation, the terminal marks the target virtual resource icon at each unmarked markable resource location in the multi-point marking area.
[0176] In actual implementation, in the multi-point marking mode for target resource icons, the terminal can also select a multi-point marking area based on the drag operation of the target resource icon, and after receiving the release command for the drag operation, mark at least one target virtual resource icon in the multi-point marking area at the same time.
[0177] For example, see Figure 14 , Figure 14 This is a schematic diagram of a multi-point marking area provided in an embodiment of this application. In the diagram, in response to a drag operation on the target resource icon shown in number 1, the terminal displays the drag trajectory corresponding to the drag operation (shown in number 2 in the diagram). The drag trajectory can form a closed shape. Within the closed shape, the locations of each resource in an unmarked state on the map are obtained. The terminal receives a release command for the drag operation and marks the four target virtual icons shown in the diagram.
[0178] The method described above for determining the multi-point marking area in multi-point marking mode can greatly reduce the number of operation steps and improve marking efficiency.
[0179] By applying the embodiments of this application, different trigger operations are performed on the target virtual resource icon in different display states to control the target virtual resource icon to move on the map. During the movement, a local zoom-in and interface showing the real-time location of the target virtual resource icon are displayed simultaneously. In response to the release command for the drag operation, the target virtual resource icon is marked on the map. In this way, without changing the map scale and position, the map can be quickly and accurately marked by a combination of quick drag and local zoom, while avoiding accidental touches.
[0180] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario.
[0181] In related technologies, see Figure 15 , Figure 15 This is a diagram illustrating map marking provided by related technologies. In the diagram, within the virtual scene corresponding to an open world, players click on a location on the map to trigger a marking pop-up window to mark it. However, this method of location marking often has the following problems:
[0182] Too many clicks: If you want to mark a certain location on the map, you need to click multiple times. If you want to mark it repeatedly, you need to repeat the clicking steps even more. Also, since the markers may be scattered in different locations on the map, players need to keep adjusting the map position to mark the fixed points.
[0183] Inaccurate marking: When players need to mark different locations on the world map, if the map is zoomed out, it becomes difficult for players who need precise marking to control the marker to fall on the exact location;
[0184] Accidental clicks can easily occur: Most games have numerous waypoints and quest markers, making it easy for players to accidentally click on areas near these locations when trying to mark them, thus affecting the player's experience. Furthermore, as the map expands, it becomes necessary to frequently change map positions to mark these locations.
[0185] When players need to mark different locations on the world map, it is difficult to mark precise locations if the map is zoomed out, and if the map is zoomed in, the player needs to keep dragging the map to change its position, which increases the player's workload.
[0186] Based on this, this application provides a location marking method in a virtual scene. The method first attempts to reduce the player's click operations by using only dragging, while also avoiding accidental clicks, allowing the player to complete the marking process without interruption. At the same time, the method adds a magnifying glass effect in the large map, ensuring that even when the map scale is small, the player can accurately mark a large map area without moving the map.
[0187] The location marking method provided in this application will be described next from the product side. In some embodiments, see [link to relevant documentation]. Figure 16 , Figure 16This is a flowchart of the location marking operation for virtual resources provided in this application embodiment. The player long-presses or clicks the mark button on the map (shown as number 1 in the figure) to trigger the location marking command. The terminal responds to the location marking command and displays the mark category list (also known as the resource icon list) shown as number 2 in the figure. Then, the player drags the mark button to the brought-up mark category list and selects a mark, or clicks to bring up the list and drags a mark from the list (the target mark shown as number 3 in the figure). The player moves the target mark to a specific location on the map, and a magnifying glass (shown as number 4 in the figure) follows. Finally, the player drags the target mark to the target location on the map, releases their finger, and releases the drag operation for the target mark. The target mark is displayed at the target location, and one marking process for the resource is completed.
[0188] The marking process illustrated in this application is quick and convenient, allowing users to mark any location on the entire world map simply by dragging and dropping. Furthermore, it avoids accidental marking of quest points on the map. Since most games have numerous teleportation points and quest locations, players can easily misclick when trying to mark areas near these locations, negatively impacting the player experience. Additionally, it enables precise marking without moving the map, even at its smallest scale: players can directly and accurately mark on the entire world map without changing the map scale or manually dragging it. In short, through the above marking steps, players can quickly and accurately mark on the map using a combination of quick drag and a magnifying glass, without altering the map scale or location, while avoiding accidental clicks.
[0189] The following describes the editing process for the tag name provided in the embodiments of this application. See [link to relevant documentation]. Figure 17 , Figure 17 This is a flowchart of the editing operation for the marker name provided in the embodiment of this application. The player long presses the marker button on the large map to generate an editing command for the marker name. After the terminal receives the editing command, the editing interface for the marker name is presented on the interface where the map is located (shown as number 1 in the figure). The player renames the selected marker name in the editing interface. After clicking the OK button, the modified marker name is displayed in the marker category list.
[0190] Next, the location marking method provided in the embodiments of this application will be described from a technical perspective. See [link to relevant documentation]. Figure 18 , Figure 18This is a flowchart of the location marking method provided in this application embodiment. The specific process is as follows: The terminal executes step 201: receiving a trigger operation from the player on the marking button; executes step 202: determining whether the trigger operation is a long press operation. When the trigger operation is a long press operation, executes step 203a: displaying a mark category selection list. At this time, each mark item in the list cannot be clicked or renamed; when the trigger operation is a click operation, executes step 203b: displaying a specific list of mark categories. At this time, each mark item in the list can be clicked and renamed; when the terminal receives a trigger operation from the player on the marking button... When a target marker in the marker selection list is triggered, step 204a is executed: determine if the trigger is a long press. If it is a long press, the player executes step 205a: drag the target marker to any point on the map. During the dragging process, the terminal executes step 206a: determine if the user's finger leaves the screen, i.e., whether a release command for the drag operation has been received. If the terminal receives a release command, step 207a is executed: complete the marking, i.e., mark the target marker at the target location on the map. If the terminal does not receive a release command, the player continues to execute step 205a. Additionally, the player can execute step 204b: click or long press to select a target marker from the marker list. The terminal determines whether the player performed a long press or a click. If it is a long press, step 205a is executed; if it is a click, the player continues to execute step 205b: rename the target marker, i.e., rename it according to... Figure 16 The illustrated operation flow shows the renaming operation of the target marker.
[0191] Applying the embodiments of this application has the following effects:
[0192] 1. Simple to use: Simply drag and drop to mark, no need to click repeatedly.
[0193] 2. It can avoid accidental touches of markers and improve the player experience: It can completely avoid accidental touches caused by clicking on the location that is too close to the teleportation point, thus improving the player's marking experience; at the same time, it can also avoid the unnecessary operation of having to close the marker window that pops up when clicking on the map.
[0194] 3. It can combine the maximum map size with precise marking to reduce player operations: It can perform the most precise marking while displaying the maximum map area, reducing the number of player operations required to move or shrink the map.
[0195] 4. Low learning curve: The drag-and-drop method allows players to quickly get started and learn.
[0196] It is understood that in the embodiments of this application, data such as user information are involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0197] The following description continues to illustrate the exemplary structure of the location marking device 555 in the virtual scene provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2 As shown, the software module in the location marking device 555 stored in the virtual scene of the memory 550 may include:
[0198] Display module 5551 is used to display a map of the virtual scene in the interface of the virtual scene;
[0199] The display module 5551 is further configured to display at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene;
[0200] The control module 5552 is configured to, in response to a drag operation on a target virtual resource icon among the at least one virtual resource icons, control the target virtual resource icon to move in the map as the drag operation is executed.
[0201] The marking module 5553 is used to mark the target virtual resource icon at its current position in the map in response to a release command for the drag operation.
[0202] In some embodiments, the display module is further configured to display a location marker function item in the interface of the virtual scene; and to receive a location marker instruction for virtual resources in the virtual scene in response to a first trigger operation for the location marker function item.
[0203] In some embodiments, the display module is further configured to receive a graphics drawing operation triggered by the interface based on the virtual scene; when the graphics drawn by the graphics drawing operation matches a preset graphics, it receives a location marking instruction for the virtual resources in the virtual scene.
[0204] In some embodiments, the display module is further configured to obtain the icon display length of the virtual resource icon and the name display length of the resource name of the virtual resource indicated by the virtual resource icon; when the sum of the icon display length and the name length does not reach a length threshold, the resource name of the virtual resource indicated by the virtual resource icon is displayed during the display of the virtual resource icon.
[0205] In some embodiments, the display module is further configured to hide the resource name of the corresponding virtual resource during the display of the virtual resource icon when the sum of the icon display length and the name display length reaches a width threshold, and to display the resource name of the virtual resource indicated by the virtual resource icon in the form of a floating layer when the virtual resource icon is selected.
[0206] In some embodiments, the display module is further configured to, in response to a triggering operation on the virtual resource icon, control the resource name of the virtual resource indicated by the virtual resource icon to be in an editable state; and, in response to an editing operation on the resource name in the editable state, display the edited resource name.
[0207] In some embodiments, the control module is further configured to, in response to a drag operation on a target virtual resource icon in the at least one virtual resource icon that is in the floating state, control the target virtual resource icon in the floating state to move in the map along with the execution of the drag operation; correspondingly, the control module is further configured to, in response to a press operation on a target virtual resource icon in the at least one virtual resource icon, acquire operation parameters of the press operation, the operation parameters including at least one of the following: operation duration, pressure magnitude; when the operation duration reaches a duration threshold or the pressure magnitude reaches a pressure threshold, control the target virtual resource icon to be in the floating state.
[0208] In some embodiments, the display module is further configured to display at least one virtual resource icon in a movable state in response to a location marking instruction for a virtual resource in the virtual scene;
[0209] Accordingly, in some embodiments, the control module is further configured to, in response to a drag operation on a target virtual resource icon among the at least one movable virtual resource icons, generate a movable icon copy corresponding to the target virtual resource icon; and control the movable icon copy to move in the map as the drag operation is executed.
[0210] In some embodiments, the display module is further configured to, when there is a disabled virtual resource icon among the at least one virtual resource icon, display a prompt message in response to a triggering operation on the disabled virtual resource icon; wherein the prompt message is configured to indicate that the number of tags for the virtual resource corresponding to the disabled virtual resource icon has reached a threshold.
[0211] In some embodiments, the display module is further configured to acquire the real-time position of the target virtual resource icon while controlling the target virtual resource icon to move in the map along with the execution of the drag operation; and synchronously display a magnified interface including the real-time position.
[0212] In some embodiments, the marking module is further configured to display a target area in the interface of the virtual scene; and synchronously display a magnified interface including the real-time location in the target area.
[0213] In some embodiments, the marking module is further configured to synchronously display an accompanying overlay associated with the target virtual resource icon, and to display a partially magnified interface including the real-time location within the accompanying overlay.
[0214] In some embodiments, the display module is further configured to, in response to a location marking instruction for a virtual resource in the virtual scene, display an icon floating layer in the interface, and display at least one virtual resource icon in the icon floating layer using a target display style; wherein the target display style includes at least one of a list display style and a wheel style.
[0215] In some embodiments, the control module is further configured to, in response to a first triggering operation on a target virtual resource icon among the at least one virtual resource icons, control entry into a multi-point marking mode for the target virtual resource icon;
[0216] Accordingly, in some embodiments, the marking module is further configured to control the target virtual resource icon to be in a cursor following state in the multi-point marking mode; in response to a click operation on a first location in the map, mark the target virtual resource icon at the first location in the map, and after marking the target virtual resource icon at the first location, mark the target virtual resource icon at the second location when a click operation on a second location in the map is received.
[0217] In some embodiments, the control module is further configured to switch the display style of the target virtual resource icon from a first display style to a second display style; correspondingly, the control module is further configured to, in response to a second trigger operation on the target virtual resource icon, control the exit from the multi-point marking mode and switch the display style of the target virtual resource icon from the second display style to the first display style.
[0218] In some embodiments, the control module is further configured to display the drag trajectory corresponding to the drag operation in the virtual scene; when the shape corresponding to the drag trajectory on the map is a closed shape, the area corresponding to the closed shape is used as a multi-point marking area; correspondingly, the marking module is further configured to, in response to the release command for the drag operation, mark the target virtual resource icon at each unmarked markable resource location in the multi-point marking area.
[0219] This application provides a computer program product or computer program that includes 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 location marking method in the virtual scene described above in this application embodiment.
[0220] This application provides a computer-readable storage medium storing executable instructions. When these executable instructions are executed by a processor, they cause the processor to execute a location marking method in a virtual scene provided in this application. For example, ... Figure 3 The method for marking locations in a virtual scene is shown.
[0221] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.
[0222] In some embodiments, executable instructions may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0223] As an example, executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple collaborating files (e.g., a file that stores one or more modules, subroutines, or code sections).
[0224] As an example, executable instructions can be deployed to execute on a single computing device, or on multiple computing devices located in one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network.
[0225] In summary, the embodiments of this application enable quick and accurate marking on a map without altering the map's scale and position in the virtual scene, through a combination of quick drag and zoom, while avoiding accidental touches.
[0226] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A method for location marking in a virtual scene, characterized in that, The method includes: The virtual scene's interface displays a map of the virtual scene; In response to a long press operation on the location marker button for a virtual resource in the virtual scene, at least one virtual resource icon is displayed; In response to the long press operation switching to a swipe operation starting from the location marker button, the swipe moves to the target virtual resource icon among the at least one virtual resource icons. If the target virtual resource icon is in a floating state, in response to the swipe operation switching to a drag operation on the target virtual resource icon among the at least one virtual resource icons, the target virtual resource icon is controlled to move in the map along with the execution of the drag operation. When the target virtual resource icon is in a fixed state, the press operation switches to the floating state. During movement on the map, if the map remains stationary and the scale does not change, a zoomed-in view is displayed synchronously. The zoomed-in view includes the real-time location of the target virtual resource icon and the surrounding environment of the real-time location. In response to a release command for the drag operation, the target virtual resource icon is marked at its current location on the map.
2. The method as described in claim 1, characterized in that, Before displaying at least one virtual resource icon in response to a long press operation on a location marker button for a virtual resource in the virtual scene, the method further includes: The virtual scene interface displays a location marker function. In response to a first trigger operation for the location marking function item, a long press operation is received on the location marking button of the virtual resource in the virtual scene.
3. The method as described in claim 1, characterized in that, Before displaying at least one virtual resource icon in response to a long press operation on a location marker button for a virtual resource in the virtual scene, the process includes: Receive a graphics drawing operation triggered by the interface based on the virtual scene; When the graphic drawn by the graphic drawing operation matches the preset graphic, a long press operation is received on the location marker button for the virtual resource in the virtual scene.
4. The method as described in claim 1, characterized in that, The method further includes: Obtain the display length of the virtual resource icon and the display length of the resource name of the virtual resource indicated by the virtual resource icon; When the sum of the icon display length and the name length does not reach the length threshold, the resource name of the virtual resource indicated by the virtual resource icon is displayed during the display of the virtual resource icon.
5. The method as described in claim 4, characterized in that, The method further includes: When the sum of the icon display length and the name display length reaches a width threshold, the resource name of the corresponding virtual resource is hidden during the display of the virtual resource icon. When the virtual resource icon is selected, the resource name of the virtual resource indicated by the virtual resource icon is displayed in the form of a floating layer.
6. The method as described in claim 4, characterized in that, After displaying the resource name of the virtual resource indicated by the virtual resource icon, the method further includes: In response to a trigger operation on the virtual resource icon, the resource name of the virtual resource indicated by the virtual resource icon is controlled to be in an editable state; In response to an edit operation on a resource name that is in the editable state, the edited resource name is displayed.
7. The method as described in claim 1, characterized in that, The step of switching the swipe operation to a drag operation on the target virtual resource icon among the at least one virtual resource icons, and controlling the target virtual resource icon to move in the map along with the execution of the drag operation, includes: In response to the swiping operation being switched to a drag operation targeting the target virtual resource icon that is in the floating state among the at least one virtual resource icons, the target virtual resource icon in the floating state is controlled to move in the map along with the execution of the drag operation; Before the target virtual resource icon is moved on the map during the execution of the drag operation, the method further includes: In response to a press operation on the target virtual resource icon among the at least one virtual resource icons, the operation parameters of the press operation are obtained, the operation parameters including at least one of the following: operation duration and pressure intensity; When the operation duration reaches a duration threshold or the pressure level reaches a pressure threshold, the target virtual resource icon is controlled to be in the floating state.
8. The method as described in claim 1, characterized in that, The response to a long press on a location marker button for a virtual resource in the virtual scene, displaying at least one virtual resource icon, includes: In response to a long press operation on the location marker button of a virtual resource in the virtual scene, at least one virtual resource icon in a movable state is displayed; The step of switching the swipe operation to a drag operation on the target virtual resource icon among the at least one virtual resource icons, and controlling the target virtual resource icon to move in the map along with the execution of the drag operation, includes: In response to a drag operation on the target virtual resource icon among the at least one movable virtual resource icons, a movable icon copy corresponding to the target virtual resource icon is generated. The icon copy, which is in a movable state, is moved within the map as the drag operation is executed.
9. The method as described in claim 1, characterized in that, The method further includes: When at least one of the virtual resource icons is in a disabled state; In response to a triggered operation on the virtual resource icon that is in a disabled state, a prompt message is displayed; The prompt information is used to indicate that the number of tags for the virtual resources corresponding to the virtual resource icons that are in a disabled state has reached a threshold.
10. The method as described in claim 1, characterized in that, The synchronous display of the magnified portion includes: The target area is displayed in the interface of the virtual scene; The magnified local interface is displayed synchronously in the target area.
11. The method as described in claim 1, characterized in that, The synchronous display of the magnified portion includes: A companion overlay associated with the target virtual resource icon is displayed synchronously, and the zoomed-in interface is displayed within the companion overlay.
12. The method as described in claim 1, characterized in that, The response to a long press on a location marker button for a virtual resource in the virtual scene, displaying at least one virtual resource icon, includes: In response to a long press operation on the location marker button of a virtual resource in the virtual scene, an icon floating layer is displayed in the interface, and at least one virtual resource icon is displayed in the icon floating layer using a target display style; The target display style includes at least one of a list display style and a carousel style.
13. The method as described in claim 1, characterized in that, After displaying at least one virtual resource icon, the method further includes: In response to a first triggering operation for the target virtual resource icon among the at least one virtual resource icons, control is activated to enter a multi-point marking mode for the target virtual resource icon; After marking the target virtual resource icon at its current location on the map, the method further includes: In the multi-point marking mode, the target virtual resource icon is controlled to be in a cursor-following state; In response to a click operation on a first location in the map, the target virtual resource icon is marked at the first location in the map, and After marking the target virtual resource icon at the first location, when a click operation is received for the second location in the map, the target virtual resource icon is marked at the second location.
14. The method as described in claim 13, characterized in that, After the control enters the multi-point marking mode for the target virtual resource icon, the method further includes: Switch the display style of the target virtual resource icon from the first display style to the second display style; After marking the target virtual resource icon at the second location, the method further includes: In response to a second trigger operation targeting the target virtual resource icon, control exit from the multi-point marking mode, and Switch the display style of the target virtual resource icon from the second display style to the first display style.
15. The method as described in claim 1, characterized in that, Before marking the target virtual resource icon, the method further includes: The drag trajectory corresponding to the drag operation is displayed in the virtual scene; When the drag trajectory corresponds to a closed shape on the map, the area corresponding to the closed shape is used as a multi-point marked area; In response to a release command for the drag operation, marking the target virtual resource icon at its current location on the map includes: In response to the release command for the drag operation, the target virtual resource icon is marked at each unmarked markable resource location within the multi-point marking area.
16. A location marking device in a virtual scene, characterized in that, The device includes: The display module is used to display a map of the virtual scene in the interface of the virtual scene; The display module is also configured to display at least one virtual resource icon in response to a long press operation on the location marker button of the virtual resource in the virtual scene; The control module is configured to respond to the long press operation by switching to a swipe operation starting from the location marker button, swiping to a target virtual resource icon among the at least one virtual resource icons; if the target virtual resource icon is in a floating state, respond to the swipe operation by switching to a drag operation on the target virtual resource icon among the at least one virtual resource icons, and control the target virtual resource icon to move in the map along with the execution of the drag operation; wherein, when the target virtual resource icon is in a fixed state, it is switched to the floating state by pressing. The display module is also used to synchronously display a zoomed-in interface while the map is not moved and the scale is not changed during the movement of the map. The zoomed-in interface includes the real-time position of the target virtual resource icon and the surrounding environment of the real-time position. A marking module is used to mark the target virtual resource icon at its current position on the map in response to a release command for the drag operation.
17. The apparatus according to claim 16, characterized in that, The display module is also used to display a location marker function item in the interface of the virtual scene; In response to a first trigger operation for the location marking function item, a long press operation is received on the location marking button of the virtual resource in the virtual scene.
18. The apparatus according to claim 16, characterized in that, The display module is also used to receive a graphics drawing operation triggered by the interface based on the virtual scene; When the graphic drawn by the graphic drawing operation matches the preset graphic, a long press operation is received on the location marker button for the virtual resource in the virtual scene.
19. The apparatus according to claim 16, characterized in that, The display module is also used to obtain the icon display length of the virtual resource icon and the name display length of the resource name of the virtual resource indicated by the virtual resource icon; When the sum of the icon display length and the name length does not reach the length threshold, the resource name of the virtual resource indicated by the virtual resource icon is displayed during the display of the virtual resource icon.
20. The apparatus according to claim 19, characterized in that, The display module is further configured to, when the sum of the icon display length and the name display length reaches a width threshold, hide the resource name of the corresponding virtual resource during the display of the virtual resource icon, and When the virtual resource icon is selected, the resource name of the virtual resource indicated by the virtual resource icon is displayed in the form of a floating layer.
21. The apparatus according to claim 19, characterized in that, The display module is also configured to, in response to a trigger operation on the virtual resource icon, control the resource name of the virtual resource indicated by the virtual resource icon to be in an editable state; In response to an edit operation on a resource name that is in the editable state, the edited resource name is displayed.
22. An electronic device, characterized in that, The electronic device includes: Memory, used to store executable instructions; A processor, when executing executable instructions stored in the memory, implements the location marking method in a virtual scene as described in any one of claims 1 to 15.
23. A computer-readable storage medium storing executable instructions, characterized in that, When the executable instructions are executed by the processor, they implement the location marking method in the virtual scene as described in any one of claims 1 to 15.
24. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by the processor, they implement the location marking method in the virtual scene as described in any one of claims 1 to 15.