- Joined
- Dec 12, 2010
- Messages
- 2,074
this is applied for all text-referenced natives. Let's take the most common one for example.
real x/y - supposed to be x/y offset from the corner. Issue is, whole text panel being moved along with x/y given.
That means if I push note #1 with 0,0 offset and note#2 with 5,5 offset, note #1 will be moved to 5,5 position as well
code
Old text shouldn't jump to the new position at all
JASS:
native DisplayTimedTextToPlayer takes player toPlayer, real x, real y, real duration, string message returns nothing
real x/y - supposed to be x/y offset from the corner. Issue is, whole text panel being moved along with x/y given.
That means if I push note #1 with 0,0 offset and note#2 with 5,5 offset, note #1 will be moved to 5,5 position as well
code
JASS:
globals
unit u
real r1=0.0
real r2=0.0
endglobals
function asdasd takes nothing returns nothing
call DisplayTimedTextToPlayer(GetLocalPlayer(),r1,r2,2.00,"Text #"+I2S(GetTriggerEvalCount(GetTriggeringTrigger())))
set r1=r1+0.1
set r2=r2+0.1
if r1>1 then
set r1=0
set r2=0
endif
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
local trigger t=CreateTrigger()
set u=CreateUnit(Player(0),'Hblm',0,0,0)
call TriggerAddAction(t,function asdasd)
call TriggerRegisterTimerEvent(t,1,true)
endfunction
Old text shouldn't jump to the new position at all