WO2024041218A9 - 虚拟物品的操作控制方法、装置和电子设备 - Google Patents

虚拟物品的操作控制方法、装置和电子设备 Download PDF

Info

Publication number
WO2024041218A9
WO2024041218A9 PCT/CN2023/105035 CN2023105035W WO2024041218A9 WO 2024041218 A9 WO2024041218 A9 WO 2024041218A9 CN 2023105035 W CN2023105035 W CN 2023105035W WO 2024041218 A9 WO2024041218 A9 WO 2024041218A9
Authority
WO
WIPO (PCT)
Prior art keywords
sub
container
area
virtual item
display area
Prior art date
Application number
PCT/CN2023/105035
Other languages
English (en)
French (fr)
Other versions
WO2024041218A1 (zh
Inventor
苏宇鹏
邓智
凃益民
Original Assignee
网易(杭州)网络有限公司
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 网易(杭州)网络有限公司 filed Critical 网易(杭州)网络有限公司
Publication of WO2024041218A1 publication Critical patent/WO2024041218A1/zh
Publication of WO2024041218A9 publication Critical patent/WO2024041218A9/zh

Links

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/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Definitions

  • the present disclosure relates to the field of game technology, and in particular to a method, device and electronic device for controlling the operation of virtual items.
  • the maintenance area is usually divided into different types of storage columns, and some different types of storage columns can store the same materials.
  • the maintenance area has insurance columns, weapon columns, equipment columns, consumable columns, etc., and consumable props can be stored in insurance columns or consumable columns.
  • the purpose of the present disclosure is to provide a method, device and electronic device for controlling the operation of virtual items, so as to solve the problem that players need to drag virtual items up and down in the game to find a target sub-container in which the virtual items can be placed, thereby reducing the trial and error cost of the game, improving the convenience and efficiency of transferring virtual items, improving the game experience of players, reducing the response frequency of hardware devices, and helping to save computing resources of hardware devices.
  • a terminal device provides a graphical user interface, which includes a first display area of a first storage container and a second display area of a second storage container; the second storage container includes a plurality of sub-containers; the method includes: in response to a movement control operation on a first virtual item in the first storage container, controlling the movement of the first virtual item; determining a target sub-container for placing the first virtual item from the plurality of sub-containers; in response to the first virtual item moving to the second display area, determining a first designated sub-area in the second display area based on a first current position of the first virtual item in the second display area, and controlling the target sub-container to be displayed in the first designated sub-area of the second display area; wherein the first current position is located in the first designated sub-area, or the distance between the first current position and the first designated sub-area is less than a preset threshold;
  • a terminal device provides a graphical user interface, the graphical user interface includes a first display area of a first storage container and a second display area of a second storage container; the second storage container includes a plurality of sub-containers; the device includes: a virtual item moving module, used to respond to a movement control operation on a first virtual item in the first storage container and control the movement of the first virtual item; a target sub-container determining module, used to determine a target sub-container for placing the first virtual item from the plurality of sub-containers; a target sub-container display module, used to respond to the movement of the first virtual item to the second display area, determine a first designated sub-area in the second display area based on a first current position of the first virtual item in the second display area, and control the display of the target sub-container in the first designated sub-area of the second display area; wherein the
  • an electronic device including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the operation control method of the virtual item of the first aspect.
  • a computer-readable storage medium which stores computer-executable instructions.
  • the computer-executable instructions When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the virtual item operation control method of the first aspect above.
  • the operation control method, device and electronic device of the virtual item of the embodiment of the present disclosure controls the movement of the first virtual item in the first storage container in response to the movement control operation of the first virtual item in the first storage container; determines the target sub-container for placing the first virtual item from multiple sub-containers; in response to the first virtual item moving to the second display area, determines the first designated sub-area in the second display area based on the first current position of the first virtual item in the second display area, and controls the target sub-container to be displayed in the first designated sub-area; wherein the first current position is located in the first designated sub-area, or the distance between the first current position and the first designated sub-area is less than a preset threshold; in response to the end of the movement control operation, the first virtual item is placed in the target sub-container.
  • the target sub-container for placing the first virtual item is intelligently identified, and the target sub-container is quickly positioned to the first current position of the first virtual item, without the need for the player to drag the item up and down in the second storage container, thereby reducing the operation time of dragging the item up and down to find the target sub-container, improving the operation efficiency, reducing the player's understanding requirements for the game and the trial and error cost, reducing the response frequency of the hardware device, and helping to save the computing resources of the hardware device.
  • FIG1 is a flow chart of a method for controlling operation of virtual items provided by an embodiment of the present disclosure
  • FIG2 is a schematic diagram of an interactive operation control of a virtual item provided by an embodiment of the present disclosure
  • FIG3 is a schematic diagram of another interactive operation control of a virtual item provided by an embodiment of the present disclosure.
  • FIG4 is a schematic diagram of another interactive operation control of a virtual item provided by an embodiment of the present disclosure.
  • FIG5 is a schematic diagram of another interactive operation control of a virtual item provided by an embodiment of the present disclosure.
  • FIG6 is a schematic diagram of another interactive operation control of a virtual item provided by an embodiment of the present disclosure.
  • FIG7 is a schematic diagram of the structure of a virtual item operation control device provided by an embodiment of the present disclosure.
  • FIG8 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
  • the maintenance area is usually divided into different types of storage columns, and some different types of storage columns can store the same materials.
  • the maintenance area has insurance columns, weapon columns, equipment columns, consumable columns, etc., and consumable props can be stored in insurance columns or consumable columns.
  • the embodiments of the present disclosure provide a method, device and electronic device for controlling the operation of virtual items.
  • the technology can be applied to electronic devices such as mobile phones, computers, notebooks, or tablet computers.
  • the operation control method of the virtual item in one embodiment of the present disclosure can be run on a local terminal device or a server.
  • the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
  • cloud games refer to a game mode based on cloud computing.
  • the operation mode of cloud games the operating body of the game program and the main body of the game screen presentation are separated.
  • the storage and operation of the operation control method of virtual items are completed on the cloud game server.
  • the role of the client device is used for receiving and sending data and presenting the game screen.
  • the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing.
  • the player operates the client device to send an operation instruction to the cloud game server.
  • the cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network.
  • the client device decodes and outputs the game screen.
  • a local terminal device stores a game program and is used to present a game screen.
  • the local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally.
  • the local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection.
  • the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
  • an embodiment of the present disclosure provides an operation control method for virtual items, providing a graphical user interface through a terminal device, wherein the terminal device may be the local terminal device mentioned above, or may be the client device in the cloud interaction system mentioned above.
  • the terminal device provides a graphical user interface, which includes a first display area of a first storage container and a second display area of a second storage container; the second storage container includes a plurality of sub-containers.
  • the sub-containers included in the second storage container are used to place virtual items, each of which can place a plurality of virtual items, and each sub-container includes a plurality of placement positions, and each placement position can place a virtual item.
  • the second storage container has a plurality of storage partitions (i.e., the above-mentioned sub-containers), each partition is used to place a plurality of virtual items, and each partition is used to place different types of virtual items.
  • the operation control method of the virtual item includes the following steps:
  • Step S102 in response to a movement control operation on a first virtual item in a first storage container, controlling the movement of the first virtual item;
  • Step S104 determining a target sub-container for placing the first virtual item from the multiple sub-containers
  • the first storage container mentioned above usually refers to a virtual warehouse area set in the game
  • the second storage container mentioned above usually refers to a virtual preparation area set in the game, wherein the virtual preparation area includes a plurality of different types of storage columns (i.e., the sub-containers mentioned above), and usually different sub-containers are used to place different types of virtual items, and of course, some different types of sub-containers can store the same type of virtual items.
  • the first virtual item mentioned above can be a virtual weapon, virtual medicine, virtual equipment, virtual clothing, etc. set in the game.
  • the second display area of the second storage container mentioned above can display multiple sub-containers at the same time, as shown in FIG2, wherein the second display area displays three sub-containers (such as the three sub-containers A1, B and A2 in the figure), and each sub-container has multiple storage areas for placing virtual items.
  • the A1 sub-container includes 10 rectangular blocks, which are storage areas for placing virtual items.
  • the above-mentioned movement control operation for the first virtual item can be a touch sliding operation acting on the first virtual item.
  • the first virtual item placed at the target position of the first storage container can be clicked first, and the mouse or finger can be moved in the clicked state to control the position of the first virtual item to change with the movement of the finger or mouse, and then the first virtual item can be dragged out from the target position to control the movement of the first virtual item in the first display area.
  • the system will intelligently identify the first virtual item, and then determine the target sub-container in which the first virtual item can be placed from the multiple sub-containers of the second storage container.
  • the target sub-container can be one or more.
  • the sub-container that can match the first virtual item can be first identified. For example, if the first virtual item is a pistol, a weapon box for placing the pistol can be found among multiple sub-containers. For another example, if the first virtual item is a hat, a clothing box for placing clothes can be found among multiple sub-containers. In addition, a safe can usually also place a pistol and a hat, so the sub-containers that can match the first virtual item can be a weapon box and a safe, or a clothing box and a safe. Then, based on the storage space of the matching sub-container and the size of the first virtual item, it can be determined whether there is space to place the first virtual item. If so, the matching sub-container can be determined as the target sub-container.
  • Step S106 in response to the first virtual item moving to the second display area, based on the first current position of the first virtual item in the second display area, determining a first designated sub-area in the second display area, and controlling the target sub-container to be displayed in the first designated sub-area of the second display area; wherein the first current position is located in the first designated sub-area, or the distance between the first current position and the first designated sub-area is less than a preset threshold;
  • the second display area of the second storage container is displayed in the graphical user interface, and the second display area includes multiple sub-containers of different types, such as safes, weapon boxes, equipment boxes, consumable boxes, etc. Consumable props can be stored in safes or consumable boxes.
  • the first current position is the position of the first virtual item in the second display area.
  • the first virtual item can be located in the second display area with all items in the second display area, or with part of the items in the second display area (for example, more than 50% of the area of the first virtual item is located in the second display area); the first designated sub-area is used to display the target sub-container, that is, the size of the first designated sub-area is the same as the size of the target sub-container.
  • the preset threshold can be set according to the actual needs of the game, and can be the area where the first designated sub-area is located above the first current position, or the area where the first current position is located below the first current position. However, the first designated sub-area is usually located in the vicinity of the first current position, and the first virtual item can be moved from the first current position to the first designated sub-area by moving a small distance.
  • the designated sub-area corresponding to the current position i.e., the first designated sub-area
  • the target sub-container is controlled to be displayed in the designated sub-area.
  • the specific control method may be to control the scrolling of multiple sub-containers in the second storage container so that the target sub-container is displayed in the designated sub-area.
  • the multiple sub-containers are displayed in a certain order, such as shown in FIG. 2, in the order of sub-container A1, sub-container B, sub-container A2, etc.
  • Step S108 in response to the end of the movement control operation, placing the first virtual item in the target sub-container.
  • the first virtual item is in a state of being clicked or selected and dragged at the same time; the movement control ends when the player's finger leaves the selected and dragged first virtual item, or when the mouse pops up, which is a drag release operation and a click release.
  • the terminal device detects that the movement control operation for the first virtual item ends, the movement of the first virtual item is stopped.
  • the movement control of the first virtual item in the first designated sub-area ends, the movement of the first virtual item is stopped first, and then the first virtual item is placed in the corresponding position of the target sub-container, and at the same time, the icon of the first virtual item is displayed at the item placement position of the target sub-container in the second display area.
  • the target sub-container when the target sub-container is displayed in the first designated sub-area of the second display area, if the currently displayed target sub-container is the container that the player wants to place, and the first current position is located in the first designated sub-area, the player can directly release the hand, or control the mouse to pop up, and place the first virtual item in the target sub-container.
  • the player needs to control the first virtual item to move to the first designated sub-area, and then release the hand, or control the mouse to pop up, and place the first virtual item in the target sub-container. If the currently displayed target sub-container is not the container that the player wants to place, the player can also control the first virtual item to move in the second display area to find a suitable target sub-container for placing the first virtual item.
  • the above-mentioned operation control method of virtual items controls the movement of the first virtual item in the first storage container in response to the movement control operation of the first virtual item in the first storage container; determines a target sub-container for placing the first virtual item from multiple sub-containers; in response to the first virtual item moving to the second display area, determines a first designated sub-area in the second display area based on the first current position of the first virtual item in the second display area, and controls the target sub-container to be displayed in the first designated sub-area of the second display area; wherein the first current position is located in the first designated sub-area, or the distance between the first current position and the first designated sub-area is less than a preset threshold; in response to the end of the movement control operation, the first virtual item is placed in the target sub-container.
  • the target sub-container for placing the first virtual item is intelligently identified, and the target sub-container is quickly positioned to the first current position of the first virtual item, without the need for the player to drag the item up and down in the second storage container, thereby reducing the operation time of dragging the item up and down to find the target sub-container, improving the operation efficiency, and reducing the player's understanding requirements and trial and error costs of the game.
  • the first virtual item is pre-placed at a first position in the first storage container, such as the square 1 shown in FIG. 2 .
  • the following describes a possible implementation of the step S102 of controlling the movement of the first virtual item in response to the movement control operation of the first virtual item in the first storage container:
  • the first virtual item In response to a movement control operation on the first virtual item in the first storage container, the first virtual item is controlled to move out of the first position.
  • the first virtual item is placed in the first position of the first storage container, and the first position can be displayed in a grid format, as shown in FIG2 , the first virtual item A is pre-placed in the first position of the first storage container, that is, the grid 1 in the figure.
  • the first virtual item When the first virtual item is clicked or selected by a finger or a mouse, the first virtual item is controlled to move in the first display area of the first storage container by dragging the first virtual item, as shown in FIG2 , the warehouse area in the figure is the first display area of the first storage container, and the first virtual item is controlled to move out of the first position, that is, the first virtual item is moved out of the grid 1 in the warehouse area, at which time, the icon of the first virtual item displayed in the grid 1 disappears.
  • step S102 The following describes a possible implementation of the step of determining a target sub-container in which the first virtual item is placed from multiple sub-containers in the above step S102:
  • a target sub-container in which the first virtual item can be placed is determined from a plurality of sub-containers.
  • FIG2 is an interactive schematic diagram of an operation control of a virtual item, including a warehouse area (corresponding to the first display area) and a maintenance area (corresponding to the second display area). Specifically, when the first virtual item is moved out of the first position, a target sub-container for placing the first virtual item is determined from different sub-containers according to the item type and the container type of the sub-container.
  • a target sub-container in which the first virtual item can be placed can be determined from multiple sub-containers.
  • the target sub-container can be one or more. If there are multiple sub-containers, it means that the first virtual item can be placed in different types of sub-containers.
  • the target sub-container in which the first virtual object can be placed can be intelligently identified according to the object type and the container type.
  • the second storage container includes a plurality of sub-containers arranged in a specified order; a possible implementation method of controlling the display of the target sub-container in the first specified sub-area is as follows:
  • the second display area is controlled to scroll so that a target subcontainer among the multiple subcontainers is displayed in the first designated sub-area; wherein the designated arrangement order of the multiple subcontainers remains unchanged.
  • controlling the list to scroll that is, controlling the second display area to scroll, causes the target subcontainer among the multiple subcontainers of the second storage container to scroll to the first designated subcontainer, and causes the target subcontainer among the multiple subcontainers to be displayed in the first designated subcontainer.
  • Another possible implementation method is to control the target subcontainer in the multiple subcontainers to move out of the current position and move to the first designated sub-area.
  • the second display area is controlled to remain unchanged, that is, the second storage container is controlled to remain unchanged, and the target subcontainer in the multiple subcontainers is moved out of the current position of the second storage container and moved to the first designated sub-area, so that the target subcontainer is displayed in the first designated sub-area.
  • the above-mentioned target subcontainers include one or more, and are generally displayed in the second display area in sequence.
  • step S106 The following describes a possible implementation of the step of controlling the target sub-container to be displayed in the first designated sub-area of the second display area when there are multiple target sub-containers according to step S106:
  • the second display area is controlled to scroll so that a first subcontainer in the target subcontainer that is closest to the first current position is displayed in the first designated sub-area.
  • the first virtual item click or select the first virtual item, as shown in FIG3, and drag item A (i.e., the first virtual item) from the warehouse area on the right (i.e., the first display area) to the preparation area on the left (i.e., the second display area). Then, according to the position of the first virtual item in the preparation area, that is, the first current position of the second display area, the first designated sub-area is determined. Then, according to the distance between all target sub-containers and the first current position, the distance can be determined by controlling the first sub-container closest to the first current position to be displayed in the first designated sub-area of the preparation area, using the Y axis of the preparation area as the judgment standard.
  • the list of the preparation area in the second display area i.e., multiple sub-containers
  • the first sub-container A1 in the target sub-container closest to the first current position will be displayed in the first designated sub-area corresponding to the first current position where the first virtual item A is located.
  • the list of multiple sub-containers is controlled to scroll so that the target sub-container closest to the first virtual item is displayed in the first designated sub-area, so that there is sufficient feedback on where the virtual item can be stored, further improving the operating efficiency.
  • the step of controlling the target sub-containers to be displayed in the first designated sub-area is another possible implementation method: controlling the multiple target sub-containers to move out from the current position, so that the first sub-container closest to the first current position in the target sub-containers moves to the first designated sub-area, and the second sub-containers other than the first sub-container in the target sub-containers move to the adjacent area behind the first sub-container; wherein the first sub-container and the second sub-container are arranged in a specified order.
  • the second display area is controlled not to move, that is, the list of multiple sub-containers is controlled not to scroll, the multiple target sub-containers are directly moved out from the current position, and the first sub-container closest to the first current position among the multiple target sub-containers is controlled to move to the first designated sub-area. Since the multiple target sub-containers have a specified arrangement order, the second sub-containers except the first sub-container in the target sub-containers also need to be sorted in the specified order and moved after the first sub-container, so that the second sub-container ranked first is adjacent to the first sub-container.
  • the above method further includes:
  • the container identifier of the second subcontainer is controlled to be displayed at a first edge position of the second display area; wherein the first edge position is an edge position in the second display area that is closest to the second subcontainer.
  • the above-mentioned first edge position can be the upper edge, lower edge, left edge or right edge of the second display area. If it is the upper edge and the lower edge, the distance can be determined based on the Y-axis of the maintenance area; if it is the left edge and the right edge, the distance can be determined based on the X-axis of the maintenance area.
  • the container identifier of the second sub-container is displayed at the edge position closest to the second sub-container, which can be displayed as the name of the second sub-container and an arrow indication, wherein the second sub-container can be one or more, and the first sub-container and the second sub-container are both target sub-containers.
  • the first sub-container closest to the first current position of the first virtual item to be displayed in the first designated sub-area of the second display area, due to the limited size of the graphical user interface, in order to prompt the player in the second display area, other target sub-containers are hidden above or below the first sub-container.
  • the second sub-container is below the list of multiple sub-containers, the name of the second sub-container A2 will be displayed at the lower edge of the second display area with an arrow indicator, prompting the player that there is another target sub-container below the first sub-container A1 where the first virtual item can be placed.
  • the second display area can display a maximum of three sub-containers
  • the first designated sub-area is located at the upper edge or middle area of the second display area
  • the second display area can directly display the two target sub-containers.
  • the target sub-containers include four, one, two or even three sub-containers may not be displayed in the second display area. In this case, it is necessary to display the container identifiers of one, two or even three sub-containers at the first edge position.
  • the player can be reminded that in addition to the target container currently displayed in the first designated sub-area, there are other target sub-containers in which the first virtual item can be placed, further improving the player's operating efficiency and gaming experience.
  • the method further includes:
  • a second designated sub-area is determined in the second display area according to a second current position of the first virtual object after the move, and a second sub-container of the target sub-container is controlled to be displayed in the second designated sub-area; wherein the second current position is located in the second designated sub-area, or a distance between the second current position and the second designated sub-area is less than a preset threshold.
  • the first virtual item in the first sub-container of the target sub-container in the second display area, click or select the first virtual item to move from the first designated sub-area to the second sub-container of the target sub-container, as shown in FIG4, the first virtual item is moved out of the square of the first sub-container A1, at which time the icon of the first virtual item in the square disappears, and the icon of the first virtual item in the second display area is controlled to move in the direction of the container mark of the second sub-container of the target sub-container.
  • the icon height of the first virtual item A can be controlled to be greater than 50% of its own height and moved out of the first designated sub-area, which can trigger the control of the second sub-container to be displayed in the second designated sub-area of the second display area.
  • the second current position is located below the first designated sub-area, and the second sub-container is controlled to be displayed in the second designated sub-area of the second display area.
  • the second display area will control the list to scroll upward according to the moving direction of the first virtual item, and automatically adapt the second sub-container A2 to move to the second current position of the first virtual item A or nearby, that is, the second designated sub-area. This makes the operation method of finding the target sub-container in the second display area simpler and faster.
  • the list scrolling can be triggered again by controlling the movement of the virtual object, and the target sub-container in the moving direction is automatically adapted to be displayed at the current position of the virtual object, making the operation of finding the target sub-container in the second display area simpler and faster.
  • the method further includes: if the first sub-container is not displayed in the second display area, canceling the display of the container identifier located at the first edge position of the second display area; controlling the container identifier of the first sub-container to be displayed at the second edge position of the second display area; wherein the first edge position and the second edge position are arranged relative to each other in the second display area.
  • the player controls the current list of multiple subcontainers to scroll so that the first subcontainer is not displayed in the second display area
  • the currently displayed container identifier will be controlled to be cancelled, and then the container identifier of the first subcontainer will be displayed at the second edge position according to the scrolling direction of the first subcontainer after scrolling or the arrangement position of the list.
  • the container mark shown in FIG4 displayed at the first edge position of the second display area by the second sub-container A2 is canceled.
  • the first edge position is the lower edge position of the second display area.
  • the container mark of the first sub-container is controlled, such as the name of the first sub-container A1 and an indicator arrow shown in FIG6, to be displayed at the upper edge position of the second display area, i.e., the second edge position.
  • the container identifier of the target sub-container at the display edge is cancelled.
  • the container identifier of the target sub-container is displayed in the corresponding edge area, so that the player can understand the position of each target sub-container through the container identifier, further improving the player's operating efficiency and gaming experience.
  • the method further includes:
  • the control target subcontainer is displayed in the second display area in the specified display format.
  • the above-mentioned designated display format is used to prompt the player that the first virtual item can be placed in the target sub-container.
  • the target sub-container for placing the first virtual item is determined among the multiple sub-containers in the second display area
  • the target sub-container is controlled to be displayed in the second display area in a designated display format
  • the designated display format can be a highlight color display, a flashing display, or a mask display, etc.
  • the target sub-container A1 and the target sub-container A2 indicate the above-mentioned designated display format in a gray display mode, which is mainly used to prompt the player that the sub-container displayed in gray is the target sub-container.
  • the target sub-container is displayed in a specified display format, so that the player can intuitively understand the sub-container in which the first virtual item can be currently placed, thereby reducing the player's understanding cost of the game and improving the player's gaming experience.
  • the target sub-container includes a plurality of steps; a step of controlling the target sub-container to be displayed in the second display area in a specified display format, a possible implementation manner is:
  • the first sub-container in the first order among the target sub-containers controlling the first sub-container in the first order among the target sub-containers to be displayed in the area corresponding to the third edge position of the second display area in a specified display format; wherein the third edge position is the edge position corresponding to the first scrolling direction of the second display area;
  • the second subcontainer is controlled to be displayed at a fourth edge position of the second display area; wherein the fourth edge position is an edge position corresponding to a second scrolling direction of the second display area, and the first scrolling direction is opposite to the second scrolling direction.
  • the above-mentioned first scrolling direction is the upward scrolling direction, that is, the above-mentioned third edge position is the upper edge position of the second display area, and the above-mentioned second scrolling direction is downward scrolling, that is, the above-mentioned fourth edge position is the lower edge position of the second display area;
  • the scrollable direction of the second display area is left and right scrolling, the above-mentioned first scrolling direction is left scrolling, that is, the above-mentioned third edge position is the left edge position of the second display area, and the above-mentioned second scrolling direction is right scrolling, that is, the above-mentioned fourth edge position is the right edge position of the second display area.
  • the first sub-container A1 is displayed in the area corresponding to the upper edge position of the second display area.
  • part or all of the second sub-container is still displayed in the area corresponding to the fourth edge position of the second display area.
  • the fourth edge position corresponds to the lower edge of the second display area.
  • the container identifier of the second sub-container that is, the name of the second sub-container and an arrow with a direction indication are displayed at the fourth edge position of the second display area, and the fourth edge position corresponds to the second display area scrolling downward.
  • the above method is highly practical, increases the identification of item categories when transferring materials, reduces the time players spend searching for category locations when transferring materials from the warehouse to the maintenance area, and greatly increases operational efficiency.
  • players are given clear slot numbers and operation direction targets to reduce the entry threshold for novice players.
  • the direction of the player's movement can be determined by the player's slight up and down movement, which greatly reduces the player's operating costs, reduces the response frequency of hardware devices, and helps save computing resources on hardware devices.
  • a terminal device provides a graphical user interface
  • the graphical user interface includes a first display area of a first storage container and a second display area of a second storage container
  • the second storage container includes a plurality of sub-containers
  • the device includes:
  • a virtual item moving module 71 configured to respond to a movement control operation on a first virtual item in a first storage container and control the movement of the first virtual item
  • a target sub-container determining module 72 configured to determine a target sub-container for placing the first virtual item from among the multiple sub-containers;
  • a target sub-container display module 73 configured to determine a first designated sub-region in the second display region based on a first current position of the first virtual object in the second display region in response to the first virtual object moving to the second display region, and control the target sub-container to be displayed in the first designated sub-region of the second display region; wherein the first current position is located in the first designated sub-region, or the distance between the first current position and the first designated sub-region is less than a preset threshold;
  • the virtual item placement module 73 is configured to place the first virtual item in the target sub-container in response to the end of the movement control operation.
  • the operation control device of the virtual item controls the movement of the first virtual item in the first storage container in response to the movement control operation for the first virtual item in the first storage container; determines a target sub-container for placing the first virtual item from a plurality of sub-containers; in response to the first virtual item moving to the second display area, determines a first designated sub-area in the second display area based on the first current position of the first virtual item in the second display area, and controls the display of the target sub-container in the first designated sub-area of the second display area; wherein the first current position is located in the first designated sub-area, or the distance between the first current position and the first designated sub-area is less than a preset threshold; in response to the end of the movement control operation, the first virtual item is placed in the target sub-container.
  • the target sub-container for placing the first virtual item is intelligently identified, and the target sub-container is quickly positioned to the first current position of the first virtual item, without the need for the player to drag the item up and down in the second storage container, thereby reducing the operation time of dragging the item up and down to find the target sub-container, improving the operation efficiency, reducing the requirements for the player's understanding of the game and the trial and error cost, reducing the response frequency of the hardware device, and helping to save the computing resources of the hardware device.
  • the virtual item moving module comprises: in response to a movement control operation on the first virtual item in the first storage container, controlling the first virtual item to move out from the first position.
  • the virtual item moving module includes: determining a target sub-container capable of placing the first virtual item from among a plurality of sub-containers according to the item type of the first virtual item and the container type of the sub-container.
  • the second storage container includes multiple sub-containers arranged in a specified order; the target sub-container display module includes: controlling the scrolling of the second display area to display the target sub-container among the multiple sub-containers in the first specified sub-area; wherein the specified arrangement order of the multiple sub-containers remains unchanged.
  • the second storage container includes a plurality of sub-containers arranged in a specified order; the target sub-container display module includes: controlling the target sub-container in the plurality of sub-containers to move out of a current position and to the first specified sub-area.
  • the target sub-container display module includes: controlling the second display area to scroll so that a first sub-container in the target sub-container that is closest to the first current position is displayed in the first designated sub-area.
  • the target sub-container display module includes: controlling the multiple target sub-containers to move out from the current position, so that the first sub-container closest to the first current position in the target sub-container moves to the first designated sub-area, and the second sub-container other than the first sub-container in the target sub-container moves to the adjacent area behind the first sub-container; wherein the first sub-container and the second sub-container are arranged in a specified order.
  • the above-mentioned device also includes: a container identification first display module, which is used to: if the second sub-container other than the first sub-container in the target sub-container is not displayed in the second display area, control the container identification of the second sub-container other than the first sub-container in the target sub-container to be displayed at a first edge position of the second display area; wherein the first edge position is the edge position in the second display area that is closest to the second sub-container.
  • a container identification first display module which is used to: if the second sub-container other than the first sub-container in the target sub-container is not displayed in the second display area, control the container identification of the second sub-container other than the first sub-container in the target sub-container to be displayed at a first edge position of the second display area; wherein the first edge position is the edge position in the second display area that is closest to the second sub-container.
  • the device when there are multiple target sub-containers, the device further includes: a container identification second display module, which is used to: in response to at least part of the first virtual item moving out of the first designated sub-area, determine a second designated sub-area in the second display area according to a second current position of the first virtual item after the move, and control the second sub-container of the target sub-container to be displayed in the second designated sub-area; wherein the second current position is located in the second designated sub-area, or the distance between the second current position and the second designated sub-area is less than a preset threshold.
  • a container identification second display module which is used to: in response to at least part of the first virtual item moving out of the first designated sub-area, determine a second designated sub-area in the second display area according to a second current position of the first virtual item after the move, and control the second sub-container of the target sub-container to be displayed in the second designated sub-area; wherein the second current position is located in the second designated
  • the above-mentioned device also includes: a container identification third display module, which is used to: if the first sub-container is not displayed in the second display area, cancel the display of the container identification located at the first edge position of the second display area; control the container identification of the first sub-container to be displayed at the second edge position of the second display area; wherein the first edge position and the second edge position are arranged relative to each other in the second display area.
  • a container identification third display module which is used to: if the first sub-container is not displayed in the second display area, cancel the display of the container identification located at the first edge position of the second display area; control the container identification of the first sub-container to be displayed at the second edge position of the second display area; wherein the first edge position and the second edge position are arranged relative to each other in the second display area.
  • the above device further includes: a sixth display module, configured to control the target sub-container to be displayed in the second display area in a specified display format.
  • the virtual item moving module includes: according to the arrangement order of the multiple target sub-containers, controlling the first sub-container in the target sub-containers that is located in the first order to be displayed in the area corresponding to the third edge position of the second display area in a specified display format; wherein the third edge position is the edge position corresponding to the first scrolling direction of the second display area; if the second sub-container in the target sub-container that is located after the first sub-container is not displayed in the second display area, controlling the container identifier of the second sub-container to be displayed at the fourth edge position of the second display area; wherein the fourth edge position is the edge position corresponding to the second scrolling direction of the second display area; the first scrolling direction is opposite to the second scrolling direction.
  • the virtual item operation control device provided in the embodiment of the present disclosure has the same technical features as the virtual item operation control method provided in the above embodiment, and therefore can solve the same technical problems and achieve the same technical effects.
  • This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned virtual item operation control method.
  • the electronic device can be a server or a touch terminal device.
  • the electronic device includes a processor 100 and a memory 101.
  • the memory 101 stores machine executable instructions that can be executed by the processor 100.
  • the processor 100 executes the machine executable instructions to implement the above-mentioned virtual item operation control method.
  • the method generally includes a terminal device providing a graphical user interface, the graphical user interface including a first display area of a first storage container and a second display area of a second storage container; the second storage container includes a plurality of sub-containers; the method includes the following steps:
  • the first virtual item In response to a movement control operation for a first virtual item in a first storage container, the first virtual item is controlled to move; a target sub-container for placing the first virtual item is determined from a plurality of sub-containers; in response to the first virtual item moving to a second display area, a first designated sub-area is determined in the second display area based on a first current position of the first virtual item in the second display area, and the target sub-container is controlled to be displayed in the first designated sub-area of the second display area; wherein the first current position is located in the first designated sub-area, or the distance between the first current position and the first designated sub-area is less than a preset threshold; in response to the end of the movement control operation, the first virtual item is placed in the target sub-container.
  • the target sub-container for placing the first virtual item is intelligently identified, and the target sub-container is quickly positioned to the first current position of the first virtual item, without the need for the player to drag the item up and down in the second storage container, thereby reducing the operation time of dragging the item up and down to find the target sub-container, improving the operation efficiency, reducing the player's understanding requirements for the game and the trial and error cost, reducing the response frequency of the hardware device, and helping to save the computing resources of the hardware device.
  • the first virtual item is pre-placed at a first position in the first storage container; and in response to a movement control operation on the first virtual item in the first storage container, the step of controlling the movement of the first virtual item includes: in response to the movement control operation on the first virtual item in the first storage container, controlling the first virtual item to move out of the first position.
  • the step of controlling the movement of the first virtual item includes: in response to the movement control operation on the first virtual item in the first storage container, controlling the first virtual item to move out of the first position.
  • the step of determining a target sub-container in which to place the first virtual item from among the multiple sub-containers includes: determining a target sub-container in which to place the first virtual item from among the multiple sub-containers according to an item type of the first virtual item and a container type of the sub-container.
  • the second storage container includes multiple sub-containers arranged in a specified order; the step of controlling the display of the target sub-container in the first specified sub-area includes: controlling the scrolling of the second display area to display the target sub-container among the multiple sub-containers in the first specified sub-area; wherein the specified arrangement order of the multiple sub-containers remains unchanged.
  • the second storage container includes multiple sub-containers arranged in a specified order; the step of controlling the target sub-container to be displayed in the first specified sub-area includes: controlling the target sub-container in the multiple sub-containers to move out of the current position and move to the first specified sub-area.
  • the step of controlling the target sub-container to be displayed in the first designated sub-area of the second display area includes: controlling the second display area to scroll so that the first sub-container closest to the first current position in the target sub-container is displayed in the first designated sub-area.
  • the list of multiple sub-containers is controlled to scroll so that the target sub-container closest to the first virtual item is displayed in the first designated sub-area, so that there is sufficient feedback on where the virtual item can be stored, further improving the operation efficiency.
  • the step of controlling the target sub-containers to be displayed in the first designated sub-region includes: controlling the multiple target sub-containers to move out from the current positions, so that the first sub-container closest to the first current position in the target sub-containers moves to the first designated sub-region, and the second sub-containers other than the first sub-container in the target sub-containers move to the adjacent region behind the first sub-container; wherein the first sub-container and the second sub-container are arranged in a designated order.
  • the method further includes: if the second sub-container other than the first sub-container in the target sub-container is not displayed in the second display area, controlling the container identifier of the second sub-container other than the first sub-container in the target sub-container to be displayed at the first edge position of the second display area; wherein the first edge position is the edge position closest to the second sub-container in the second display area.
  • the player can be reminded that in addition to the target container currently displayed in the first designated sub-area, there are other target sub-containers in which the first virtual item can be placed, further improving the player's operating efficiency and game experience.
  • the method further includes: in response to at least part of the first virtual item moving out of the first designated sub-area, determining the second designated sub-area in the second display area according to the second current position of the first virtual item after the move, and controlling the second sub-container of the target sub-container to be displayed in the second designated sub-area of the second display area; wherein the second current position is located in the second designated sub-area, or the distance between the second current position and the second designated sub-area is less than a preset threshold.
  • the list scrolling can be triggered again, and the target sub-container in the moving direction is automatically adapted to be displayed at the current position of the virtual item, so that the operation method of finding the target sub-container in the second display area is simpler and faster.
  • the method further includes: if the first subcontainer is not displayed in the second display area, canceling the container mark at the first edge position of the second display area; controlling the container mark of the first subcontainer to be displayed at the second edge position of the second display area; wherein the first edge position and the second edge position are relatively arranged in the second display area.
  • the container mark of the target subcontainer at the display edge is canceled, and when the second display area does not display a target subcontainer, the container mark of the target subcontainer is displayed in the corresponding edge area, so that the player can understand the position of each target subcontainer through the container mark, further improving the player's operation efficiency and game experience.
  • the method further comprises: controlling the target sub-container to be displayed in the second display area in a specified display format.
  • the target sub-container in the specified display format, it is convenient for the player to intuitively understand the sub-container in which the first virtual item can be currently placed, thereby reducing the cost of understanding the game for the player and improving the game experience of the player.
  • the step of controlling the target sub-containers to be displayed in the second display area in a specified display format includes: according to the arrangement order of the multiple target sub-containers, controlling a first sub-container in a first order among the target sub-containers to be displayed in the specified display format in an area corresponding to a third edge position of the second display area; wherein the third edge position is an edge position corresponding to a first scrolling direction of the second display area; if a second sub-container in the target sub-container that is located after the first sub-container is not displayed in the second display area, controlling a container identifier of the second sub-container to be displayed at a fourth edge position of the second display area; wherein the fourth edge position is an edge position corresponding to a second scrolling direction of the second display area; and the first scrolling direction is opposite to the second scrolling direction.
  • the electronic device in FIG. 8 further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
  • the memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.
  • RAM random access memory
  • non-volatile memory non-volatile memory
  • the communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used.
  • the bus 102 can be an ISA bus, a PCI bus or an EISA bus, etc.
  • the bus can be divided into an address bus, a data bus, a control bus, etc.
  • Figure 8 is represented by a bidirectional arrow, but it does not mean that there is only one bus or one type of bus.
  • the processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 100 or the instruction in the form of software.
  • the above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed.
  • the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
  • the steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or can be executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc.
  • the storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
  • This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions.
  • the machine-executable instructions When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned virtual item operation control method.
  • the method generally provides a graphical user interface on a terminal device, and the graphical user interface includes a first display area of a first storage container and a second display area of a second storage container; the second storage container includes a plurality of sub-containers; the method includes the following steps:
  • the first virtual item In response to a movement control operation for a first virtual item in a first storage container, the first virtual item is controlled to move; a target sub-container for placing the first virtual item is determined from a plurality of sub-containers; in response to the first virtual item moving to a second display area, a first designated sub-area is determined in the second display area based on a first current position of the first virtual item in the second display area, and the target sub-container is controlled to be displayed in the first designated sub-area of the second display area; wherein the first current position is located in the first designated sub-area, or the distance between the first current position and the first designated sub-area is less than a preset threshold; in response to the end of the movement control operation, the first virtual item is placed in the target sub-container.
  • the target sub-container for placing the first virtual item is intelligently identified, and the target sub-container is quickly positioned to the first current position of the first virtual item, without the need for the player to drag the item up and down in the second storage container, thereby reducing the operation time of dragging the item up and down to find the target sub-container, improving the operation efficiency, reducing the player's understanding requirements for the game and the trial and error cost, reducing the response frequency of the hardware device, and helping to save the computing resources of the hardware device.
  • the first virtual item is pre-placed at a first position in the first storage container; and in response to a movement control operation on the first virtual item in the first storage container, the step of controlling the movement of the first virtual item includes: in response to the movement control operation on the first virtual item in the first storage container, controlling the first virtual item to move out of the first position.
  • the step of controlling the movement of the first virtual item includes: in response to the movement control operation on the first virtual item in the first storage container, controlling the first virtual item to move out of the first position.
  • the step of determining a target sub-container in which to place the first virtual item from among the multiple sub-containers includes: determining a target sub-container in which to place the first virtual item from among the multiple sub-containers according to an item type of the first virtual item and a container type of the sub-container.
  • the second storage container includes multiple sub-containers arranged in a specified order; the step of controlling the display of the target sub-container in the first specified sub-area includes: controlling the scrolling of the second display area to display the target sub-container among the multiple sub-containers in the first specified sub-area; wherein the specified arrangement order of the multiple sub-containers remains unchanged.
  • the second storage container includes multiple sub-containers arranged in a specified order; the step of controlling the target sub-container to be displayed in the first specified sub-area includes: controlling the target sub-container in the multiple sub-containers to move out of the current position and move to the first specified sub-area.
  • the step of controlling the target sub-container to be displayed in the first designated sub-area of the second display area includes: controlling the second display area to scroll so that the first sub-container closest to the first current position in the target sub-container is displayed in the first designated sub-area.
  • the list of multiple sub-containers is controlled to scroll so that the target sub-container closest to the first virtual item is displayed in the first designated sub-area, so that there is sufficient feedback on where the virtual item can be stored, further improving the operation efficiency.
  • the step of controlling the target sub-containers to be displayed in the first designated sub-region includes: controlling the multiple target sub-containers to move out from the current positions, so that the first sub-container closest to the first current position in the target sub-containers moves to the first designated sub-region, and the second sub-containers other than the first sub-container in the target sub-containers move to the adjacent region behind the first sub-container; wherein the first sub-container and the second sub-container are arranged in a designated order.
  • the method further includes: if the second sub-container other than the first sub-container in the target sub-container is not displayed in the second display area, controlling the container identifier of the second sub-container other than the first sub-container in the target sub-container to be displayed at the first edge position of the second display area; wherein the first edge position is the edge position closest to the second sub-container in the second display area.
  • the player can be reminded that in addition to the target container currently displayed in the first designated sub-area, there are other target sub-containers in which the first virtual item can be placed, further improving the player's operating efficiency and game experience.
  • the method further includes: in response to at least part of the first virtual item moving out of the first designated sub-area, determining the second designated sub-area in the second display area according to the second current position of the first virtual item after the move, and controlling the second sub-container of the target sub-container to be displayed in the second designated sub-area of the second display area; wherein the second current position is located in the second designated sub-area, or the distance between the second current position and the second designated sub-area is less than a preset threshold.
  • the list scrolling can be triggered again, and the target sub-container in the moving direction is automatically adapted to be displayed at the current position of the virtual item, so that the operation method of finding the target sub-container in the second display area is simpler and faster.
  • the method further includes: if the first subcontainer is not displayed in the second display area, canceling the container mark at the first edge position of the second display area; controlling the container mark of the first subcontainer to be displayed at the second edge position of the second display area; wherein the first edge position and the second edge position are relatively arranged in the second display area.
  • the container mark of the target subcontainer at the display edge is canceled, and when the second display area does not display a target subcontainer, the container mark of the target subcontainer is displayed in the corresponding edge area, so that the player can understand the position of each target subcontainer through the container mark, further improving the player's operation efficiency and game experience.
  • the method further comprises: controlling the target sub-container to be displayed in the second display area in a specified display format.
  • the target sub-container in the specified display format, it is convenient for the player to intuitively understand the sub-container in which the first virtual item can be currently placed, thereby reducing the cost of understanding the game for the player and improving the game experience of the player.
  • the step of controlling the target sub-containers to be displayed in the second display area in a specified display format includes: according to the arrangement order of the multiple target sub-containers, controlling a first sub-container in a first order among the target sub-containers to be displayed in the specified display format in an area corresponding to a third edge position of the second display area; wherein the third edge position is an edge position corresponding to a first scrolling direction of the second display area; if a second sub-container in the target sub-container that is located after the first sub-container is not displayed in the second display area, controlling a container identifier of the second sub-container to be displayed at a fourth edge position of the second display area; wherein the fourth edge position is an edge position corresponding to a second scrolling direction of the second display area; and the first scrolling direction is opposite to the second scrolling direction.
  • the computer program product of the virtual item operation control method, device, electronic device and storage medium provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code.
  • the instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
  • the terms “installed”, “connected”, and “connected” should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components.
  • installed should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present disclosure, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

Landscapes

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

Abstract

一种虚拟物品的操作控制方法,包括:响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动(S102);从多个子容器中确定用于放置第一虚拟物品的目标子容器(S104);响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,并控制将目标子容器显示在第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值(S106);响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中(S108)。该方法能够减少寻找目标子容器的操作时间,提高操作效率,降低玩家对游戏的理解要求和试错成本。

Description

虚拟物品的操作控制方法、装置和电子设备
相关申请的交叉引用
本公开要求于2022年08月22日提交的申请号为202211008075.5、名称为“虚拟物品的操作控制方法、装置和电子设备”的中国专利申请的优先权,该中国专利申请的全部内容通过引用并入全文。
技术领域
本公开涉及游戏技术领域,尤其是涉及一种虚拟物品的操作控制方法、装置和电子设备。
背景技术
在一些游戏场景中,通常需要玩家收集和养成各种游戏物资,根据游戏需求,玩家需要将物资在仓库区域和整备区域之间进行高频转移。但是由于整备区域通常会被划分为不同类型的存储栏,且有些不同类型的存储栏可以存储相同的物资,比如整备区域有保险栏、武器栏、装备栏、消耗品栏等,消耗品道具能存储在保险栏或消耗品栏内。
相关技术中,玩家将仓库区域中的物品移动至整备区域,且整备区域中能放置该物品的存储栏有多个时,如果能放置该物品的存储栏在界面显示不全时,需要玩家拖动该物品将其在整备区域上下滑动,寻找对应的存储栏,玩家很难快速定位到所能放置该物品的存储栏,操作效率较低,且需要玩家对游戏有一定的理解,试错成本较高,过高的硬件设备的响应频率,浪费了硬件设备的计算资源。
发明内容
有鉴于此,本公开的目的在于提供一种虚拟物品的操作控制方法、装置和电子设备,以解决玩家在游戏中需要上下拖动虚拟物品,寻找可以放置该虚拟物品的目标子容器的问题,进而减少游戏的试错成本,提高对虚拟物品进行转移操作的便捷性及操作效率,提高玩家的游戏体验,降低硬件设备的响应频率,有助于节约硬件设备的计算资源。
根据本公开的一个方面,提供了一种虚拟物品的操作控制方法,通常终端设备提供一图形用户界面,图形用户界面包括第一存储容器的第一显示区域和第二存储容器的第二显示区域;第二存储容器中包括多个子容器;该方法包括:响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动;从多个子容器中确定用于放置第一虚拟物品的目标子容器;响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,并控制将目标子容器显示在第二显示区域的第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值;响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中。
根据本公开的一个方面,还提供了一种虚拟物品的操作控制装置,通常终端设备提供一图形用户界面,图形用户界面包括第一存储容器的第一显示区域和第二存储容器的第二显示区域;第二存储容器中包括多个子容器;该装置包括:虚拟物品移动模块,用于响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动;目标子容器确定模块,用于从多个子容器中确定用于放置第一虚拟物品的目标子容器;目标子容器显示模块,用于响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,并控制将目标子容器显示在第二显示区域的第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值;虚拟物品放置模块,用于响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中。
根据本公开的一个方面,还提供了一种电子设备,包括处理器和存储器,存储器存储有能够被处理器执行的计算机可执行指令,处理器执行计算机可执行指令以实现上述第一方面的虚拟物品的操作控制方法。
根据本公开的一个方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机可执行指令,计算机可执行指令在被处理器调用和执行时,计算机可执行指令促使处理器实现上述第一方面的虚拟物品的操作控制方法。
本公开实施例的虚拟物品的操作控制方法、装置和电子设备,响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动;从多个子容器中确定用于放置第一虚拟物品的目标子容器;响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,控制目标子容器显示在第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值;响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中。该方式中,当第一虚拟物品从第一存储容器移动至第二存储容器时,智能识别放置第一虚拟物品的目标子容器,并将目标子容器快速定位到第一虚拟物品所在第一当前位置,无需玩家拖动物品在第二存储容器上下滑动,减少了上下拖动物品寻找目标子容器的操作时间,提高了操作效率,降低了玩家对游戏的理解要求和试错成本,降低硬件设备的响应频率,有助于节约硬件设备的计算资源。
附图说明
图1为本公开实施例提供的一种虚拟物品的操作控制方法的流程图;
图2为本公开实施例提供的一种虚拟物品的操作控制的交互示意图;
图3为本公开实施例提供的另一种虚拟物品的操作控制的交互示意图;
图4为本公开实施例提供的另一种虚拟物品的操作控制的交互示意图;
图5为本公开实施例提供的另一种虚拟物品的操作控制的交互示意图;
图6为本公开实施例提供的另一种虚拟物品的操作控制的交互示意图;
图7为本公开实施例提供的一种虚拟物品的操作控制装置的结构示意图;
图8为本公开实施例提供的一种电子设备的结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合附图对本公开的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
在一些游戏场景中,通常需要玩家收集和养成各种游戏物资,比如生存逃离类游戏中,根据游戏需求,玩家需要将物资在仓库区域和整备区域之间进行高频转移。但是由于整备区域通常会被划分为不同类型的存储栏,且有些不同类型的存储栏可以存储相同的物资,比如整备区域有保险栏、武器栏、装备栏、消耗品栏等,消耗品道具能存储在保险栏或消耗品栏内。
相关技术中,玩家将仓库区域中的物品移动至整备区域,且整备区域中能放置该物品的存储栏有多个时,如果能放置该物品的存储栏在界面显示不全时,需要玩家拖动该物品将其在整备区域上下滑动,寻找对应的存储栏,然后在找到对应的存储栏后松手,即可完成物品转移。但是这种操作方式,需要玩家对物品类型和各个存储栏具有一定的认知基础,才可以快速在拖动的过程中找到能够放置该物品的存储栏,对于新手玩家很难快速定位到所能放置该物品的存储栏,每次需要手动上下滑动寻找整备区域能够放置的存储栏,当装备较多,需要转移大量物品时该操作将需要大量的时间,操作效率较低,且需要玩家对游戏有一定的理解,试错成本较高,造成玩家的操作效率和游戏体验感降低。
基于此,本公开实施例提供的一种虚拟物品的操作控制方法、装置和电子设备,该技术可以应用于手机、电脑、笔记本、或平板电脑等电子设备。
在本公开其中一种实施例中的虚拟物品的操作控制方法可以运行于本地终端设备或者是服务器。当虚拟物品的操作控制方法运行于服务器时,该方法则可以基于云交互系统来实现与执行,其中,云交互系统包括服务器和客户端设备。
在一可选的实施方式中,云交互系统下可以运行各种云应用,例如:云游戏。以云游戏为例,云游戏是指以云计算为基础的游戏方式。在云游戏的运行模式下,游戏程序的运行主体和游戏画面呈现主体是分离的,虚拟物品的操作控制方法的储存与运行是在云游戏服务器上完成的,客户端设备的作用用于数据的接收、发送以及游戏画面的呈现,举例而言,客户端设备可以是靠近用户侧的具有数据传输功能的显示设备,如,移动终端、电视机、计算机、掌上电脑等;但是进行信息处理的为云端的云游戏服务器。在进行游戏时,玩家操作客户端设备向云游戏服务器发送操作指令,云游戏服务器根据操作指令运行游戏,将游戏画面等数据进行编码压缩,通过网络返回客户端设备,最后,通过客户端设备进行解码并输出游戏画面。
在一可选的实施方式中,以游戏为例,本地终端设备存储有游戏程序并用于呈现游戏画面。本地终端设备用于通过图形用户界面与玩家进行交互,即,常规的通过电子设备下载安装游戏程序并运行。该本地终端设备将图形用户界面提供给玩家的方式可以包括多种,例如,可以渲染显示在终端的显示屏上,或者,通过全息投影提供给玩家。举例而言,本地终端设备可以包括显示屏和处理器,该显示屏用于呈现图形用户界面,该图形用户界面包括游戏画面,该处理器用于运行该游戏、生成图形用户界面以及控制图形用户界面在显示屏上的显示。
在一种可能的实施方式中,本公开实施例提供了一种虚拟物品的操作控制方法,通过终端设备提供图形用户界面,其中,终端设备可以是前述提到的本地终端设备,也可以是前述提到的云交互系统中的客户端设备。通常终端设备提供一图形用户界面,该图形用户界面包括第一存储容器的第一显示区域和第二存储容器的第二显示区域;第二存储容器中包括多个子容器。其中第二存储容器中包括的子容器用于放置虚拟物品,每个子容器可以放置多个虚拟物品,具体每个子容器包括多个放置位置,每个放置位置可以放置一个虚拟物品。换句话说,第二存储容器有多个存储分区(即上述子容器),每个分区用于放置多个虚拟物品,且每个分区用于放置不同类型的虚拟物品。
如图1所示,该虚拟物品的操作控制方法包括如下步骤:
步骤S102,响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动;
步骤S104,从多个子容器中确定用于放置第一虚拟物品的目标子容器;
上述第一存储容器通常是指游戏中设置的虚拟仓库区,上述第二存储容器通常是指游戏中设置的虚拟整备区,其中,虚拟整备区包括有多个不同类型的存储栏(即上述子容器),通常不同的子容器用于放置不同类型的虚拟物品,当然也有些不同类型的子容器可以存放相同类型的虚拟物品。上述第一虚拟物品可以是游戏中设置的虚拟武器、虚拟药品、虚拟装备、虚拟服装等。上述第二存储容器的第二显示区域可以同时显示多个子容器,如图2所示,其中第二显示区域显示有三个子容器(如图中的A1、B和A2三个子容器),每个子容器具有多个放置虚拟物品的存储区域,如图2所示,A1子容器包括10矩形方块,为用于放置虚拟物品的存储区域。
上述针对第一虚拟物品的移动控制操作可以是作用于第一虚拟物品的触控滑动操作。通常可以先点击放置在第一存储容器的目标位置的第一虚拟物品,在点击状态下移动鼠标或手指,可以控制第一虚拟物品随着手指或鼠标的移动而发生位置变化,进而可以将第一虚拟物品从目标位置拖出,控制第一虚拟物品在第一显示区域移动,此时,系统会智能识别第一虚拟物品,然后在第二存储容器的多个子容器中确定可以放置第一虚拟物品的目标子容器。其中,该目标子容器可以是一个也可以是多个。
比如,可以根据第一虚拟物品的大小、类型、属性等信息,以及子容器的存储空间、类型等信息,首先识别能够与第一虚拟物品相匹配的子容器,比如第一虚拟物品为手枪,则可以在多个子容器中寻找用于放置手枪的武器箱,再如第一虚拟物品为帽子,则可以在多个子容器中寻找用于放置衣物的服装箱等,另外,通常保险箱也可以放置手枪和帽子,所以识别能够与第一虚拟物品相匹配的子容器可以是武器箱和保险箱,或者服装箱和保险箱。然后还可以根据匹配的子容器的存储空间和第一虚拟物品的大小,确定是否有空间可以放置该第一虚拟物品,如果是则可以确定匹配的子容器为目标子容器。
步骤S106,响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,并控制将目标子容器显示在第二显示区域的第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值;
由前述可知,图形用户界面中显示有第二存储容器的第二显示区域,第二显示区域中会包括多个不同类型的子容器,比如,保险箱、武器箱、装备箱、消耗品箱等,对于消耗品道具可以存储在保险箱,也可以存储在消耗品箱中。上述第一当前位置为第二显示区域中第一虚拟物品所在的位置,上述第一虚拟物品可以是全部物品区域位于第二显示区域中,也可以是部分物品区域位于第二显示区域中(比如第一虚拟物品50%以上区域位于第二显示区域);上述第一指定子区域用于显示目标子容器,也就是说,该第一指定子区域的大小与目标子容器的大小相同。上述预设阈值可以根据游戏的实际需求进行设置,可以是第一指定子区域位于第一当前位置的上方的区域,或者位于第一当前位置下方的区域,但是,通常第一指定子区域位于第一当前位置的附近区域,只需移动较小的距离即可将第一虚拟物品从第一当前位置移动至第一指定子区域。
实际实现时,控制第一虚拟物品从第一显示区域移除的同时,移入第二显示区域时,首先会根据第一虚拟物品在第二显示区域的当前位置,即上述第一当前位置,确定该当前位置对应的指定子区域,即上述第一指定子区域。然后控制目标子容器显示在该指定子区域中,具体的控制方式可以是控制第二存储容器中的多个子容器滚动,使显示目标子容器显示在指定子区域。通常情况下,上述多个子容器是按照一定的顺序排列显示的,比如图2所示,按照子容器A1、子容器B、子容器A2等顺序排列的。
步骤S108,响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中。
上述第一虚拟物品在移动过程中,处于被点击或选中,同时被拖动的状态;移动控制结束,具体可以是玩家的手指离开选中并拖动的第一虚拟物品,或者是鼠标弹起,即为拖动释放操作和点击释放。当终端设备检测到针对第一虚拟物品的移动控制结束操作,停止该第一虚拟物品的移动。另外,如果第一虚拟物品在第一指定子区域的移动控制结束,先停止第一虚拟物品的移动,然后将第一虚拟物品放置在目标子容器的对应位置中,同时,在第二显示区域的目标子容器的物品放置位置显示第一虚拟物品的图标。
具体的,当目标子容器显示在第二显示区域的第一指定子区域时,如果当前显示的目标子容器为玩家想要放置的容器,且第一当前位置位于第一指定子区域,可以直接松手,或者控制鼠标弹起,将第一虚拟物品放置在目标子容器中。如果当前显示的目标子容器为玩家想要放置的容器,且第一当前位置与第一指定子区域之间的距离小于预设阈值,即第一指定子容器位于第一当前位置的附近区域,则需要控制第一虚拟物品移动至第一指定子区域,然后松手,或者控制鼠标弹起,将第一虚拟物品放置在目标子容器中。如果当前显示的目标子容器不是玩家想要放置的容器,则还可以控制第一虚拟物品在第二显示区域中移动,寻找合适的放置第一虚拟物品的目标子容器。
上述虚拟物品的操作控制方法,响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动;从多个子容器中确定用于放置第一虚拟物品的目标子容器;响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,控制目标子容器显示在第二显示区域的第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值;响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中。该方式中,当第一虚拟物品从第一存储容器移动至第二存储容器时,智能识别放置第一虚拟物品的目标子容器,并将目标子容器快速定位到第一虚拟物品所在第一当前位置,无需玩家拖动物品在第二存储容器上下滑动,减少了上下拖动物品寻找目标子容器的操作时间,提高了操作效率,降低了玩家对游戏的理解要求和试错成本。
上述第一虚拟物品预先放置在第一存储容器中的第一位置,如图2所示的方格1;下面描述上述步骤S102响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动的步骤,一种可能的实施方式:
响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品从第一位置移出。
举例说明,在初始状态下,第一虚拟物品放置在第一存储容器的第一位置,该第一位置可以显示为方格形式,如图2所示,第一虚拟物品A预先放置在第一存储容的第一位置,即图中的方格1。在手指或鼠标点击或选中第一虚拟物品的状态下,通过针对该第一虚拟物品的拖动操作,控制该第一虚拟物品在第一存储容器的第一显示区域移动,如图2所示,图中的仓库区即为上述第一存储容器的第一显示区域,控制第一虚拟物品从第一位置移出,也就是将第一虚拟物品从仓库区的方格1中移出,此时,第一虚拟物品在方格1中显示的图标消失。
该方式中,当控制第一虚拟物品从第一位置移出,即时对玩家的移动控制操作做出反馈,有利于玩家理解和操作。
下面描述上述步骤S102中,从多个子容器中确定放置第一虚拟物品的目标子容器的步骤,一种可能的实施方式:
根据第一虚拟物品的物品类型和子容器的容器类型,从多个子容器中确定能够放置第一虚拟物品的目标子容器。
上述第一显示区域通常位于图形用户界面的右侧区域,上述第二显示区域通常位于图形用户界面的左侧区域。如图2所示为一种虚拟物品的操作控制的交互示意图,图中包括仓库区(对应上述第一显示区域)和整备区(对应上述第二显示区域)。具体的,监听到针对第一虚拟物品从第一位置移出,根据物品类型和子容器的容器类型,从不同的子容器中确定放置第一虚拟物品的目标子容器。
通常不同的容器类型指示该子容器放置对应类型的虚拟物品,比如武器箱就用来放置武器(如手枪、刀具等),服装箱用来放置衣服、帽子、鞋子等,保险箱用来放置消耗品等。因此,可以根据第一虚拟物品的物品类型和子容器的容器类型,从多个子容器中确定可以放置该第一虚拟物品的目标子容器,该目标子容器可以是一个也可以多个,如果是多个,则说明该第一虚拟物品可以放置在不同类型的子容器中。
该方式中,当第一虚拟物品在第一显示区域移动时,即可根据物品类型和容器类型智能识别可以放置第一虚拟物品的目标子容器。
上述第二存储容器中包括按照指定顺序排列的多个子容器;控制将目标子容器显示在第一指定子区域的步骤,一种可能的实施方式:
控制第二显示区域滚动,使多个子容器中目标子容器显示在第一指定子区域;其中,多个子容器的指定排列顺序不变。
示例性的,如图3所示,控制列表滚动,即上述控制第二显示区域滚动,使第二存储容器的多个子容器中的目标子容器滚动至第一指定子区域,并使多个子容器中目标子容器显示在第一指定子区域。
另一种可能的实施方式:控制多个子容器中目标子容器从当前位置移出,并移动至第一指定子区域。具体的,控制第二显示区域不动,即控制第二存储容器不动,将多个子容器中的目标子容器从第二存储容器的当前位置移出,并移动至第一指定子区域,使该目标子容器显示在第一指定子区域。其中,上述目标子容器包括一个或者多个,一般都是按照顺序显示在第二显示区域。
下面根据步骤S106进行描述,上述当目标子容器为多个时,控制目标子容器显示在第二显示区域的第一指定子区域的步骤,一种可能的实施方式:
控制第二显示区域滚动,使目标子容器中距离第一当前位置最近的第一子容器显示在第一指定子区域。
实际实现时,点击或选中第一虚拟物品,如图3所示,将物品A(即上述第一虚拟物品)从右侧的仓库区(即上述第一显示区域)拖动至左侧的整备区(即上述第二显示区域)后,根据第一虚拟物品在整备区的位置,也就是第二显示区域的第一当前位置,确定第一指定子区域。然后,根据所有目标子容器与第一当前位置的距离,判断该距离的方式可以是,以整备区Y轴为判断标准,控制距离第一当前位置最近的第一子容器显示在整备区的第一指定子区域,如图3所示,第二显示区域的整备区的列表(即多个子容器)会向下滚动,将距离第一当前位置最近的目标子容器中的第一子容器A1显示在第一虚拟物品A所在的第一当前位置对应的第一指定子区域。
该方式中,当拖动第一虚拟物品至第二显示区域时,控制多个子容器的列表滚动,使距离第一虚拟物品最近的目标子容器显示在第一指定子区域,使虚拟物品能存储到哪个位置有充分的反馈,进一步提高了操作效率。
进一步的,当目标子容器为多个时,控制将目标子容器显示在第一指定子区域的步骤,另一种可能的实施方式:控制多个目标子容器从当前位置移出,使目标子容器中距离第一当前位置最近的第一子容器移动至第一指定子区域,并使目标子容器中除第一子容器以外的第二子容器移动至第一子容器之后的相邻区域;其中,第一子容器和第二子容器之间按照指定顺序排列。
具体的,控制第二显示区域不动,即控制多个子容器的列表不滚动,直接将多个目标子容器从当前位置移出,控制多个目标子容器中距离第一当前位置最近的第一子容器移动至第一指定子区域,由于多个目标子容器具有指定的排列顺序,也需要将目标子容器中除第一子容器以外的第二子容器按照指定顺序排序并移动至第一子容器之后,使第二子容器排在第一为的子容器与第一子容器相邻。
为了进一步提高玩家的游戏体验感,控制将目标子容器显示在第一指定子区域的步骤之后,上述方法还包括:
如果目标子容器中除第一子容器以外的第二子容器未显示在第二显示区域,控制第二子容器的容器标识显示在第二显示区域的第一边缘位置;其中,第一边缘位置为第二显示区域中距离第二子容器最近的边缘位置。
上述第一边缘位置可以为第二显示区域的上边缘、下边缘、左边缘或者右边缘,如果是上边缘和下边缘,具体可以根据整备区Y轴为距离判断标准;如果是左边缘和右边缘,具体可以根据整备区X轴为距离判断标准,在距离第二子容器最近的边缘位置显示第二子容器的容器标识,可以显示为第二子容器的名称和一个箭头指示,其中,第二子容器可以是一个或多个,第一子容器和第二子容器均为目标子容器。
举例说明,控制距离第一虚拟物品的第一当前位置最近的第一子容器显示在第二显示区域的第一指定子区域后,由于图形用户界面的大小有限,为了提示玩家在第二显示区域中,第一子容器的上方或者下方隐藏有其他的目标子容器,如图3所示,如果第二子容器在多个子容器列表的下方位置,会将第二子容器A2的名称显示在第二显示区域的下边缘,并且带有一个箭头指示,提示玩家在第一子容器A1下方还有一个目标子容器可以放置第一虚拟物品。
需要说明的是,如果第二显示区域最多可以显示三个子容器,如果目标子容器为两个,且第一指定子区域位于第二显示区域的上边缘或者中间区域,则第二显示区域可以直接显示这两个目标子容器,如果目标子容器包括四个,则可能会有一个或者两个甚至三个子容器不能显示在第二显示区域,此时,就需要在第一边缘位置显示一个或者两个甚至三个子容器的容器标识。
该方式中,通过显示目标子容器的容器标识可以提醒玩家除当前显示在第一指定子区域的目标容器,还有其他的目标子容器可以放置第一虚拟物品,进一步提高了玩家的操作效率和游戏体验。
为了进一步提高玩家的交流体验感,上述当目标子容器为多个时,控制将目标子容器显示在第一指定子区域的步骤之后,上述方法还包括:
响应于至少部分第一虚拟物品移动出第一指定子区域,根据移动后的第一虚拟物品在第二显示区域的第二当前位置,在第二显示区域内确定第二指定子区域,并控制将目标子容器的第二子容器显示在第二指定子区域;其中,第二当前位置位于第二指定子区域中,或者第二当前位置与第二指定子区域的距离小于预设阈值。
实际实现时,在第二显示区域的目标子容器中的第一子容器中,点击或选中第一虚拟物品从第一指定子区域向目标子容器的第二子容器移动,如图4所示,将第一虚拟物品从第一子容器A1的方格中移出,此时方格中第一虚拟物品的图标消失,控制第一虚拟物品在第二显示区域图标向目标子容器的第二子容器的容器标识的方向移动。在实际操作中,针对第一虚拟物品的移动控制操作,需要控制至少部分第一虚拟物品移出第一指定子区域,如图5所示,以整备区的Y轴为距离判断标准,可以控制第一虚拟物品A的图标高度大于自身高度的50%移出第一指定子区域,即可触发控制第二子容器显示在第二显示区域的第二指定子区域。
如图4和图5所示,第二当前位置位于第一指定子区域的下方,控制距离第二子容器显示在第二显示区域的第二指定子区域。具体如图6所示,在点击或选中第一虚拟物品的图标A移出第一指定子区域后,第二显示区域就会根据第一虚拟物品的移动方向,控制列表向上滚动,自动适配第二子容器A2移动至第一虚拟物品A的第二当前位置或附近,即第二指定子区域。使得在第二显示区域中寻找目标子容器的操作方式更加简单快捷。
该方式中,在目标子容器有多个的情况下,通过控制虚拟物品移动,即可再次触发列表滚动,自动适配移动方向上的目标子容器显示在虚拟物品的当前位置,使得在第二显示区域中寻找目标子容器的操作方式更加简单快捷。
控制将目标子容器显示在第一指定子区域的步骤之后,上述方法还包括:如果第一子容器未显示在第二显示区域,取消显示位于第二显示区域的第一边缘位置的容器标识;控制第一子容器的容器标识显示在第二显示区域的第二边缘位置;其中,第一边缘位置与第二边缘位置相对设置在第二显示区域中。
控制将目标子容器显示在第一指定子区域的步骤之后,如果玩家控制当前多个子容器的列表滚动了,使得第一子容器未显示在第二显示区域,就会控制取消当前显示的容器标识,然后根据滚动后第一子容器的滚动方向或列表的排列位置,在第二边缘位置显示第一子容器的容器标识。
举例说明,点击或选中第一虚拟物品A的图标移动至第二当前位置,然后控制第二子容器,如图6所示的第二子容器A2,显示在第二显示区域的第二指定子区域后,对于自动适配第二子容器A2之前,第二子容器A2显示在第二显示区域的第一边缘位置的如图4所示的容器标识进行取消显示。如图4所示,上述第一边缘位置为第二显示区域的下边缘位置。之后,控制第一子容器的容器标识,如图6所示的第一子容器A1名称和一个指示箭头显示在第二显示区域的上边缘位置,即上述第二边缘位置。
该方式中,当第二显示区域显示有目标子容器时,则取消显示边缘的该目标子容器的容器标识,当第二显示区域未显示有目标子容器时,则在对应的边缘区域显示该目标子容器的容器标识,以方便玩家通过容器标识了解各个目标子容器的位置,进一步提高了玩家的操作效率和游戏体验感。
为了进一步提高玩家的游戏体验感,从多个子容器中确定放置第一虚拟物品的目标子容器的步骤之后,上述方法还包括:
控制目标子容器以指定显示格式显示在第二显示区域。
上述指定显示格式用于提示玩家可以将第一虚拟物品放置在该目标子容器。具体的,在第二显示区域的多个子容器中确定放置第一虚拟物品的目标子容器后,控制目标子容器在第二显示区域显示为指定显示格式,该指定显示格式可以是高亮颜色显示,也可以是闪烁显示,还可以是遮罩显示等,如图2所示,目标子容器A1和目标子容器A2通过灰色显示方式指示上述指定显示格式,主要用于提示玩家灰色显示的子容器为目标子容器。
该方式中,通过指定显示格式显示目标子容器,便于玩家直观的了解当前可以放置第一虚拟物品的子容器,降低了玩家对游戏的理解成本,进而提高了玩家的游戏体验感。
上述目标子容器包括多个;控制目标子容器以指定显示格式显示在第二显示区域的步骤,一种可能的实施方式:
根据多个目标子容器的排列顺序,控制目标子容器中位于第一顺序的第一子容器以指定显示格式显示在第二显示区域的第三边缘位置对应的区域;其中,第三边缘位置为第二显示区域的第一滚动方向对应的边缘位置;
如果目标子容器中位于第一子容器之后的第二子容器未显示在第二显示区域,控制第二子容器,显示在第二显示区域的第四边缘位置;其中,第四边缘位置为第二显示区域的第二滚动方向对应的边缘位置,第一滚动方向与第二滚动方向相反。
具体的,如果第二显示区域的可滚动方向是上下滚动,则上述第一滚动方向为向上滚动方向,即上述第三边缘位置为第二显示区域的上边缘位置,上述第二滚动方向为向下滚动,即上述第四边缘位置为第二显示区域的下边缘位置;如果第二显示区域的可滚动方向是左右滚动,则上述第一滚动方向为向左滚动,即上述第三边缘位置为第二显示区域的左边缘位置,上述第二滚动方向为向右滚动,即上述第四边缘位置为第二显示区域的右边缘位置。
以上述第一滚动方向为向上滚动方向,即上述第三边缘位置为第二显示区域的上边缘位置,上述第二滚动方向为向下滚动,即上述第四边缘位置为第二显示区域的下边缘位置为例进行举例说明,玩家点击或选中第一显示区域的第一虚拟物品进行移动控制操作,根据目标子容器的排列顺序,如图2所示,将第一子容器A1显示在第二显示区域的上边缘位置对应的区域,在实际游戏场景中,通常在上述第一子容器之后,仍有部分或全部的第二子容器显示在第二显示区域的第四边缘位置对应的区域,如图2所示,上述第四边缘位置对应于第二显示区域的下边缘。或者,当第二子容器处于隐藏状态时,将第二子容器的容器标识,即第二子容器的名称和带有方向指示的箭头显示在第二显示区域的第四边缘位置,上述第四边缘位置对应于第二显示区域向下滚动。
前述方式中,实操性强,增加物资转移时对物品类的判断识别,减少玩家从仓库转移物资至整备区寻找类别占位的时间,极大增加操作效率;在物资转移时给予玩家明确能放置的栏位数量及操作方向目标,减少新手玩家上手门槛;在一个物资能存放到多个类别栏状态时,依靠玩家轻微的上下挪动即可判断玩家移动的方向,极大减少玩家的操作成本,降低硬件设备的响应频率,有助于节约硬件设备的计算资源。
对应上述方法实施例,参加图7所示的一种虚拟物品的操作控制装置,通常终端设备提供一图形用户界面,该图形用户界面包括第一存储容器的第一显示区域和第二存储容器的第二显示区域;第二存储容器中包括多个子容器;该装置包括:
虚拟物品移动模块71,用于响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动;
目标子容器确定模块72,用于从多个子容器中确定用于放置第一虚拟物品的目标子容器;
目标子容器显示模块73,用于响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,并控制将目标子容器显示在第二显示区域的第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值;
虚拟物品放置模块73,用于响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中。
上述虚拟物品的操作控制装置,响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动;从多个子容器中确定用于放置第一虚拟物品的目标子容器;响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,并控制将目标子容器显示在第二显示区域的第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值;响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中。该方式中,当第一虚拟物品从第一存储容器移动至第二存储容器时,智能识别放置第一虚拟物品的目标子容器,并将目标子容器快速定位到第一虚拟物品所在第一当前位置,无需玩家拖动物品在第二存储容器上下滑动,减少了上下拖动物品寻找目标子容器的操作时间,提高了操作效率,降低了玩家对游戏的理解要求和试错成本,降低硬件设备的响应频率,有助于节约硬件设备的计算资源。
可选地,上述虚拟物品移动模块,包括:响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品从第一位置移出。
可选地,上述虚拟物品移动模块,包括:根据第一虚拟物品的物品类型和子容器的容器类型,从多个子容器中确定能够放置第一虚拟物品的目标子容器。
可选地,上述第二存储容器中包括按照指定顺序排列的多个子容器;上述目标子容器显示模块,包括:控制第二显示区域滚动,使多个子容器中目标子容器显示在第一指定子区域;其中,多个子容器的指定排列顺序不变。
可选地,上述第二存储容器中包括按照指定顺序排列的多个子容器;上述目标子容器显示模块,包括:控制多个子容器中目标子容器从当前位置移出,并移动至第一指定子区域。
可选地,上述当目标子容器包括为多个时,上述目标子容器显示模块,包括:控制第二显示区域滚动,使目标子容器中距离第一当前位置最近的第一子容器显示在第一指定子区域。
可选地,上述当目标子容器为多个时,上述目标子容器显示模块,包括:控制多个目标子容器从当前位置移出,使目标子容器中距离第一当前位置最近的第一子容器移动至第一指定子区域,并使目标子容器中除第一子容器以外的第二子容器移动至第一子容器之后的相邻区域;其中,第一子容器和第二子容器之间按照指定顺序排列。
可选地,上述装置还包括:容器标识第一显示模块,用于:如果目标子容器中除第一子容器以外的第二子容器未显示在第二显示区域,控制目标子容器中除第一子容器以外的第二子容器的容器标识显示在第二显示区域的第一边缘位置;其中,第一边缘位置为第二显示区域中距离第二子容器最近的边缘位置。
可选地,上述当目标子容器为多个时,上述装置还包括:容器标识第二显示模块,用于:响应于至少部分第一虚拟物品移出第一指定子区域,根据移动后的第一虚拟物品在第二显示区域的第二当前位置,在第二显示区域内确定第二指定子区域,并控制将目标子容器的第二子容器显示在第二指定子区域;其中,第二当前位置位于第二指定子区域中,或者第二当前位置与第二指定子区域的距离小于预设阈值。
可选地,上述装置还包括:容器标识第三显示模块,用于:如果第一子容器未显示在第二显示区域,取消显示位于第二显示区域的第一边缘位置的容器标识;控制第一子容器的容器标识显示在第二显示区域的第二边缘位置;其中,第一边缘位置与第二边缘位置相对设置在第二显示区域中。
可选地,上述装置还包括:第六显示模块,用于:控制目标子容器以指定显示格式显示在第二显示区域。
可选地,上述当目标子容器为多个时,上述虚拟物品移动模块,包括:根据多个目标子容器的排列顺序,控制目标子容器中位于第一顺序的第一子容器以指定显示格式显示在第二显示区域的第三边缘位置对应的区域;其中,第三边缘位置为第二显示区域的第一滚动方向对应的边缘位置;如果目标子容器中位于第一子容器之后的第二子容器未显示在第二显示区域,控制第二子容器的容器标识,显示在第二显示区域的第四边缘位置;其中,第四边缘位置为第二显示区域的第二滚动方向对应的边缘位置;第一滚动方向与第二滚动方向相反。
本公开实施例提供的虚拟物品的操作控制装置,与上述实施例提供的虚拟物品的操作控制方法具有相同的技术特征,所以也能解决相同的技术问题,达到相同的技术效果。
本实施例还提供一种电子设备,包括处理器和存储器,存储器存储有能够被处理器执行的机器可执行指令,处理器执行机器可执行指令以实现上述虚拟物品的操作控制方法。该电子设备可以是服务器,也可以是触控终端设备。
参见图8所示电子设备包括处理器100和存储器101,该存储器101存储有能够被处理器100执行的机器可执行指令,该处理器100执行机器可执行指令以实现上述虚拟物品的操作控制方法,该方法通常终端设备提供一图形用户界面,图形用户界面包括第一存储容器的第一显示区域和第二存储容器的第二显示区域;第二存储容器中包括多个子容器;该方法包括以下步骤:
响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动;从多个子容器中确定用于放置第一虚拟物品的目标子容器;响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,并控制将目标子容器显示在第二显示区域的第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值;响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中。该方式中,当第一虚拟物品从第一存储容器移动至第二存储容器时,智能识别放置第一虚拟物品的目标子容器,并将目标子容器快速定位到第一虚拟物品所在第一当前位置,无需玩家拖动物品在第二存储容器上下滑动,减少了上下拖动物品寻找目标子容器的操作时间,提高了操作效率,降低了玩家对游戏的理解要求和试错成本,降低硬件设备的响应频率,有助于节约硬件设备的计算资源。
可选地,上述第一虚拟物品预先放置在第一存储容器中的第一位置;响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动的步骤,包括:响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品从第一位置移出。该方式中,当控制第一虚拟物品从第一位置移出,即时对玩家的移动控制操作做出反馈,有利于玩家理解和操作。
可选地,上述从多个子容器中确定放置第一虚拟物品的目标子容器的步骤,包括:根据第一虚拟物品的物品类型和子容器的容器类型,从多个子容器中确定能够放置第一虚拟物品的目标子容器。
可选地,上述第二存储容器中包括按照指定顺序排列的多个子容器;控制将目标子容器显示在第一指定子区域的步骤,包括:控制第二显示区域滚动,使多个子容器中目标子容器显示在第一指定子区域;其中,多个子容器的指定排列顺序不变。
可选地,上述第二存储容器中包括按照指定顺序排列的多个子容器;控制将目标子容器显示在第一指定子区域的步骤,包括:控制多个子容器中目标子容器从当前位置移出,并移动至第一指定子区域。
可选地,上述当目标子容器包括为多个时,控制将目标子容器显示在第二显示区域的第一指定子区域的步骤,包括:控制第二显示区域滚动,使目标子容器中距离第一当前位置最近的第一子容器显示在第一指定子区域。该方式中,当拖动第一虚拟物品至第二显示区域时,控制多个子容器的列表滚动,使距离第一虚拟物品最近的目标子容器显示在第一指定子区域,使虚拟物品能存储到哪个位置有充分的反馈,进一步提高了操作效率。
可选地,上述当目标子容器为多个时,控制将目标子容器显示在第一指定子区域的步骤,包括:控制多个目标子容器从当前位置移出,使目标子容器中距离第一当前位置最近的第一子容器移动至第一指定子区域,并使目标子容器中除第一子容器以外的第二子容器移动至第一子容器之后的相邻区域;其中,第一子容器和第二子容器之间按照指定顺序排列。
可选地,上述控制将目标子容器显示在第一指定子区域的步骤之后,上述方法还包括:如果目标子容器中除第一子容器以外的第二子容器未显示在第二显示区域,控制目标子容器中除第一子容器以外的第二子容器的容器标识显示在第二显示区域的第一边缘位置;其中,第一边缘位置为第二显示区域中距离第二子容器最近的边缘位置。该方式中,通过显示目标子容器的容器标识可以提醒玩家除当前显示在第一指定子区域的目标容器,还有其他的目标子容器可以放置第一虚拟物品,进一步提高了玩家的操作效率和游戏体验。
可选地,上述当目标子容器为多个时,控制将目标子容器显示第一指定子区域的步骤之后,上述方法还包括:响应于至少部分第一虚拟物品移动出第一指定子区域,根据移动后的第一虚拟物品在第二显示区域的第二当前位置,在第二显示区域内确定第二指定子区域,并控制将目标子容器的第二子容器显示在第二显示区域的第二指定子区域;其中,第二当前位置位于第二指定子区域中,或者第二当前位置与第二指定子区域的距离小于预设阈值。该方式中,在目标子容器有多个的情况下,通过控制虚拟物品移动,即可再次触发列表滚动,自动适配移动方向上的目标子容器显示在虚拟物品的当前位置,使得在第二显示区域中寻找目标子容器的操作方式更加简单快捷。
可选地,上述控制将目标子容器显示第一指定子区域的步骤之后,上述方法还包括:上述方法还包括:如果第一子容器未显示在第二显示区域,取消显示位于第二显示区域的第一边缘位置的容器标识;控制第一子容器的容器标识显示在第二显示区域的第二边缘位置;其中,第一边缘位置与第二边缘位置相对设置在第二显示区域中。该方式中,当第二显示区域显示有目标子容器时,则取消显示边缘的该目标子容器的容器标识,当第二显示区域未显示有目标子容器时,则在对应的边缘区域显示该目标子容器的容器标识,以方便玩家通过容器标识了解各个目标子容器的位置,进一步提高了玩家的操作效率和游戏体验感。
可选地,上述从多个子容器中确定放置第一虚拟物品的目标子容器的步骤之后,上述方法还包括:控制目标子容器以指定显示格式显示在第二显示区域。该方式中,通过指定显示格式显示目标子容器,便于玩家直观的了解当前可以放置第一虚拟物品的子容器,降低了玩家对游戏的理解成本,进而提高了玩家的游戏体验感。
可选地,上述当目标子容器为多个时,控制目标子容器以指定显示格式显示在第二显示区域的步骤,包括:根据多个目标子容器的排列顺序,控制目标子容器中位于第一顺序的第一子容器以指定显示格式显示在第二显示区域的第三边缘位置对应的区域;其中,第三边缘位置为第二显示区域的第一滚动方向对应的边缘位置;如果目标子容器中位于第一子容器之后的第二子容器未显示在第二显示区域,控制第二子容器的容器标识,显示在第二显示区域的第四边缘位置;其中,第四边缘位置为第二显示区域的第二滚动方向对应的边缘位置;第一滚动方向与第二滚动方向相反。
进一步地,图8电子设备还包括总线102和通信接口103,处理器100、通信接口103和存储器101通过总线102连接。
其中,存储器101可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口103(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。总线102可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
处理器100可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器100中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器100可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processor,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本公开实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本公开实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器101,处理器100读取存储器101中的信息,结合其硬件完成前述实施例的方法的步骤。
本实施例还提供一种机器可读存储介质,机器可读存储介质存储有机器可执行指令,机器可执行指令在被处理器调用和执行时,机器可执行指令促使处理器实现上述虚拟物品的操作控制方法,该方法通常终端设备提供一图形用户界面,图形用户界面包括第一存储容器的第一显示区域和第二存储容器的第二显示区域;第二存储容器中包括多个子容器;该方法包括以下步骤:
响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动;从多个子容器中确定用于放置第一虚拟物品的目标子容器;响应于第一虚拟物品移动至第二显示区域,基于第一虚拟物品在第二显示区域的第一当前位置,在第二显示区域内确定第一指定子区域,并控制将目标子容器显示在第二显示区域的第一指定子区域;其中,第一当前位置位于第一指定子区域中,或者第一当前位置与第一指定子区域的距离小于预设阈值;响应于移动控制操作的结束,将第一虚拟物品放置在目标子容器中。该方式中,当第一虚拟物品从第一存储容器移动至第二存储容器时,智能识别放置第一虚拟物品的目标子容器,并将目标子容器快速定位到第一虚拟物品所在第一当前位置,无需玩家拖动物品在第二存储容器上下滑动,减少了上下拖动物品寻找目标子容器的操作时间,提高了操作效率,降低了玩家对游戏的理解要求和试错成本,降低硬件设备的响应频率,有助于节约硬件设备的计算资源。
可选地,上述第一虚拟物品预先放置在第一存储容器中的第一位置;响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品移动的步骤,包括:响应针对第一存储容器中第一虚拟物品的移动控制操作,控制第一虚拟物品从第一位置移出。该方式中,当控制第一虚拟物品从第一位置移出,即时对玩家的移动控制操作做出反馈,有利于玩家理解和操作。
可选地,上述从多个子容器中确定放置第一虚拟物品的目标子容器的步骤,包括:根据第一虚拟物品的物品类型和子容器的容器类型,从多个子容器中确定能够放置第一虚拟物品的目标子容器。
可选地,上述第二存储容器中包括按照指定顺序排列的多个子容器;控制将目标子容器显示在第一指定子区域的步骤,包括:控制第二显示区域滚动,使多个子容器中目标子容器显示在第一指定子区域;其中,多个子容器的指定排列顺序不变。
可选地,上述第二存储容器中包括按照指定顺序排列的多个子容器;控制将目标子容器显示在第一指定子区域的步骤,包括:控制多个子容器中目标子容器从当前位置移出,并移动至第一指定子区域。
可选地,上述当目标子容器包括为多个时,控制将目标子容器显示在第二显示区域的第一指定子区域的步骤,包括:控制第二显示区域滚动,使目标子容器中距离第一当前位置最近的第一子容器显示在第一指定子区域。该方式中,当拖动第一虚拟物品至第二显示区域时,控制多个子容器的列表滚动,使距离第一虚拟物品最近的目标子容器显示在第一指定子区域,使虚拟物品能存储到哪个位置有充分的反馈,进一步提高了操作效率。
可选地,上述当目标子容器为多个时,控制将目标子容器显示在第一指定子区域的步骤,包括:控制多个目标子容器从当前位置移出,使目标子容器中距离第一当前位置最近的第一子容器移动至第一指定子区域,并使目标子容器中除第一子容器以外的第二子容器移动至第一子容器之后的相邻区域;其中,第一子容器和第二子容器之间按照指定顺序排列。
可选地,上述控制将目标子容器显示在第一指定子区域的步骤之后,上述方法还包括:如果目标子容器中除第一子容器以外的第二子容器未显示在第二显示区域,控制目标子容器中除第一子容器以外的第二子容器的容器标识显示在第二显示区域的第一边缘位置;其中,第一边缘位置为第二显示区域中距离第二子容器最近的边缘位置。该方式中,通过显示目标子容器的容器标识可以提醒玩家除当前显示在第一指定子区域的目标容器,还有其他的目标子容器可以放置第一虚拟物品,进一步提高了玩家的操作效率和游戏体验。
可选地,上述当目标子容器为多个时,控制将目标子容器显示第一指定子区域的步骤之后,上述方法还包括:响应于至少部分第一虚拟物品移动出第一指定子区域,根据移动后的第一虚拟物品在第二显示区域的第二当前位置,在第二显示区域内确定第二指定子区域,并控制将目标子容器的第二子容器显示在第二显示区域的第二指定子区域;其中,第二当前位置位于第二指定子区域中,或者第二当前位置与第二指定子区域的距离小于预设阈值。该方式中,在目标子容器有多个的情况下,通过控制虚拟物品移动,即可再次触发列表滚动,自动适配移动方向上的目标子容器显示在虚拟物品的当前位置,使得在第二显示区域中寻找目标子容器的操作方式更加简单快捷。
可选地,上述控制将目标子容器显示第一指定子区域的步骤之后,上述方法还包括:上述方法还包括:如果第一子容器未显示在第二显示区域,取消显示位于第二显示区域的第一边缘位置的容器标识;控制第一子容器的容器标识显示在第二显示区域的第二边缘位置;其中,第一边缘位置与第二边缘位置相对设置在第二显示区域中。该方式中,当第二显示区域显示有目标子容器时,则取消显示边缘的该目标子容器的容器标识,当第二显示区域未显示有目标子容器时,则在对应的边缘区域显示该目标子容器的容器标识,以方便玩家通过容器标识了解各个目标子容器的位置,进一步提高了玩家的操作效率和游戏体验感。
可选地,上述从多个子容器中确定放置第一虚拟物品的目标子容器的步骤之后,上述方法还包括:控制目标子容器以指定显示格式显示在第二显示区域。该方式中,通过指定显示格式显示目标子容器,便于玩家直观的了解当前可以放置第一虚拟物品的子容器,降低了玩家对游戏的理解成本,进而提高了玩家的游戏体验感。
可选地,上述当目标子容器为多个时,控制目标子容器以指定显示格式显示在第二显示区域的步骤,包括:根据多个目标子容器的排列顺序,控制目标子容器中位于第一顺序的第一子容器以指定显示格式显示在第二显示区域的第三边缘位置对应的区域;其中,第三边缘位置为第二显示区域的第一滚动方向对应的边缘位置;如果目标子容器中位于第一子容器之后的第二子容器未显示在第二显示区域,控制第二子容器的容器标识,显示在第二显示区域的第四边缘位置;其中,第四边缘位置为第二显示区域的第二滚动方向对应的边缘位置;第一滚动方向与第二滚动方向相反。
本公开实施例所提供的虚拟物品的操作控制方法、装置、电子设备以及存储介质的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
另外,在本公开实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域技术人员而言,可以具体情况理解上述术语在本公开中的具体含义。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
在本公开的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本公开和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本公开的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。
最后应说明的是:以上实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。

Claims (15)

  1. 一种虚拟物品的操作控制方法,通常终端设备提供一图形用户界面,所述图形用户界面包括第一存储容器的第一显示区域和第二存储容器的第二显示区域;所述第二存储容器中包括多个子容器;所述方法包括:
    响应针对所述第一存储容器中第一虚拟物品的移动控制操作,控制所述第一虚拟物品移动;
    从所述多个子容器中确定用于放置所述第一虚拟物品的目标子容器;
    响应于所述第一虚拟物品移动至所述第二显示区域,基于所述第一虚拟物品在所述第二显示区域的第一当前位置,在所述第二显示区域内确定第一指定子区域,并控制将所述目标子容器显示在所述第一指定子区域;其中,所述第一当前位置位于所述第一指定子区域中,或者所述第一当前位置与所述第一指定子区域的距离小于预设阈值;
    响应于所述移动控制操作的结束,将所述第一虚拟物品放置在所述目标子容器中。
  2. 根据权利要求1所述的方法,其中,所述第一虚拟物品预先放置在所述第一存储容器中的第一位置;
    响应针对所述第一存储容器中第一虚拟物品的移动控制操作,控制所述第一虚拟物品移动的步骤,包括:
    响应针对所述第一存储容器中第一虚拟物品的移动控制操作,控制所述第一虚拟物品从所述第一位置移出。
  3. 根据权利要求1所述的方法,其中,从所述多个子容器中确定放置所述第一虚拟物品的目标子容器的步骤,包括:
    根据所述第一虚拟物品的物品类型和所述子容器的容器类型,从所述多个子容器中确定能够放置所述第一虚拟物品的目标子容器。
  4. 根据权利要求1所述的方法,其中,所述第二存储容器中包括按照指定顺序排列的多个子容器;
    所述控制将所述目标子容器显示在所述第一指定子区域的步骤,包括:
    控制所述第二显示区域滚动,使所述多个子容器中所述目标子容器显示在所述第一指定子区域;其中,所述多个子容器的指定排列顺序不变。
  5. 根据权利要求1所述的方法,其中,所述第二存储容器中包括按照指定顺序排列的多个子容器;
    所述控制将所述目标子容器显示在所述第一指定子区域的步骤,包括:
    控制所述多个子容器中所述目标子容器从当前位置移出,并移动至所述第一指定子区域。
  6. 根据权利要求4所述的方法,其中,当所述目标子容器为多个时,所述控制将所述目标子容器显示在所述第一指定子区域的步骤,包括:
    控制所述第二显示区域滚动,使所述目标子容器中距离所述第一当前位置最近的第一子容器显示在所述第一指定子区域。
  7. 根据权利要求5所述的方法,其中,当所述目标子容器为多个时,所述控制将所述目标子容器显示在所述第一指定子区域的步骤,包括:
    控制多个所述目标子容器从当前位置移出,使所述目标子容器中距离所述第一当前位置最近的第一子容器移动至所述第一指定子区域,并使所述目标子容器中除所述第一子容器以外的第二子容器移动至所述第一子容器之后的相邻区域;其中,所述第一子容器和所述第二子容器之间按照所述指定顺序排列。
  8. 根据权利要求6或7所述的方法,其中,控制将所述目标子容器显示在所述第一指定子区域的步骤之后,所述方法还包括:
    如果所述目标子容器中除所述第一子容器以外的第二子容器未显示在所述第二显示区域,控制所述第二子容器的容器标识显示在所述第二显示区域的第一边缘位置;其中,所述第一边缘位置为所述第二显示区域中距离所述第二子容器最近的边缘位置。
  9. 根据权利要求1所述的方法,其中,当所述目标子容器为多个时,控制将所述目标子容器显示在所述第一指定子区域的步骤之后,所述方法还包括:
    响应于至少部分所述第一虚拟物品移动出所述第一指定子区域,根据移动后的所述第一虚拟物品在所述第二显示区域的第二当前位置,在所述第二显示区域内确定第二指定子区域,并控制将所述目标子容器的第二子容器显示在所述第二指定子区域;其中,所述第二当前位置位于所述第二指定子区域中,或者所述第二当前位置与所述第二指定子区域的距离小于所述预设阈值。
  10. 根据权利要求8所述的方法,其中,控制将所述目标子容器显示在所述第一指定子区域的的步骤之后,所述方法还包括:
    如果所述第一子容器未显示在所述第二显示区域,取消显示位于所述第二显示区域的第一边缘位置的容器标识;
    控制所述第一子容器的容器标识显示在所述第二显示区域的第二边缘位置;其中,所述第一边缘位置与所述第二边缘位置相对设置在所述第二显示区域中。
  11. 根据权利要求1所述的方法,其中,从所述多个子容器中确定放置所述第一虚拟物品的目标子容器的步骤之后,所述方法还包括:
    控制所述目标子容器以指定显示格式显示在所述第二显示区域。
  12. 根据权利要求11所述的方法,其中,当所述目标子容器为多个时,所述控制所述目标子容器以指定显示格式显示在所述第二显示区域的步骤,包括:
    根据多个所述目标子容器的排列顺序,控制所述目标子容器中位于第一顺序的第一子容器以所述指定显示格式显示在所述第二显示区域的第三边缘位置对应的区域;其中,所述第三边缘位置为所述第二显示区域的第一滚动方向对应的边缘位置;
    如果所述目标子容器中位于所述第一子容器之后的第二子容器未显示在所述第二显示区域,控制所述第二子容器的容器标识,显示在所述第二显示区域的第四边缘位置;其中,所述第四边缘位置为所述第二显示区域的第二滚动方向对应的边缘位置;所述第一滚动方向与所述第二滚动方向相反。
  13. 一种虚拟物品的操作控制装置,通常终端设备提供一图形用户界面,所述图形用户界面包括第一存储容器的第一显示区域和第二存储容器的第二显示区域;所述第二存储容器中包括多个子容器;所述装置包括:
    虚拟物品移动模块,用于响应针对所述第一存储容器中第一虚拟物品的移动控制操作,控制所述第一虚拟物品移动;
    目标子容器确定模块,用于从所述多个子容器中确定用于放置所述第一虚拟物品的目标子容器;
    目标子容器显示模块,用于响应于所述第一虚拟物品移动至所述第二显示区域,基于所述第一虚拟物品在所述第二显示区域的第一当前位置,在所述第二显示区域内确定第一指定子区域,并控制将所述目标子容器显示在所述第二显示区域的第一指定子区域;其中,所述第一当前位置位于所述第一指定子区域中,或者所述第一当前位置与所述第一指定子区域的距离小于预设阈值;
    虚拟物品放置模块,用于响应于所述移动控制操作的结束,将所述第一虚拟物品放置在所述目标子容器中。
  14. 一种电子设备,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的计算机可执行指令,所述处理器执行所述计算机可执行指令以实现权利要求1-12任一项所述的虚拟物品的操作控制方法。
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令在被处理器调用和执行时,所述计算机可执行指令促使所述处理器实现权利要求1-12任一项所述的虚拟物品的操作控制方法。
PCT/CN2023/105035 2022-08-22 2023-06-30 虚拟物品的操作控制方法、装置和电子设备 WO2024041218A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211008075.5A CN117654045A (zh) 2022-08-22 2022-08-22 虚拟物品的操作控制方法、装置和电子设备
CN202211008075.5 2022-08-22

Publications (2)

Publication Number Publication Date
WO2024041218A1 WO2024041218A1 (zh) 2024-02-29
WO2024041218A9 true WO2024041218A9 (zh) 2024-04-11

Family

ID=90012421

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/105035 WO2024041218A1 (zh) 2022-08-22 2023-06-30 虚拟物品的操作控制方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN117654045A (zh)
WO (1) WO2024041218A1 (zh)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113262485A (zh) * 2021-06-04 2021-08-17 网易(杭州)网络有限公司 虚拟物品的操作控制方法、装置和电子设备
CN113262483A (zh) * 2021-06-04 2021-08-17 网易(杭州)网络有限公司 虚拟物品的操作控制方法、装置和电子设备

Also Published As

Publication number Publication date
WO2024041218A1 (zh) 2024-02-29
CN117654045A (zh) 2024-03-08

Similar Documents

Publication Publication Date Title
US10857462B2 (en) Virtual character controlling method and apparatus, electronic device, and storage medium
US10768812B2 (en) Method, terminal, and storage medium for operating objects displayed on a graphical user interface
US11287969B2 (en) Object processing method and apparatus, storage medium, and electronic apparatus
CN108205430B (zh) 双屏移动终端、相应操控方法及存储介质
JP7138804B2 (ja) インタフェース表示方法及びその装置、端末並びにコンピュータプログラム
CN104090745A (zh) 一种优化游戏运行环境的方法和装置
US10528247B2 (en) Operation system having touch operation enabling use of large screen area, operation control method, and operation control program
CN104066488A (zh) 用于游戏系统的图形用户界面
CN111701233B (zh) 界面显示控制方法、装置、设备及存储介质
JP2023552772A (ja) 仮想アイテムの切り替え方法、装置、端末及びコンピュータプログラム
CN112399006B (zh) 文件发送方法、装置及电子设备
US9619134B2 (en) Information processing device, control method for information processing device, program, and information storage medium
CN113262483A (zh) 虚拟物品的操作控制方法、装置和电子设备
US20230241499A1 (en) Position adjustment method and apparatus for operation control, terminal, and storage medium
CN113407075B (zh) 图标整理方法、装置和电子设备
WO2024041218A9 (zh) 虚拟物品的操作控制方法、装置和电子设备
CN113457157A (zh) 游戏中虚拟道具的切换方法、装置以及触控终端
WO2024002182A1 (zh) 虚拟物品的显示控制方法、装置和电子设备
CN114470771A (zh) 信息处理方法及装置
KR20230169350A (ko) 프로그램 제어 방법, 장치, 전자기기 및 판독가능 저장 매체
US11491404B2 (en) Method and system for replacing player in sports game
CN113194345A (zh) 一种信号处理方法、装置、机顶盒及存储介质
CN112221123A (zh) 一种虚拟对象切换方法、装置、计算机设备和存储介质
KR20200069703A (ko) 가상키보드에 입력창을 동적으로 변화시키는 입력시스템 및 입력방법
CN116301540A (zh) 游戏的操作控制方法、装置和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23856308

Country of ref document: EP

Kind code of ref document: A1