lotrointerface.com
Search Downloads


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

Reply
Thread Tools Display Modes
  #1  
Unread 11-03-2011, 09:15 PM
lunarwtr's Avatar
lunarwtr lunarwtr is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2011
Posts: 121
Turbine.UI.Window & Labels

I have a simple plugin, that creates a class from Turbine.UI.Window, which contains a label that I set text into. Calling SetText on the label seems to be making the Text build up (not clearing the screen region where label is) overtime. It essentially looks like a big pile of font characters ontop of eachother.

When I switch to the Turbine.UI.Lotro.Window, the problem goes away. I thought it might be a blend mode thing, but couldn't tell why. I would prefer to use the base window class so I can have transparency behind the label. Thoughts on how to get this working?
Attached Thumbnails
Click image for larger version

Name:	labelproblem.png
Views:	798
Size:	136.3 KB
ID:	260  
__________________
Author of Lotro Compendium, Waypoint, and Lotro Plugin Compendium (LPC)

Last edited by lunarwtr : 11-03-2011 at 09:20 PM. Reason: Adding image of problem
Reply With Quote
  #2  
Unread 11-03-2011, 10:11 PM
Equendil Equendil is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2011
Posts: 52
I've had that issue with pictures, can't really remember much about all I did that didn't work but the following did do the trick:
- No background color set in either the window or controls
- No back color blend mode set in either the window or controls
- Blend mode set to BlendMode.Normal in the controls

May or may not work with labels of course. Blend modes give me a headache, although I'm usually fighting the API to *not* have my controls cause transparent holes into opaque windows.
__________________
Author of LIP, Bootstrap and Baruk
Reply With Quote
  #3  
Unread 11-04-2011, 08:56 AM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 340
I noticed a similar issue that was introduced with RoI when I started the Wallet plugin. My workaround for it was to set a back color with no alpha using window:SetBackColor(0,0,0,0). Once a background or backcolor are assigned, the window seems to properly refresh as required (such as when a child control's text changes). I don't know if Turbine considers this to be working as intended, but I believe it to be a bug and you probably should report it as such (I reported it once, but such reports tend to get lost in the shuffle unless more than one person reports it).
Reply With Quote
  #4  
Unread 11-04-2011, 09:10 AM
lunarwtr's Avatar
lunarwtr lunarwtr is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2011
Posts: 121
Thank you both for fast replies. I'll try these tweaks tonight and see if SuperHappyFunLabel Plugin (j/k) works right.
__________________
Author of Lotro Compendium, Waypoint, and Lotro Plugin Compendium (LPC)
Reply With Quote
  #5  
Unread 11-05-2011, 01:21 PM
lunarwtr's Avatar
lunarwtr lunarwtr is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2011
Posts: 121
Setting the background color of the window did the trick. Thanks again!
__________________
Author of Lotro Compendium, Waypoint, and Lotro Plugin Compendium (LPC)
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
Turbine Unveils New Global Service For Dungeons & Dragons Online Cairenn News 0 04-05-2011 06:08 AM
Skirmish window and Item selection window mysticdrew Graphics modification help (L) 3 02-02-2011 08:21 AM
Turbine.UI.Window behavior changing in next Lua update Digital_Utopia General Authoring Discussion (L) 7 10-27-2010 12:43 AM
Any way to overload or replace turbine.ui methods with my own? crazygonuts Lua Programming Help (L) 7 09-22-2010 09:07 PM
Help with Turbine store button Krakenheim Interface Help (L) 5 09-10-2010 08:31 AM


All times are GMT -5. The time now is 08:15 AM.


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