Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
tome
Tales of MajEyal
Commits
72743626
Commit
72743626
authored
10 years ago
by
Alex Ksandra
Browse files
Options
Downloads
Patches
Plain Diff
Fixed UseTalents, from which chronomancy was copypasted from.
parent
7d99dcc3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!64
Steamtech UI fix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/dialogs/UseTalents.lua
+5
-4
5 additions, 4 deletions
game/modules/tome/dialogs/UseTalents.lua
with
5 additions
and
4 deletions
game/modules/tome/dialogs/UseTalents.lua
+
5
−
4
View file @
72743626
...
...
@@ -56,12 +56,13 @@ function _M:init(actor)
actor
.
hotkey
=
actor
.
hotkey
or
{}
Dialog
.
init
(
self
,
"Use Talents: "
..
actor
.
name
,
game
.
w
*
0
.
8
,
game
.
h
*
0
.
8
)
self
.
c_tut
=
Textzone
.
new
{
width
=
math.floor
(
self
.
iw
/
2
-
10
),
height
=
1
,
auto_height
=
true
,
no_color_bleed
=
true
,
text
=
[[
local
vsep
=
Separator
.
new
{
dir
=
"horizontal"
,
size
=
self
.
ih
-
10
}
self
.
c_tut
=
Textzone
.
new
{
width
=
math.floor
(
self
.
iw
/
2
-
vsep
.
w
/
2
),
height
=
1
,
auto_height
=
true
,
no_color_bleed
=
true
,
text
=
[[
You can bind a non-passive talent to a hotkey by pressing the corresponding hotkey while selecting a talent or by right-clicking on the talent.
Check out the keybinding screen in the game menu to bind hotkeys to a key (default is 1-0 plus control, shift, or alt).
Right click or press '~' to configure talent confirmation and automatic use.
]]
}
self
.
c_desc
=
TextzoneList
.
new
{
width
=
math.floor
(
self
.
iw
/
2
-
10
),
height
=
self
.
ih
-
self
.
c_tut
.
h
-
20
,
scrollbar
=
true
,
no_color_bleed
=
true
}
self
.
c_desc
=
TextzoneList
.
new
{
width
=
math.floor
(
self
.
iw
/
2
-
vsep
.
w
/
2
),
height
=
self
.
ih
-
self
.
c_tut
.
h
-
20
,
scrollbar
=
true
,
no_color_bleed
=
true
}
self
:
generateList
()
...
...
@@ -78,14 +79,14 @@ Right click or press '~' to configure talent confirmation and automatic use.
else
return
""
end
end
},
}
self
.
c_list
=
TreeList
.
new
{
width
=
math.floor
(
self
.
iw
/
2
-
10
),
height
=
self
.
ih
-
10
,
all_clicks
=
true
,
scrollbar
=
true
,
columns
=
cols
,
tree
=
self
.
list
,
fct
=
function
(
item
,
sel
,
button
)
self
:
use
(
item
,
button
)
end
,
select
=
function
(
item
,
sel
)
self
:
select
(
item
)
end
,
on_drag
=
function
(
item
,
sel
)
self
:
onDrag
(
item
)
end
}
self
.
c_list
=
TreeList
.
new
{
width
=
math.floor
(
self
.
iw
/
2
-
vsep
.
w
/
2
),
height
=
self
.
ih
-
10
,
all_clicks
=
true
,
scrollbar
=
true
,
columns
=
cols
,
tree
=
self
.
list
,
fct
=
function
(
item
,
sel
,
button
)
self
:
use
(
item
,
button
)
end
,
select
=
function
(
item
,
sel
)
self
:
select
(
item
)
end
,
on_drag
=
function
(
item
,
sel
)
self
:
onDrag
(
item
)
end
}
self
.
c_list
.
cur_col
=
2
self
:
loadUI
{
{
left
=
0
,
top
=
0
,
ui
=
self
.
c_list
},
{
right
=
0
,
top
=
self
.
c_tut
.
h
+
20
,
ui
=
self
.
c_desc
},
{
right
=
0
,
top
=
0
,
ui
=
self
.
c_tut
},
{
hcenter
=
0
,
top
=
5
,
ui
=
Separator
.
new
{
dir
=
"horizontal"
,
size
=
self
.
ih
-
10
}
},
{
hcenter
=
0
,
top
=
5
,
ui
=
vsep
},
}
self
:
setFocus
(
self
.
c_list
)
self
:
setupUI
()
...
...
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