• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[JASS] UI - Frame

Status
Not open for further replies.
Level 4
Joined
Aug 2, 2015
Messages
63
hi, how to use these native
Code:
native BlzFrameSetPoint                            takes framehandle frame, framepointtype point, framehandle relative, framepointtype relativePoint, real x, real y returns nothing
i want to adjust the gold text and icon ui to some point on my maps
 
Then I suggest you to use.BlzFrameSetAbsPoint. The native that you posted above sets its position relative to another frame. You use it like this:
JASS:
call BlzFrameSetAbsPoint(yourframename, FRAMEPOINT_CENTER(TOP, TOPLEFT, etc), x value on cartesian system, y value on cartesian system)
For a screen with 4:3 aspect ratio, x can be between 0-0.8 and y 0-0.6.
Also 0.00, 0.00 is bottom left.
 
Then I suggest you to use.BlzFrameSetAbsPoint. The native that you posted above sets its position relative to another frame. You use it like this:
JASS:
call BlzFrameSetAbsPoint(yourframename, FRAMEPOINT_CENTER(TOP, TOPLEFT, etc), x value on cartesian system, y value on cartesian system)
For a screen with 4:3 aspect ratio, x can be between 0-0.8 and y 0-0.6.
Also 0.00, 0.00 is bottom left.
hmm, im pretty confused here because when i used that native the gold text go out nowhere.
also are we can overwrite fdf file on a map with a toc file but same context fdf
 
Status
Not open for further replies.
Back
Top