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
12f0e284
Commit
12f0e284
authored
10 years ago
by
Alex Ksandra
Browse files
Options
Downloads
Patches
Plain Diff
Even more calculations, woo!
parent
ad089c8e
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/engines/default/engine/ui/Dialog.lua
+14
-2
14 additions, 2 deletions
game/engines/default/engine/ui/Dialog.lua
with
14 additions
and
2 deletions
game/engines/default/engine/ui/Dialog.lua
+
14
−
2
View file @
12f0e284
...
@@ -457,11 +457,23 @@ function _M:setupUI(resizex, resizey, on_resize, addmw, addmh)
...
@@ -457,11 +457,23 @@ function _M:setupUI(resizex, resizey, on_resize, addmw, addmh)
local
regenerate
=
false
local
regenerate
=
false
if
ui
.
calc_width
then
if
ui
.
calc_width
then
ui
.
ui
.
w
=
self
.
iw
-
(
ui
.
right
+
ui
.
left
)
if
ui
.
left
and
ui
.
right
then
ui
.
ui
.
w
=
self
.
iw
-
(
ui
.
right
+
ui
.
left
)
elseif
ui
.
left
and
ui
.
hcenter
then
ui
.
ui
.
w
=
self
.
iw
+
2
*
(
ui
.
hcenter
-
ui
.
left
)
elseif
ui
.
hcenter
and
ui
.
right
then
ui
.
ui
.
w
=
self
.
iw
+
2
*
(
-
ui
.
hcenter
-
ui
.
right
)
end
regenerate
=
true
regenerate
=
true
end
end
if
ui
.
calc_height
then
if
ui
.
calc_height
then
ui
.
ui
.
h
=
self
.
ih
-
(
ui
.
top
+
ui
.
bottom
)
if
ui
.
top
and
ui
.
bottom
then
ui
.
ui
.
h
=
self
.
ih
-
(
ui
.
bottom
+
ui
.
top
)
elseif
ui
.
top
and
ui
.
vcenter
then
ui
.
ui
.
h
=
self
.
ih
+
2
*
(
ui
.
vcenter
-
ui
.
top
)
elseif
ui
.
vcenter
and
ui
.
bottom
then
ui
.
ui
.
h
=
self
.
ih
+
2
*
(
-
ui
.
vcenter
-
ui
.
bottom
)
end
regenerate
=
true
regenerate
=
true
end
end
if
regenerate
then
if
regenerate
then
...
...
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