Using icons for participants in sequencers

0 votes
asked Mar 8 in Question / help by alatar_the_grey (130 points)
Is it possible to assign icons (or maybe sprites) to participants? Instead of the usual box with the participant name inside, I would like to use an icon instead.

1 Answer

+1 vote
answered Mar 8 by anoff (230 points)
You could use the Open Iconic implementation with the <&key> syntax for example, see https://blog.anoff.io/img//puml-cheatsheet.pdf

Example: http://www.plantuml.com/plantuml/uml/RP0nJyD038Lt_mghI7IgnC0KLL7Bd0du0ywTavvwjOFFKGM8_ywbB4Jguk6zxprRFXGdy_cIePoJJ6HqmJezXJIHE7u3uejQP0kQrL1KU94ed4VJMU9AVZjHr6kI4GVAXU47ABXQRUZnmJZ25jzFZ2hv4sCQ1ZQMmDYpNva5Rp1iIUBgXbJGQoeQBTNmtzhiI_hYvlcftJ-EMNjkDqW5Eu1ZJe5tRTtSu76kUQaXygI2h_mnSt6etgwzSNUGCgaK_cEw1ZiTqOsaK5W0EB34-hLV

I would suggest picking a participant type you do not use in your diagram otherwise and setting it to be "transparent", however there currently seems to be an issue with turning of the shadows; I posted a comment about this here: http://forum.plantuml.net/5366/please-provide-skinparam-shadowing-elements-individually?show=9154#c9154
commented Mar 8 by alatar_the_grey (130 points)
Got it. It looks like I can use sprites as well.

I'll browse around and see how I can create my own library of custom icons.

Thanks!
...