PDA

View Full Version : Blizzard_CombatText and SCT


simonseztech
27-06-2007, 02:47 AM
I want to add some message on screen so tried with Blizzard_CombatText,

I found that function
function CombatText_AddMessage(message, scrollFunction, r, g, b, displayType, isStaggered)

I tried
CombatText_AddMessage("test text", "", 2, 96, 206, "crit", false);

But the function don't care about color and don't do with my choice of BCT...

... and for SCT didn't found the function...

Any help would be greatly appreciated :)

simonseztech
27-06-2007, 04:02 AM
kk found my solution... I will share it :)

Blizzard combat text :
CombatText_AddMessage("HELLO WORLD", COMBAT_TEXT_SCROLL_FUNCTION, 0, 0.39, 0.95, "sticky", nil)

SCT:
SCT:DisplayText("HELLO WORLD", { 0, 0.39, 0.95 }, 1, "event", FRAME_NUMBER, 0)

MikSBT :
MikSBT.DisplayMessage(message, MikSBT.DISPLAYTYPE_NOTIFICATION, false, 0, 0.39 * 255, 0.95 * 255)

Have fun.