Ejemplo n.º 1
0
 /// <summary>
 /// Begins dialogue routine
 /// </summary>
 public void Begin()
 {
     // Load Art
     mArt = mContentManager.ApplyTexture(mArtpath);
     if (mArtpath2 != null)
     {
         mArt2 = mContentManager.ApplyTexture(mArtpath2);
     }
     // Subscribe to the Space Input Event
     mInputManager.Sub_Space(OnSpace);
     // Set the running bool to true
     mRunning  = true;
     mCurrLine = 0;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set Texture path
 /// </summary>
 /// <param name="_path"> Texture Path</param>
 public virtual void setVars(string _path, IContent_Manager _cm)
 {
     mTexturename          = _path;
     mContentManager       = _cm;
     mTexture              = mContentManager.ApplyTexture(mTexturename);
     mCurrentTextureHeight = mTexture.Height;
     mCurrentTextureWidth  = mTexture.Width;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Apply a new background
 /// </summary>
 /// <param name="_newBG"> Content path to the new background </param>
 public void ChangeBackground(string _newBG)
 {
     mBackground = mContentManager.ApplyTexture(_newBG);
 }