Changed Actor:scale_or_crop_background back to forcing the actor to the screen center. Changed LogDisplay's IgnoreIdentical to not ignore when hidden.
This commit is contained in:
@@ -178,7 +178,7 @@ bg_fit_functions= {
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
function Actor:scale_or_crop_background()
|
function Actor:scale_or_crop_background_no_move()
|
||||||
local fit_mode= PREFSMAN:GetPreference("BackgroundFitMode")
|
local fit_mode= PREFSMAN:GetPreference("BackgroundFitMode")
|
||||||
if bg_fit_functions[fit_mode] then
|
if bg_fit_functions[fit_mode] then
|
||||||
bg_fit_functions[fit_mode](self, SCREEN_WIDTH, SCREEN_HEIGHT)
|
bg_fit_functions[fit_mode](self, SCREEN_WIDTH, SCREEN_HEIGHT)
|
||||||
@@ -187,6 +187,11 @@ function Actor:scale_or_crop_background()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Actor:scale_or_crop_background()
|
||||||
|
self:scale_or_crop_background_no_move()
|
||||||
|
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y)
|
||||||
|
end
|
||||||
|
|
||||||
function Actor:CenterX() self:x(SCREEN_CENTER_X) end
|
function Actor:CenterX() self:x(SCREEN_CENTER_X) end
|
||||||
function Actor:CenterY() self:y(SCREEN_CENTER_Y) end
|
function Actor:CenterY() self:y(SCREEN_CENTER_Y) end
|
||||||
function Actor:Center() self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y) end
|
function Actor:Center() self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y) end
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ local log_display_mt= {
|
|||||||
-- Long ago, someone decided that "::" should be an alias for "\n"
|
-- Long ago, someone decided that "::" should be an alias for "\n"
|
||||||
-- and hardcoded it into BitmapText.
|
-- and hardcoded it into BitmapText.
|
||||||
local message= tostring(mess.message):gsub("::", ":")
|
local message= tostring(mess.message):gsub("::", ":")
|
||||||
if params.IgnoreIdentical then
|
if params.IgnoreIdentical and not self.hidden then
|
||||||
for i, prevmess in ipairs(self.message_log) do
|
for i, prevmess in ipairs(self.message_log) do
|
||||||
if message == prevmess then return end
|
if message == prevmess then return end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user