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:
Kyzentun
2014-08-29 23:30:36 -06:00
parent 4cf4e30bb9
commit 5f6e574ffc
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -178,7 +178,7 @@ bg_fit_functions= {
end
}
function Actor:scale_or_crop_background()
function Actor:scale_or_crop_background_no_move()
local fit_mode= PREFSMAN:GetPreference("BackgroundFitMode")
if bg_fit_functions[fit_mode] then
bg_fit_functions[fit_mode](self, SCREEN_WIDTH, SCREEN_HEIGHT)
@@ -187,6 +187,11 @@ function Actor:scale_or_crop_background()
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:CenterY() self:y(SCREEN_CENTER_Y) end
function Actor:Center() self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y) end
+1 -1
View File
@@ -149,7 +149,7 @@ local log_display_mt= {
-- Long ago, someone decided that "::" should be an alias for "\n"
-- and hardcoded it into BitmapText.
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
if message == prevmess then return end
end