WO2022252748A1 - 虚拟物品的处理方法、装置、设备及存储介质 - Google Patents

虚拟物品的处理方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2022252748A1
WO2022252748A1 PCT/CN2022/081016 CN2022081016W WO2022252748A1 WO 2022252748 A1 WO2022252748 A1 WO 2022252748A1 CN 2022081016 W CN2022081016 W CN 2022081016W WO 2022252748 A1 WO2022252748 A1 WO 2022252748A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual item
preset
sliding
user
button
Prior art date
Application number
PCT/CN2022/081016
Other languages
English (en)
French (fr)
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 WO2022252748A1 publication Critical patent/WO2022252748A1/zh

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • 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
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present disclosure relates to the technical field of games, and in particular to a processing method, device, equipment and storage medium for virtual items.
  • one way to transfer virtual items is to click the button of the virtual item in the interface of the current storage space to call up the operable interface of the virtual item, then select the virtual item to be transferred in the operable interface, and then click " Save to Warehouse” button.
  • Another way is to display the interfaces of two storage spaces at the same time, and the user transfers the virtual item from the current storage space to another storage space by dragging and dropping. And, double-click the virtual item button, or set a "store in warehouse” button in the interface of the current storage space, the user clicks the "store in warehouse” button once, and then clicks the item to be transferred in the current storage space Virtual item.
  • the above-mentioned virtual item transfer operation method has many operational steps, needs to display two interfaces at the same time, and the double-click operation is usually given other control functions, etc. It is inconvenient to operate.
  • the present disclosure provides a processing method, device, device, and storage medium for virtual items, which are used to solve the existing operation mode of virtual item transfer. There are many operation steps, two interfaces need to be displayed at the same time, and the double-click operation is usually given other controls. Inconvenient operation such as functions.
  • the present disclosure provides a method for processing virtual items.
  • a graphical user interface is displayed on a terminal device, and the graphical user interface includes a storage space interface of the virtual item; the method includes: in the storage space A virtual item button used to control the virtual item is displayed in the interface; prompt information of the virtual item button is displayed; the prompt information is used to prompt the user to slide toward a preset direction from the operating range of the virtual item button to Transfer the virtual item corresponding to the virtual item button from the current storage space to another storage space; in response to the user's finger sliding from the operating range of the virtual item button toward a preset direction, and the parameters of the sliding operation conform to the preset The operation of the parameter transfers the virtual item.
  • the present disclosure provides a virtual item processing device, which displays a graphical user interface on a terminal device, the graphical user interface includes a storage space interface of the virtual item, and the device includes: a display module configured to In order to display the virtual item button used to control the virtual item in the storage space interface; the display module is also configured to display the prompt information of the virtual item button; the prompt information is used to prompt the user Swipe toward a preset direction within the operating range of the virtual item button to transfer the virtual item corresponding to the virtual item button from the current storage space to another storage space; the transfer module is configured to execute a response to the user's finger Swipe toward a preset direction within the operating range of the virtual item button, and the parameter of the sliding operation conforms to the preset parameter, and the virtual item is transferred.
  • a display module configured to In order to display the virtual item button used to control the virtual item in the storage space interface
  • the display module is also configured to display the prompt information of the virtual item button
  • the prompt information is used to prompt the user Swipe
  • the present disclosure provides an electronic device, including: a processor, a memory, and an interactive interface; the memory is used to store executable instructions of the processor; wherein, the processor is configured to execute the The instructions are executable to perform the method of the first aspect.
  • the present disclosure provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to implement the method as described in the first aspect when executed by a processor .
  • the present disclosure provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
  • the processing method, device, device, and storage medium for virtual items displayed a storage space interface including virtual items on a terminal device, and display virtual item buttons for controlling virtual items on the storage space interface, and virtual items
  • the prompt information of the button which is used to prompt the user to slide towards the preset direction within the operation range of the virtual item button, so as to transfer the virtual item corresponding to the virtual item button from the current storage space to another storage space; and when the user is detected
  • the finger slides toward a preset direction within the operating range of the virtual item button, and the parameters of the sliding operation conform to the preset parameters, and the virtual item is transferred.
  • the user only needs one sliding operation to realize the transfer of the virtual item, and the sliding operation is from within the operating range of the virtual item button to the preset direction. Therefore, compared with simultaneously displaying two interface, and dragging a virtual item from one interface to another storage space, the user's finger moves less distance and does not need to display two interfaces.
  • the operation is simple and the number of operations is small, and it can also reduce the complexity of the operation when a large number of virtual items need to be transferred.
  • FIG. 1A is a schematic diagram of a backpack interface provided by an embodiment of the present disclosure
  • Fig. 1B is a schematic diagram of an operable interface of a virtual item in a backpack provided by an embodiment of the present disclosure
  • FIG. 1C is a schematic diagram of an interface for transferring virtual items by dragging and dropping according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart 1 of a processing method for virtual items provided by an embodiment of the present disclosure
  • FIG. 3 is an example diagram in which the prompt information provided by an embodiment of the present disclosure is an icon
  • FIG. 4 is an example diagram in which the prompt information provided by the embodiment of the present disclosure is an animation
  • FIG. 5 is an example diagram in which prompt information provided by an embodiment of the present disclosure is text
  • FIG. 6 is the second flow chart of the method for processing virtual items provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a sliding method provided by an embodiment of the present disclosure.
  • Fig. 8 is a schematic diagram of another sliding mode provided by an embodiment of the present disclosure.
  • FIG. 9 is a flowchart of an example of a method for processing virtual items provided by an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a virtual item processing device provided by an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • buttons on the user interface (UI) of the game there are a large number of buttons on the user interface (UI) of the game, each button corresponds to a variety of operation methods, such as click, long press, drag, double-click, etc., and each operation method of each button is defined Give a certain game function to express the different intentions of game players (hereinafter referred to as users).
  • the game includes many virtual items, which can provide convenience for users, for example, props in the game. These virtual items can be placed in different storage spaces according to the needs of users. However, the user's needs may change, so the user often transfers the virtual items in one storage space to another storage space.
  • FIG. 1A is a schematic diagram of a backpack interface provided by an embodiment of the present disclosure.
  • the backpack interface includes a plurality of buttons.
  • Each rectangular box in FIG. 1A is a button for a virtual item, and each button corresponds to a common virtual item held by a game player.
  • many games will also have a warehouse.
  • the warehouse interface is similar to the backpack interface, and also includes multiple buttons. Each button corresponds to a virtual item that is not commonly used by the game player.
  • the game also provides the function of selling virtual items and setting up stalls, and these functions also require the transfer of virtual items.
  • the following takes the user taking out virtual items from the backpack and storing them in the warehouse as an example to introduce the transfer of virtual items. Specifically, there are four ways:
  • the user needs to click the button of the virtual item in the backpack interface to call out the operable interface of the virtual item.
  • FIG. 1B is a schematic diagram of an operable interface of a virtual item in a backpack provided by an embodiment of the present disclosure.
  • the operable interface includes a button for "depositing" the virtual item into the warehouse. Afterwards, the user clicks the button of "store in warehouse” in the operable interface to transfer the virtual item from the backpack to the warehouse.
  • the above-mentioned operation method requires two clicks, and an operable interface needs to be introduced, so the operation is cumbersome. If there are a large number of virtual items that need to be transferred from the backpack to the warehouse, this redundant operation will degrade the user experience.
  • FIG. 1C is a schematic diagram of an interface for transferring virtual items by dragging and dropping according to an embodiment of the present disclosure.
  • the interface includes a backpack interface and a warehouse interface, and the user can transfer the virtual items in the backpack to the warehouse by dragging and dropping.
  • the backpack interface and the warehouse interface need to be displayed at the same time, but the screen in mobile games is relatively small, and it is difficult for the terminal device to display the backpack interface and the warehouse interface at the same time, and it will affect the appearance of the interface.
  • dragging virtual items from the backpack interface to the warehouse interface requires a relatively large moving distance. If multiple virtual items are transferred, multiple long-distance drag operations are required, which is inconvenient to operate.
  • some games use double-clicking the button of the virtual item to store the virtual item in the backpack into the warehouse. This operation is simple and does not occupy the screen. However, the double-click in the game is usually given another function, which is to use the item immediately, so this operation method has not been adopted by most games.
  • the current method of transferring virtual items has problems such as many operations and the need to display multiple interfaces.
  • the inventors of the present disclosure propose the following technical idea: in the game, the operations that the user can perform include: single click, double click, drag and slide. At present, the single-click and double-click operations of virtual item buttons are endowed with corresponding game functions, and dragging is actually more laborious for users. Therefore, this disclosure uses sliding operations as operations for transferring virtual items, and A prompt message is displayed on the storage space interface of the terminal device to prompt the user how to transfer the virtual item. When the user's sliding operation satisfies the preset condition, the operation of transferring the virtual item is performed.
  • FIG. 2 is a first flowchart of a method for processing virtual items provided by an embodiment of the present disclosure. As shown in Figure 2, the method for processing virtual items in this embodiment includes the following steps:
  • Step S200 displaying virtual item buttons for controlling virtual items in the storage space interface.
  • the subject of execution of the method in this embodiment may be a server, and the server may be a single server or a server cluster including multiple servers.
  • the server communicates with the terminal device, and the terminal device may be electronic devices such as smart phones, computers, and IPads.
  • the terminal device can display a graphical user interface (Graphical User Interface, GUI), and provide the user with a human-computer interaction function.
  • the server may send the display content to be displayed to the terminal device for display on the terminal device.
  • the server may control the terminal device to display the storage space interface of the virtual item in the graphical user interface on the terminal device, and the storage space interface includes a virtual item button for the user to control the virtual item.
  • the virtual item button By operating the virtual item button, the user can control the virtual item, for example, transfer the virtual item.
  • Step S201 displaying the prompt information of the virtual item button.
  • the prompt information is used to prompt the user to slide toward a preset direction within the operating range of the virtual item button, so as to transfer the virtual item corresponding to the virtual item button from the current storage space to another storage space.
  • the user slides toward the preset direction from within the operating range of the virtual item button, which can be understood as the user's finger's initial operating point is located within the operating range of the virtual item button, and slides from within the operating range of the virtual item button toward the preset direction.
  • the operating range of the virtual item button can be understood as the effective touch area of the virtual item button, and the operation performed by the user within the operating range of the virtual item button is regarded as an operation on the virtual item button.
  • the prompt information may be to transfer virtual items from the backpack to the warehouse, or to transfer virtual items from the warehouse to the backpack, or to transfer virtual items in the backpack or warehouse to the stall interface, or to Transfer the virtual items in the backpack or warehouse to the virtual item sales interface.
  • each rectangular frame in FIG. 1A is a virtual item button, and the area shown by the rectangular frame in the figure is the operating range of a virtual item button.
  • the prompt information can be set within the operating range of the virtual item button, or outside the operating range of the virtual item button.
  • Step S202 in response to the operation that the user's finger slides toward a preset direction from within the operating range of the virtual item button, and the parameters of the sliding operation conform to the preset parameters, the virtual item is transferred.
  • prompt information is displayed on the storage space interface.
  • the user slides toward the preset direction from within the operating range of the virtual item button, and the terminal device detects the sliding operation of the user's finger in real time and obtains the parameters of the sliding operation, and Judging whether the parameters of the sliding operation conform to the preset parameters, and sending the judgment result to the server, if the sliding operation is to slide towards the preset direction from the operating range of the virtual item button, and the parameters of the sliding operation conform to the preset parameters, the server controls the terminal The device no longer displays the icon of the virtual item in the current storage space interface of the terminal device, but displays the icon of the virtual item in another storage space interface.
  • the terminal device detects the sliding operation of the user's finger in real time, obtains the parameters of the sliding operation and sends them to the server, and the server judges whether the parameters of the sliding operation meet the preset parameters. If the sliding operation is from the operating range of the virtual item button to the preset direction sliding, and the parameters of the sliding operation conform to the preset parameters, the icon of the virtual item will no longer be displayed in the current storage space interface of the terminal device, but the icon of the virtual item will be displayed in another storage space interface.
  • a storage space interface including virtual items is displayed on the terminal device, and a virtual item button for controlling the virtual item and a prompt message of the virtual item button are displayed on the storage space interface.
  • the prompt information is used to prompt the user to Sliding towards the preset direction within the operation range of the virtual item button, thereby transferring the virtual item corresponding to the virtual item button from the current storage space to other storage spaces; Swipe, and the parameters of the swipe operation conform to the preset parameters, and the virtual items are transferred.
  • the user only needs one sliding operation to realize the transfer of the virtual item, and the sliding operation is from within the operating range of the virtual item button to the preset direction.
  • the operation is simple and the number of operations is small, and it can also reduce the complexity of the operation when a large number of virtual items need to be transferred.
  • the storage space interface of the terminal device has display content.
  • the visual experience may be different at different positions of the prompt information on the storage space interface. No matter where the prompt information is set, it must be ensured that the prompt information does not block the icon of the virtual item.
  • the display position of the prompt information may also be determined according to the type of the prompt information. The following will specifically introduce how to display different types of prompt information:
  • the type of prompt information includes text, icon and moving picture; and the display content of the text, icon and moving picture is different, and the proportion in the storage space interface is also different. Therefore, it can be determined whether to display the prompt information within the operation range of the virtual item button or outside the operation range of the virtual item button according to the type of the prompt information. Specifically, text can be displayed outside the operating range of the virtual item button, and icons and animations can be displayed within the operating range of the virtual item button.
  • the preset direction is the target direction or the direction whose angle with the target direction is smaller than the preset angle, wherein the target direction is the icon relative to the virtual item button direction of the center.
  • icons may be provided at the upper left corner, lower left corner, upper right corner, and lower right corner in the operation range of the virtual item button.
  • the icon can provide the user with a guide for the sliding operation, so as to prompt the user to slide towards the location of the icon.
  • the preset direction is the lower left direction of the operating range of the virtual item button.
  • FIG. 3 is an example diagram in which prompt information provided by an embodiment of the present disclosure is an icon.
  • the icon is set at the lower left corner within the operating range of the virtual item button. The user slides to the lower left corner of the operating range of the virtual item button, and when the sliding parameters meet the preset parameters, the terminal device automatically performs the operation of transferring the virtual item from the current storage space to another storage space.
  • the animation can show the action of sliding in a preset direction.
  • the animation can also be set in the upper left corner, lower left corner, upper right corner and lower right corner of the operating range of the virtual item button.
  • the animation can provide the user with a guide to the sliding operation, prompting the user to swipe towards the location of the icon.
  • the animation can be set at the lower left corner of the operating range of the virtual item button.
  • the preset direction is the lower left direction of the operating range of the virtual item button.
  • FIG. 4 is an example diagram in which the prompt information provided by the embodiment of the present disclosure is an animation.
  • the left side of the arrow in the figure is the initial state diagram of the animation. It can be seen that in the initial state, it displays a blank picture; the middle of the arrow is the intermediate state diagram of the animation. As you can see, the middle In the state, it displays an arrow with a length of L1; the right side of the arrow is the final state diagram of the animation, and it can be seen that in the final state, it displays an arrow with a length of L2.
  • the moving diagram is displayed sequentially and repeatedly according to the three state diagrams shown from left to right in FIG. 4 . It should be understood that in this embodiment, the animation diagram is divided into three state diagrams for the convenience of readers to understand. In the actual display effect, the animation should be a gradually displayed arrow.
  • the text since the content to be displayed is long, if the text is displayed within the operation range of the virtual item button, the icon of the virtual item may be blocked. Therefore, the text can be set outside the operation range of the virtual item button.
  • FIG. 5 is an example diagram in which prompt information provided by an embodiment of the present disclosure is text.
  • the text content is "Please slide to the bottom left of the range of items to be transferred to transfer the items to the warehouse".
  • the text content can be set in any blank position of the backpack interface.
  • any one type of prompt information may be displayed, and two types of prompt information may be displayed at the same time, for example, text and icons are displayed at the same time, or text and moving pictures are displayed at the same time.
  • the user can perform a sliding operation within the operating range of the virtual item button, and some sliding operations may be invalid sliding operations. For example, a sliding operation performed by the user due to an accidental touch.
  • this embodiment sets the following Several forms of preset parameters, and real-time detection of sliding operations to obtain the sliding parameters of the sliding operation. If the user performs a sliding operation within the operating range of the virtual item button, and the parameters of the sliding operation meet the preset parameters, the virtual item will be executed. Perform the transfer operation.
  • the preset parameter may be a preset sliding distance.
  • the virtual item in response to the user sliding toward the preset direction from within the operating range of the virtual item button, and the parameters of the sliding operation conform to the preset parameters, the virtual item is transferred, including: responding to the user's finger moving from within the operating range of the virtual item button The operation of sliding towards a preset direction and the sliding distance is greater than or equal to the preset sliding distance transfers the virtual item.
  • this operation is regarded as the operation of storing backpack items into the warehouse. For other situations other than this one, it is considered as an invalid operation. Specifically, it includes the following situations:
  • this operation is determined to be a click operation on the virtual item button.
  • this operation is determined to be a virtual item transfer operation, the user will not respond to subsequent operations. That is to say, once the conditions for the virtual item transfer operation are met during the finger sliding process, then when the user continues to slide the finger or releases the finger, it is determined to be an invalid operation.
  • the preset parameter may be a preset sliding time.
  • the virtual item in response to the user sliding towards the preset direction within the operating range of the virtual item button, and the parameters of the sliding operation conform to the preset parameters, the virtual item is transferred, including: responding to the user's finger moving from within the operating range of the virtual item button The operation of sliding towards a preset direction, and the sliding time is greater than or equal to the preset sliding time, transfers the virtual item.
  • the preset parameter may be a preset sliding track.
  • the virtual item in response to the user sliding toward the preset direction from within the operating range of the virtual item button, and the parameters of the sliding operation conform to the preset parameters, the virtual item is transferred, including: responding to the user's finger moving from within the operating range of the virtual item button Swipe toward a preset direction, and the sliding track conforms to the preset sliding track operation, and the virtual item is transferred.
  • the icon or animation can be a preset sliding track, such as a straight line or a curve with an arrow. The user slides along the preset sliding track to realize the function of transferring virtual items.
  • FIG. 6 is the second flowchart of the method for processing virtual items provided by the embodiments of the present disclosure.
  • the processing method of the virtual item includes the following steps:
  • Step S601. Obtain the pressing time of the virtual item button by the user.
  • Step S602 if the pressing time is greater than or equal to the preset time, then display the prompt information of the virtual item button.
  • Step S603 if the pressing time is less than the preset time, the prompt information of the virtual item button is not displayed.
  • the terminal device detects the pressing time of the user's finger on the virtual item button in real time, and sends the pressing time to the server.
  • the server judges whether the pressing time is less than the preset time, and controls the terminal device to display it in the storage space interface of the terminal device according to the judgment result. Or do not display the tooltip for the virtual item button.
  • the terminal device detects the pressing time of the user's finger on the virtual item button in real time, and judges whether the pressing time is less than the preset time, and then sends the judgment result of whether the pressing time is less than the preset time to the server, and the server can control the terminal according to the judgment result.
  • the device displays or does not display the prompt information of the virtual item button in the storage space interface of the terminal device.
  • the operations that the user can perform include the following three actions: pressing the button with a finger; sliding the finger on the user interface; releasing the finger.
  • the terminal device detects that the user's finger has clicked on the button of the virtual item and immediately releases the finger, this operation is regarded as a click operation, and the control function corresponding to the click operation is executed, such as calling out the operable interface of the virtual item (tips interface) or detailed operation interface.
  • the prompt information of the virtual item button can be displayed to remind the user that the next sliding operation will be performed judgment steps.
  • this embodiment can pre-set a preset time, by detecting the pressing time of the user's finger on the virtual item button, to determine whether the user's finger immediately releases the finger after clicking the virtual item button, so as to determine whether it is necessary to display Prompt information. Specifically, if the time for the user's finger to click the virtual item button is less than the preset time, it is determined that the user's finger is released immediately; if the time for the user's finger to click the virtual item button exceeds the preset time, it is determined that the user's finger is not released immediately.
  • step S602 and step S603 in this embodiment is not limited.
  • the user's finger may accidentally slide out of the operating range of the virtual item button, and at this time the user slides back into the operating range of the virtual item button and continues to slide within the operating range of the virtual item button. In this case, it should continue to detect whether the sliding parameters of the sliding operation conform to the preset parameters, and it cannot be determined as an invalid operation. However, if the user slides his finger out of the operating range of the virtual item button and releases the finger, it can be directly determined as an invalid operation. At this time, the user may have misoperated the virtual item button. Therefore, the present disclosure also proposes the following embodiments, specifically including:
  • the rest position of the user's finger on the screen is called a touch point.
  • the touch point may be anywhere on the game screen.
  • screen coordinates are used to represent the position of the touch point, specifically two-dimensional coordinates (x, y). Since the user initially clicks the virtual item button, the initial touch point stays within the operating range of the virtual item button.
  • the touch point falls outside the operating range of the virtual item button, it indicates that the user's finger has slid out of the operating range of the virtual item button. If the user releases the finger at this time, the current operation An operation that is neither a single click nor a virtual item transfer, but an invalid operation that does not perform any action. If the user does not release the finger, but slides from outside the operating range of the virtual item button to within the operating range of the virtual item button, that is, the touch point falls back into the operating range of the virtual item button from outside the operating range of the virtual item button , then continue to perform the step of detecting within the range of the virtual item button.
  • Fig. 7 is a schematic diagram of a sliding manner provided by an embodiment of the present disclosure. As shown in Figure 7, it can be seen from the sliding trajectory that the user slides from within the operating range of the virtual item button to outside the operating range of the virtual item button, and then slides back to the virtual item button from outside the operating range of the virtual item button within the operation range of the virtual item, continue to perform the step of detecting within the range of the virtual item button.
  • FIG. 8 is a schematic diagram of another sliding manner provided by an embodiment of the present disclosure. As shown in FIG. 8 , it can be seen from the sliding track that the user slides from within the operating range of the virtual item button to out of the operating range of the virtual item button and releases his finger, which is determined to be an invalid operation at this time.
  • the method of this embodiment may also Including: hiding the icon and prompt information of the virtual item corresponding to the virtual item button.
  • the server controls the terminal device to hide the icon and prompt information of the virtual item corresponding to the virtual item button in the current storage space interface of the terminal device.
  • FIG. 9 is a flowchart of an example of a method for processing virtual items provided by an embodiment of the present disclosure. As shown in Figure 9, this example includes the following steps:
  • step S902 the coordinates of the touch point on the screen are recorded as (x, y). If it is detected that the user's finger touches the screen for the first time, the contact point between the user's finger and the screen is recorded as the initial contact point, and the distance currently sliding toward the lower left corner is set to 0, and then step S902 is executed.
  • step S903 If not, return to step S901; if yes, display the prompt information of the virtual item button, and execute S904;
  • an icon is displayed at the lower left corner of the virtual item button to remind the user that the sliding operation detection step will be entered.
  • the size of the icon can be set to the size of the icon that does not block the virtual item.
  • the contact point between the user's finger and the screen is detected after a predetermined delay time, it means that the user's finger is still on the screen, and the current touch point coordinates (x1, y1) are recorded.
  • distance>25 it is judged as a virtual item transfer operation.
  • 25 is a minimum limit selected based on experience to prevent players from misoperation due to hand shaking.
  • a blank button without a virtual item icon is left on the storage space interface of the terminal device. And, the remaining operations of the user's fingers will no longer take effect on the blank button.
  • FIG. 10 is a schematic structural diagram of a device for processing virtual items provided by an embodiment of the present disclosure.
  • the virtual item processing device displays a graphical user interface on the terminal device, and the graphical user interface includes a virtual item storage space interface.
  • the virtual item processing device includes: a display module 1001 and a transfer module 1002;
  • the display module 1001 is configured to display virtual item buttons used to control virtual items in the storage space interface;
  • the display module 1001 is further configured to display the prompt information of the virtual item button; the prompt information is used to prompt the user to slide toward a preset direction from within the operation range of the virtual item button, so as to move the virtual item corresponding to the virtual item button. Items are transferred from the current storage space to other storage spaces;
  • the transfer module 1002 is configured to transfer the virtual item in response to the operation that the user's finger slides toward a preset direction from within the operating range of the virtual item button, and the parameter of the sliding operation conforms to the preset parameter.
  • the prompt information includes an icon
  • the icon is set within the operating range of the virtual item button
  • the preset direction is the target direction or the angle between the target direction and the target direction is smaller than the preset The direction of the angle
  • the target direction is the direction of the icon relative to the center of the virtual item button.
  • the prompt information includes a moving picture
  • the moving picture is set within the operation range of the virtual item button, and is used to show an action of sliding toward a preset direction.
  • the prompt information includes text, and the text is set outside the operating range of the virtual item button.
  • the preset parameters include: any one of a preset sliding trajectory, a preset sliding time, and a preset sliding distance; correspondingly, the transfer module 1002 is specifically configured to execute: responding When the user's finger slides toward a preset direction within the operating range of the virtual item button, and the sliding track conforms to the preset sliding track, the virtual item is transferred; or, in response to the user's finger Sliding toward a preset direction within the operation range of the virtual item button, and the operation of sliding time greater than or equal to the preset sliding time, the virtual item is transferred; or, in response to the user’s finger moving from the virtual item Swipe toward a preset direction within the operating range of the button, and the operation of sliding the distance greater than or equal to the preset sliding distance will transfer the virtual item.
  • the device further includes: an acquisition module 1003;
  • the acquiring module 1003 is configured to acquire the pressing time of the user on the virtual item button
  • the display module 1001 is configured to display the prompt information of the virtual item button when the pressing time is greater than or equal to a preset time; Displaying the prompt information of the virtual item button.
  • the transfer module 1002 is configured to execute sliding to the operation range of the virtual item button again after detecting that the user's finger slides to the operation range of the virtual item button. Slide in and toward the preset direction, and when the parameters of the sliding operation meet the preset parameters, transfer the virtual item; the transfer module 1002 is also configured to execute In the case of sliding to outside the operating range of the virtual item button and releasing the finger, it is determined as an invalid operation, and the operation of transferring the virtual item is not performed.
  • the device further includes: a hiding module 1004; the hiding module 1004 is configured to hide the icon of the virtual item corresponding to the virtual item button and the prompt information.
  • the virtual item processing device provided by the embodiments of the present disclosure can be used to implement the technical solution of the virtual item processing method in the above-mentioned embodiments, and its implementation principle and technical effect are similar, and will not be repeated here.
  • each module of the above device is only a division of logical functions, and may be fully or partially integrated into one physical entity or physically separated during actual implementation.
  • these modules can all be implemented in the form of calling software through processing elements; they can also be implemented in the form of hardware; some modules can also be implemented in the form of calling software through processing elements, and some modules can be implemented in the form of hardware.
  • the transfer module 1002 can be a separate processing element, and can also be integrated in a chip of the above-mentioned device.
  • it can also be stored in the memory of the above-mentioned device in the form of program code, and processed by a certain chip of the above-mentioned device.
  • the component invokes and executes the functions of the transfer module 1002 above.
  • the implementation of other modules is similar.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • the processing element here may be an integrated circuit, which has a signal processing capability.
  • each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the terminal device may include: a processor 1101 , a memory 1102 and an interaction interface 1103 .
  • the electronic device may be a server, and the server may control the terminal device to display a graphical user interface, and the graphical user interface includes a storage space interface.
  • the processor 1101 executes the computer-executable instructions stored in the memory, so that the processor 1101 executes the solutions in the foregoing embodiments.
  • the processor 1101 can be a general processor, including a central processing unit CPU, a network processor (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 gate or transistor logic devices, discrete hardware components.
  • the memory 1102 is connected to the processor 1101 through the system bus and communicates with each other, and the memory 1102 is used for storing computer program instructions.
  • the interaction interface 1103 is used to provide human-computer interaction functions for users.
  • the system bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the system bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • Transceivers are used to enable communication between database access devices and other computers such as clients, read-write libraries, and read-only libraries.
  • Memory may include random access memory (RAM) and may also include non-volatile memory.
  • the prompt information is used to prompt the user to slide towards a preset direction from within the operating range of the virtual item button, so as to transfer the virtual item corresponding to the virtual item button from the current storage space to other storage spaces;
  • the virtual item In response to an operation in which the user's finger slides toward a preset direction from within the operating range of the virtual item button, and a parameter of the sliding operation conforms to a preset parameter, the virtual item is transferred.
  • the prompt information includes an icon, the icon is set within the operating range of the virtual item button, and the preset direction is the target direction or the angle between the target direction and the target direction is smaller than the preset angle.
  • the target direction is the direction of the icon relative to the center of the virtual item button.
  • the prompt information includes a moving picture
  • the moving picture is set within the operating range of the virtual item button, and is used to show an action of sliding toward a preset direction.
  • the prompt information includes text, and the text is set outside the operating range of the virtual item button.
  • the preset parameters include: any one of a preset sliding track, a preset sliding time, and a preset sliding distance;
  • the operation of transferring the virtual item in response to the user’s finger sliding toward the preset direction from within the operation range of the virtual item button, and the parameter of the sliding operation conforming to the preset parameter includes:
  • the virtual item is transferred;
  • the virtual item In response to an operation in which the user's finger slides toward a preset direction from within the operating range of the virtual item button, and the sliding distance is greater than or equal to the preset sliding distance, the virtual item is transferred.
  • the method also includes:
  • the prompt information of the virtual item button is not displayed.
  • the method also includes:
  • the The method in response to the operation that the user's finger slides toward a preset direction from the operation range of the virtual item button, and the parameter of the sliding operation conforms to the preset parameter, after the virtual item is transferred, the The method also includes:
  • the icon of the virtual item corresponding to the virtual item button and the prompt information are hidden.
  • the user only needs one sliding operation to realize the transfer of the virtual item, and the sliding operation is from within the operating range of the virtual item button to the preset direction. Therefore, compared with simultaneously displaying two interface, and dragging a virtual item from one interface to another storage space, the user's finger moves less distance and does not need to display two interfaces.
  • the operation is simple and the number of operations is small, and it can also reduce the complexity of the operation when a large number of virtual items need to be transferred.
  • the electronic device provided by the embodiments of the present disclosure can be used to implement the technical solution of the method for processing virtual items in the above embodiments, and its implementation principle and technical effect are similar, and will not be repeated here.
  • Embodiments of the present disclosure also provide a chip for running instructions, and the chip is used to execute the technical solution of the method for processing virtual items in the above embodiments.
  • the embodiment of the present disclosure also provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, and when the computer instructions are run on the computer, the computer executes the technical solution of the virtual item processing method of the above-mentioned embodiment :
  • the prompt information is used to prompt the user to slide towards a preset direction from within the operating range of the virtual item button, so as to transfer the virtual item corresponding to the virtual item button from the current storage space to other storage spaces;
  • the virtual item In response to an operation in which the user's finger slides toward a preset direction from within the operating range of the virtual item button, and a parameter of the sliding operation conforms to a preset parameter, the virtual item is transferred.
  • the prompt information includes an icon, the icon is set within the operating range of the virtual item button, and the preset direction is the target direction or the angle between the target direction and the target direction is smaller than the preset angle.
  • the target direction is the direction of the icon relative to the center of the virtual item button.
  • the prompt information includes a moving picture
  • the moving picture is set within the operating range of the virtual item button, and is used to show an action of sliding toward a preset direction.
  • the prompt information includes text, and the text is set outside the operating range of the virtual item button.
  • the preset parameters include: any one of a preset sliding track, a preset sliding time, and a preset sliding distance;
  • the operation of transferring the virtual item in response to the user’s finger sliding toward the preset direction from within the operation range of the virtual item button, and the parameter of the sliding operation conforming to the preset parameter includes:
  • the virtual item is transferred;
  • the virtual item In response to an operation in which the user's finger slides toward a preset direction from within the operating range of the virtual item button, and the sliding distance is greater than or equal to the preset sliding distance, the virtual item is transferred.
  • the method also includes:
  • the prompt information of the virtual item button is not displayed.
  • the method also includes:
  • the The method in response to the operation that the user's finger slides toward a preset direction from the operation range of the virtual item button, and the parameter of the sliding operation conforms to the preset parameter, after the virtual item is transferred, the The method also includes:
  • the icon of the virtual item corresponding to the virtual item button and the prompt information are hidden.
  • the user only needs one sliding operation to realize the transfer of the virtual item, and the sliding operation is from within the operating range of the virtual item button to the preset direction. Therefore, compared with simultaneously displaying two interface, and dragging a virtual item from one interface to another storage space, the user's finger moves less distance and does not need to display two interfaces.
  • the operation is simple and the number of operations is small, and it can also reduce the complexity of the operation when a large number of virtual items need to be transferred.
  • An embodiment of the present disclosure also provides a computer program product, the computer program product includes a computer program stored in a computer-readable storage medium, at least one processor can read the computer program from the computer-readable storage medium, at least one processor When the computer program is executed, the technical solution of the method for processing virtual items in the above embodiments can be realized.

Abstract

一种虚拟物品的处理方法、装置、设备及存储介质。该方法在终端设备上显示图形用户界面,图形用户界面中包括虚拟物品的存储空间界面,该方法包括:在存储空间界面中显示用于控制虚拟物品的虚拟物品按钮(S200);显示虚拟物品按钮的提示信息(S201),该提示信息用于提示用户自虚拟物品按钮的操作范围内朝向预设方向滑动,以将虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;响应于用户手指自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将虚拟物品进行转移(S202)。上述方法能够快速实现虚拟物品的转移,且操作次数少,操作简单。

Description

虚拟物品的处理方法、装置、设备及存储介质
相关申请的交叉引用
本公开要求于2021年06月03日提交的申请号为202110618032.8、名称为“虚拟物品的处理方法、装置、设备及存储介质”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。
技术领域
本公开涉及游戏技术领域,尤其涉及一种虚拟物品的处理方法、装置、设备及存储介质。
背景技术
游戏中存在大量的虚拟物品,这些虚拟物品被存储在多个存储空间中。在一些场景下,用户需要将虚拟物品从一个存储空间转移至其他存储空间。
目前,对虚拟物品进行转移,有一种方式是在当前存储空间的界面中点击虚拟物品的按钮,调出虚拟物品的可操作界面,之后在可操作界面中选择待转移的虚拟物品,再点击“存入仓库”的按钮。还有一些方式是同时显示两个存储空间的界面,用户采用拖拽的方式将虚拟物品从当前存储空间转移至其他存储空间。以及,双击虚拟物品的按钮,或者,在当前存储空间的界面中设置一个“存入仓库”的按钮,用户通过单击一次“存入仓库”的按钮,再在当前存储空间中点击待转移的虚拟物品。
然而,上述虚拟物品转移的操作方式,存在操作步骤多、需要同时显示两个界面、以及双击操作通常被赋予其他控制功能等操作不便的问题。
需要说明的是,上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。
发明内容
本公开提供一种虚拟物品的处理方法、装置、设备及存储介质,用以解决现有的虚拟物品转移的操作方式,操作步骤多、需要同时显示两个界面、以及双击操作通常被赋予其他控制功能等操作不便的问题。
第一方面,本公开提供一种虚拟物品的处理方法,在终端设备上显示图形用户界面,所述图形用户界面中包括所述虚拟物品的存储空间界面;所述方法包括:在所述存储空间界面中显示用于控制所述虚拟物品的虚拟物品按钮;显示所述虚拟物品按钮的提示信息;所述提示信息用于提示用户自所述虚拟物品按钮的操作范围内朝向预设方向滑动,以将所述虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符 合预设参数的操作,将所述虚拟物品进行转移。
第二方面,本公开提供一种虚拟物品的处理装置,在终端设备上显示图形用户界面,所述图形用户界面中包括所述虚拟物品的存储空间界面,所述装置包括:显示模块,被配置为执行在所述存储空间界面中显示用于控制所述虚拟物品的虚拟物品按钮;所述显示模块,还被配置为执行显示所述虚拟物品按钮的提示信息;所述提示信息用于提示用户自所述虚拟物品按钮的操作范围内朝向预设方向滑动,以将所述虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;转移模块,被配置为执行响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移。
第三方面,本公开提供一种电子设备,包括:处理器,存储器,交互接口;所述存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行第一方面的方法。
第四方面,本公开提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如第一方面所述的方法。
第五方面,本公开提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现第一方面所述的方法。
本公开提供的虚拟物品的处理方法、装置、设备及存储介质,通过在终端设备上显示包括虚拟物品的存储空间界面,以及在存储空间界面显示用于控制虚拟物品的虚拟物品按钮,和虚拟物品按钮的提示信息,该提示信息用于提示用户自虚拟物品按钮的操作范围内朝向预设方向滑动,从而将虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;并且在检测到用户手指自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数,将虚拟物品进行转移。本实施例中,用户只需要一次滑动操作,即可实现虚拟物品的转移,并且滑动操作是自虚拟物品按钮的操作范围内朝向预设方向,因此,相较于在终端设备上同时显示两个界面,并将虚拟物品从一个界面拖动至另一个存储空间而言,用户手指移动的距离少,并且不需要显示两个界面。对用户来说,操作简单,且操作次数少,还能够减少大量虚拟物品需要进行转移的情况下,操作的繁琐度。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1A为本公开实施例提供的背包界面的示意图;
图1B为本公开实施例提供的背包中虚拟物品的可操作界面的示意图;
图1C为本公开实施例提供的通过拖拽的方式转移虚拟物品的界面示意图;
图2为本公开实施例提供的虚拟物品的处理方法的流程图一;
图3为本公开实施例提供的提示信息为图标的示例图;
图4为本公开实施例提供的提示信息为动图的示例图;
图5为本公开实施例提供的提示信息为文字的示例图;
图6为本公开实施例提供的虚拟物品的处理方法的流程图二;
图7为本公开实施例提供的一种滑动方式的示意图;
图8为本公开实施例提供的另一种滑动方式的示意图;
图9为本公开实施例提供的虚拟物品的处理方法的示例的流程图;
图10为本公开实施例提供的虚拟物品的处理装置的结构示意图;
图11为本公开实施例提供的电子设备的结构示意图。
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
游戏的交互界面(User Interface,UI)上有大量的按钮,每一个按钮对应有多种操作方式,例如点击、长按、拖拽、双击等等,并且每个按钮的每种操作方式都被赋予某项游戏功能,以表达游戏玩家(以下简称用户)的不同意图。
游戏中包括很多虚拟物品,这些虚拟物品能够为用户提供方便,例如,游戏中的道具。这些虚拟物品根据用户的需求,可以放置在不同的存储空间中。而用户的需求可能会发生变化,因此,用户经常会将一个存储空间中的虚拟物品转移至另一个存储空间。
在一些场景中,游戏中通常有多个背包系统(以下简称背包),用来存放不同种类的虚拟物品。另外,很多游戏还会有一个仓库系统(以下简称仓库),也用来存放不同种类的虚拟物品。用户会将一些常用的虚拟物品放置在背包中,将一些不常用的虚拟物品放置在仓库中。图1A为本公开实施例提供的背包界面的示意图。
如图1A所示,该背包界面包括多个按钮,图1A中每个矩形方框即为一个虚拟物品的按钮,每个按钮对应游戏玩家所持有的一个常用虚拟物品。另外,很多游戏还会有一个仓库,仓库界面与背包界面类似,同样包括多个按钮,每个按钮对应游戏玩家所持有的一个不常用的虚拟物品。
在另一些场景中,游戏中还提供虚拟物品的出售功能以及摆摊功能,这些功能同样需要进行虚拟物品的转移。
下面以用户从背包中取出虚拟物品再存放到仓库为例,对虚拟物品的转移进行介绍。具体可以有如下四种方式:
在第一种实现方式中,用户需要在背包界面中点击虚拟物品的按钮,呼出虚拟物品的可操作界面。
图1B为本公开实施例提供的背包中虚拟物品的可操作界面的示意图。
如图1B所示,该可操作界面包括将该虚拟物品“存入仓库”的按钮。之后,用户在可操作界面中点击“存入仓库”的按钮,以将虚拟物品从背包转移至仓库。
对于一个虚拟物品,上述操作方式需要两次点击操作,且还需引入可操作界面,操作比较繁琐。如果有大量的虚拟物品需要从背包转移到仓库,那么这种冗余的操作会降低用户体验。
在第二种实现方式中,很多游戏采用拖拽的方式将背包中的虚拟物品转移到仓库。
图1C为本公开实施例提供的通过拖拽的方式转移虚拟物品的界面示意图。
如图1C所示,该界面包括背包界面和仓库界面,用户通过拖拽的方式可以将背包中的虚拟物品转移至仓库。
该种方式中需同时显示背包界面和仓库界面,而手游中屏幕比较小,同时显示背包界面和仓库界面对于终端设备来说比较困难,而且影响界面的美观。另外,将虚拟物品从背包界面拖动到仓库界面,移动距离比较大,如果将多个虚拟物品进行转移,就需要多次较长距离的拖动操作,操作不方便。
在第三种实现方式中,有一些游戏使用双击虚拟物品的按钮来实现将背包中虚拟物品存入仓库,这样的操作既简便又不占用屏幕。但游戏中的双击通常被赋予了另外一个功能,就是立即使用该物品,因此该操作方式并未被大部分游戏采用。
在第四种实现方式中,需要在背包界面上再放置一个“存入仓库”的按钮。用户需要先单击一次“存入仓库”按钮,再单击背包中需要转移的虚拟物品的按钮,然后才能将虚拟物品存放进仓库。这种实现方式仍然需要两次点击操作,而且为了与单击背包中虚拟物品的按钮进行区分,需要多次点击“存入仓库”的按钮,因此,操作仍然较繁琐。
综上所述,目前的虚拟物品的转移方式存在操作次数多、需要展示多个界面等操作不便的问题。
针对上述技术问题,本公开的发明人提出如下技术构思:在游戏中,用户能够进行的操作包括:单击、双击、拖动和滑动。而目前虚拟物品按钮的单击和双击操作均被赋予了相应的游戏功能,而拖动对于用户而言,实际上比较费力,因此,本公开以滑动操作作为对虚拟物品进行转移的操作,并且在终端设备的存储空间界面上显示一提示信息,以对用户如何进行虚拟物品的转移进行提示。在用户的滑动操作满足预设条件的情况下,执行将虚拟物品进行转移的操作。如此,对于用户而言,实际上只需要一次滑动操作即 可实现虚拟物品的转移,对于终端设备而言,也不需要同时显示两个界面。因此,能够提供一种操作便捷的虚拟物品转移的操作方式,为用户提供操作上的便利性。
下面结合附图以具体的几个实施例对本公开提供的虚拟物品的处理方法进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程在某些实施例中不再赘述。
图2为本公开实施例提供的一种虚拟物品的处理方法的流程图一。如图2所示,本实施例的虚拟物品的处理方法,包括如下步骤:
步骤S200、在存储空间界面中显示用于控制虚拟物品的虚拟物品按钮。
本实施例的方法的执行主体可以是服务器,服务器可以是单台服务器,也可以是包括多台服务器的服务器集群。
服务器与终端设备通信连接,终端设备可以是智能手机、电脑、IPad等电子设备。该终端设备上可以显示图形用户界面(Graphical User Interface,GUI),并且为用户提供人机交互功能。服务器可以将需要显示的显示内容发送至终端设备,以在终端设备上进行显示。
其中,服务器可以控制终端设备在终端设备上的图形用户界面中显示虚拟物品的存储空间界面,该存储空间界面中包括用户控制虚拟物品的虚拟物品按钮。用户通过对虚拟物品按钮进行操作,可以实现对虚拟物品的控制,例如,虚拟物品的转移。
步骤S201、显示虚拟物品按钮的提示信息。
其中,提示信息用于提示用户自虚拟物品按钮的操作范围内朝向预设方向滑动,以将虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间。用户自虚拟物品按钮的操作范围内朝向预设方向滑动,可以理解为用户手指的起始操作点位于虚拟物品按钮的操作范围内,从虚拟物品按钮的操作范围内开始并朝向预设方向滑动。
其中,虚拟物品按钮的操作范围可以理解为虚拟物品按钮的有效触摸区域,用户在虚拟物品按钮的操作范围内执行的操作视为对虚拟物品按钮的操作。
在一些实施例中,提示信息可以是将虚拟物品从背包转移至仓库,也可以是将虚拟物品从仓库转移至背包,还可以是将背包或者仓库中的虚拟物品转移至摆摊界面,或者是将背包或者仓库中的虚拟物品转移至虚拟物品的售卖界面。
请继续参阅图1A,图1A中每个矩形框即为一个虚拟物品按钮,图中矩形框示出的区域即为一个虚拟物品按钮的操作范围。
本实施例中,提示信息可以设置在虚拟物品按钮的操作范围内,也可以设置在虚拟物品按钮的操作范围之外。
步骤S202、响应于用户手指自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将虚拟物品进行转移。
本实施例中,存储空间界面中显示有提示信息,用户根据提示信息,自虚拟物品按钮的操作范围内朝向预设方向滑动,终端设备实时检测用户手指的滑动操作和获取滑动 操作的参数,并判断滑动操作的参数是否符合预设参数,将判断结果发送至服务器,若滑动操作是自虚拟物品按钮的操作范围内朝向预设方向滑动,并且滑动操作的参数符合预设参数,则服务器控制终端设备在终端设备的当前存储空间界面中不再显示虚拟物品的图标,而在另一存储空间界面中显示虚拟物品的图标。
或者,终端设备实时检测用户手指的滑动操作,获取滑动操作的参数并发送至服务器,服务器判断滑动操作的参数是否符合预设参数,若滑动操作是自虚拟物品按钮的操作范围内朝向预设方向滑动,并且滑动操作的参数符合预设参数,则在终端设备的当前存储空间界面中不再显示虚拟物品的图标,而在另一存储空间界面中显示虚拟物品的图标。
本实施例通过在终端设备上显示包括虚拟物品的存储空间界面,以及在存储空间界面上显示用于控制虚拟物品的虚拟物品按钮,和虚拟物品按钮的提示信息,该提示信息用于提示用户自虚拟物品按钮的操作范围内朝向预设方向滑动,从而将虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;并且在检测到用户手指自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数,将虚拟物品进行转移。本实施例中,用户只需要一次滑动操作,即可实现虚拟物品的转移,并且滑动操作是自虚拟物品按钮的操作范围内朝向预设方向,因此,相较于在终端设备上同时显示两个界面,并将虚拟物品从一个界面拖动至另一个存储空间而言,用户手指移动的距离少,并且不需要显示两个界面。对用户来说,操作简单,且操作次数少,还能够减少大量虚拟物品需要进行转移的情况下,操作的繁琐度。
终端设备的存储空间界面上具有显示内容。对于用户而言,提示信息在存储空间界面上不同的位置,视觉体验可能是不同的。而无论将提示信息设置在什么位置,均需保证提示信息不遮挡虚拟物品的图标。而提示信息的显示位置,也可以根据该提示信息的类型来确定。下面将具体介绍不同类型的提示信息如何进行显示:
在一些可选的实施方式中,提示信息的类型包括文字、图标和动图;而文字、图标和动图的显示内容不同,且在存储空间界面中的占比也不同。因此,可以根据提示信息的类型,确定在虚拟物品按钮的操作范围内,还是在虚拟物品按钮的操作范围之外显示提示信息。具体的,文字可以显示在虚拟物品按钮的操作范围之外,图标和动图可以显示在虚拟物品按钮的操作范围内。
对于图标而言,可以设置在虚拟物品按钮的操作范围内,则预设方向为目标方向或者与目标方向之间的夹角小于预设角度的方向,其中,目标方向为图标相对于虚拟物品按钮的中心的方向。在一些示例中,图标可以设置在虚拟物品按钮的操作范围中的左上角、左下角、右上角和右下角。图标可以为用户提供滑动操作的导向,以提示用户朝向图标所在位置进行滑动。实际应用中,若用户习惯于向左下角方向滑动,则可以将图标设置在虚拟物品按钮的操作范围的左下角,相应的,预设方向即为虚拟物品按钮的操作范围的左下方向。
图3为本公开实施例提供的提示信息为图标的示例图。如图3所示,该图标设置在虚拟物品按钮的操作范围内的左下角。用户通过向虚拟物品按钮的操作范围的左下角滑动,且在滑动参数满足预设参数的情况下,终端设备自动执行将虚拟物品从当前存储空间转移至其他存储空间的操作。
对于动图而言,其能够展示朝向预设方向滑动的动作。动图同样可以设置在虚拟物品按钮的操作范围的左上角、左下角、右上角和右下角。动图可以为用户提供滑动操作的导向,以提示用户朝向图标所在位置进行滑动。实际应用中,若用户习惯向左下方滑动,则可以将动图设置在虚拟物品按钮的操作范围的左下角,相应的,预设方向即为虚拟物品按钮的操作范围的左下方向。
图4为本公开实施例提供的提示信息为动图的示例图。如图4所示,图中箭头左边为动图的初始状态图,可以看到,初始状态下,其显示的是一个空白的图片;箭头中间为动图的中间状态图,可以看到,中间状态下,其显示的是一个长度为L1的箭头;箭头右边为动图的最终间状态图,可以看到,最终状态下,其显示的是一个长度为L2的箭头。该动图就按照图4中从左至右的方向示出的三种状态图依次且重复地显示。应当理解,本实施例是为了便于读者理解,将动图拆分为了三种状态图。实际的显示效果中,该动图应当是一个渐变显示的箭头。
对于文字而言,由于需展现的内容较长,若将文字展现在虚拟物品按钮的操作范围之内,可能会遮挡虚拟物品的图标。因此,可以将文字设置在虚拟物品按钮的操作范围之外。
图5为本公开实施例提供的提示信息为文字的示例图。如图5所示,以将背包中的物品转移至仓库为例,文字内容为“请朝需转移物品范围的左下方滑动,以将物品转移至仓库”。该文字内容可以设置在背包界面的任意空白位置处。
上述三种类型的提示信息中,可以展示任意一种类型的提示信息,也可以同时展示两种类型的提示信息,例如同时展示文字和图标,或者同时展示文字和动图。
用户可以在虚拟物品按钮的操作范围内执行滑动操作,而有些滑动操作可能是无效的滑动,例如,用户由于误触而执行的一次滑动操作,为了与无效滑动进行区分,本实施例设置了如下几种形式的预设参数,并且实时检测滑动操作,获取滑动操作的滑动参数,若用户自虚拟物品按钮的操作范围内进行滑动操作,并且滑动操作的参数符合预设参数,则执行将虚拟物品进行转移的操作。
下面对预设参数的几种形式进行详细介绍:
在一种可选的实施方式中,预设参数可以是预设的滑动距离。相应的,响应于用户自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数,将虚拟物品进行转移,包括:响应于用户手指自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动距离大于或等于预设的滑动距离的操作,将虚拟物品进行转移。
本实施方式中,滑动距离是指用户手指在终端设备的存储空间界面上的初始触摸点 位置和当前触摸点位置之间的距离。将每次检测到的触摸点位置记为(xi,yi),假设上次检测到的触摸点位置为(x0,y0),当前触摸点位置为(x1,y1),则滑动距离d=√(dx^2+dy^2),其中,dx=x1-x0,dy=y1-y0。假设预设的滑动距离为d0,则若dx<=0且dy<=0,说明当前触摸点位于上次检测到的触摸点的左下方,若d>d0,则说明滑动距离大于预设的滑动距离,执行将虚拟物品进行转移的操作。
在一些场景中,若用户手指向左下方向进行滑动,则开始计算本次向左下角方向滑动的距离d,也就是最开始向下滑动时的触摸点位置,和当前触摸点位置之间的距离。若d>d0,本次操作视为背包物品存放入仓库的操作。而对于该种情况之外的其他情况,则视为无效操作。具体的,包括以下几种情况:
若用户手指向非预设方向进行滑动,则确定为无效操作。
若用户手指向左下方滑动的距离未超过预设的滑动距离,同样确定为无效操作。
在确定为无效操作的基础上,可以继续判断用户手指的滑动情况,也就是继续检测滑动操作,获取滑动操作的滑动距离,以及判断滑动距离是否大于预设的滑动距离。
在另一些场景中,若用户此时松开手指,终止了滑动操作,则本次操作确定为对虚拟物品按钮的点击操作。
在上述实施方式的基础上,若本次操作确定为虚拟物品的转移操作,则用户后续的操作都不进行响应。也就是说,一旦在手指滑动过程中,符合了虚拟物品转移操作的条件,那么当用户继续滑动手指或者松开手指,都确定为无效操作。
本实施方式可以理解为,用户长按虚拟物品按钮的情况下,用户手指自虚拟物品按钮的操作范围内向左下方小幅度移动,则触发将虚拟物品进行转移的操作。
在另一种可选的实施方式中,预设参数可以是预设的滑动时间。相应的,响应于用户在虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数,将虚拟物品进行转移,包括:响应于用户手指自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动时间大于或等于预设的滑动时间的操作,将虚拟物品进行转移。
本实施方式中,滑动时间可以根据滑动距离进行换算,滑动时间=滑动距离/滑动速度;其中,滑动速度可以是多个用户滑动速度的平均值。
在又一种可选的实施方式中,预设参数可以是预设的滑动轨迹。相应的,响应于用户自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数,将虚拟物品进行转移,包括:响应于用户手指自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动轨迹符合预设的滑动轨迹的操作,将虚拟物品进行转移。该种情况下,图标或动图可以为预设的滑动轨迹,例如具有箭头的一条直线或曲线。用户沿着该预设的滑动轨迹进行滑动,就可以实现将虚拟物品转移的功能。
在上述实施例的基础上,图6为本公开实施例提供的虚拟物品的处理方法的流程图二。如图6所示,该虚拟物品的处理方法,包括如下步骤:
步骤S601、获取用户对虚拟物品按钮的按压时间。
步骤S602、若按压时间大于或等于预设时间,则显示虚拟物品按钮的提示信息。
步骤S603、若按压时间小于预设时间,则不显示虚拟物品按钮的提示信息。
其中,终端设备实时检测用户手指对虚拟物品按钮的按压时间,并将按压时间发送至服务器,服务器判断按压时间是否小于预设时间,并根据判断结果控制终端设备在终端设备的存储空间界面中显示或不显示虚拟物品按钮的提示信息。
或者,终端设备实时检测用户手指对虚拟物品按钮的按压时间,并判断按压时间是否小于预设时间,再将按压时间是否小于预设时间的判断结果发送至服务器,则服务器可以根据判断结果控制终端设备在终端设备的存储空间界面中显示或不显示虚拟物品按钮的提示信息。
对于虚拟物品按钮来说,用户能够执行的操作包括以下三种动作:手指按下按钮;手指在用户界面上滑动;松开手指。
若终端设备检测到用户手指点击到虚拟物品按钮,且立即松开手指,则本次操作视为单击操作,并执行与单击操作对应的控制功能,例如呼出虚拟物品的可操作界面(tips界面)或详细操作界面。
若终端设备检测到用户手指点击到虚拟物品按钮,且未立即松开手指,例如在存储空间界面上进行任意的滑动,则可以显示虚拟物品按钮的提示信息,以提示用户接下来将进行滑动操作的判断步骤。
基于上述介绍,本实施例可以预先设定一预设时间,通过检测用户手指对虚拟物品按钮的按压时间,来确定用户手指点击到虚拟物品按钮之后,是否立即松开手指,从而确定是否需要显示提示信息。具体的,若用户手指点击虚拟物品按钮的时间小于预设时间,则确定为用户手指立即松开;若用户手指点击虚拟物品按钮的时间超过预设时间,则确定为用户手指未立即松开。
需要说明的是,本实施例中的步骤S602和步骤S603并不限定先后执行顺序。
用户手指在滑动过程中,可能会不小心滑动至虚拟物品按钮的操作范围之外,而此时用户又重新滑动至虚拟物品按钮的操作范围内,并继续在虚拟物品按钮的操作范围内滑动,则该种情况下应继续检测该滑动操作的滑动参数是否符合预设的参数,不能确定为无效操作。而若用户手指滑动至虚拟物品按钮的操作范围之外,并且松开了手指,则可以直接确定为无效操作,此时用户可能是对该虚拟物品按钮进行了误操作。因此,本公开还提出了如下实施例,具体包括:
若检测到用户手指滑动至虚拟物品按钮的操作范围之外,且重新滑动至虚拟物品按钮的操作范围内并继续朝向预设方向滑动,则在滑动操作的参数符合预设参数的情况下,将虚拟物品进行转移。
若检测到用户手指滑动至所述虚拟物品按钮的操作范围之外,并且松开手指,则确定为无效操作。
本实施例中,将用户手指在屏幕上的停留位置,称为触摸点。则用户手指在屏幕上 滑动时,触摸点可能会在游戏屏幕上任意一个位置。本实施例采用屏幕坐标来表示触摸点的位置,具体为二维坐标(x,y)。由于用户最初是单击虚拟物品按钮,所以初始触摸点是停留在虚拟物品按钮的操作范围内的。
用户持续滑动手指的过程中,若触摸点落在了虚拟物品按钮的操作范围外,表明用户的手指已经滑动至虚拟物品按钮的操作范围之外,如果此时用户松开手指,则本次操作既不为单击操作,也不为虚拟物品转移的操作,而是无效操作,不执行任何动作。如果用户未松开手指,而是从虚拟物品按钮的操作范围之外重新滑动至虚拟物品按钮的操作范围内,也就是触摸点从虚拟物品按钮的操作范围外重新落入虚拟物品按钮的操作范围内,那么继续执行虚拟物品按钮范围内的检测的步骤。
图7为本公开实施例提供的一种滑动方式的示意图。如图7所示,根据滑动轨迹可以看出,用户从虚拟物品按钮的操作范围内滑动至虚拟物品按钮的操作范围之外,并且又从虚拟物品按钮的操作范围之外重新滑动至虚拟物品按钮的操作范围内,此时继续执行虚拟物品按钮范围内的检测的步骤。
图8为本公开实施例提供的另一种滑动方式的示意图。如图8所示,根据滑动轨迹可以看出,用户从虚拟物品按钮的操作范围内滑动至虚拟物品按钮的操作范围之外,并且松开了手指,此时确定为无效操作。
在一些实施例中,响应于用户手指自虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将虚拟物品进行转移之后,本实施例的方法还可以包括:隐藏虚拟物品按钮对应的虚拟物品的图标和提示信息。
具体的,服务器控制终端设备在终端设备的当前存储空间界面中隐藏虚拟物品按钮对应的虚拟物品的图标和提示信息。
请继续参阅图3,将虚拟物品按钮对应的虚拟物品的图标和提示信息隐藏之后,则当前存储空间界面上只留下一个没有虚拟物品的图标的空按钮,如图3中的空白矩形框。
为了方便读者理解,下面以一个示例对本公开的实施例进行详细说明:
图9为本公开实施例提供的虚拟物品的处理方法的示例的流程图。如图9所示,该示例包括如下步骤:
S901、若检测到用户手指和屏幕之间的接触点,则记录触摸点位置。
具体的,触摸点在屏幕上的坐标记录为(x,y)。若第一次检测到用户手指点击到屏幕,则记录用户手指和屏幕之间的接触点,作为初始接触点,并将当前朝左下角进行滑动的距离distance设为0,之后执行步骤S902。
S902、判断初始触摸点位置是否位于虚拟物品按钮的操作范围内;
S903、若不在,则返回步骤S901;若在,则显示虚拟物品按钮的提示信息,并执行S904;
其中,若初始触摸点位置位于虚拟物品按钮的操作范围内,则在虚拟物品按钮的左下角显示一个图标,用来提醒用户将进入滑动操作的检测步骤。其中,图标的大小可以 设置为不遮挡虚拟物品的图标的大小。
S904、间隔预定延迟时间后,检测用户手指和屏幕之间的接触点。
S905、若间隔预定延迟时间后,未检测到用户手指和屏幕之间的接触点,则确定本次操作为单击操作。
其中,若间隔预定延迟时间后,未检测到用户手指和屏幕之间的接触点,说明用户此时已经松开了手指,则本次操作视为单击操作。
S906、若间隔预定延迟时间后,检测到用户手指和屏幕之间的接触点,则记录当前触摸点的坐标,并判断当前触摸点位置是否位于虚拟物品按钮的操作范围内;
其中,若间隔预定延迟时间后,检测到用户手指和屏幕之间的接触点,说明用户手指还在屏幕上,记录下当前的触摸点坐标(x1,y1)。
S907、若当前触摸点不在虚拟物品按钮的操作范围内,则返回S904;
S908、若当前触摸点位于虚拟物品按钮的操作范围内,则根据当前触摸点坐标和上一次触摸点坐标,判断滑动方向是否为预设方向,以及滑动操作的参数是否满足预设参数。
S909、若滑动方向为预设方向,且滑动操作的参数满足预设参数,则将虚拟物品进行转移。
S910、若滑动方向为非预设方向,或滑动操作的参数不满足预设参数,或滑动方向为非预设方向,且滑动操作的参数不满足预设参数,则不执行虚拟物品转移的操作。
具体的,可以将上一次的触摸点坐标记为(x0,y0),当前触摸点记为(x1,y1),dx=x1-x0,dy=y1-y0。
若dx<=0且dy<=0,说明当前触摸点位于上次的触摸点的左下方,那么d=√(dx^2+dy^2)。
若dx>0或者dy>0,则说明用户手指向其他方向进行了移动,所以之前积攒的距离会被重置,即d=0。
若distance>25,则判定为虚拟物品转移的操作。其中25是根据经验选择的一个最小幅度的限制,防止玩家因为手抖而产生的误操作。对于dx<=0、dy<=0且d>25之外的其他情况,都在预定延迟时间,例如0.03秒后执行S904。
S911、将虚拟物品进行转移之后,隐藏虚拟物品按钮对应的虚拟物品的图标和提示信息。
具体的,虚拟物品按钮对应的虚拟物品从背包存放到仓库中之后,终端设备的存储空间界面上留下一个没有虚拟物品图标的空白按钮。并且,用户手指的剩余操作对该空白按钮不再生效。
在上述虚拟物品的处理方法实施例的基础上,图10为本公开实施例提供的虚拟物品的处理装置的结构示意图。该虚拟物品的处理装置在终端设备上显示图形用户界面,图形用户界面中包括虚拟物品的存储空间界面,如图10所示,该虚拟物品的处理装置 包括:显示模块1001和转移模块1002;
显示模块1001,被配置为执行在存储空间界面中显示用于控制虚拟物品的虚拟物品按钮;
显示模块1001,还被配置为执行显示虚拟物品按钮的提示信息;该提示信息用于提示用户自所述虚拟物品按钮的操作范围内朝向预设方向滑动,以将所述虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;
转移模块1002,被配置为执行响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移。
在一种可能的设计中,提示信息包括图标,所述图标设置在所述虚拟物品按钮的操作范围内,所述预设方向为目标方向或与所述目标方向之间的夹角小于预设角度的方向,所述目标方向为所述图标相对于所述虚拟物品按钮的中心的方向。
在另一种可能的设计中,提示信息包括动图,所述动图设置在所述虚拟物品按钮的操作范围内,用于展示朝向预设方向滑动的动作。
在又一种可能的设计中,提示信息包括文字,所述文字设置在所述虚拟物品按钮的操作范围之外。
在一种可能的设计中,预设参数包括:预设的滑动轨迹、预设的滑动时间、预设的滑动距离中任一项;相应的,所述转移模块1002具体被配置为执行:响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动轨迹符合预设的滑动轨迹的操作,将所述虚拟物品进行转移;或者,响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动时间大于或等于预设的滑动时间的操作,将所述虚拟物品进行转移;或者,响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动距离大于或等于预设的滑动距离的操作,将虚拟物品进行转移。
在一种可能的设计中,该装置还包括:获取模块1003;
所述获取模块1003,被配置为执行获取所述用户对所述虚拟物品按钮的按压时间;
所述显示模块1001,被配置为执行在所述按压时间大于或等于预设时间的情况下,显示所述虚拟物品按钮的提示信息;以及在所述按压时间小于预设时间的情况下,不显示所述虚拟物品按钮的提示信息。
在一种可能的设计中,所述转移模块1002,被配置为执行在检测到所述用户手指滑动至所述虚拟物品按钮的操作范围之外,且重新滑动至所述虚拟物品按钮的操作范围内并朝向所述预设方向进行滑动,以及滑动操作的参数符合预设参数的情况下,将所述虚拟物品进行转移;所述转移模块1002,还被配置为执行在检测到所述用户手指滑动至所述虚拟物品按钮的操作范围之外,并且松开手指的情况下,确定为无效操作,不执行将所述虚拟物品进行转移的操作。
在一种可能的设计中,该装置还包括:隐藏模块1004;所述隐藏模块1004,被配置为执行隐藏所述虚拟物品按钮对应的虚拟物品的图标和所述提示信息。
本公开实施例提供的虚拟物品的处理装置,可用于执行上述实施例中虚拟物品的处理方法的技术方案,其实现原理和技术效果类似,在此不再赘述。
需要说明的是,应理解以上装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块通过处理元件调用软件的形式实现,部分模块通过硬件的形式实现。例如,转移模块1002可以为单独设立的处理元件,也可以集成在上述装置的某一个芯片中实现,此外,也可以以程序代码的形式存储于上述装置的存储器中,由上述装置的某一个处理元件调用并执行以上转移模块1002的功能。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。这里的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
图11为本公开实施例提供的电子设备的结构示意图。如图11所示,该终端设备可以包括:处理器1101、存储器1102和交互接口1103。该电子设备可以是服务器,该服务器可以控制终端设备显示图形用户界面,图形用户界面中包括存储空间界面。
处理器1101执行存储器存储的计算机执行指令,使得处理器1101执行上述实施例中的方案。处理器1101可以是通用处理器,包括中央处理器CPU、网络处理器(network processor,NP)等;还可以是数字信号处理器DSP、专用集成电路ASIC、现场可编程门阵列FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
存储器1102通过系统总线与处理器1101连接并完成相互间的通信,存储器1102用于存储计算机程序指令。
交互接口1103用于为用户提供人机交互功能。
系统总线可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。系统总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。收发器用于实现数据库访问装置与其他计算机(例如客户端、读写库和只读库)之间的通信。存储器可能包含随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory)。
本公开实施例提供的电子设备,可用于执行以下方案:
在所述存储空间界面中显示用于控制所述虚拟物品的虚拟物品按钮;
显示所述虚拟物品按钮的提示信息;所述提示信息用于提示用户自所述虚拟物品按钮的操作范围内朝向预设方向滑动,以将所述虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;
响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移。
可选的,所述提示信息包括图标,所述图标设置在所述虚拟物品按钮的操作范围内,所述预设方向为目标方向或与所述目标方向之间的夹角小于预设角度的方向,所述目标方向为所述图标相对于所述虚拟物品按钮的中心的方向。
可选的,所述提示信息包括动图,所述动图设置在所述虚拟物品按钮的操作范围内,用于展示朝向预设方向滑动的动作。
可选的,所述提示信息包括文字,所述文字设置在所述虚拟物品按钮的操作范围之外。
可选的,所述预设参数包括:预设的滑动轨迹、预设的滑动时间、预设的滑动距离中任一项;
相应的,所述响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移,包括:
响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动轨迹符合预设的滑动轨迹的操作,将所述虚拟物品进行转移;
或者,
响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动时间大于或等于预设的滑动时间的操作,将所述虚拟物品进行转移;
或者,
响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动距离大于或等于预设的滑动距离的操作,将所述虚拟物品进行转移。
可选的,所述方法还包括:
获取所述用户对所述虚拟物品按钮的按压时间;
若所述按压时间大于或等于预设时间,则显示所述虚拟物品按钮的提示信息;
若所述按压时间小于预设时间,则不显示所述虚拟物品按钮的提示信息。
可选的,所述方法还包括:
若检测到所述用户手指滑动至所述虚拟物品按钮的操作范围之外,且重新滑动至所述虚拟物品按钮的操作范围内并朝向所述预设方向进行滑动,则在滑动操作的参数符合预设参数的情况下,将所述虚拟物品进行转移;
若检测到所述用户手指滑动至所述虚拟物品按钮的操作范围之外,并且松开手指,则确定为无效操作。
可选的,所述响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移之后,所述方法还包括:
隐藏所述虚拟物品按钮对应的虚拟物品的图标和所述提示信息。
通过上述实施例,用户只需要一次滑动操作,即可实现虚拟物品的转移,并且滑动操作是自虚拟物品按钮的操作范围内朝向预设方向,因此,相较于在终端设备上同时显示两个界面,并将虚拟物品从一个界面拖动至另一个存储空间而言,用户手指移动的距离少,并且不需要显示两个界面。对用户来说,操作简单,且操作次数少,还能够减少大量虚拟物品需要进行转移的情况下,操作的繁琐度。
本公开实施例提供的电子设备,可用于执行上述实施例中虚拟物品的处理方法的技术方案,其实现原理和技术效果类似,在此不再赘述。
本公开实施例还提供一种运行指令的芯片,该芯片用于执行上述实施例中虚拟物品的处理方法的技术方案。
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在计算机上运行时,使得计算机执行上述实施例虚拟物品的处理方法的技术方案:
在所述存储空间界面中显示用于控制所述虚拟物品的虚拟物品按钮;
显示所述虚拟物品按钮的提示信息;所述提示信息用于提示用户自所述虚拟物品按钮的操作范围内朝向预设方向滑动,以将所述虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;
响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移。
可选的,所述提示信息包括图标,所述图标设置在所述虚拟物品按钮的操作范围内,所述预设方向为目标方向或与所述目标方向之间的夹角小于预设角度的方向,所述目标方向为所述图标相对于所述虚拟物品按钮的中心的方向。
可选的,所述提示信息包括动图,所述动图设置在所述虚拟物品按钮的操作范围内,用于展示朝向预设方向滑动的动作。
可选的,所述提示信息包括文字,所述文字设置在所述虚拟物品按钮的操作范围之外。
可选的,所述预设参数包括:预设的滑动轨迹、预设的滑动时间、预设的滑动距离中任一项;
相应的,所述响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移,包括:
响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动轨迹符合预设的滑动轨迹的操作,将所述虚拟物品进行转移;
或者,
响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动时间大于或等于预设的滑动时间的操作,将所述虚拟物品进行转移;
或者,
响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动距离大于或等于预设的滑动距离的操作,将所述虚拟物品进行转移。
可选的,所述方法还包括:
获取所述用户对所述虚拟物品按钮的按压时间;
若所述按压时间大于或等于预设时间,则显示所述虚拟物品按钮的提示信息;
若所述按压时间小于预设时间,则不显示所述虚拟物品按钮的提示信息。
可选的,所述方法还包括:
若检测到所述用户手指滑动至所述虚拟物品按钮的操作范围之外,且重新滑动至所述虚拟物品按钮的操作范围内并朝向所述预设方向进行滑动,则在滑动操作的参数符合预设参数的情况下,将所述虚拟物品进行转移;
若检测到所述用户手指滑动至所述虚拟物品按钮的操作范围之外,并且松开手指,则确定为无效操作。
可选的,所述响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移之后,所述方法还包括:
隐藏所述虚拟物品按钮对应的虚拟物品的图标和所述提示信息。
通过上述实施例,用户只需要一次滑动操作,即可实现虚拟物品的转移,并且滑动操作是自虚拟物品按钮的操作范围内朝向预设方向,因此,相较于在终端设备上同时显示两个界面,并将虚拟物品从一个界面拖动至另一个存储空间而言,用户手指移动的距离少,并且不需要显示两个界面。对用户来说,操作简单,且操作次数少,还能够减少大量虚拟物品需要进行转移的情况下,操作的繁琐度。
本公开实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,其存储在计算机可读存储介质中,至少一个处理器可以从计算机可读存储介质读取计算机程序,至少一个处理器执行计算机程序时可实现上述实施例中虚拟物品的处理方法的技术方案。
最后应说明的是:以上各实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述各实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。

