1
0

phone_selfies_popup.qsrc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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" style="horizontal-align:center; max-height:90%; max-width:90%"/></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], ARGS[3], ARGS[4]
  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="<$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. !! $ARGS[1] = Location where the selfie is taken
  36. !! $ARGS[2] = State of dress in the selfie
  37. !! ARGS[3] = is the index of the location in $selfieLoc[] and $selfieFilePrefix
  38. !! ARGS[4] = the selfie number
  39. if $ARGS[0] = 'SMS_set_selfie':
  40. $temp_imloc = func('phone_selfies_popup', 'SMS_get_imloc', $ARGS[1], $ARGS[2], ARGS[3], ARGS[4])
  41. $result = '<a href="exec: gs <<$SMSSelfieVars[''return_string'']>>, <<SMSSelfieVars[''SMSid'']>>, ''<<$temp_imloc>>'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>, <<ARGS[4]>>"><img src="<<$temp_imloc>>" style="horizontal-align:center; max-height:90%; max-width:90%"></a>'
  42. killvar '$temp_imloc'
  43. end
  44. if $ARGS[0] = 'SMS_get_imloc':
  45. $result = 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg'
  46. end
  47. --- phone_selfies_popup ---------------------------------