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
K'van
Tales of MajEyal
Commits
969365ce
Commit
969365ce
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
fixed listcolumn default selection
fixed ActorProject:project third parameter to function callback
parent
1251f19e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/engines/default/engine/interface/ActorProject.lua
+1
-1
1 addition, 1 deletion
game/engines/default/engine/interface/ActorProject.lua
game/engines/default/engine/ui/ListColumns.lua
+3
-0
3 additions, 0 deletions
game/engines/default/engine/ui/ListColumns.lua
with
4 additions
and
1 deletion
game/engines/default/engine/interface/ActorProject.lua
+
1
−
1
View file @
969365ce
...
...
@@ -194,7 +194,7 @@ function _M:project(t, x, y, damtype, dam, particles)
elseif
act
and
self
.
reactionToward
and
(
self
:
reactionToward
(
act
)
>=
0
)
and
not
((
type
(
typ
.
friendlyfire
)
==
"number"
and
rng
.
percent
(
typ
.
friendlyfire
))
or
(
type
(
typ
.
friendlyfire
)
~=
"number"
and
typ
.
friendlyfire
))
then
-- Otherwise hit
else
if
type
(
damtype
)
==
"function"
then
if
damtype
(
px
,
py
,
t
g
,
self
)
then
stop
=
true
break
end
if
type
(
damtype
)
==
"function"
then
if
damtype
(
px
,
py
,
t
,
self
)
then
stop
=
true
break
end
else
DamageType
:
get
(
damtype
).
projector
(
self
,
px
,
py
,
damtype
,
dam
,
tmp
,
nil
)
end
if
particles
then
game
.
level
.
map
:
particleEmitter
(
px
,
py
,
1
,
particles
.
type
,
particles
.
args
)
...
...
This diff is collapsed.
Click to expand it.
game/engines/default/engine/ui/ListColumns.lua
+
3
−
0
View file @
969365ce
...
...
@@ -90,6 +90,9 @@ function _M:generate()
end
function
_M
:
setupInput
()
self
.
prev_sel
=
0
self
.
mouse_pos
=
{
x
=
0
,
y
=
0
}
self
.
mouse
:
reset
()
self
.
key
:
reset
()
local
colx
=
0
...
...
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