- Fixed an issue when freeze text where getting out of instance space.

- Fixed an issue when resizing freeze text where not resizing too.
- Added an extra parameter for Image Editor.
- Added Archeology and Class Character Images for Instance backgrounds.
- Fixen an issue when calling image editor throgh options panel where calling
wrong instance.
This commit is contained in:
Tercio
2013-08-10 15:54:15 -03:00
parent 10246a41fb
commit 2be7a9f1f5
6 changed files with 72 additions and 7 deletions
+7 -2
View File
@@ -337,6 +337,8 @@ local g = _detalhes.gump
end
rightCoordTexture:Hide()
leftCoordTexture:Hide()
rightSlider:Hide()
leftSlider:Hide()
leftTexCoordButton:Disable()
rightTexCoordButton:Disable()
else
@@ -361,6 +363,8 @@ local g = _detalhes.gump
end
topCoordTexture:Hide()
bottomCoordTexture:Hide()
topSlider:Hide()
bottomSlider:Hide()
topTexCoordButton:Disable()
bottomTexCoordButton:Disable()
else
@@ -410,7 +414,7 @@ local g = _detalhes.gump
coords [4] = bottomSlider.value/100
end
return window.callback_func (edit_texture.width, edit_texture.height, {edit_texture:GetVertexColor()}, edit_texture:GetAlpha(), coords)
return window.callback_func (edit_texture.width, edit_texture.height, {edit_texture:GetVertexColor()}, edit_texture:GetAlpha(), coords, window.extra_param)
end
local acceptButton = g:NewButton (buttonsBackground, _, "$parentAcceptButton", _, 100, 20, accept, _, _, _, "DONE")
@@ -426,7 +430,7 @@ window:Hide()
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
local ttexcoord
function g:ImageEditor (callback, texture, texcoord, colors)
function g:ImageEditor (callback, texture, texcoord, colors, extraParam)
edit_texture:SetTexture (texture)
@@ -442,6 +446,7 @@ window:Hide()
window:Show()
window.callback_func = callback
window.extra_param = extraParam
buttonsBackground:Show()
end