Claims (12)

  1. 一种虚拟物品的处理方法,在终端设备上显示图形用户界面,所述图形用户界面中包括所述虚拟物品的存储空间界面;所述方法包括:
    在所述存储空间界面中显示用于控制所述虚拟物品的虚拟物品按钮;
    显示所述虚拟物品按钮的提示信息;所述提示信息用于提示用户自所述虚拟物品按钮的操作范围内朝向预设方向滑动,以将所述虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;
    响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移。
  2. 根据权利要求1所述的方法,其中,所述提示信息包括图标,所述图标设置在所述虚拟物品按钮的操作范围内,所述预设方向为目标方向或与所述目标方向之间的夹角小于预设角度的方向,所述目标方向为所述图标相对于所述虚拟物品按钮的中心的方向。
  3. 根据权利要求1所述的方法,其中,所述提示信息包括动图,所述动图设置在所述虚拟物品按钮的操作范围内,用于展示朝向预设方向滑动的动作。
  4. 根据权利要求1所述的方法,其中,所述提示信息包括文字,所述文字设置在所述虚拟物品按钮的操作范围之外。
  5. 根据权利要求1-4任一项所述的方法,其中,所述预设参数包括:预设的滑动轨迹、预设的滑动时间、预设的滑动距离中任一项;
    相应的,所述响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移,包括:
    响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动轨迹符合预设的滑动轨迹的操作,将所述虚拟物品进行转移;
    或者,
    响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动时间大于或等于预设的滑动时间的操作,将所述虚拟物品进行转移;
    或者,
    响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动距离大于或等于预设的滑动距离的操作,将所述虚拟物品进行转移。
  6. 根据权利要求5所述的方法,其中,所述方法还包括:
    获取所述用户对所述虚拟物品按钮的按压时间;
    若所述按压时间大于或等于预设时间,则显示所述虚拟物品按钮的提示信息;
    若所述按压时间小于预设时间,则不显示所述虚拟物品按钮的提示信息。
  7. 根据权利要求1-4任一项所述的方法,其中,所述方法还包括:
    若检测到所述用户手指滑动至所述虚拟物品按钮的操作范围之外,且重新滑动至所 述虚拟物品按钮的操作范围内并朝向所述预设方向进行滑动,则在滑动操作的参数符合预设参数的情况下,将所述虚拟物品进行转移;
    若检测到所述用户手指滑动至所述虚拟物品按钮的操作范围之外,并且松开手指,则确定为无效操作。
  8. 根据权利要求1-4任一项所述的方法,其中,所述响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移之后,所述方法还包括:
    隐藏所述虚拟物品按钮对应的虚拟物品的图标和所述提示信息。
  9. 一种虚拟物品的处理装置,在终端设备上显示图形用户界面,所述图形用户界面中包括所述虚拟物品的存储空间界面,所述装置包括:
    显示模块,被配置为执行在所述存储空间界面中显示用于控制所述虚拟物品的虚拟物品按钮;
    所述显示模块,还被配置为执行显示所述虚拟物品按钮的提示信息;所述提示信息用于提示用户自所述虚拟物品按钮的操作范围内朝向预设方向滑动,以将所述虚拟物品按钮对应的虚拟物品从当前存储空间转移至其他存储空间;
    转移模块,被配置为执行响应于所述用户手指自所述虚拟物品按钮的操作范围内朝向预设方向滑动,且滑动操作的参数符合预设参数的操作,将所述虚拟物品进行转移。
  10. 一种电子设备,包括:处理器,存储器,交互接口;
    所述存储器,用于存储所述处理器的可执行指令;
    其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1至8任一项所述的方法。
  11. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1-8任一项所述的方法。
  12. 一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现权利要求1-8任一项所述的方法。
