Virtual item selection interface
View Patent ↗A method for selecting a virtual item is provided. In the method, an item selection element is displayed. An item selection control interface is displayed based on a continuous touch operation that is initially performed on the item selection element. The item selection control interface includes at least one candidate virtual item. The selected virtual item is determined as one of the at least one candidate virtual item included the item selection control interface when an end point of the continuous touch operation corresponds to the one of the at least one candidate virtual item in the item selection control interface. Apparatus and non-transitory computer-readable storage medium counterpart embodiments are also contemplated.
1 . A method for selecting a virtual item, the method comprising:
displaying an item selection element;
displaying an item selection control interface based on a continuous touch operation that is initially performed on the item selection element, the item selection control interface including at least one candidate virtual item; and
determining the selected virtual item as one of the at least one candidate virtual item included the item selection control interface when an end point of the continuous touch operation corresponds to the one of the at least one candidate virtual item in the item selection control interface, wherein
the item selection control interface includes type identifiers corresponding to different item types of a plurality of virtual items based on the at least one candidate virtual item including a plurality of candidate virtual items, and
the plurality of virtual items of a target item type of the different item types is displayed in the item selection control interface when a stay duration of the continuous touch operation on the type identifier of the target item type reaches a first duration threshold.
2 . The method according to claim 1 , further comprising:
switching an initial virtual item currently equipped by a virtual object to the selected virtual item.
3 . The method according to claim 2 , wherein
the item selection element includes an initial item identifier of the initial virtual item; and
after the switching the initial virtual item to the selected virtual item, the method further comprises:
displaying an item identifier corresponding to the selected virtual item in the item selection element.
4 . The method according to claim 1 , wherein the displaying the item selection control interface comprises:
determining an item quantity of the at least one candidate virtual item; and
displaying the item selection control interface with the item selection element when the item quantity is less than a quantity threshold, the item selection control interface including a candidate item identifier for each of the at least one candidate virtual item.
5 . The method according to claim 4 , wherein the displaying the item selection control interface comprises:
determining a display position of the candidate item identifier of the respective candidate virtual item within the item selection control interface based on an item attribute of the respective candidate virtual item; and
displaying the candidate item identifier within the item selection control interface based on the display position.
6 . The method according to claim 5 , wherein the determining the display position of the candidate item identifier of the respective candidate virtual item comprises:
determining a selection probability of the respective candidate virtual item based on the item attribute of the respective candidate virtual item; and
determining the display position of the respective candidate item identifier within the item selection control interface based on the selection probability and a frequently used position, the frequently used position being determined based on historical usage information, and a distance between the display position and the frequently used position being negatively correlated with the selection probability.
7 . The method according to claim 4 , wherein when the item selection control interface includes at least two different candidate virtual items corresponding to a same candidate item identifier, the item selection control interface further includes a difference identifier for each of the at least two different candidate virtual items.
8 . The method according to claim 4 , wherein
the at least one candidate virtual item includes the plurality of candidate virtual items,
the displaying the item selection control interface comprises:
determining selection probabilities of the plurality of candidate virtual items based on item attributes of the plurality of candidate virtual items when the item quantity is greater than or equal to the quantity threshold; and
selecting a subset of the plurality of candidate virtual items based on the selection probabilities, and
the item selection control interface includes the candidate item identifier for each of the selected subset of the plurality of candidate virtual items.
9 . The method according to claim 4 , wherein
the at least one candidate virtual item includes the plurality of candidate virtual items, and
when the item quantity is greater than or equal to the quantity threshold,
the item selection control interface includes the type identifiers corresponding to different item types of the plurality of virtual items; and
the plurality of virtual items of the target item type of the different item types is displayed in the item selection control interface when the stay duration of the continuous touch operation on the type identifier of the target item type reaches the first duration threshold.
10 . The method according to claim 1 , wherein the displaying the item selection control interface comprises:
displaying a progress bar that indicates a stay duration of the continuous touch operation on the item selection element; and
displaying the item selection control interface when the stay duration of the continuous touch operation on the item selection element reaches a second duration threshold.
11 . The method according to claim 1 , wherein after the displaying the item selection control interface, the method further comprises:
displaying item information of one of the at least one candidate virtual item when a stay duration of the continuous touch operation on the one of the candidate virtual item reaches a third duration threshold.
12 . The method according to claim 1 , wherein after the displaying the item selection control interface, the method further comprises:
canceling the determination of the selected virtual item when the end point of the continuous touch operation does not correspond to any of the at least one candidate virtual item in the item selection control interface.
13 . The method according to claim 1 , wherein the item selection control interface is configured to display the at least one candidate virtual item in one of a circular arrangement, a triangular arrangement, a square arrangement, a tile arrangement, and a welt arrangement.
14 . An apparatus for selection a virtual item, the apparatus comprising:
processing circuitry configured to:
display an item selection element;
display an item selection control interface based on a continuous touch operation that is initially performed on the item selection element, the item selection control interface including at least one candidate virtual item; and
determine the selected virtual item as one of the at least one candidate virtual item included the item selection control interface when an end point of the continuous touch operation corresponds to the one of the at least one candidate virtual item in the item selection control interface, wherein
the item selection control interface includes type identifiers corresponding to different item types of a plurality of virtual items based on the at least one candidate virtual item including a plurality of candidate virtual items, and
the plurality of virtual items of a target item type of the different item types is displayed in the item selection control interface when a stay duration of the continuous touch operation on the type identifier of the target item type reaches a first duration threshold.
15 . The apparatus according to claim 14 , wherein the processing circuitry is configured to:
switch an initial virtual item currently equipped by a virtual object to the selected virtual item.
16 . The apparatus according to claim 14 , wherein the processing circuitry is configured to:
determine an item quantity of the at least one candidate virtual item; and
display the item selection control interface with the item selection element when the item quantity is less than a quantity threshold, the item selection control interface including a candidate item identifier for each of the at least one candidate virtual item.
17 . The apparatus according to claim 16 , wherein the processing circuitry is configured to:
determine a display position of the candidate item identifier of the respective candidate virtual item within the item selection control interface based on an item attribute of the respective candidate virtual item; and
display the candidate item identifier within the item selection control interface based on the display position.
18 . The apparatus according to claim 17 , wherein the processing circuitry is configured to:
determine a selection probability of the respective candidate virtual item based on the item attribute of the respective candidate virtual item; and
determine the display position of the respective candidate item identifier within the item selection control interface based on the selection probability and a frequently used position, the frequently used position being determined based on historical usage information, and a distance between the display position and the frequently used position being negatively correlated with the selection probability.
19 . The apparatus according to claim 16 , wherein when the item selection control interface includes at least two different candidate virtual items corresponding to a same candidate item identifier, the item selection control interface further includes a difference identifier for each of the at least two different candidate virtual items.
20 . A non-transitory computer-readable storage medium, storing instructions which when executed by a processor cause the processor to perform:
displaying an item selection element;
displaying an item selection control interface based on a continuous touch operation that is initially performed on the item selection element, the item selection control interface including at least one candidate virtual item; and
determining a selected virtual item as one of the at least one candidate virtual item included the item selection control interface when an end point of the continuous touch operation corresponds to the one of the at least one candidate virtual item in the item selection control interface, wherein
the item selection control interface includes type identifiers corresponding to different item types of a plurality of virtual items based on the at least one candidate virtual item including a plurality of candidate virtual items, and
the plurality of virtual items of a target item type of the different item types is displayed in the item selection control interface when a stay duration of the continuous touch operation on the type identifier of the target item type reaches a first duration threshold.