Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the 'to be continued...' black background.

  • Loading branch information...
commit 4a419dd6c423d085466fbfd5d5adf1d996f74e04 1 parent 2cd00ae
@Bertram25 Bertram25 authored
View
8 dat/maps/to_be_continued_anim.lua
@@ -19,7 +19,7 @@ function Initialize(map_instance)
Script = Map:GetScriptSupervisor();
Effects = Map:GetEffectSupervisor();
- dark_overlay_id = Script:AddImage("img/ambient/dark.png", 1024.0, 768.0);
+ dark_overlay_id = Script:AddImage("img/ambient/black.png", 1024.0, 768.0);
display_time = 0;
@@ -57,12 +57,10 @@ function DrawPostEffects()
-- Apply a dark overlay first.
local overlay_alpha = 1.0;
if (display_time >= 0 and display_time <= 2500) then
- overlay_alpha = 1.0 * (display_time / 2500);
+ overlay_alpha = display_time / 2500;
end
Script:DrawImage(dark_overlay_id, 512.0, 768.0, hoa_video.Color(1.0, 1.0, 1.0, overlay_alpha));
- Script:DrawImage(dark_overlay_id, 512.0, 768.0, hoa_video.Color(1.0, 1.0, 1.0, overlay_alpha));
- Script:DrawImage(dark_overlay_id, 512.0, 768.0, hoa_video.Color(1.0, 1.0, 1.0, overlay_alpha));
- VideoManager:DrawText(to_be_continued_text, 412.0, 348.0, hoa_video.Color(1.0, 1.0, 1.0, overlay_alpha));
+ VideoManager:DrawText(to_be_continued_text, 612.0, 448.0, hoa_video.Color(1.0, 1.0, 1.0, overlay_alpha));
end
View
BIN  img/ambient/black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4a419dd

Please sign in to comment.
Something went wrong with that request. Please try again.