Enemy selection markers on a custom battle hud

So im building my own battle engine and HUD and im having trouble with the replacement for the Window_BattleEnemy script.

Im using a HUB or wheel based system to select abilitys and actions and for selecting actors and enemies I simply want to use an arrow or other marker over their heads on screen.  But I have no idea how to get hold of the enemy battlers x and y values using just the windows index value.

If you watch the video you can see 11 seconds in, I press left and right and the game scrolls between the 3 slimes, but i need to use that value to make a marker move over the heads of the battlers.

The graphics are all laughable right now, and ive purposely left a lot of ghost windows in so i know the background stuff is working.

script link is here.  The def im struck on is called refresh_arrow

http://pastebin.com/1m6YQ6K6

heres a video showing what i need
Never mind, i got it now its -

Code:
  def refresh_arrow    contents.clear    bitmap = Cache.picture("enemy_marker")    x = $game_troop.alive_members[index].screen_x - 50    y = $game_troop.alive_members[index].screen_y - 150    self.contents.blt(x, y, bitmap, bitmap.rect)    bitmap.dispose  end

Original thread: https://forums.rpgmakerweb.com/threads/enemy-selection-markers-on-a-custom-battle-hud.35227/