Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
aabb0bbc
Commit
aabb0bbc
authored
4 years ago
by
Andrey Kleshchev
Browse files
Options
Downloads
Patches
Plain Diff
SL-13390 Disable Havok icon when Havok is not included
parent
846d0d33
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/CMakeLists.txt
+6
-0
6 additions, 0 deletions
indra/newview/CMakeLists.txt
indra/newview/llprogressview.cpp
+7
-6
7 additions, 6 deletions
indra/newview/llprogressview.cpp
with
13 additions
and
6 deletions
indra/newview/CMakeLists.txt
+
6
−
0
View file @
aabb0bbc
...
@@ -1736,6 +1736,12 @@ if (FMODSTUDIO)
...
@@ -1736,6 +1736,12 @@ if (FMODSTUDIO)
endif
(
FMODSTUDIO
)
endif
(
FMODSTUDIO
)
set_source_files_properties
(
llstartup.cpp PROPERTIES COMPILE_FLAGS
"
${
LLSTARTUP_COMPILE_FLAGS
}
"
)
set_source_files_properties
(
llstartup.cpp PROPERTIES COMPILE_FLAGS
"
${
LLSTARTUP_COMPILE_FLAGS
}
"
)
if
(
HAVOK OR HAVOK_TPV
)
set
(
LLSTARTUP_COMPILE_FLAGS
"
${
LLSTARTUP_COMPILE_FLAGS
}
-DLL_HAVOK"
)
endif
(
HAVOK OR HAVOK_TPV
)
# progress view disables/enables icons based on available packages
set_source_files_properties
(
llprogressview.cpp PROPERTIES COMPILE_FLAGS
"
${
LLSTARTUP_COMPILE_FLAGS
}
"
)
set_source_files_properties
(
llprogressview.cpp PROPERTIES COMPILE_FLAGS
"
${
LLSTARTUP_COMPILE_FLAGS
}
"
)
list
(
APPEND viewer_SOURCE_FILES
${
viewer_HEADER_FILES
}
)
list
(
APPEND viewer_SOURCE_FILES
${
viewer_HEADER_FILES
}
)
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llprogressview.cpp
+
7
−
6
View file @
aabb0bbc
...
@@ -385,7 +385,6 @@ void LLProgressView::initLogos()
...
@@ -385,7 +385,6 @@ void LLProgressView::initLogos()
const
S32
default_pad
=
15
;
const
S32
default_pad
=
15
;
S32
icon_width
,
icon_height
;
S32
icon_width
,
icon_height
;
S32
pad_y
=
0
;
// We don't know final screen rect yet, so we can't precalculate position fully
// We don't know final screen rect yet, so we can't precalculate position fully
LLTextBox
*
logos_label
=
getChild
<
LLTextBox
>
(
"logos_lbl"
);
LLTextBox
*
logos_label
=
getChild
<
LLTextBox
>
(
"logos_lbl"
);
...
@@ -405,28 +404,30 @@ void LLProgressView::initLogos()
...
@@ -405,28 +404,30 @@ void LLProgressView::initLogos()
// with no internal paddings so it gets additional padding
// with no internal paddings so it gets additional padding
icon_width
=
77
;
icon_width
=
77
;
icon_height
=
21
;
icon_height
=
21
;
pa
d_y
=
4
;
S32
pad_fmo
d_y
=
4
;
texture_start_x
++
;
texture_start_x
++
;
loadLogo
(
temp_str
+
"fmod_logo.png"
,
loadLogo
(
temp_str
+
"fmod_logo.png"
,
image_codec
,
image_codec
,
LLRect
(
texture_start_x
,
texture_start_y
+
pad_y
+
icon_height
,
texture_start_x
+
icon_width
,
texture_start_y
+
pad_y
),
LLRect
(
texture_start_x
,
texture_start_y
+
pad_
fmod_
y
+
icon_height
,
texture_start_x
+
icon_width
,
texture_start_y
+
pad_
fmod_
y
),
default_clip
,
default_clip
,
default_clip
);
default_clip
);
texture_start_x
+=
icon_width
+
default_pad
+
1
;
texture_start_x
+=
icon_width
+
default_pad
+
1
;
#endif
#endif //LL_FMODSTUDIO
#ifdef LL_HAVOK
// original image size is 342x113, central element is on a larger side
// original image size is 342x113, central element is on a larger side
// plus internal padding, so it gets slightly more height than desired 32
// plus internal padding, so it gets slightly more height than desired 32
icon_width
=
88
;
icon_width
=
88
;
icon_height
=
29
;
icon_height
=
29
;
pad
_y
=
-
1
;
S32
pad_havok
_y
=
-
1
;
loadLogo
(
temp_str
+
"havok_logo.png"
,
loadLogo
(
temp_str
+
"havok_logo.png"
,
image_codec
,
image_codec
,
LLRect
(
texture_start_x
,
texture_start_y
+
pad_y
+
icon_height
,
texture_start_x
+
icon_width
,
texture_start_y
+
pad_y
),
LLRect
(
texture_start_x
,
texture_start_y
+
pad_
havok_
y
+
icon_height
,
texture_start_x
+
icon_width
,
texture_start_y
+
pad_
havok_
y
),
default_clip
,
default_clip
,
default_clip
);
default_clip
);
texture_start_x
+=
icon_width
+
default_pad
;
texture_start_x
+=
icon_width
+
default_pad
;
#endif //LL_HAVOK
// 108x41
// 108x41
icon_width
=
74
;
icon_width
=
74
;
...
...
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