lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 12-18-2010, 05:54 PM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Help needed...

I am writing an option dialogue for fading and am using a button with the following code;

Quote:
Option.OOCMOIcon=Turbine.UI.Button()
Option.OOCMOIcon :SetPosition ( 52,22 )
Option.OOCMOIcon :SetSize ( 32,32 )
Option.OOCMOIcon :SetOpacity ( self.Data.oocmo )
Option.OOCMOIcon :SetParent ( Option.faderbox )
Option.OOCMOIcon :SetBackground ( 0x4100883e )
Why does it always remain at full opacity?
__________________
************************************************** ************************************************** **
"Our ideals may never be realised, But they indicate what we are trying to do." Dick Tahta
Reply With Quote
  #2  
Unread 12-18-2010, 08:06 PM
Cearbhall's Avatar
Cearbhall Cearbhall is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 5
I think :SetOpacity only works on windows for some reason
Reply With Quote
  #3  
Unread 12-18-2010, 11:08 PM
Digital_Utopia's Avatar
Digital_Utopia Digital_Utopia is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 207
Send a message via MSN to Digital_Utopia Send a message via Yahoo to Digital_Utopia
Quote:
Originally Posted by MrJackdaw
I am writing an option dialogue for fading and am using a button with the following code;



Why does it always remain at full opacity?
Because you can't change the opacity of the button itself, you have to wrap it in a Turbine.UI.Window (i.e. set one as the button's parent) and change the opacity of the Window.
__________________

Lord of the Rings Online
75 Fourohfour | 75 Artemedis | 60 Whiskeytango Foxtrot | 50 Mistah Boombastic | 56 Appetizer | 25 Aggromi
61 Onepointtwentyone Gigawatts


World of Warcraft
90 Downlo 85 Gravetaxi 85 Ümad 85 Artemedis 85 Guthuros
Reply With Quote
  #4  
Unread 12-19-2010, 12:05 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Damn it... I suspected as much.
It is already bound to a window and I don't want multiple ones - Thanks anyway guys! Back to the drawing board!
__________________
************************************************** ************************************************** **
"Our ideals may never be realised, But they indicate what we are trying to do." Dick Tahta
Reply With Quote
  #5  
Unread 12-22-2010, 04:03 AM
Cearbhall's Avatar
Cearbhall Cearbhall is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 5
Oh it seems you can change the opacity of other controls
elem:SetStretchMode(3)

of course this can cause other problems like the control no longer being masked to it's parent and seems to ignore the z-order
Reply With Quote
  #6  
Unread 12-22-2010, 09:56 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Where did you get the info on setstretchmode? I haven't been able to find any documentation anywhere!
__________________
************************************************** ************************************************** **
"Our ideals may never be realised, But they indicate what we are trying to do." Dick Tahta
Reply With Quote
Reply


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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
D3D10GraphicsCore.dll needed Passatuner Chit Chat 2 10-26-2007 03:35 AM


All times are GMT -5. The time now is 09:30 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui