parent
17b3e4e172
commit
e32cd09804
1 changed files with 6 additions and 1 deletions
|
@ -174,11 +174,16 @@ function UseWidget:new(scene, pocket, item, widgetId)
|
|||
self.pocket = pocket
|
||||
self.widgetId = widgetId
|
||||
UseWidget.super.new(self, scene, "useMenu", "Use", "")
|
||||
if (not self.itemData.usableOnMap) then
|
||||
self.color = {0.6, 0.6, 0.6}
|
||||
end
|
||||
end
|
||||
|
||||
function UseWidget:action()
|
||||
if (self.itemData.usableOnMap) then
|
||||
self.scene.screens.mainmenu["useItems"](self.scene, self.pocket, self.item, self.widgetId)
|
||||
end
|
||||
end
|
||||
|
||||
function DropWidget:new(scene, pocket, item, widgetId)
|
||||
self.item = item
|
||||
|
|
Loading…
Reference in a new issue