PCT/CN2022/081016 2021-06-03 2022-03-15 虚拟物品的处理方法、装置、设备及存储介质 WO2022252748A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110618032.8A CN113244611B (zh) 2021-06-03 2021-06-03 虚拟物品的处理方法、装置、设备及存储介质
CN202110618032.8 2021-06-03

Publications (1)

Publication Number Publication Date
WO2022252748A1 true WO2022252748A1 (zh) 2022-12-08

Family

ID=77186124

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/081016 WO2022252748A1 (zh) 2021-06-03 2022-03-15 虚拟物品的处理方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN113244611B (zh)
WO (1) WO2022252748A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113244611B (zh) * 2021-06-03 2024-02-02 网易(杭州)网络有限公司 虚拟物品的处理方法、装置、设备及存储介质
CN117547807A (zh) * 2022-08-05 2024-02-13 深圳市腾讯网络信息技术有限公司 虚拟物品的转移方法、装置、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020114275A1 (zh) * 2018-12-07 2020-06-11 腾讯科技(深圳)有限公司 虚拟道具转移方法、装置、电子设备及计算机存储介质
CN111701233A (zh) * 2020-06-18 2020-09-25 网易(杭州)网络有限公司 界面显示控制方法、装置、设备及存储介质
CN112044071A (zh) * 2020-09-04 2020-12-08 腾讯科技(深圳)有限公司 虚拟物品的控制方法、装置、终端及存储介质
CN112190922A (zh) * 2020-10-22 2021-01-08 网易(杭州)网络有限公司 虚拟物品的处理方法、装置、存储介质及电子装置
CN112516583A (zh) * 2020-12-11 2021-03-19 网易(杭州)网络有限公司 游戏中的数据处理方法、装置以及电子终端
CN113244611A (zh) * 2021-06-03 2021-08-13 网易(杭州)网络有限公司 虚拟物品的处理方法、装置、设备及存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6631329B2 (ja) * 2016-03-10 2020-01-15 富士通株式会社 情報処理装置、及びプログラム
CN107291353A (zh) * 2017-06-22 2017-10-24 刘兴丹 一种移动智能设备多模式开启虚拟按键图标的方法、装置
CN107899237B (zh) * 2017-12-06 2019-05-24 腾讯科技(深圳)有限公司 基于触控屏的控制方法及相关设备
CN108176054A (zh) * 2017-12-27 2018-06-19 网易(杭州)网络有限公司 虚拟物品交易方法、装置、电子设备及存储介质
CN108459811B (zh) * 2018-01-09 2021-03-16 网易(杭州)网络有限公司 虚拟道具的处理方法、装置、电子设备及存储介质
CN110420453B (zh) * 2019-01-14 2023-07-14 网易(杭州)网络有限公司 虚拟对象运动控制方法及装置、存储介质、电子设备
CN111701237B (zh) * 2020-07-16 2021-03-16 腾讯科技(深圳)有限公司 虚拟道具的放置方法和装置、存储介质及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020114275A1 (zh) * 2018-12-07 2020-06-11 腾讯科技(深圳)有限公司 虚拟道具转移方法、装置、电子设备及计算机存储介质
CN111701233A (zh) * 2020-06-18 2020-09-25 网易(杭州)网络有限公司 界面显示控制方法、装置、设备及存储介质
CN112044071A (zh) * 2020-09-04 2020-12-08 腾讯科技(深圳)有限公司 虚拟物品的控制方法、装置、终端及存储介质
CN112190922A (zh) * 2020-10-22 2021-01-08 网易(杭州)网络有限公司 虚拟物品的处理方法、装置、存储介质及电子装置
CN112516583A (zh) * 2020-12-11 2021-03-19 网易(杭州)网络有限公司 游戏中的数据处理方法、装置以及电子终端
CN113244611A (zh) * 2021-06-03 2021-08-13 网易(杭州)网络有限公司 虚拟物品的处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN113244611A (zh) 2021-08-13
CN113244611B (zh) 2024-02-02

