- Joined
- Mar 14, 2011
- Messages
- 9
Heho,
short and simple: can you tell me how to make this MUI?
Thanks
short and simple: can you tell me how to make this MUI?
JASS:
library TimedText initializer Init
globals
private timer Timer1
private timer Timer2
private string String
private player OwningPlayer
endglobals
private function Destroy takes nothing returns nothing
call PauseTimer(Timer2)
set Timer1 = null
set Timer2 = null
endfunction
private function Callback takes nothing returns nothing
call DisplayTimedTextToPlayer(OwningPlayer, 0, 0, 0.75, String)
endfunction
public function Start takes string TEXT, real DURATION, player OWNINGPLAYER returns nothing
set Timer1 = CreateTimer()
set Timer2 = CreateTimer()
set String = TEXT
set OwningPlayer = OWNINGPLAYER
call TimerStart(Timer1, DURATION, false, function Destroy)
call TimerStart(Timer2, 1.0, true, function Callback)
endfunction
private function Init takes nothing returns nothing
endfunction
endlibrary
Thanks