I am drawing a sequence diagram using Tikz. I first tried tikz-uml, but it has some issues which I asked about in another question.
I am now trying out pgf-umlsd, but it lacks the support for the dashed horizontal line which separates the alternatives in the alt block.
This is what I currently have:
\documentclass{article} \usepackage{pgf-umlsd} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{arrows} \usepackage{pgf-umlsd} \begin{document} \begin{sequencediagram} \newthread{t}{:Thread} \newinst[1]{i}{:Instance} \begin{sdblock}{alt}{[condition]} \begin{call}{t}{if\_true()}{i}{} \end{call} \begin{call}{t}{if\_false()}{i}{} \end{call} \end{sdblock} \end{sequencediagram} \end{document} 
I'd like to draw a dashed line between the two alternatives like this. How can I do that?

I already found a definition of \separateline, however the line is not starting/ending at the border of the alt block:
\documentclass{article} \usepackage{pgf-umlsd} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{arrows} \usepackage{pgf-umlsd} \begin{document} \newcommand{\separateline}[3][dotted, color=black, very thick]{ \stepcounter{seqlevel} \path (#2)+(.1,-\theseqlevel*\unitfactor-.8*\unitfactor) node (from) {} (#3)+(-.1,-\theseqlevel*\unitfactor-.8*\unitfactor) node (to) {}; \draw[#1] (from) -- (to); } \begin{sequencediagram} \newthread{t}{:Thread} \newinst[1]{i}{:Instance} \begin{sdblock}{alt}{[condition]} \begin{call}{t}{if\_true()}{i}{} \end{call} \separateline{t}{i} \begin{call}{t}{if\_false()}{i}{} \end{call} \end{sdblock} \end{sequencediagram} \end{document} 