Similar Documents

Publication Publication Date Title
WO2021036581A1 (zh) 虚拟对象的控制方法和相关装置
US9389777B2 (en) Gestures for manipulating tables, charts, and graphs
US9836146B2 (en) Method of controlling virtual object or view point on two dimensional interactive display
WO2022252748A1 (zh) 虚拟物品的处理方法、装置、设备及存储介质
US9612675B2 (en) Emulating pressure sensitivity on multi-touch devices
US20120266079A1 (en) Usability of cross-device user interfaces
TWI590147B (zh) 觸控模式
WO2015084684A2 (en) Bezel gesture techniques
US20220266142A1 (en) Interaction information processing method and apparatus, terminal, and storage medium
US9830014B2 (en) Reducing control response latency with defined cross-control behavior
CN110377215B (zh) 模型展示方法、装置及终端设备
JP2023530395A (ja) アプリアイコン制御方法、装置及び電子機器
WO2021164460A1 (zh) 触摸响应方法、装置、电子设备及存储介质
CN107577415A (zh) 触摸操作响应方法及装置
CN107608550A (zh) 触摸操作响应方法及装置
US9495064B2 (en) Information processing method and electronic device
CN111840988A (zh) 游戏技能触发方法、装置、游戏客户端及介质
CN107608551A (zh) 触摸操作响应方法及装置
WO2016183912A1 (zh) 菜单布局方法及装置
US10073612B1 (en) Fixed cursor input interface for a computer aided design application executing on a touch screen device
US20180121000A1 (en) Using pressure to direct user input
KR101961907B1 (ko) 사용자 터치 유지 시간에 기초한 이동단말기의 컨텐츠 제공 방법
US10019127B2 (en) Remote display area including input lenses each depicting a region of a graphical user interface
CN115373558A (zh) 投屏方法、装置、设备及存储介质
CN109885249A (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: 22814796

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18565550

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE