- Joined
- May 20, 2009
- Messages
- 822
So, I have to learn vJass, I guess, in order to use Progress Bars. I figured out what I could based off the examples. This is what I got, I really have no idea if it works and I haven't tested it yet:
Trying to save the map with this causes the editor to completely freeze. =\
(Yes I am using JassNewGen with JassHelper)
JASS:
scope Farm initializer OnInit
globals
public ProgressBar bar = ProgressBar.create()
endglobals
private function FarmProgressBar takes nothing returns nothing
set bar.zOffset = 100
set bar.color = PLAYER_COLOR_GREEN
set bar.targetUnit = udg_FarmUnit[FarmIndex]
endfunction
public function SetFarmProgressBar takes nothing returns nothing
call bar.setPercent(udg_Progress[FarmIndex])
endscope
Trying to save the map with this causes the editor to completely freeze. =\
(Yes I am using JassNewGen with JassHelper)