LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   Lua Programming Help (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=50)
-   -   A Couple of Questions (https://www.lotrointerface.com/forums/showthread.php?t=1036)

Heta 09-14-2010 07:19 AM

A Couple of Questions
 
Hi,
since the beta forum is down, I will now try my luck here. :)

1.
How can I create a skill/buff icon with the hex code of the buff?
So far I have got the Buffsymbol only with the 10-digit number of "effects:getIcon ()".

2.
How can I unless a condition is true, for example change a backgroundimage, color etc. every 2 seconds, without high CPU utilization?

3.
Is it possible to change the backgroundcolor, font, style, etc. of "Turbine.UI.ContextMenu()" ?


Regards :):)

ForsakenArcher 09-14-2010 07:48 PM

Quote:

Originally Posted by Heta (Post 4660)
Hi,
since the beta forum is down, I will now try my luck here. :)

1.
How can I create a skill/buff icon with the hex code of the buff?
So far I have got the Buffsymbol only with the 10-digit number of "effects:getIcon ()".

2.
How can I unless a condition is true, for example change a backgroundimage, color etc. every 2 seconds, without high CPU utilization?

3.
Is it possible to change the backgroundcolor, font, style, etc. of "Turbine.UI.ContextMenu()" ?


Regards :):)

1. You can use the EffectDisplay control to display an effect. This is the stock element used by the game, just create an instance and use the SetEffect member.

2. The only timing mechanism currently is to use the SetWantsUpdates / Update event combination. You can then use the Turbine.Engine.GetGameTime to determine how much time has passed and use this to perform something when (Turbine.Engine.GetGameTime() - startTime > 2 ).

3. Nope. This style is defined by the game and the background color cannot be changed. If you need a custom menu you can always create your own and skin it how you like using the base classes.

Heta 09-15-2010 04:07 AM

Thank You :)


All times are GMT -5. The time now is 04:28 PM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI