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