Romek
Super Moderator
- Reaction score
- 963
It's been a long time since I did GUI. So I thought I'd try it out (again).
Here's a timed effects system (in GUI) I made. Comments are appreciated. =)
No, this isn't meant to be in the T&R section.
Requires JassHelper!
____________________
Features:
Usage:
Easy, isn't it!?
Unit is the unit to attach to.
Path is the path of the model
Duration is how long the effect should last.
The Code:
Here's a timed effects system (in GUI) I made. Comments are appreciated. =)
No, this isn't meant to be in the T&R section.
Requires JassHelper!
____________________
Timed Effects - GUI Version!
By Romek - Requires TimerUtils
By Romek - Requires TimerUtils
Features:
Made in GUI!
GUI Friendly
First Timed Effects made entirely in GUI!
No confusing colours or bold text which you see in JASS!
All-GUI! So GUIers can easily learn from it!
Very Readable, because it's GUI!
Fully MUI!
GUI MUI! What could be better!?
Requires TimerUtils
Only one con!
8 Pros!
Wait, that was another one!
... Fine. 11 including this one!
Wait, that was excluding that one!
14 Pros : 1 Con. (Including this pro!)
GUI Friendly
First Timed Effects made entirely in GUI!
No confusing colours or bold text which you see in JASS!
All-GUI! So GUIers can easily learn from it!
Very Readable, because it's GUI!
Fully MUI!
GUI MUI! What could be better!?
Requires TimerUtils
Only one con!
8 Pros!
Wait, that was another one!
... Fine. 11 including this one!
Wait, that was excluding that one!
14 Pros : 1 Con. (Including this pro!)
Usage:
Trigger:
- Example GUI
- Events
- Conditions
- Actions
- Set Duration = 5.00
- Set Path = Some Model
- Set Unit = (Last restored unit)
- Trigger - Run GUI Effects <gen> (ignoring conditions)
Easy, isn't it!?
Unit is the unit to attach to.
Path is the path of the model
Duration is how long the effect should last.
The Code:
Enjoy the lovely, readable, easy-to-use, friendly GUI Code!
Trigger:
- GUI Effects
- Events
- Conditions
- Actions
- Custom script: call GUI_Usage.execute()
- Custom script: endfunction
- Custom script: struct GUI_Effect
- Custom script: effect e
- Custom script: endstruct
- Custom script: function GUI_Effect_Expire takes nothing returns nothing
- Custom script: local timer t = GetExpiredTimer()
- Custom script: local GUI_Effect data = GetTimerData(t)
- Custom script: call DestroyEffect(data.e)
- Custom script: call ReleaseTimer(t)
- Custom script: call data.destroy()
- Custom script: endfunction
- Custom script: function GUI_Usage takes nothing returns nothing
- Custom script: local timer t = NewTimer()
- Custom script: local GUI_Effect data = GUI_Effect.create()
- Custom script: set data.e = AddSpecialEffectTarget(udg_Path, udg_Unit, "origin")
- Custom script: call SetTimerData(t, data)
- Custom script: call TimerStart(t, udg_Duration, false, function GUI_Effect_Expire)