Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Otowa Kotori
Tales of MajEyal
Commits
8fa37de2
Commit
8fa37de2
authored
5 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
RIght click on the inventory icon on the toolbar will bring up the ingredients list
parent
c27bc9c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/class/uiset/Minimalist.lua
+3
-2
3 additions, 2 deletions
game/modules/tome/class/uiset/Minimalist.lua
with
3 additions
and
2 deletions
game/modules/tome/class/uiset/Minimalist.lua
+
3
−
2
View file @
8fa37de2
...
...
@@ -1856,8 +1856,9 @@ function _M:displayToolbar(scale, bx, by)
game
.
mouse
:
unregisterZone
(
"tb_inven"
)
local
desc_fct
=
function
(
button
,
mx
,
my
,
xrel
,
yrel
,
bx
,
by
,
event
)
if
event
==
"out"
then
self
.
tbbuttons
.
inven
=
0
.
6
return
else
self
.
tbbuttons
.
inven
=
1
end
game
.
tooltip_x
,
game
.
tooltip_y
=
1
,
1
;
game
:
tooltipDisplayAtMap
(
game
.
w
,
game
.
h
,
"Left mouse to show inventory"
)
if
button
==
"left"
and
not
xrel
and
not
yrel
and
event
==
"button"
then
game
.
key
:
triggerVirtual
(
"SHOW_INVENTORY"
)
end
game
.
tooltip_x
,
game
.
tooltip_y
=
1
,
1
;
game
:
tooltipDisplayAtMap
(
game
.
w
,
game
.
h
,
"Left mouse to show inventory\nRight mouse to show ingredients"
)
if
button
==
"left"
and
not
xrel
and
not
yrel
and
event
==
"button"
then
game
.
key
:
triggerVirtual
(
"SHOW_INVENTORY"
)
elseif
button
==
"right"
and
not
xrel
and
not
yrel
and
event
==
"button"
then
game
:
registerDialog
(
require
(
"mod.dialogs.ShowIngredients"
).
new
(
game
.
party
))
end
end
game
.
mouse
:
registerZone
(
bx
+
x
*
scale
,
by
+
y
*
scale
,
tb_inven
[
6
],
tb_inven
[
7
],
desc_fct
,
nil
,
"tb_inven"
,
true
,
scale
)
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment