Ejemplo n.º 1
0
 public BaseMachineWiget()
 {
     this.Size                     = new Vector2(300, 300);
     customSubtexture              = new Subtexture(ContentManager.Get <Texture2D>("Mekiasm/Textures/ProcessCell"), Vector2.Zero, Vector2.One);
     barWidget.BarSubtexture       = TextureAtlasManager.GetSubtexture("Textures/Atlas/ProgressBar");
     EnergybarWidget.BarSubtexture = customSubtexture;
     Children.Add(rectangleWidget);
     Children.Add(stackMain);
     Children.Add(stackTop);
     Children.Add(stackBottom);
     stackTop.Children.Add(title);
     stackMain.Children.Add(EnergybarWidget);
     stackMain.Children.Add(stackLeft);
     stackMain.Children.Add(barWidget);
     stackMain.Children.Add(stackRight);
 }
Ejemplo n.º 2
0
 public Texture2D findTexture(ComponentBuff.BuffTYpe buffTYpe)
 {
     return(TextureAtlasManager.GetSubtexture("Mekiasm/Gui/Buff/Buff_" + (int)buffTYpe + ".").Texture);
 }