CN111888760B - Virtual article display method and device, storage medium and electronic device - Google Patents

Virtual article display method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111888760B
CN111888760B CN202010761811.9A CN202010761811A CN111888760B CN 111888760 B CN111888760 B CN 111888760B CN 202010761811 A CN202010761811 A CN 202010761811A CN 111888760 B CN111888760 B CN 111888760B
Authority
CN
China
Prior art keywords
virtual
article
item
displayed
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010761811.9A
Other languages
Chinese (zh)
Other versions
CN111888760A (en
Inventor
崔维健
仇蒙
田聪
何晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010761811.9A priority Critical patent/CN111888760B/en
Publication of CN111888760A publication Critical patent/CN111888760A/en
Application granted granted Critical
Publication of CN111888760B publication Critical patent/CN111888760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a virtual article display method and device, a storage medium and an electronic device. Wherein, the method comprises the following steps: in the process that the client runs the virtual scene, responding to the information display instruction, and displaying a target item list on a display interface of the client, wherein virtual items in the target item list are in a state to be picked up; and displaying an article icon of the virtual article and an occupation prompt icon corresponding to the virtual article in the target article list, wherein the occupation prompt icon is used for indicating the shape of a space occupied by the virtual article in the article management interface. The invention solves the technical problem of low efficiency of displaying the occupied space of the prop.

Description

Virtual article display method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a virtual article display method and device, a storage medium and an electronic device.
Background
In the prior art, during the process of controlling the object in the virtual scene to act by the user, a prop which can be picked up may be encountered.
In the prior art, when the prop is displayed, the backpack space occupied by the prop when being picked up is generally displayed by numbers.
The display method causes low efficiency of displaying the occupied space of the prop.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a display method and device of a virtual article, a storage medium and an electronic device, and at least solves the technical problem of low efficiency of displaying the occupied space of a prop.
According to an aspect of an embodiment of the present invention, there is provided a method for displaying a virtual article, including: in the process of running a virtual scene at a client, responding to an information display instruction, and displaying a target item list on a display interface of the client, wherein virtual items in the target item list are in a state to be picked up; and displaying an article icon of the virtual article and an occupation prompt icon corresponding to the virtual article in the target article list, wherein the occupation prompt icon is used for indicating the shape of a space occupied by the virtual article in an article management interface.
According to another aspect of the embodiments of the present invention, there is also provided a display device of a virtual article, including: the system comprises a first display unit, a second display unit and a third display unit, wherein the first display unit is used for responding to an information display instruction in the process that a client runs a virtual scene and displaying a target item list on a display interface of the client, and virtual items in the target item list are in a state of waiting to be picked up; and the second display unit is used for displaying the item icon of the virtual item and the occupation prompt icon corresponding to the virtual item in the target item list, wherein the occupation prompt icon is used for indicating the shape of the space occupied by the virtual item in an item management interface.
As an optional example, the apparatus further comprises: a fourth display module, configured to, in response to the information display instruction, display a trigger key when a distance between a virtual character controlled by the client and a candidate virtual item displayed in the virtual scene is smaller than a second threshold before the target item list is displayed on the display interface of the client; a third adding module, configured to add the candidate virtual item to the target item list in response to a trigger operation performed on the trigger key; and the third generation module is used for generating the information display instruction.
As an optional example, the apparatus further comprises: a removing unit, configured to remove the virtual item from the virtual scene when the virtual item in the virtual scene is picked up after the occupancy prompt icon corresponding to the virtual item is displayed in the target item list.
As an optional example, the apparatus further comprises: a determining unit, configured to determine an occupied space configuration table of the virtual article before displaying an occupied prompt icon corresponding to the virtual article in the target article list, where a mapping relationship between the virtual article and a shape of a space occupied by the virtual article is recorded in the occupied space configuration table; and the generating unit is used for generating the occupation prompt icon matched with the shape of the space occupied by the virtual article according to the mapping relation.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the display method of the virtual item provided in the above-mentioned various alternative implementations.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for displaying a virtual article through the computer program.
In the embodiment of the invention, a target item list is displayed on a display interface of a client by responding to an information display instruction in the process of running a virtual scene by the client, wherein virtual items in the target item list are in a state to be picked up; the object icon of the virtual object is displayed in the target object list, the occupation prompt icon corresponding to the virtual object is displayed, wherein the occupation prompt icon is used for indicating the method of the shape of the space occupied by the virtual object in the object management interface.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative virtual article display method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an application environment of an alternative virtual article display method according to an embodiment of the invention;
FIG. 3 is a flow chart illustrating an alternative method of displaying a virtual item in accordance with embodiments of the present invention;
FIG. 4 is an interface display diagram of an alternative virtual article display method according to an embodiment of the present invention;
FIG. 5 is an interface display diagram of an alternative virtual article display method according to an embodiment of the present invention;
FIG. 6 is an interface display diagram illustrating yet another alternative method of displaying a virtual article according to an embodiment of the present invention;
FIG. 7 is an interface display diagram of yet another alternative virtual article display method according to an embodiment of the present invention;
FIG. 8 is a schematic illustration of a display of a target item list for an alternative method of displaying a virtual item in accordance with embodiments of the present invention;
FIG. 9 is a schematic diagram of a target item list display of an alternative virtual item display method in accordance with embodiments of the present invention;
FIG. 10 is a schematic diagram of a target item list display of an alternative virtual item display method in accordance with an embodiment of the present invention;
FIG. 11 is a schematic diagram of a target item list display of an alternative virtual item display method in accordance with an embodiment of the present invention;
FIG. 12 is a schematic diagram of a target item list display of an alternative virtual item display method in accordance with an embodiment of the present invention;
FIG. 13 is a schematic diagram of an occupancy hint icon for an alternative method of displaying a virtual article, in accordance with embodiments of the present invention; FIG. 14 is a schematic illustration of a hidden item management interface of an alternative virtual item display method according to an embodiment of the present invention;
FIG. 15 is a schematic illustration of a display item management interface of an alternative virtual item display method according to an embodiment of the present invention;
FIG. 16 is a flow chart illustrating an alternative method of displaying a virtual item in accordance with embodiments of the present invention;
FIG. 17 is a schematic illustration of a display of a target item list for an alternative method of displaying a virtual item in accordance with an embodiment of the present invention;
FIG. 18 is a schematic diagram of an alternative display device for a virtual article, according to an embodiment of the invention;
fig. 19 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, a method for displaying a virtual article is provided, and optionally, as an optional implementation, the method for displaying a virtual article may be applied to, but is not limited to, an environment as shown in fig. 1.
Human-computer interaction between the user 102 and the user device 104 in fig. 1 is possible. The user equipment 104 comprises a memory 106 for storing interaction data and a processor 108 for processing the interaction data. User device 104 may interact with server 112 via network 110. The server 112 includes a database 114 for storing interaction data and a processing engine 116 for processing the interaction data. The user device 104 may run the virtual scene and obtain the information display instruction, and the user device 104 responds to the information display instruction, displays the target item list on the display interface, and displays the item icon and the occupation prompt icon of the virtual item in the target item list.
Alternatively, the above-mentioned display method of the virtual article may be applied, but not limited, to the environment shown in fig. 2.
Human interaction between the user 202 and the user device 204 in fig. 2 is possible. The user equipment 204 comprises a memory 206 for storing interaction data and a processor 208 for processing the interaction data. The user equipment 204 may run the virtual scene and obtain the information display instruction, and the user equipment 204 responds to the information display instruction, displays the target item list on the display interface, and displays the item icon and the occupation prompt icon of the virtual item in the target item list.
Alternatively, the user device 104 or the user device 204 may be, but is not limited to, a terminal such as a mobile phone, a tablet computer, a notebook computer, a PC, and the like, and the network 110 may include, but is not limited to, a wireless network or a wired network. Wherein, this wireless network includes: WIFI and other networks that enable wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The server 112 may include, but is not limited to, any hardware device capable of performing computations.
Optionally, as an optional implementation manner, as shown in fig. 3, the method for displaying a virtual article includes:
s302, in the process that the client runs the virtual scene, responding to an information display instruction, and displaying a target item list on a display interface of the client, wherein virtual items in the target item list are in a state to be picked up;
s304, displaying an item icon of the virtual item and an occupation prompt icon corresponding to the virtual item in the target item list, wherein the occupation prompt icon is used for indicating the shape of the space occupied by the virtual item in the item management interface.
Optionally, the display method of the virtual article can be applied to games, or virtual training or virtual shopping.
Taking a game as an example, the game may be a Three dimensional (3D) game.
Taking a three-dimensional game as an example, a client can run a virtual scene of the three-dimensional game, and a user controls virtual characters in the virtual scene to play the game through interaction with the client. The virtual object may be a prop used by a game such as ammunition or firearms scattered in a virtual scene, and the virtual object may be a prop object to be picked up and may be picked up in a prop storage space of a virtual character, such as a backpack. Under the condition that the client receives the information display instruction, a target item list can be displayed on the display interface, one or more virtual items are displayed in the target item list, and the virtual items can be picked up to the backpack of the virtual character through interaction with the virtual items in the target item list. The user can determine whether to pick up the virtual article according to the occupation prompt icon displayed by the client, and the occupation prompt icon displayed by the client displays the shape of the space occupied by the virtual article if the virtual article is picked up in the backpack. The backpack may be displayed via an item management interface. The item management interface may display the virtual items in the backpack and the shape of the space occupied by each virtual item, and may also display the occupied space and the remaining space of the backpack.
Taking virtual shopping as an example, when a user moves shopping in a virtual space, a client displays a scene in the virtual space and a virtual character corresponding to the user. The virtual item may be a commodity. And the user buys commodities to the storage space, and after the client receives the information display instruction, the shape of the space occupied by the virtual article is displayed so that the user can conveniently select whether to buyback.
Optionally, the virtual object in the present application may be a specific object among all objects in the virtual scene. For example, a selected item may be selected for the user, and the user may select a virtual item from the candidate virtual items during the process of running the virtual scene using the client, and then the client may display an occupancy prompt icon for the virtual item. The virtual object may be an object that is close to the virtual character, for example, in the virtual scene, an object that is within a range of 5 meters from the virtual character among the candidate virtual objects is used as the virtual object. The candidate virtual items in the present application may be items scattered in the virtual scene and capable of being picked up, and the virtual items may be items determined to be in the target item list in the candidate virtual items as virtual items to be picked up. That is to say, there are candidate virtual articles in the virtual scene, the candidate virtual articles may be added to the target article list as virtual articles if they are to be picked up, and the article icon and the occupation prompt icon are displayed in the target article list on the display interface. The occupation prompt icon in the application can be an image, and the image can display the shape of the space of the article management interface occupied by the virtual article.
There are various ways to select a virtual item from the candidate virtual items.
A user may select a single candidate virtual item via an input device, and the selected candidate virtual item may be the virtual item to be displayed. For example, as shown in fig. 4, the virtual scene includes three candidate virtual objects scattered on the ground, which are an item 402, an item 404, and an item 406, and the user may select one or more of the candidate virtual objects, and if the item 406 is clicked, determine the item 406 as a virtual object to be displayed, determine the virtual object to be displayed in the target object list, generate an information display instruction, display the target object list, and display an object icon and an occupation prompt icon of the item 406 in the target object list.
Or the virtual article to be displayed may be selected by the user through executing a first predetermined operation trigger, for example, if a certain key on the display screen is clicked, all candidate virtual articles within a certain range of the virtual character may be used as the virtual article to be displayed, and the occupation prompt icon of the virtual article is displayed. The first predetermined operation may be a click of a button, a sliding of a screen, a double-click of a screen, or the like. For example, as shown in fig. 5, there are prop 502, prop 504, and prop 506 scattered on the ground in the virtual scene, the distance between props 504 and 506 and the virtual character is less than a first threshold, and the distance between prop 502 and the virtual character is greater than the first threshold. When a first predetermined operation, such as a screen sliding operation, is received, the prop 504 and the prop 506 are determined as virtual articles to be displayed, and an occupation prompt icon of the virtual article is displayed in the target display list.
The virtual object to be displayed can be selected by directly detecting the distance between the virtual character in the virtual scene and the candidate virtual object in the virtual scene, if the distance is smaller than a first threshold value, directly and automatically determining a second object, the distance between which and the virtual character is smaller than the first threshold value, as the virtual object to be displayed, and generating an information display instruction. That is to say, when the virtual character moves in the virtual scene, the distances to all the nearby candidate virtual articles may be measured, if the distance between any at least one candidate virtual article and the virtual character is smaller than the first threshold, the candidate virtual article is determined as the virtual article to be displayed, the article icon and the occupation prompt icon of the virtual article to be displayed are displayed, and if the distance between the article and the virtual character is greater than or equal to the first threshold, the article icon and the occupation prompt icon are not displayed any more. For example, as shown in fig. 6, the distances between the virtual character and the three second objects in the virtual scene are distance 602, distance 604, and distance 606, respectively, and the distances 602 to 606 may change during the movement of the virtual character. When any one of the distance 602 to the distance 606 is smaller than the first threshold, automatically determining the corresponding candidate virtual article as the virtual article to be displayed, generating an information display instruction, and displaying an article icon and an occupation prompt icon of the virtual article to be displayed. The step can ensure that the virtual object to be picked up is automatically and flexibly determined according to the distance between the candidate virtual object and the virtual character in the virtual scene and displayed without the operation of a user in the process of moving the virtual character in the virtual scene.
When the virtual object to be displayed is selected, a button may be further allocated to a plurality of adjacent candidate virtual objects in the virtual scene, for example, in the virtual scene, the plurality of candidate virtual objects are scattered at one place, the distance between the plurality of candidate virtual objects is smaller than a second threshold value, a state of "piled together" or "not far apart" is presented, when the virtual character moves to the vicinity of the plurality of candidate virtual objects, a trigger button may be displayed on the display interface of the client, and when an operation performed on the trigger button is received, an information display instruction may be generated, the plurality of candidate virtual objects are taken as the virtual object to be displayed, and an occupation prompt icon is displayed. The trigger button may be displayed in the center of the display interface, or on the display interface, near the plurality of candidate virtual items, or at the collimation center of the aiming, or on both sides of the display interface. For example, as shown in fig. 7, there are multiple candidate virtual items 702 in the virtual scene in fig. 7, when the virtual character approaches the multiple candidate virtual items 702, one button 704 may be displayed near the multiple candidate virtual items 702 on the display interface, and if the user clicks the button 704 using a hand 706 or other tool, an information display instruction may be generated to display icons of the multiple candidate virtual items 702 and an occupancy prompt icon.
Alternatively, when the item icon and the occupancy icon of the virtual item to be displayed are displayed, it may be determined whether the virtual item to be displayed can be loaded into the storage space of the item management interface. If the virtual goods to be displayed cannot be stored in the remaining space of the storage space, the occupation prompt icon of the virtual goods to be displayed can display a second display state. And if the remaining space of the storage space can be filled with the virtual articles to be displayed, the occupation prompt icon in the first display state can be displayed. The first display state and the second display state in this application may be different colors, or whether there is an additional mark, for example, the first display state may be black, the second display state may be red, or the second display state is a mark showing an exclamation point, which indicates that the virtual item to be displayed in the first state cannot be picked up in the backpack. The first display state is that no additional logo is displayed.
For example, taking the first display state and the second display state as different colors as an example, as shown in fig. 8, when the target list 802 is displayed in fig. 8, three icons of the virtual objects to be displayed and three occupancy prompt icons are displayed in the target list, and the three occupancy prompt icons are the occupancy prompt icon 804, the occupancy prompt icon 806, and the occupancy prompt icon 808. The occupancy prompt icon 804 is in a first display state and indicates that the corresponding virtual item to be displayed can be picked up into the backpack, and the occupancy prompt icon 806 and the occupancy prompt icon 808 are in a second display state and are used for indicating that the corresponding item is too large to be picked up into the backpack.
When receiving an instruction of a user to pick up a virtual article to be displayed, if the storage space can not store the virtual article to be displayed which the user wishes to pick up, a prompt message is displayed to prompt the user that the storage space is full and the virtual article to be displayed can not be picked up any more. For example, as shown in fig. 9, when the user wishes to pick up an item 904, the occupancy alert icon 906 for the item in the target list is in the second display state, indicating that the item cannot be picked up in a backpack and that the backpack cannot be placed, and therefore, an alert message 902 is displayed to alert the user that the backpack is full.
If there are a plurality of virtual articles to be displayed in the process of displaying the occupation prompt icons of the virtual articles to be displayed, the icons of the virtual articles to be displayed and the occupation prompt icons may be arranged and displayed in the displayed target list. In the application, the area in the target list can be divided into a plurality of areas, and each area displays an article icon and an occupation prompt icon of a virtual article to be displayed. When the item icon and the occupancy promotion icon are displayed, the name of the virtual item to be displayed may also be displayed. For example, as shown in fig. 10, three item icons 1004 and three item occupation prompt icons 1006 are displayed in the target list 1002, and three item names 1008 are also displayed.
Optionally, the candidate virtual item in the virtual scene in the application may further include other items, for example, if the candidate virtual item is a treasure box, the treasure box may be picked up, and the treasure box may further include other props and the like. Therefore, the application can also provide a search button for the treasure box when the target list is displayed. As shown in fig. 11, while the name, identifier and occupation prompt icons of the treasure box are displayed in the target list in fig. 11, a button 1102 may be further configured to search for the articles in the treasure box, and when the button 1102 is clicked, the article map icon and the occupation prompt icon of the articles in the treasure box may be displayed in the target list.
Optionally, in this application, when there are a plurality of virtual articles to be displayed, when displaying icons and occupancy prompt icons of the plurality of virtual articles to be displayed, if the target list is not enough to display the article icons and the occupancy prompt icons of all the virtual articles to be displayed, the article icons and the occupancy prompt icons of the plurality of virtual articles to be displayed are displayed using one sliding list, and the sliding list may be slid up or down by receiving a sliding operation performed by a user, so as to display the article icons and the occupancy prompt icons of all the virtual articles to be displayed. For example, as shown in fig. 12, the sliding list 1202 in fig. 12 may slide up and down according to the instruction, so that icons and occupancy prompt icons and names of all virtual objects to be displayed may be displayed.
The occupation prompt icon in the application can be a grid combined graph corresponding to the shape of the space occupied by the virtual article. The number of the squares of the square combined graph in the horizontal direction is used for indicating the number of the squares occupied by the virtual article in the horizontal direction when the virtual article is stored on the article management interface, and the number of the squares of the square combined graph in the vertical direction is used for indicating the number of the squares occupied by the virtual article in the vertical direction when the virtual article is stored on the article management interface. For example, 3 squares in the horizontal direction and 4 squares in the vertical direction, the virtual object occupies 12 squares. Of course, the footprint of the virtual object may be irregular. For example, as shown in FIG. 13, examples of various occupancy alert icons are included in FIG. 13. The example in fig. 13 represents only a partial example, and the present application does not exemplify any more.
When the client displays the target item list and displays the occupation prompt icon in the target item list, the user can select whether to pick up the virtual item to be displayed according to the actual situation. The client receives the pick-up instruction and then picks up the virtual item to be displayed into the storage space of the virtual character of the client, such as a backpack. The picked up virtual item to be displayed is no longer displayed in the virtual scene but is located in the virtual character's backpack. The virtual item may be viewed through an item management interface.
The client can display the article management interface on the display interface by receiving the opening instruction and the closing instruction. For example, as shown in fig. 14 and 15, fig. 14 is a schematic view of a hidden item management interface, which may be displayed through a button 1402. FIG. 15 is a schematic diagram showing an item management interface. In fig. 15, some of the cells are already occupied and the remaining cells are vacant and available for storing props.
In the application, the logic of judging whether the remaining space of the storage space can accommodate the virtual article to be displayed is that, in the storage space, the space which is the same as the size and the volume of the occupied space of the virtual article to be displayed is determined as the current space, whether other articles exist in the current space is judged, if so, the virtual article to be displayed cannot be stored in the current space, the current space is moved, the judging step is executed again, the virtual article to be displayed can be stored in the current space until the current space in the storage space is determined, or after the storage space is traversed, no space can be used for storing the virtual article to be displayed. And determining that one current space exists in the storage space and can store the virtual article to be displayed, and indicating that the storage space meets the storage condition of the virtual article to be displayed. If the storage space has no space for storing the virtual articles to be displayed, the storage space does not meet the storage condition of the virtual articles to be displayed.
In the application, an article and occupied space configuration table can be configured, and the shape of the storage space occupied by each article is recorded in the table. When the occupation prompt icon is displayed, the shape of the space occupied by the virtual object can be obtained by inquiring the mapping relation between the virtual object and the shape in the occupied hole house in the table, so that the occupation prompt icon is determined, and the occupation prompt icon is displayed.
The following description is made with reference to fig. 16 with reference to a specific example. For example, in the game process, a user controls a virtual character in a virtual scene of a client to play a game, the virtual scene includes a plurality of properties scattered everywhere, the virtual character carries a backpack (storage space), and the user can control the virtual character to pick up certain articles into the backpack.
First, in S1602, the client receives an information display instruction, for example, a user clicks a virtual button on a display interface of the client to trigger the information display instruction. And S1604, activating a pickup list by the client, wherein all the pickable props in a certain range of the virtual character are displayed in the list. And S1606, the client reads the item and occupied space configuration table, determines the shape of the occupied space of each prop, and obtains an occupied prompt icon which is displayed by combining and arranging a plurality of small cubes. Each small cube is 6 pixels long.
S1608, determining whether each prop can be installed by the backpack, if the remaining space of the backpack cannot install the next prop, S1610, displaying an occupation prompt icon of the prop in red, and if the remaining space of the backpack can install the next prop, S1612, displaying an occupation prompt icon of the prop in black. After the occupation prompt icons of the props and the props are displayed, a pickup instruction can be received, and one or more props are picked up into the backpack. The user can open the backpack or close the backpack by clicking a virtual button on the display interface.
Through the embodiment, by the method, when the virtual article in the virtual scene is displayed, the shape of the space occupied by the virtual article is displayed by the occupation prompt icon, so that the occupied space of the virtual article can be visually checked, and the display efficiency of the occupation prompt icon for displaying the virtual article is improved.
As an alternative embodiment, displaying the occupancy hint icon corresponding to the virtual item in the target item list includes:
displaying an occupation prompt icon in a first display state under the condition that the remaining storage space of the article management interface indicates that the storage condition of the virtual article is reached, wherein the first display state is used for indicating that the virtual article is allowed to be stored in the article management interface;
and under the condition that the indication of the residual storage space does not reach the storage condition of the virtual article, displaying an occupation prompt icon in a second display state, wherein the second display state is used for indicating that the virtual article is not allowed to be stored in the article management interface.
Optionally, the item management interface in the present application is an interface for managing virtual items. The virtual item may be transferred from the virtual scene into the storage space of the virtual character. The virtual item transferred into the storage space of the virtual character cannot be picked up by other virtual characters unless the user throws the virtual item from the storage space into the virtual scene. The article management interface may display a virtual article having a storage space, and may display an icon showing the virtual article. The article management interface also displays the shape and size of the storage space occupied by each virtual article, and the shape and size of the remaining storage space.
The description is made in conjunction with the above game scenario. In the process of the game, when the object icons and the occupation prompt icons of a plurality of virtual objects to be picked up in the virtual scene are displayed in the target object list, if the virtual object knapsack in the virtual scene can not load the virtual objects, the occupation prompt icon of the virtual objects is displayed in red, and if the virtual object knapsack can load the virtual objects to be picked up, the occupation prompt icon of the virtual objects can be displayed in black.
Or when the object icons and the occupation prompt icons of a plurality of virtual objects to be picked up in the virtual scene are displayed in the target object list, if the virtual object knapsack in the virtual scene can not load the virtual object, displaying an additional icon for prompting, and if the virtual object knapsack can load the virtual object to be picked up, not displaying the additional icon.
For example, as shown in fig. 17, when the target item list 1702 is displayed in fig. 17, if a virtual item cannot be loaded by a backpack of a virtual character, when an item icon and an occupation prompt icon are displayed in the target item list 1702, an identifier 1704, which may be an exclamation mark or the like, is additionally displayed, so as to prompt that the current virtual item cannot be stored in the storage space.
That is, in the present application, when the storage space can store the virtual item to be picked up and cannot store the virtual item to be picked up, the display states of the occupancy indication icons of the virtual item to be picked up are different. By the method, whether the virtual goods to be picked up can be loaded in the residual space of the backpack or not can be visually observed. Therefore, with the present embodiment, the display efficiency of the occupied space of the virtual item to be picked up can be improved.
As an alternative embodiment, displaying the occupancy hint icon corresponding to the virtual item in the target item list includes:
and displaying a square grid combined graph corresponding to the shape of the space occupied by the virtual article in the occupation prompt icon, wherein the number of square grids of the square grid combined graph in the horizontal direction is used for indicating the number of square grids occupied by the virtual article in the horizontal direction when the virtual article is stored in the article management interface, and the number of square grids of the square grid combined graph in the vertical direction is used for indicating the number of square grids occupied by the virtual article in the vertical direction when the virtual article is stored in the article management interface.
The description is made in conjunction with the above game scenario. In the game process, when the target item list is displayed, an item icon and an occupancy prompt icon of a virtual item to be picked up are displayed in the target item list, and a figure in which the occupancy prompt icon is a combination of a plurality of squares may be displayed. Each of the plurality of squares may be a square having the same size as one storage unit in the storage space, or each of the plurality of squares may be a square having a size larger than the size of one storage unit in the storage space.
Through the combination of the square shapes, the size and the shape of the occupied space of each virtual article to be picked up can be visually represented, and the efficiency of displaying the occupied space of the virtual article to be picked up is improved.
As an optional embodiment, before displaying the target item list on the display interface of the client in response to the information display instruction, the method further includes:
in response to a selection operation performed on a candidate virtual item displayed in the virtual scene, adding the candidate virtual item to a target item list;
and generating an information display instruction.
The description is made in conjunction with the above game scenario. In the game process, in the process of displaying the virtual scene on the display interface, the selection operation of the user on the candidate virtual article in the virtual scene can be directly received, then, an information display instruction is generated, and the selected candidate virtual article is determined as the virtual article to be picked up needing to display the article icon and the occupation prompt icon. When a user plays a game, a candidate virtual article on a display interface is directly clicked, the client displays a target article list on the display interface, and an article icon and an occupation prompt icon of the candidate virtual article selected by the user are displayed.
That is, in the present application, a certain item may be selected, and the occupancy indication icon of the certain item may be displayed. Through this embodiment, can improve the flexibility that shows the occupation space of article.
As an optional embodiment, before displaying the target item list on the display interface of the client in response to the information display instruction, the method further includes:
under the condition that the distance between the virtual character controlled by the client and the candidate virtual article displayed in the virtual scene is smaller than a first threshold value, adding the candidate virtual article into a target article list;
and generating an information display instruction.
The description is made in conjunction with the above game scenario. During the game, during the process of displaying the virtual scene on the display interface, the distances between the items near the virtual character in the virtual scene or all the items in the virtual scene and the virtual character can be determined. And if the distance is smaller than the first threshold value, automatically generating an information display instruction, and displaying an article icon and an occupation prompt icon of the article with the distance from the virtual character smaller than the first threshold value. Or, displaying an exploration button on the display interface, and if a click operation on the exploration button is received, taking all the items with the distance to the virtual character within the first threshold value as virtual items to be displayed, and displaying the target list.
That is, in the present application, the occupancy indication icons of all the pickable items within a certain range of the virtual character may be displayed. Through this embodiment, can improve the flexibility that shows the occupation space of article.
As an optional embodiment, before displaying the target item list on the display interface of the client in response to the information display instruction, the method further includes:
under the condition that the distance between the virtual character controlled by the client and the candidate virtual article displayed in the virtual scene is smaller than a second threshold value, displaying a trigger key;
in response to a trigger operation performed on the trigger key, adding the candidate virtual item to the target item list;
and generating an information display instruction.
The description is made in conjunction with the above game scenario. During the game, in the process of displaying the virtual scene on the display interface, when the virtual character approaches one or more items in the virtual scene, a pick-up button can be displayed, the pick-up button can be displayed near the one or more items, and the pick-up button can not be displayed initially and can be displayed after the virtual character approaches. If the user clicks the pick button, one or more items corresponding to the pick button may be displayed as virtual items to be displayed, and the target item list may be displayed.
That is, in the present application, after the virtual character approaches the candidate virtual object, the virtual button may be displayed on the display interface, and after the virtual button is pressed, the occupancy indication icon of the candidate virtual object may be displayed. Through this embodiment, can improve the flexibility that shows the occupation space of article.
As an optional implementation, after displaying the occupancy hint icon corresponding to the virtual item in the target item list, the method further comprises:
in the event that a virtual item in the virtual scene is picked up, the virtual item is removed from the virtual scene.
Optionally, the removal in the present application does not destroy the virtual item completely in the virtual scene, but transfers the virtual item from the virtual scene to the storage space of the virtual character. The storage space of the virtual character can store virtual articles, and the virtual articles transferred to the virtual space cannot be picked up by other virtual characters. The virtual character can use the virtual article in the storage space, or throw the virtual article in the storage space into the virtual scene again, and the virtual article thrown into the virtual scene can be picked up by other virtual characters.
By the embodiment, the virtual article can be transferred to the storage space of the virtual character or transferred from the storage space to the virtual scene again, and flexibility of picking up the virtual article is realized.
As an optional implementation, before displaying the occupancy hint icon corresponding to the virtual item in the target item list, the method further comprises:
determining an occupied space configuration table of the virtual article, wherein the occupied space configuration table records the mapping relation of the virtual article and the shape of the space occupied by the virtual article;
and generating an occupation prompt icon matched with the shape of the space occupied by the virtual article according to the mapping relation.
The object and occupied space configuration table in the application can be a configuration table set in the development process, and parameters such as the shape, the size and the like of the occupied space of each virtual object are contained in the table. Through the parameters, the occupation prompt icon can be generated.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the present invention, there is also provided a display apparatus of a virtual article for implementing the display method of a virtual article described above. As shown in fig. 18, the apparatus includes:
a first display unit 1802, configured to, in a process that a client runs a virtual scene, respond to an information display instruction, and display a target item list on a display interface of the client, where a virtual item in the target item list is in a state to be picked up;
a second display unit 1804, configured to display, in the target item list, an item icon of the virtual item and an occupation prompt icon corresponding to the virtual item, where the occupation prompt icon is used to indicate a shape of a space occupied by the virtual item in the item management interface.
Optionally, the display device of the virtual article can be applied to games, or virtual training or virtual shopping.
Taking a game as an example, the game may be a Three dimensional (3D) game.
Taking a three-dimensional game as an example, a client can run a virtual scene of the three-dimensional game, and a user controls virtual characters in the virtual scene to play the game through interaction with the client. The virtual object may be a prop used by a game such as ammunition or firearms scattered in a virtual scene, and the virtual object may be a prop object to be picked up and may be picked up in a prop storage space of a virtual character, such as a backpack. Under the condition that the client receives the information display instruction, a target item list can be displayed on the display interface, one or more virtual items are displayed in the target item list, and the virtual items can be picked up to the backpack of the virtual character through interaction with the virtual items in the target item list. The user can determine whether to pick up the virtual article according to the occupation prompt icon displayed by the client, and the occupation prompt icon displayed by the client displays the shape of the space occupied by the virtual article if the virtual article is picked up in the backpack. The backpack may be displayed via an item management interface. The item management interface may display the virtual items in the backpack and the shape of the space occupied by each virtual item, and may also display the occupied space and the remaining space of the backpack.
Taking virtual shopping as an example, when a user moves shopping in a virtual space, a client displays a scene in the virtual space and a virtual character corresponding to the user. The virtual item may be a commodity. And the user buys commodities to the storage space, and after the client receives the information display instruction, the shape of the space occupied by the virtual article is displayed so that the user can conveniently select whether to buyback.
Optionally, the virtual object in the present application may be a specific object among all objects in the virtual scene. For example, a selected item may be selected for the user, and the user may select a virtual item from the candidate virtual items during the process of running the virtual scene using the client, and then the client may display an occupancy prompt icon for the virtual item. The virtual object may be an object that is close to the virtual character, for example, in the virtual scene, an object that is within a range of 5 meters from the virtual character among the candidate virtual objects is used as the virtual object. The candidate virtual items in the present application may be items scattered in the virtual scene and capable of being picked up, and the virtual items may be items determined to be in the target item list in the candidate virtual items as virtual items to be picked up. That is to say, there are candidate virtual articles in the virtual scene, the candidate virtual articles may be added to the target article list as virtual articles if they are to be picked up, and the article icon and the occupation prompt icon are displayed in the target article list on the display interface. The occupation prompt icon in the application can be an image, and the image can display the shape of the space of the article management interface occupied by the virtual article.
There are various ways to select a virtual item from the candidate virtual items.
A user may select a single candidate virtual item via an input device, and the selected candidate virtual item may be the virtual item to be displayed. For example, as shown in fig. 4, the virtual scene includes three candidate virtual objects scattered on the ground, which are an item 402, an item 404, and an item 406, and the user may select one or more of the candidate virtual objects, and if the item 406 is clicked, determine the item 406 as a virtual object to be displayed, determine the virtual object to be displayed in the target object list, generate an information display instruction, display the target object list, and display an object icon and an occupation prompt icon of the item 406 in the target object list.
Or the virtual article to be displayed may be selected by the user through executing a first predetermined operation trigger, for example, if a certain key on the display screen is clicked, all candidate virtual articles within a certain range of the virtual character may be used as the virtual article to be displayed, and the occupation prompt icon of the virtual article is displayed. The first predetermined operation may be a click of a button, a sliding of a screen, a double-click of a screen, or the like. For example, as shown in fig. 5, there are prop 502, prop 504, and prop 506 scattered on the ground in the virtual scene, the distance between props 504 and 506 and the virtual character is less than a first threshold, and the distance between prop 502 and the virtual character is greater than the first threshold. When a first predetermined operation, such as a screen sliding operation, is received, the prop 504 and the prop 506 are determined as virtual articles to be displayed, and an occupation prompt icon of the virtual article is displayed in the target display list.
The virtual object to be displayed can be selected by directly detecting the distance between the virtual character in the virtual scene and the candidate virtual object in the virtual scene, if the distance is smaller than a first threshold value, directly and automatically determining a second object, the distance between which and the virtual character is smaller than the first threshold value, as the virtual object to be displayed, and generating an information display instruction. That is to say, when the virtual character moves in the virtual scene, the distances to all the nearby candidate virtual articles may be measured, if the distance between any at least one candidate virtual article and the virtual character is smaller than the first threshold, the candidate virtual article is determined as the virtual article to be displayed, the article icon and the occupation prompt icon of the virtual article to be displayed are displayed, and if the distance between the article and the virtual character is greater than or equal to the first threshold, the article icon and the occupation prompt icon are not displayed any more. For example, as shown in fig. 6, the distances between the virtual character and the three second objects in the virtual scene are distance 602, distance 604, and distance 606, respectively, and the distances 602 to 606 may change during the movement of the virtual character. When any one of the distance 602 to the distance 606 is smaller than the first threshold, automatically determining the corresponding candidate virtual article as the virtual article to be displayed, generating an information display instruction, and displaying an article icon and an occupation prompt icon of the virtual article to be displayed. The step can ensure that the virtual object to be picked up is automatically and flexibly determined according to the distance between the candidate virtual object and the virtual character in the virtual scene and displayed without the operation of a user in the process of moving the virtual character in the virtual scene.
When the virtual object to be displayed is selected, a button may be further allocated to a plurality of adjacent candidate virtual objects in the virtual scene, for example, in the virtual scene, the plurality of candidate virtual objects are scattered at one place, the distance between the plurality of candidate virtual objects is smaller than a second threshold value, a state of "piled together" or "not far apart" is presented, when the virtual character moves to the vicinity of the plurality of candidate virtual objects, a trigger button may be displayed on the display interface of the client, and when an operation performed on the trigger button is received, an information display instruction may be generated, the plurality of candidate virtual objects are taken as the virtual object to be displayed, and an occupation prompt icon is displayed. The trigger button may be displayed in the center of the display interface, or on the display interface, near the plurality of candidate virtual items, or at the collimation center of the aiming, or on both sides of the display interface. For example, as shown in fig. 7, there are multiple candidate virtual items 702 in the virtual scene in fig. 7, when the virtual character approaches the multiple candidate virtual items 702, one button 704 may be displayed near the multiple candidate virtual items 702 on the display interface, and if the user clicks the button 704 using a hand 706 or other tool, an information display instruction may be generated to display icons of the multiple candidate virtual items 702 and an occupancy prompt icon.
Alternatively, when the item icon and the occupancy icon of the virtual item to be displayed are displayed, it may be determined whether the virtual item to be displayed can be loaded into the storage space of the item management interface. If the virtual goods to be displayed cannot be stored in the remaining space of the storage space, the occupation prompt icon of the virtual goods to be displayed can display a second display state. And if the remaining space of the storage space can be filled with the virtual articles to be displayed, the occupation prompt icon in the first display state can be displayed. The first display state and the second display state in this application may be different colors, or whether there is an additional mark, for example, the first display state may be black, the second display state may be red, or the second display state is a mark showing an exclamation point, which indicates that the virtual item to be displayed in the first state cannot be picked up in the backpack. The first display state is that no additional logo is displayed.
For example, taking the first display state and the second display state as different colors as an example, as shown in fig. 8, when the target list 802 is displayed in fig. 8, three icons of the virtual objects to be displayed and three occupancy prompt icons are displayed in the target list, and the three occupancy prompt icons are the occupancy prompt icon 804, the occupancy prompt icon 806, and the occupancy prompt icon 808. The occupancy prompt icon 804 is in a first display state and indicates that the corresponding virtual item to be displayed can be picked up into the backpack, and the occupancy prompt icon 806 and the occupancy prompt icon 808 are in a second display state and are used for indicating that the corresponding item is too large to be picked up into the backpack.
When receiving an instruction of a user to pick up a virtual article to be displayed, if the storage space can not store the virtual article to be displayed which the user wishes to pick up, a prompt message is displayed to prompt the user that the storage space is full and the virtual article to be displayed can not be picked up any more. For example, as shown in fig. 9, when the user wishes to pick up an item 904, the occupancy alert icon 906 for the item in the target list is in the second display state, indicating that the item cannot be picked up in a backpack and that the backpack cannot be placed, and therefore, an alert message 902 is displayed to alert the user that the backpack is full.
If there are a plurality of virtual articles to be displayed in the process of displaying the occupation prompt icons of the virtual articles to be displayed, the icons of the virtual articles to be displayed and the occupation prompt icons may be arranged and displayed in the displayed target list. In the application, the area in the target list can be divided into a plurality of areas, and each area displays an article icon and an occupation prompt icon of a virtual article to be displayed. When the item icon and the occupancy promotion icon are displayed, the name of the virtual item to be displayed may also be displayed. For example, as shown in fig. 10, three item icons 1004 and three item occupation prompt icons 1006 are displayed in the target list 1002, and three item names 1008 are also displayed.
Optionally, the candidate virtual item in the virtual scene in the application may further include other items, for example, if the candidate virtual item is a treasure box, the treasure box may be picked up, and the treasure box may further include other props and the like. Therefore, the application can also provide a search button for the treasure box when the target list is displayed. As shown in fig. 11, while the name, identifier and occupation prompt icons of the treasure box are displayed in the target list in fig. 11, a button 1102 may be further configured to search for the articles in the treasure box, and when the button 1102 is clicked, the article map icon and the occupation prompt icon of the articles in the treasure box may be displayed in the target list.
Optionally, in this application, when there are a plurality of virtual articles to be displayed, when displaying icons and occupancy prompt icons of the plurality of virtual articles to be displayed, if the target list is not enough to display the article icons and the occupancy prompt icons of all the virtual articles to be displayed, the article icons and the occupancy prompt icons of the plurality of virtual articles to be displayed are displayed using one sliding list, and the sliding list may be slid up or down by receiving a sliding operation performed by a user, so as to display the article icons and the occupancy prompt icons of all the virtual articles to be displayed. For example, as shown in fig. 12, the sliding list 1202 in fig. 12 may slide up and down according to the instruction, so that icons and occupancy prompt icons and names of all virtual objects to be displayed may be displayed.
The occupation prompt icon in the application can be a grid combined graph corresponding to the shape of the space occupied by the virtual article. The number of the squares of the square combined graph in the horizontal direction is used for indicating the number of the squares occupied by the virtual article in the horizontal direction when the virtual article is stored on the article management interface, and the number of the squares of the square combined graph in the vertical direction is used for indicating the number of the squares occupied by the virtual article in the vertical direction when the virtual article is stored on the article management interface. For example, 3 squares in the horizontal direction and 4 squares in the vertical direction, the virtual object occupies 12 squares. Of course, the footprint of the virtual object may be irregular. For example, as shown in FIG. 13, examples of various occupancy alert icons are included in FIG. 13. The example in fig. 13 represents only a partial example, and the present application does not exemplify any more.
When the client displays the target item list and displays the occupation prompt icon in the target item list, the user can select whether to pick up the virtual item to be displayed according to the actual situation. The client receives the pick-up instruction and then picks up the virtual item to be displayed into the storage space of the virtual character of the client, such as a backpack. The picked up virtual item to be displayed is no longer displayed in the virtual scene but is located in the virtual character's backpack. The virtual item may be viewed through an item management interface.
The client can display the article management interface on the display interface by receiving the opening instruction and the closing instruction. For example, as shown in fig. 14 and 15, fig. 14 is a schematic view of a hidden item management interface, which may be displayed through a button 1402. FIG. 15 is a schematic diagram showing an item management interface. In fig. 15, some of the cells are already occupied and the remaining cells are vacant and available for storing props.
In the application, the logic of judging whether the remaining space of the storage space can accommodate the virtual article to be displayed is that, in the storage space, the space which is the same as the size and the volume of the occupied space of the virtual article to be displayed is determined as the current space, whether other articles exist in the current space is judged, if so, the virtual article to be displayed cannot be stored in the current space, the current space is moved, the judging step is executed again, the virtual article to be displayed can be stored in the current space until the current space in the storage space is determined, or after the storage space is traversed, no space can be used for storing the virtual article to be displayed. And determining that one current space exists in the storage space and can store the virtual article to be displayed, and indicating that the storage space meets the storage condition of the virtual article to be displayed. If the storage space has no space for storing the virtual articles to be displayed, the storage space does not meet the storage condition of the virtual articles to be displayed.
In the application, an article and occupied space configuration table can be configured, and the shape of the storage space occupied by each article is recorded in the table. When the occupation prompt icon is displayed, the shape of the space occupied by the virtual object can be obtained by inquiring the mapping relation between the virtual object and the shape in the occupied hole house in the table, so that the occupation prompt icon is determined, and the occupation prompt icon is displayed.
Through the embodiment, by the method, when the virtual article in the virtual scene is displayed, the shape of the space occupied by the virtual article is displayed by the occupation prompt icon, so that the occupied space of the virtual article can be visually checked, and the display efficiency of the occupation prompt icon for displaying the virtual article is improved.
As an alternative example, the second display unit includes:
the virtual article storage system comprises a first display module, a second display module and a display module, wherein the first display module is used for displaying an occupation prompt icon in a first display state under the condition that the remaining storage space of the article management interface indicates that the storage condition of a virtual article is met, and the first display state is used for indicating that the virtual article is allowed to be stored in the article management interface;
and the second display module is used for displaying an occupation prompt icon in a second display state under the condition that the indication of the residual storage space does not reach the storage condition of the virtual article, wherein the second display state is used for indicating that the virtual article is not allowed to be stored in the article management interface.
Optionally, the item management interface in the present application is an interface for managing virtual items. The virtual item may be transferred from the virtual scene into the storage space of the virtual character. The virtual item transferred into the storage space of the virtual character cannot be picked up by other virtual characters unless the user throws the virtual item from the storage space into the virtual scene. The article management interface may display a virtual article having a storage space, and may display an icon showing the virtual article. The article management interface also displays the shape and size of the storage space occupied by each virtual article, and the shape and size of the remaining storage space.
The description is made in conjunction with the above game scenario. In the process of the game, when the object icons and the occupation prompt icons of a plurality of virtual objects to be picked up in the virtual scene are displayed in the target object list, if the virtual object knapsack in the virtual scene can not load the virtual objects, the occupation prompt icon of the virtual objects is displayed in red, and if the virtual object knapsack can load the virtual objects to be picked up, the occupation prompt icon of the virtual objects can be displayed in black.
Or when the object icons and the occupation prompt icons of a plurality of virtual objects to be picked up in the virtual scene are displayed in the target object list, if the virtual object knapsack in the virtual scene can not load the virtual object, displaying an additional icon for prompting, and if the virtual object knapsack can load the virtual object to be picked up, not displaying the additional icon.
For example, as shown in fig. 17, when the target item list 1702 is displayed in fig. 17, if a virtual item cannot be loaded by a backpack of a virtual character, when an item icon and an occupation prompt icon are displayed in the target item list 1702, an identifier 1704, which may be an exclamation mark or the like, is additionally displayed, so as to prompt that the current virtual item cannot be stored in the storage space.
That is, in the present application, when the storage space can store the virtual item to be picked up and cannot store the virtual item to be picked up, the display states of the occupancy indication icons of the virtual item to be picked up are different. By the method, whether the virtual goods to be picked up can be loaded in the residual space of the backpack or not can be visually observed. Therefore, with the present embodiment, the display efficiency of the occupied space of the virtual item to be picked up can be improved.
As an alternative example, the second display unit includes:
and the third display module is used for displaying a square combined graph corresponding to the shape of the space occupied by the virtual article in the occupation prompt icon, wherein the number of squares of the square combined graph in the horizontal direction is used for indicating the number of squares occupied by the virtual article in the horizontal direction when the article management interface is stored, and the number of squares of the square combined graph in the vertical direction is used for indicating the number of squares occupied by the virtual article in the vertical direction when the article management interface is stored.
The description is made in conjunction with the above game scenario. In the game process, when the target item list is displayed, an item icon and an occupancy prompt icon of a virtual item to be picked up are displayed in the target item list, and a figure in which the occupancy prompt icon is a combination of a plurality of squares may be displayed. Each of the plurality of squares may be a square having the same size as one storage unit in the storage space, or each of the plurality of squares may be a square having a size larger than the size of one storage unit in the storage space.
Through the combination of the square shapes, the size and the shape of the occupied space of each virtual article to be picked up can be visually represented, and the efficiency of displaying the occupied space of the virtual article to be picked up is improved.
As an optional example, the apparatus further includes:
the first adding module is used for responding to the information display instruction and adding the candidate virtual article into the target article list in response to the selection operation executed on the candidate virtual article displayed in the virtual scene before the target article list is displayed on the display interface of the client;
the first generation module is used for generating an information display instruction.
The description is made in conjunction with the above game scenario. In the game process, in the process of displaying the virtual scene on the display interface, the selection operation of the user on the candidate virtual article in the virtual scene can be directly received, then, an information display instruction is generated, and the selected candidate virtual article is determined as the virtual article to be picked up needing to display the article icon and the occupation prompt icon. When a user plays a game, a candidate virtual article on a display interface is directly clicked, the client displays a target article list on the display interface, and an article icon and an occupation prompt icon of the candidate virtual article selected by the user are displayed.
That is, in the present application, a certain item may be selected, and the occupancy indication icon of the certain item may be displayed. Through this embodiment, can improve the flexibility that shows the occupation space of article.
As an optional example, the apparatus further includes:
the second adding module is used for adding the candidate virtual article into the target article list under the condition that the distance between the virtual character controlled by the client and the candidate virtual article displayed in the virtual scene is smaller than a first threshold value before the target article list is displayed on a display interface of the client in response to the information display instruction;
and the second generation module is used for generating an information display instruction.
The description is made in conjunction with the above game scenario. During the game, during the process of displaying the virtual scene on the display interface, the distances between the items near the virtual character in the virtual scene or all the items in the virtual scene and the virtual character can be determined. And if the distance is smaller than the first threshold value, automatically generating an information display instruction, and displaying an article icon and an occupation prompt icon of the article with the distance from the virtual character smaller than the first threshold value. Or, displaying an exploration button on the display interface, and if a click operation on the exploration button is received, taking all the items with the distance to the virtual character within the first threshold value as virtual items to be displayed, and displaying the target list.
That is, in the present application, the occupancy indication icons of all the pickable items within a certain range of the virtual character may be displayed. Through this embodiment, can improve the flexibility that shows the occupation space of article.
As an optional example, the apparatus further includes:
the fourth display module is used for displaying a trigger key under the condition that the distance between the virtual character controlled by the client and the candidate virtual article displayed in the virtual scene is smaller than a second threshold before the target article list is displayed on the display interface of the client in response to the information display instruction;
the third adding module is used for responding to the triggering operation executed on the triggering key and adding the candidate virtual article into the target article list;
and the third generation module is used for generating an information display instruction.
The description is made in conjunction with the above game scenario. During the game, in the process of displaying the virtual scene on the display interface, when the virtual character approaches one or more items in the virtual scene, a pick-up button can be displayed, the pick-up button can be displayed near the one or more items, and the pick-up button can not be displayed initially and can be displayed after the virtual character approaches. If the user clicks the pick button, one or more items corresponding to the pick button may be displayed as virtual items to be displayed, and the target item list may be displayed.
That is, in the present application, after the virtual character approaches the candidate virtual object, the virtual button may be displayed on the display interface, and after the virtual button is pressed, the occupancy indication icon of the candidate virtual object may be displayed. Through this embodiment, can improve the flexibility that shows the occupation space of article.
As an optional example, the apparatus further includes:
and a removing unit, configured to remove the virtual item from the virtual scene when the virtual item in the virtual scene is picked up after the occupancy prompt icon corresponding to the virtual item is displayed in the target item list.
Optionally, the removal in the present application does not destroy the virtual item completely in the virtual scene, but transfers the virtual item from the virtual scene to the storage space of the virtual character. The storage space of the virtual character can store virtual articles, and the virtual articles transferred to the virtual space cannot be picked up by other virtual characters. The virtual character can use the virtual article in the storage space, or throw the virtual article in the storage space into the virtual scene again, and the virtual article thrown into the virtual scene can be picked up by other virtual characters.
By the embodiment, the virtual article can be transferred to the storage space of the virtual character or transferred from the storage space to the virtual scene again, and flexibility of picking up the virtual article is realized.
As an optional example, the apparatus further includes:
the device comprises a determining unit, a judging unit and a display unit, wherein the determining unit is used for determining an occupied space configuration table of a virtual article before an occupied prompt icon corresponding to the virtual article is displayed in a target article list, and the occupied space configuration table records the mapping relation of the virtual article and the shape of the space occupied by the virtual article;
and the generating unit is used for generating an occupation prompt icon matched with the shape of the space occupied by the virtual article according to the mapping relation.
The object and occupied space configuration table in the application can be a configuration table set in the development process, and parameters such as the shape, the size and the like of the occupied space of each virtual object are contained in the table. Through the parameters, the occupation prompt icon can be generated.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the display method of the virtual object, as shown in fig. 19, the electronic device includes a memory 1902 and a processor 1904, the memory 1902 stores therein a computer program, and the processor 1904 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
in the process that the client runs the virtual scene, responding to the information display instruction, and displaying a target item list on a display interface of the client, wherein virtual items in the target item list are in a state to be picked up;
and displaying an article icon of the virtual article and an occupation prompt icon corresponding to the virtual article in the target article list, wherein the occupation prompt icon is used for indicating the shape of a space occupied by the virtual article in the article management interface.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 19 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 19 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 19, or have a different configuration than shown in FIG. 19.
The memory 1902 may be used to store software programs and modules, such as program instructions/modules corresponding to the display method and apparatus for a virtual article in the embodiments of the present invention, and the processor 1904 executes various functional applications and data processing by running the software programs and modules stored in the memory 1902, that is, implements the above-mentioned display method for a virtual article. The memory 1902 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1902 may further include memory located remotely from the processor 1904, which may be connected to a terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1902 may be used for storing information such as article information and occupancy prompt icon of a virtual article, but is not limited thereto. As an example, as shown in fig. 19, the memory 1902 may include, but is not limited to, a first display unit 1802 and a second display unit 1804 in the display device including the virtual object. In addition, the display device may further include, but is not limited to, other module units in the display device of the virtual object, which is not described in detail in this example.
Optionally, the transmitting device 1906 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1906 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 1906 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1908 configured to display the occupancy prompt icon; and a connection bus 1910 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the steps in any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
in the process that the client runs the virtual scene, responding to the information display instruction, and displaying a target item list on a display interface of the client, wherein virtual items in the target item list are in a state to be picked up;
and displaying an article icon of the virtual article and an occupation prompt icon corresponding to the virtual article in the target article list, wherein the occupation prompt icon is used for indicating the shape of a space occupied by the virtual article in the article management interface.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for displaying a virtual article, comprising:
in the process of running a virtual scene at a client, responding to an information display instruction, and displaying a target item list on a display interface of the client, wherein virtual items in the target item list are in a state to be picked up;
and displaying an article icon of the virtual article and an occupation prompt icon corresponding to the virtual article in the target article list, wherein the occupation prompt icon is used for indicating the shape and size of a space occupied by the virtual article in an article management interface.
2. The method of claim 1, wherein displaying an occupancy cue icon corresponding to the virtual item in the list of target items comprises:
displaying the occupation prompt icon in a first display state under the condition that the remaining storage space of the item management interface indicates that the storage condition of the virtual item is reached, wherein the first display state is used for indicating that the virtual item is allowed to be stored in the item management interface;
and under the condition that the indication of the residual storage space does not reach the storage condition of the virtual article, displaying the occupation prompt icon in a second display state, wherein the second display state is used for indicating that the virtual article is not allowed to be stored in the article management interface.
3. The method of claim 1, wherein displaying an occupancy cue icon corresponding to the virtual item in the list of target items comprises:
occupy and show in the suggestion icon the square combined graph that the shape of the shared space of virtual article corresponds, wherein, square combined graph is used for instructing in the square quantity on the horizontal direction virtual article is in shared square quantity on the horizontal direction when article management interface deposits, square combined graph is used for instructing in the square quantity on the vertical direction virtual article is in shared square quantity on the vertical direction when article management interface deposits.
4. The method according to claim 1, wherein prior to displaying the target item list on the display interface of the client in response to the information display instruction, the method further comprises:
in response to a selected operation performed on a candidate virtual item displayed in the virtual scene, adding the candidate virtual item to the list of target items;
and generating the information display instruction.
5. The method according to claim 1, wherein prior to displaying the target item list on the display interface of the client in response to the information display instruction, the method further comprises:
adding a candidate virtual item displayed in the virtual scene to the target item list if the distance between the virtual character controlled by the client and the candidate virtual item is less than a first threshold;
and generating the information display instruction.
6. The method according to claim 1, wherein prior to displaying the target item list on the display interface of the client in response to the information display instruction, the method further comprises:
displaying a trigger key under the condition that the distance between the virtual character controlled by the client and the candidate virtual article displayed in the virtual scene is smaller than a second threshold value;
in response to a triggering operation performed on the triggering key, adding the candidate virtual item to the target item list;
and generating the information display instruction.
7. The method according to any one of claims 1 to 6, wherein after displaying the occupancy hint icon corresponding to the virtual item in the list of target items, the method further comprises:
removing the virtual item from the virtual scene if the virtual item in the virtual scene is picked up.
8. The method according to any one of claims 1 to 6, wherein before displaying the occupancy hint icon corresponding to the virtual item in the list of target items, the method further comprises:
determining an occupied space configuration table of the virtual article, wherein the occupied space configuration table records a mapping relation between the virtual article and the shape of the space occupied by the virtual article;
and generating the occupation prompt icon matched with the shape of the space occupied by the virtual article according to the mapping relation.
9. A display device for a virtual article, comprising:
the system comprises a first display unit, a second display unit and a third display unit, wherein the first display unit is used for responding to an information display instruction in the process that a client runs a virtual scene and displaying a target item list on a display interface of the client, and virtual items in the target item list are in a state of waiting to be picked up;
and the second display unit is used for displaying the item icon of the virtual item and the occupation prompt icon corresponding to the virtual item in the target item list, wherein the occupation prompt icon is used for indicating the shape and size of the space occupied by the virtual item in an item management interface.
10. The apparatus of claim 9, wherein the second display unit comprises:
the first display module is used for displaying the occupation prompt icon in a first display state under the condition that the remaining storage space of the item management interface indicates that the storage condition of the virtual item is reached, wherein the first display state is used for indicating that the virtual item is allowed to be stored in the item management interface;
and the second display module is used for displaying the occupation prompt icon in a second display state under the condition that the indication of the residual storage space does not reach the storage condition of the virtual article, wherein the second display state is used for indicating that the virtual article is not allowed to be stored in the article management interface.
11. The apparatus of claim 9, wherein the second display unit comprises:
the third display module is used for displaying the square combined graph corresponding to the shape of the space occupied by the virtual article in the occupation prompt icon, wherein the square number of the square combined graph in the horizontal direction is used for indicating the virtual article is in the square number occupied in the horizontal direction when the article management interface is stored, and the square number of the square combined graph in the vertical direction is used for indicating the virtual article is in the square number occupied in the vertical direction when the article management interface is stored.
12. The apparatus of claim 9, further comprising:
a first adding module, configured to, before the target item list is displayed on the display interface of the client in response to the information display instruction, add a candidate virtual item displayed in the virtual scene to the target item list in response to a selection operation performed on the candidate virtual item;
and the first generation module is used for generating the information display instruction.
13. The apparatus of claim 9, further comprising:
a second adding module, configured to, before the target item list is displayed on the display interface of the client in response to the information display instruction, add a candidate virtual item to the target item list if a distance between a virtual character controlled by the client and the candidate virtual item displayed in the virtual scene is smaller than a first threshold;
and the second generation module is used for generating the information display instruction.
14. A storage medium readable by a computer, the storage medium storing a computer program, the computer program, when executed by a processor, implementing the method of any one of claims 1 to 8.
15. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program which, when executed by the processor, implements the method of any one of claims 1 to 8.
CN202010761811.9A 2020-07-31 2020-07-31 Virtual article display method and device, storage medium and electronic device Active CN111888760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010761811.9A CN111888760B (en) 2020-07-31 2020-07-31 Virtual article display method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010761811.9A CN111888760B (en) 2020-07-31 2020-07-31 Virtual article display method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111888760A CN111888760A (en) 2020-11-06
CN111888760B true CN111888760B (en) 2022-02-08

Family

ID=73183060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010761811.9A Active CN111888760B (en) 2020-07-31 2020-07-31 Virtual article display method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111888760B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113262484A (en) * 2021-06-04 2021-08-17 网易(杭州)网络有限公司 Operation control method and device for virtual article and electronic equipment
CN113694513B (en) * 2021-08-16 2024-08-20 网易(杭州)网络有限公司 Method and device for picking up articles in game, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108434735A (en) * 2018-03-19 2018-08-24 腾讯科技(深圳)有限公司 Virtual objects display methods, device, electronic device and storage medium
CN108888956A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Virtual knapsack shows display methods, equipment and the storage medium at interface
CN111151001A (en) * 2019-12-26 2020-05-15 网易(杭州)网络有限公司 Virtual article processing method and device, storage medium and electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10026093B1 (en) * 2014-01-22 2018-07-17 Kabam, Inc. System and method for providing virtual items to users of a virtual space
CN108984293B (en) * 2017-06-01 2021-12-21 网易(杭州)网络有限公司 Game content display method and device, storage medium, processor and terminal
CN108459811B (en) * 2018-01-09 2021-03-16 网易(杭州)网络有限公司 Method and device for processing virtual prop, electronic equipment and storage medium
CN108671540A (en) * 2018-05-09 2018-10-19 腾讯科技(深圳)有限公司 Accessory switching method, equipment and storage medium in virtual environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108434735A (en) * 2018-03-19 2018-08-24 腾讯科技(深圳)有限公司 Virtual objects display methods, device, electronic device and storage medium
CN108888956A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Virtual knapsack shows display methods, equipment and the storage medium at interface
CN111151001A (en) * 2019-12-26 2020-05-15 网易(杭州)网络有限公司 Virtual article processing method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN111888760A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN108815849B (en) Method and device for displaying articles in virtual scene and storage medium
CN101479693B (en) For the method and system that digital device and interactive display-surface are carried out docking
CN111888760B (en) Virtual article display method and device, storage medium and electronic device
CN108579086A (en) Processing method, device, storage medium and the electronic device of object
CN107291317B (en) The selection method and device of target in a kind of virtual scene
CN111111174B (en) Operation method and device of virtual prop, storage medium and electronic device
CN105260100A (en) Information processing method, terminal and computer storage medium
CN111258680B (en) Resource loading method and device, storage medium and electronic device
CN109933402A (en) A kind of methods of exhibiting of function menu, system and relevant device
CN111265870A (en) Control method and device of virtual operation object and storage medium
CN114404965A (en) Virtual object control method and device, storage medium and electronic equipment
CN112121427B (en) Control method and device of virtual prop and storage medium
CN112245924A (en) Method and device for generating non-player character, storage medium and electronic equipment
CN108144301B (en) Virtual object information display method and device, storage medium and electronic device
CN112221126A (en) Virtual equipment generation method and device, storage medium and electronic equipment
CN105100281B (en) A kind of method and apparatus of remote control mobile terminal
CN111265856A (en) Control method and device of virtual operation object, storage medium and electronic device
CN111773694B (en) Control method and device of virtual operation object and storage medium
CN110420456A (en) The method and device of selecting object, computer storage medium, electronic equipment
CN108553885A (en) Animation playing method and device in virtual scene and storage medium, electronic device
CN106484395B (en) Event display method and device
CN111359214A (en) Virtual item control method and device, storage medium and electronic device
CN112000258A (en) Operation control method and device, intelligent terminal and storage medium
CN111318016B (en) Map element display method and device, storage medium and electronic device
CN111367929B (en) Data management method and device and storage medium

Legal Events

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