Thread Tools Display Modes
Prev Previous Post   Next Post Next
06/12/14, 10:44 AM   #1
Dero
 
Dero's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 14
Masking a Window

Hey there.

Ive got a Question regarding the WINDOW_MANAGER.

Is it possible to not show things like texts/textures outside the regular borders?

Example:
Code:
MyFrame = WINDOW_MANAGER:CreateTopLevelWindow("Frame")
MyFrame:SetDrawLayer(1)
MyFrame:SetAnchor(TOPRIGHT,GuiRoot,TOPRIGHT,0,0)
MyFrame:SetDimensions(100,100)
MyFrame:SetShapeType(1)
MyFrameBG = WINDOW_MANAGER:CreateControlFromVirtual("MyFrameBG",Frame,"ZO_DefaultBackdrop")

MyText = WINDOW_MANAGER:CreateControl("MyText",Frame,CT_LABEL)
MyText:SetText("This text should only display 'This te'")
MyText:SetFont("ZoFontTooltipTitle")
MyText:SetAnchor(TOPLEFT,Frame,TOPLEFT,50,50)
This would be really helpful to create some kind of masks for things
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Masking a Window


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