Thread Tools Display Modes
02-28-14, 07:54 AM   #1
Vyntrox
A Defias Bandit
AddOn Author - Click to view addons
Join Date: Nov 2013
Posts: 2
Rotate a frame via Player Facing

hey all,

working on my minimap at the moment. the idea is to rotate my texture via playerfacing().
tried it with the animation widget but without success.

have no idea how to write the function
it's a complete new section of lua for me.

greetings
vyntrox
  Reply With Quote
02-28-14, 12:39 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
What exactly are you wanting to rotate?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
02-28-14, 01:36 PM   #3
Vyntrox
A Defias Bandit
AddOn Author - Click to view addons
Join Date: Nov 2013
Posts: 2
i've created some triangle shapes that face to north and south. this texture should rotate when i change viewdirection of my character.
  Reply With Quote
03-03-14, 11:46 AM   #4
GnomTEC
A Defias Bandit
 
GnomTEC's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3
Texture:SetRotation(radians) should work for this... at least it did it when i last used it a time ago.

http://wowprogramming.com/docs/widge...re/SetRotation
__________________
GnomTEC - Gnomische Technologie für ein freies Gnomeregan
(GnomTEC - Gnomish technology for a free Gnomeregan)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Rotate a frame via Player Facing


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