mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 11:07:12 +01:00
put mining vendor item descriptions in tooltips (#31131)
* put mining vendor item descriptions in tooltips * add description to icon view as well
This commit is contained in:
@@ -164,6 +164,7 @@
|
||||
"name" = prize_name,
|
||||
"price" = prize.cost,
|
||||
"icon" = item.icon,
|
||||
"desc" = item.desc,
|
||||
"icon_state" = item.icon_state
|
||||
)
|
||||
static_data["items"][cat] = cat_items
|
||||
|
||||
@@ -182,7 +182,7 @@ const MiningVendorItemsCategory = (properties) => {
|
||||
dmIcon={item.icon}
|
||||
dmIconState={item.icon_state}
|
||||
disabled={!data.has_id || data.id.points < item.price}
|
||||
tooltip={item.name}
|
||||
tooltip={`${item.name} - ${item.desc}`}
|
||||
tooltipPosition="top"
|
||||
onClick={() =>
|
||||
act('purchase', {
|
||||
@@ -201,6 +201,7 @@ const MiningVendorItemsCategory = (properties) => {
|
||||
imageSize={32}
|
||||
dmIcon={item.icon}
|
||||
dmIconState={item.icon_state}
|
||||
tooltip={item.desc}
|
||||
buttons={
|
||||
<Button
|
||||
width={3.75}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user