phone_selfies_popup.qsrc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # phone_selfies_popup
  2. !! This is used to create a popup that shows the enlarged selfie
  3. !! $ARGS[1] = Location where the selfie is taken
  4. !! $ARGS[2] = State of dress in the selfie
  5. !! ARGS[3] = is the index of the location in $selfieLoc[] and $selfieFilePrefix
  6. !! ARGS[4] = the selfie number
  7. if $ARGS[0] = 'set_selfie':
  8. $result = '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>, <<ARGS[4]>>"><img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg" height="150"/></a> '
  9. end
  10. if $ARGS[0] = 'show':
  11. if temp_suppress_other_selfies = 0:
  12. if usePopUps = 1:
  13. msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg">'
  14. else
  15. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg'
  16. end
  17. else
  18. killvar 'temp_suppres_other_selfies'
  19. $selfie_last_chosen['location'] = $ARGS[1]
  20. $selfie_last_chosen['type'] = $ARGS[2]
  21. killvar 'temp_suppress_other_selfies'
  22. gt $temp_ssh_ret_loc, $temp_ssh_ret_arg, 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg', $ARGS[1], $ARGS[2]
  23. end
  24. end
  25. if $ARGS[0] = 'set_selfie2':
  26. $result = '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$ARGS[1]>>'', ARGS[2]"><img src="<<func(''phone_selfies_popup'', ''get_imloc2'', $ARGS[1])>>'', <<ARGS[2]>>.jpg" height="150" /></a>'
  27. end
  28. if $ARGS[0] = 'show2':
  29. if usePopUps = 1:
  30. msg '<img src="<$ARGS[1]>><<ARGS[2]>>.jpg">'
  31. else
  32. view '<$ARGS[1]>><<ARGS[2]>>.jpg'
  33. end
  34. end
  35. --- phone_selfies_popup ---------------------------------