Disabled result transitions for auto screenshots #42
|
@ -6,6 +6,8 @@ local Numbers = require('components.numbers')
|
||||||
local DiffRectangle = require('components.diff_rectangle');
|
local DiffRectangle = require('components.diff_rectangle');
|
||||||
local lang = require("language.call")
|
local lang = require("language.call")
|
||||||
|
|
||||||
|
require('common.gameconfig')
|
||||||
|
|
||||||
local creww = game.GetSkinSetting("single_idol")
|
local creww = game.GetSkinSetting("single_idol")
|
||||||
|
|
||||||
local VolforceWindow = require('components.volforceWindow')
|
local VolforceWindow = require('components.volforceWindow')
|
||||||
|
@ -268,7 +270,7 @@ local drawIdol = function(deltaTime)
|
||||||
gfx.GlobalAlpha(idolAnimTransitionScale);
|
gfx.GlobalAlpha(idolAnimTransitionScale);
|
||||||
|
|
||||||
idolAnimTransitionScale = idolAnimTransitionScale + 1 / 60;
|
idolAnimTransitionScale = idolAnimTransitionScale + 1 / 60;
|
||||||
if (idolAnimTransitionScale > 1) then
|
if (GameConfig["AutoScoreScreenshot"] or idolAnimTransitionScale > 1) then
|
||||||
idolAnimTransitionScale = 1;
|
idolAnimTransitionScale = 1;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -632,7 +634,7 @@ end
|
||||||
|
|
||||||
local tickTransitions = function(deltaTime)
|
local tickTransitions = function(deltaTime)
|
||||||
|
|
||||||
if transitionEnterScale < 1 then
|
if not GameConfig["AutoScoreScreenshot"] and transitionEnterScale < 1 then
|
||||||
transitionEnterScale = transitionEnterScale + deltaTime / 0.66 -- transition should last for that time in seconds
|
transitionEnterScale = transitionEnterScale + deltaTime / 0.66 -- transition should last for that time in seconds
|
||||||
else
|
else
|
||||||
transitionEnterScale = 1
|
transitionEnterScale = 1
|
||||||
|
@ -649,7 +651,7 @@ local tickTransitions = function(deltaTime)
|
||||||
(1 - Easing.outQuad(transitionEnterScale)))
|
(1 - Easing.outQuad(transitionEnterScale)))
|
||||||
|
|
||||||
|
|
||||||
if badgeLinesAnimScale < 1 then
|
if not GameConfig["AutoScoreScreenshot"] and badgeLinesAnimScale < 1 then
|
||||||
badgeLinesAnimScale = badgeLinesAnimScale + deltaTime / 0.5 -- transition should last for that time in seconds
|
badgeLinesAnimScale = badgeLinesAnimScale + deltaTime / 0.5 -- transition should last for that time in seconds
|
||||||
else
|
else
|
||||||
badgeLinesAnimScale = 0
|
badgeLinesAnimScale = 0
|
||||||
|
|
Loading…
Reference in New Issue