This commit is contained in:
Tercio
2013-08-09 16:11:35 -03:00
parent c4ca040e21
commit 10246a41fb
3 changed files with 40 additions and 7 deletions
+5
View File
@@ -807,6 +807,11 @@ function _detalhes:RestauraJanela (index, temp)
height = 0,
overlay = {1, 1, 1, 1}
}
if (self.wallpaper.enabled) then
self:InstanceWallpaper (true)
end
self:InstanceColor (self.color)
self.largura_scroll = 26
+8
View File
@@ -1684,6 +1684,14 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando)
instancia.freeze_texto:SetText (Loc ["STRING_FREEZE"])
instancia.freeze_texto:Hide()
instancia._version = BaseFrame:CreateFontString (nil, "OVERLAY", "GameFontHighlightSmall")
instancia._version:SetPoint ("left", BackGroundDisplay, "left", 20, 0)
instancia._version:SetTextColor (1, 1, 1)
instancia._version:SetText ("this is a early alpha version (1) of Details\nyou can help us sending bug reports\nuse the blue button.")
if (not _detalhes.initializing) then
instancia._version:Hide()
end
BaseFrame.wallpaper = BaseFrame:CreateTexture (nil, "border")
BaseFrame.wallpaper:Hide()
+25 -5
View File
@@ -81,11 +81,9 @@ function _G._detalhes:Start()
menus = 10
}
if (not self.tutorial) then
self.tutorial = {
unlock_button = 0,
}
end
self.tutorial = self.tutorial or {}
self.tutorial.unlock_button = self.tutorial.unlock_button or 0
self.tutorial.version_announce = self.tutorial.version_announce or 0
--> class colors and tcoords
if (not self.class_colors) then
@@ -236,4 +234,26 @@ function _G._detalhes:Start()
end
self:ScheduleTimer ("AnnounceStartup", 5)
--> announce alpha version
function self:AnnounceVersion()
for index, instancia in ipairs (self.tabela_instancias) do
if (instancia.ativa) then
self.gump:Fade (instancia._version, "in", 5)
end
end
end
if (self.tutorial.version_announce < 4) then
self:ScheduleTimer ("AnnounceVersion", 20)
self.tutorial.version_announce = self.tutorial.version_announce + 1
else
for index, instancia in ipairs (self.tabela_instancias) do
if (instancia.ativa) then
instancia._version:SetText ("Details Alpha (" .. self.realversion..")")
instancia._version:SetPoint ("bottomleft", self.baseframe, "bottomleft", 0, 16)
self.gump:Fade (instancia._version, "in", 10)
end
end
end
end