[XPERIA X1 ROM Development] malkovy:
Messages

Hi,

I tried to dig into manilla allmessages lua scripts to do something with landscape problems. I do reshearching and found that 6237d9f5_manila should be responsible for landscape mode. After decompilation it looks like that:

trace("Load AllMessages_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
AllMessages_ScreenRotation = class(RotationTemplate)
AllMessages_ScreenRotation.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4)
l_1_0._Listview = l_1_1
l_1_0._Camera3D = l_1_3
l_1_0._Camera2D = l_1_2
l_1_0._Mask = l_1_4
RotationTemplate.__init(l_1_0)
trace("+++++++[AllMessages_ScreenRotation] : __init")
end

AllMessages_ScreenRotation.OnScreenRotation = function(l_2_0)
trace("+++++++[AllMessages_ScreenRotation] : OnScreenRotation")
local l_2_1 = screenHeight
if l_2_0._Camera2D then
l_2_0._Camera2D.Viewport.value = RectF(0, 0, screenWidth, screenHeight)
l_2_0._Camera2D.ViewLeft.value = 0
l_2_0._Camera2D.ViewRight.value = screenWidth
l_2_0._Camera2D.ViewTop.value = 0
l_2_0._Camera2D.ViewButtom.value = -screenHeight
end
if l_2_0._Camera3D then
l_2_0._Camera3D.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
l_2_0._Camera3D.ViewLeft.value = 0
l_2_0._Camera3D.ViewRight.value = screenWidth
l_2_0._Camera3D.ViewTop.value = 0
l_2_0._Camera3D.ViewButtom.value = l_2_1
l_2_0._Camera3D.CameraPosition.value = Vector3(0, 0, l_2_1 / 2)
end
if _application.Orientation == ScreenOrientation_Portrait then
l_2_0._Mask.Rectangle = RectFProperty(RectF(0, 60, 480, 560))
LVHeight = 544
LVPositionX = 0
LVPositionY = -60
LVWidth = 480
ItemSizeWidth = 480
ItemSizeHeight = 80
else
if _application.Orientation == ScreenOrientation_Landscape then
LVPositionY = -60
LVHeight = 318
l_2_0._Mask.Rectangle = RectFProperty(RectF(-500, 60, 2000, 2000))
LVPositionX = 0
LVWidth = 800
ItemSizeWidth = 800
ItemSizeHeight = 80
end
end
l_2_0:ResetListViewContent(_application.Orientation)
end

AllMessages_ScreenRotation.ResetListViewContent = function(l_3_0, l_3_1)
trace("+++++++[AllMessages_ScreenRotation] : ResetListViewContent")
if not l_3_0._Listview:HasLayout() then
return
end
l_3_0._Listview.Position.x = LVPositionX
l_3_0._Listview.Position.y = LVPositionY
l_3_0._Listview.Viewport.x = LVWidth
l_3_0._Listview.Viewport.y = LVHeight
local l_3_2 = Vector3F()
l_3_2.x = ItemSizeWidth
l_3_2.y = ItemSizeHeight
l_3_2.z = 0
l_3_0._Listview:GetLayout().ItemSize = l_3_2
local l_3_3 = l_3_0._Listview:GetLayout().SelectionNode
if l_3_3 then
if l_3_0._application.Orientation == ScreenOrientation_Portrait then
l_3_3.Scale = Vector3Property(Vector3(1, 1, 1))
else
if l_3_0._application.Orientation == ScreenOrientation_Landscape then
l_3_3.Scale = Vector3Property(Vector3(1.6999969482421875, 1, 1))
end
end
end
local l_3_4 = nil
local l_3_5 = 0
l_3_5 = l_3_0._Listview:GetGenerator():GetCount()
local l_3_6 = l_3_0._Listview:GetGenerator()
for l_3_10 = 0, l_3_5 - 1 do
l_3_4 = l_3_6:GetItem(l_3_10)
if l_3_4 then
_Namespace = l_3_4.Namespace
local l_3_11 = _Namespace:FindName("msg_seperator")
if l_3_11 then
l_3_11.Size.width = ItemSizeWidth
l_3_11.TextureCoords:set(0, 0, ItemSizeWidth / 2, 1)
end
local l_3_12 = _Namespace:FindName("msg_time")
if l_3_12 then
l_3_12.Position.x = ItemSizeWidth - 165
end
end
end
end

trace("Load AllMessages_Landscape.lua end")

I think so the LVHeight = 318 value is responsible ror height of area with messages so if we reduced this to around 160 the text field won't cover messages. But after compiling that file, copying it to windows folder and soft resseting I did't see any change :( I don't know whats is wrong maybe its another value? If anybody could help me we can do a workground for this issue.

I also want to change wallpaper for level 1 but after editing the files with cfc gui and coping it to windows folder I did't see any change but with wallpaper for level 0 it's working so I don't know whats is wrong.

Very sorry for my English I hope so you could undertand it :)