View Single Post
02-23-06, 07:22 PM   #1
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 7,134
Upcoming 1.10 Changes

Iriel has created and is maintaining the (traditional) "Consolidated Changes Thread" on the Blizz forum, per usual, here.

Last updated 2006-03-09 (12pm PST)

Significant Change Summary
# New Font objects for on-the-fly font configuration.
# Can create new UI Frames, Textures, and FontStrings at runtime.
# It will no longer be possible to replace Blizzard interface files (FrameXML/)
# You can no longer hook blizzard movement or mouse action functions.

Widget API Functions
# NEW: texture = Frame:CreateTexture(["name"] [,"layer"]) -- Create a new Texture object as a child of a frame.
# NEW: fontstring = Frame:CreateFontString(["name"] [,"layer"]) -- Create a new FontString object as a child of a frame.
# NEW: numRegions = Frame:GetNumRegions() -- Return the number of regions (Textures/FontStrings) attached to a frame.
# NEW: a, b, c, ... = Frame:GetRegions() -- Return the regions attached to a frame.
# NEW: type = Frame:GetObjectType() -- Behaves as Frame:GetFrameType() does today.
# NEW: isType = Frame:IsObjectType("type") -- Behaves as Frame:IsFrameType("type") does today.

# NEW LayoutFrame (Inherited by all viewable object types) Methods

* numPoints = LayoutFrame:GetNumPoints() -- Returns the number of anchor points
* "point",relativeObject,"relativePoint",xOfs,yOfs = LayoutFrame:GetPoint(index) -- Returns details of an anchor point
* LayoutFrame:SetPoint("point",relativeObject,"relativePoint",xOfs,yOfs) -- New form, in addition to all existing ones (relative object instead of name)

# NEW/UPDATED Texture Methods

* parent = Texture:GetParent()
* Texture:SetParent(parent or "parent")
* layer = Texture:GetDrawLayer()
* Texture:SetDrawLayer("layer")
* blendMode = Texture:GetBlendMode()
* Texture:SetBlendMode("blendMode") -- blendMode is one of "DISABLE", "BLEND", "ALPHAKEY", "ADD", "MOD"
* r,g,b,a = Texture:GetVertexColor()
* type = Texture:GetObjectType() -- Returns "Texture"
* isType = Texture:IsObjectType("type") -- Returns whether "type" is "Texture"
* x,y = Texture:GetCenter();
* x = Texture:GetLeft();
* x = Texture:GetRight();
* y = Texture:GetTop();
* y = Texture:GetBottom();
* Texture:SetAllPoints("frame");
* isFound = Texture:SetTexture("path") -- Now returns true if the path was found, nil if not.

# NEW FontString methods:

* parent = FontString:GetParent()
* FontString:SetParent(parent or "parent")
* layer = FontString:GetDrawLayer()
* FontString:SetDrawLayer("layer")
* a = FontString:GetAlpha()
* type = FontString:GetObjectType() -- Returns "FontString"
* isType = FontString:IsObjectType("type") -- Returns whether "type" is "FontString"
* x,y = FontString:GetCenter();
* x = FontString:GetLeft();
* x = FontString:GetRight();
* y = FontString:GetTop();
* y = FontString:GetBottom();
* FontString:SetAllPoints("frame");

# NEW/UPDATED methods for each of FontString, MessageFrame, ScrollingMessageFrame, and EditBox the following methods (some may already be present in 1.9):

* font = Frame:GetFontObject()
* Frame:SetFontObject(font or nil)
* fontFile, fontHeight, flags = Frame:GetFont()
* wasFound = Frame:SetFont("fontFile", fontHeight [, flags]) -- Returns true if specified font was valid, and nil if it was not (the change will not occur).
* r,g,b,a = Frame:GetTextColor()
* Frame:SetTextColor(r, g, b [, a])
* r,g,b,a = Frame:GetShadowColor()
* Frame:SetShadowColor(r, g, b [, a])
* x,y = Frame:GetShadowOffset()
* Frame:SetShadowOffset(x, y)
* spacing = Frame:GetSpacing()
* Frame:SetSpacing(spacing)
* justifyh = Font:GetJustifyH()
* Frame:SetJustifyH("LEFT" or "CENTER" or "RIGHT")
* justfiyv = Frame:GetJustifyV()
* Frame:SetJustifyV("TOP" or "MIDDLE" or "BOTTOM")

# NEW/UPDATED ScrollingMessageFrame methods

* NEW ScrollingMessageFrame:SetFading(isFading) -- Renamed from ScrollingMessageFrame:EnableFading()
* NEW isFading = ScrollingMessageFrame:GetFading()
* NEW duration = ScrollingMessageFrame:GetFadeDuration() -- Get time it takes for lines to fade once they start fading.
* NEW visTime = ScrollingMessageFrame:GetTimeVisible() -- Get time it takes before a line starts fading.
* UPDATED ScrollingMessageFrame:SetTimeVisible(visTime) -- Will affect visible lines as well as new ones.
* UPDATED ScrollingMessageFrame:SetFadeDuration(duration) -- Will affect visible lines as well as new ones.

