title: How to make an in-game button (with text) in Phaser?
body: <p>I have made a PNG image which will be my button background. In the <code>preload()</code> of my relevant state I load that image. I want a way to have this image placed in the world and be able to set text onto it (and also be clickable but I guess that's a bit unimportant here because I know how to set up event handlers).</p>
  
  <p>I thought I could manage something with
  </p>
  
  <pre class="lang-dart prettyprint-override"><code>Text text = new Text(x,y,foo,style);
  text.texture = &lt;something&gt;
  </code></pre>
  
  <p>but trying to, for example, create a <code>new Texture()</code> shows a warning "undefined class Texture" in DartEditor, and anyway (as far as I can tell?) <code>Texture</code> doesn't seem to allow giving a source image key/URL..</p>
  
  <p>So could anyone with Phaser experience tell me how I can get an in-game button as I want? </p>