- Added scale options.
- New API: instance:GetRealSize() return the width and height scaled. - New API: instance:GetPositionOnScreen() return the window x, y position on screen. - New API: instance:SetWindowScale (scale) set the window scale. - New API: instance:IsGroupedWith (instance) return if self is groupped with instance. - New API: instance:GetInstanceGroup([,instance id]) return a table with instance in the group.
This commit is contained in:
+7
-8
@@ -157,18 +157,17 @@ function _G._detalhes:Start()
|
||||
self.RefreshAfterStartup = nil
|
||||
|
||||
function _detalhes:CheckWallpaperAfterStartup()
|
||||
for _, instance in ipairs (self.tabela_instancias) do
|
||||
if (not instance.wallpaper.enabled) then
|
||||
if (instance:IsAtiva()) then
|
||||
for i = 1, self.instances_amount do
|
||||
local instance = self:GetInstance (i)
|
||||
if (instance and instance:IsEnabled()) then
|
||||
if (not instance.wallpaper.enabled) then
|
||||
instance:InstanceWallpaper (false)
|
||||
end
|
||||
self.move_janela_func (instance.baseframe, true, instance)
|
||||
self.move_janela_func (instance.baseframe, false, instance)
|
||||
end
|
||||
if (instance:IsEnabled()) then
|
||||
_detalhes.move_janela_func (instance.baseframe, true, instance)
|
||||
_detalhes.move_janela_func (instance.baseframe, false, instance)
|
||||
end
|
||||
self.CheckWallpaperAfterStartup = nil
|
||||
end
|
||||
self.CheckWallpaperAfterStartup = nil
|
||||
end
|
||||
_detalhes:ScheduleTimer ("CheckWallpaperAfterStartup", 5)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user