View Single Post
11-01-10, 01:34 PM   #3
samishii23
An Aku'mai Servant
Join Date: Oct 2010
Posts: 33
Thanks for the conversion. Alas, now its being funky.

Code:
function SK.LoadMain()
	-- Create Main frame
	SK.Frame.Options = CreateFrame("Frame", "SK Test", UIParent)
	SK.Frame.Options:SetFrameStrata("TOOLTIP")
	SK.Frame.Options:SetWidth(200)
	SK.Frame.Options:SetHeight(100)
	SK.Frame.Options:SetPoint("LEFT",100,50)
	SK.Frame.Options:SetBackdrop(SK.Styles.Main)
	SK.Frame.Options:SetBackdropColor(Color("Black"))
	SK.Frame.Options:Hide()
	
	-- X Button to close window
	SK.Button.Options_X = CreateFrame("Button", nil, SK.Frame.Options)
	SK.Button.Options_X:SetPoint("TOPRIGHT", 0, 0)
	SK.Button.Options_X:SetHeight(20)
	SK.Button.Options_X:SetWidth(20)
	SK.Button.Options_X:SetNormalTexture([[Interface\Buttons\UI-Panel-MinimizeButton-Up]]) 
	SK.Button.Options_X:SetPushedTexture([[Interface\Buttons\UI-Panel-MinimizeButton-Down]]) -- OnClick Effect
	SK.Button.Options_X:SetHighlightTexture([[Interface\Buttons\UI-Panel-MinimizeButton-Highlight]], "ADD") -- MouseOver Effect
	SK.Button.Options_X:SetScript("OnClick", function() SK.Frame.Options:Hide() end) -- EventFired action
	
	-- Texture for header bar
	local HeaderBar = SK.Frame.Options:CreateTexture(SK.Frame.Options:GetName().."HeaderBar")
	HeaderBar:SetTexture([[Interface\PaperDollInfoFrame\UI-GearManager-Title-Background]])
	HeaderBar:SetPoint("TOPLEFT", 9, -6)
	HeaderBar:SetPoint("BOTTOMRIGHT", -6, -24)
	SK.Frame.Options.HeaderBar = HeaderBar
	
	-- Title Bar Text
	SK.FString.Str1 = SK.Frame.Options:CreateFontString(nil, "ARTWORK", "GameFontNormal")
	SK.FString.Str1:SetPoint("TOPLEFT", 15, -5)
	SK.FString.Str1:SetText("Testing, Testing!")
	
	-- Event Registering
	SK.Frame.Options:SetScript("OnEvent", SK.Events)
	--SK.Frame.Options:RegisterEvent("
end
Thats the whole frame code. But the texture I just implemented went way over the window code, what did I do wrong? ( Problem seen in attachment )
Attached Thumbnails
Click image for larger version

Name:	ui_1.JPG
Views:	539
Size:	4.9 KB
ID:	5156  
  Reply With Quote