phone_selfies_popup.qsrc 2.5 KB

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