Reply
Thread Tools Display Modes
Unread 02-23-06, 07:22 PM   #1
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 6,910
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.
Cairenn is offline   Reply With Quote
Unread 02-23-06, 07:22 PM   #2
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 6,910
Frame API Functions
# NEW: frame = CreateFrame("frameType" [,"name"] [, parent]) -- Create a new frame of the specified type ("Button", "Slider", etc).
# NEW: font = CreateFont("name") -- Dynamically create a font object
# NEW: num = GetNumFrames() -- Get the current number of Frame (and derivative) objects
# nextFrame = EnumerateFrames(currentFrame) -- Get the Frame which follows currentFrame (in internal order, use currentFrame=nil for the first one)

XML Schema Changes
# EditBox, MessageFrame, ScrollingMessageFrame, SimpleHTML accept a font= attribute, which specifies a Font object to use (NOT a font file path)

FrameXML Interface Code
# NUM_CONTAINER_FRAMES increased to match actual max number of open containers (11, rather than 9)
# In FrameXML\Fonts.xml, the system FontStrings become Font objects.

Spell Casting
# CastSpellByName("Spell Name" [,onSelf]) -- Now takes optional onSelf parameter similar to UseAction.

LUA Standard Library
# Enabled the loadstring function.

Other API Functions
# seterrorhandler(errfunc) -- Sets a new error handler (a function taking error message as its argument)
# errfunc = geterrorhandler() -- Gets the current error handler.
# version, buildnum, builddate = GetBuildInfo() -- Returns information about the current build.
# REMOVED: LaunchURL() will no longer be available.
# MouselookStart() -- Start mouse-looking.
# MouselookStop() -- Stop mouse-looking.
# IsMouselooking() -- Return whether mouse look is enabled.

Bug Fixes
# Enchant tooltips will properly refresh as missing item data is fetched from server.
# SetBinding will correctly fire UPDATE_BINDINGS events.
# Removed 1024 character limit on saved variable names.
# Deeply nested table structures will no longer break saved variables.
# Fixed UseAction self cast for weapon enchants.
# Spell links for quest rewards will work reliably.
# Fixed per-char/global macro ID overwriting.
# Fixed spell rank increases replacing macros which referred to that spell.
# Link content spoofing should now be blocked (Presumably with disconnection).
# Fixed < br/ >< /br > problem in SimpleHTML.

Event Changes
# Healing will be reported when the target is actually healed, rather than when the client initiates a heal. (Overhealing will still not be reported).

----

Sources:

# 1.10 Sneak peak - Font Objects: http://forums.worldofwarcraft.com/th...ation&t=284479
# 1.10 Sneak peak - Dynamic Frames: http://forums.worldofwarcraft.com/th...ation&t=286153
# RunScript enhancement or loadstring??: http://forums.worldofwarcraft.com/th...ation&t=309903
# Shortcomings of SavedVariables: http://forums.worldofwarcraft.com/th...ation&t=314454
# SetBinding Bug with UPDATE_BINDINGS: http://forums.worldofwarcraft.com/th...ation&t=315249
# Get rid of overheals in combat: http://forums.worldofwarcraft.com/th...ation&t=306401

Last edited by Cairenn : 03-10-06 at 12:40 AM.
Cairenn is offline   Reply With Quote
Reply

Go BackWoWInterface » Site Forums » News » Upcoming 1.10 Changes

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off