Thread Tools Display Modes
04-24-11, 08:00 AM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Blizzards SCT

Does anyone know if you can move blizzards SCT?

with a simple :SetPoint?
  Reply With Quote
04-24-11, 09:13 AM   #2
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
Originally Posted by Game92 View Post
Does anyone know if you can move blizzards SCT?

with a simple :SetPoint?
Not with SetPoint, but you can do it via start/end X/Y coords for COMBAT_TEXT_LOCATIONS:

http://wowprogramming.com/utils/xmlb...CombatText.lua

SuperClassic does it like so (replace the "opts" stuff w/your own):

lua Code:
  1. hooksecurefunc("CombatText_UpdateDisplayedMessages", function ()
  2.     COMBAT_TEXT_LOCATIONS = {
  3.         startX  = opts.StartX,
  4.         startY = opts.StartY * COMBAT_TEXT_Y_SCALE,
  5.         endX = opts.EndX,
  6.         endY = opts.EndY * COMBAT_TEXT_Y_SCALE
  7.     }
  8. end)
  Reply With Quote
04-24-11, 11:16 AM   #3
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
Have a look at this
http://www.wowinterface.com/download...71-MonoUI.html
and his blizzard sct modifications
__________________

Tukui | Github
  Reply With Quote
04-24-11, 11:27 AM   #4
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
I already have my own modifcation, just need to change position.

http://pastebin.com/LvRA5enY
  Reply With Quote
04-24-11, 12:03 PM   #5
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Aprikot View Post
Not with SetPoint, but you can do it via start/end X/Y coords for COMBAT_TEXT_LOCATIONS:

http://wowprogramming.com/utils/xmlb...CombatText.lua

SuperClassic does it like so (replace the "opts" stuff w/your own):

lua Code:
  1. hooksecurefunc("CombatText_UpdateDisplayedMessages", function ()
  2.     COMBAT_TEXT_LOCATIONS = {
  3.         startX  = opts.StartX,
  4.         startY = opts.StartY * COMBAT_TEXT_Y_SCALE,
  5.         endX = opts.EndX,
  6.         endY = opts.EndY * COMBAT_TEXT_Y_SCALE
  7.     }
  8. end)
Code:
Message: ...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:48: hooksecurefunc(): CombatText_UpdateDisplayedMessages is not a function
Time: 04/24/11 20:02:33
Count: 1
Stack: [C]: in function `hooksecurefunc'
...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:48: in function <...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:4>
[C]: in function `LoadAddOn'
[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:7: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
[C]: ?
[C]: in function `hooksecurefunc'
...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:48: in function <...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:4>
[C]: in function `LoadAddOn'
...ddOns\AftermathhUI\Modules\AfterMinimap_GameTime.lua:21: in main chunk

Locals:
  Reply With Quote
04-24-11, 12:15 PM   #6
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
Originally Posted by Game92 View Post
Code:
Message: ...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:48: hooksecurefunc(): CombatText_UpdateDisplayedMessages is not a function
Time: 04/24/11 20:02:33
Count: 1
Stack: [C]: in function `hooksecurefunc'
...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:48: in function <...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:4>
[C]: in function `LoadAddOn'
[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:7: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
[C]: ?
[C]: in function `hooksecurefunc'
...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:48: in function <...face\AddOns\AftermathhUI\Modules\AfterCombatText.lua:4>
[C]: in function `LoadAddOn'
...ddOns\AftermathhUI\Modules\AfterMinimap_GameTime.lua:21: in main chunk

Locals:
Yucky. I don't use it myself, and I don't know that a function is necessary. Try just
Code:
COMBAT_TEXT_LOCATIONS = {
    startX  = -300,
    startY = 300,
    endX = -300,
    endY = -300
}
  Reply With Quote
04-24-11, 12:27 PM   #7
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Aprikot View Post
Yucky. I don't use it myself, and I don't know that a function is necessary. Try just
Code:
COMBAT_TEXT_LOCATIONS = {
    startX  = -300,
    startY = 300,
    endX = -300,
    endY = -300
}
Got it to work, but yeah xD looks abit funie! then i have somthing to atleast!
  Reply With Quote
04-24-11, 12:55 PM   #8
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Done! Thanks for help! Abit more centered to fit forte ;>

  Reply With Quote
04-25-11, 06:58 AM   #9
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
Looks good--was it off-center before? I briefly tested the last thing I posted and it did seem a little nasty...like not all messages were behaving. What code did you land on for the positioning?
  Reply With Quote
04-25-11, 07:23 AM   #10
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Aprikot View Post
Looks good--was it off-center before? I briefly tested the last thing I posted and it did seem a little nasty...like not all messages were behaving. What code did you land on for the positioning?
Thanks, yes it was, he toke me somtime to figure out anyways here is the code.

Code:
		local function UpdateCombatTextPos()
	        COMBAT_TEXT_LOCATIONS = {     
	            startX  = -12, -- ("-200" LEFT) ("200" RIGHT)
 	            startY = 384 * COMBAT_TEXT_Y_SCALE, -- Where it starts (UPP) (384) 
	            endX = -12, -- ("-200" LEFT) ("200" RIGHT)
	            endY = 159 * COMBAT_TEXT_Y_SCALE  -- Where it ends (DOWN) (609)
	        }
	    end
		hooksecurefunc("CombatText_UpdateDisplayedMessages", UpdateCombatTextPos)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Blizzards SCT

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