# NEW SimpleHTML methods ("header" is "H1" "H2" or "H3")

* font = SimpleHTMLGetFontObject(["header",])
* SimpleHTMLSetFontObject(["header",]font or nil)
* fontFile, fontHeight, flags = SimpleHTMLGetFont(["header",])
* wasFound = SimpleHTMLSetFont(["header",]"fontFile", fontHeight [, flags]) -- Returns true if specified font was valid, and nil if it was not (the change will not occur).
* r,g,b,a = SimpleHTMLGetTextColor(["header",])
* SimpleHTMLSetTextColor(["header",]r, g, b [, a])
* r,g,b,a = SimpleHTMLGetShadowColor(["header",])
* SimpleHTMLSetShadowColor(["header",]r, g, b [, a])
* x,y = SimpleHTMLGetShadowOffset(["header",])
* SimpleHTMLSetShadowOffset(["header",]x, y)
* spacing = SimpleHTMLGetSpacing(["header",])
* SimpleHTMLSetSpacing(["header",]spacing)
* justifyh = Font:GetJustifyH(["header",])
* SimpleHTMLSetJustifyH(["header",]"LEFT" or "CENTER" or "RIGHT")
* justfiyv = SimpleHTMLGetJustifyV(["header",])
* SimpleHTMLSetJustifyV(["header",]"TOP" or "MIDDLE" or "BOTTOM")

# NEW Font object with methods:

* name = Font:GetName()
* a = Font:GetAlpha()
* Font:SetAlpha(a)
* font = Font:GetFontObject() -- Get the 'parent' of the Font.
* Font:SetFontObject(font or nil) -- Set the 'parent' of the Font.
* Font:CopyFontObject(font) -- Set this Font's attributes to be the same as those of font.
* fontFile, fontHeight, flags = Font:GetFont()
* wasFound = Font:SetFont("fontFile", fontHeight [, flags]) -- Returns true if specified font was valid, and nil if it was not (the change will not occur).
* r,g,b,a = Font:GetTextColor()
* Font:SetTextColor(r, g, b [, a])
* r,g,b,a = Font:GetShadowColor()
* Font:SetShadowColor(r, g, b [, a])
* x,y = Font:GetShadowOffset()
* Font:SetShadowOffset(x, y)
* Font:SetSpacing(spacing)
* spacing = Font:GetSpacing()
* Font:SetJustifyH("LEFT" or "CENTER" or "RIGHT")
* justifyh = Font:GetJustifyH()
* Font:SetJustifyV("TOP" or "MIDDLE" or "BOTTOM")
* justifyv = Font:GetJustifyV()

# NEW/UPDATED Button methods:

* NEW font = Button:GetTextFontObject()
* NEW Button:SetTextFontObject(font or nil)
* NEW font = Button:GetDisabledFontObject()
* NEW Button:SetDisabledFontObject(font or nil)
* NEW font = Button:GetHighlightFontObject()
* NEW Button:SetHighlightFontObject(font or nil)
* UPDATED Button:SetNormalTexture("texturePath" or TextureObject) -- Added Texture Object option.
* UPDATED Button:SetPushedTexture("texturePath" or TextureObject) -- Added Texture Object option.
* UPDATED Button:SetDisabledTexture("texturePath" or TextureObject) -- Added Texture Object option.
* UPDATED Button:SetHighlightTexture("texturePath" or TextureObject) -- Added Texture Object option.

# NEW Minimap methods:

* Minimap:SetMaskTexture("file") -- Set the texture for the minimap mask, defaults to "Textures\\MinimapMask".
* Minimap:SetIconTexture("file") -- Set the texture for the minimap POI icon, defaults to "Interface\\Minimap\\POIIcons".
* Minimap:SetBlipTexture("file") -- Set the texture for the minimap tracking blip, defaults to "Interface\\Minimap\\ObjectIcons".

# NEW Slider methods:

* orientation = Slider:GetOrientation() -- Return slider orientation
* Slider:SetOrientation("orientation") -- Set slider orientation ("HORIZONTAL","VERTICAL")

# NEW StatusBar methods:

* orientation = StatusBar:GetOrientation() -- Return bar orientation
* StatusBar:SetOrientation("orientation") -- Set bar orientation ("HORIZONTAL","VERTICAL")
* filename = StatusBar:GetStatusBarTexture()
* r, g, b, a = StatusBar:GetStatusBarColor()

# NEW EditBox methods:

* EditBox:SetAltArrowKeyMode(enabled) -- Set if the ALT key must be held for arrow keys to work in the edit box.
* enabled = EditBox:GetAltArrowKeyMode() -- Get the current ALT key mode.

# NEW ScrollFrame methods:

* ScrollFrame:SetScrollChild(frame or "framename")
* frame = ScrollFrame:GetScrollChild()

(continued)

Last edited by Cairenn : 08-01-08 at 03:17 AM.
  Reply With Quote