~mil/mepo

ref: 041d978478ae78e241802ca9d750677e101c3f5b mepo/scripts/mepo_ui_helper_pref_pan.sh -rwxr-xr-x 312 bytes
041d9784Miles Alan Show progress in % complete for transfer datum on tiles while downloading 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env sh

main() {
  # TODO: -z check DIM/MULT
  PANX=0
  PANY=0

  if [ "$DIM" = h ]; then
    PANY="$(echo "$MEPO_WIN_H * $MULT" | bc)"
  fi

  if [ "$DIM" = w ]; then
    PANX="$(echo "$MEPO_WIN_W * $MULT" | bc)"
  fi

  echo "move_relative $PANX $PANY";
}

if [ -n "$1" ]; then "$@"; else main; fi