public HandlerText(SceneTextCommandInfo info, IEntityPool entityPool) { this.Content = info.Content ?? String.Empty; this.speed = info.Speed ?? 0; this.position = new MegaMan.Common.Geometry.Point(info.X, info.Y); this.entityPool = entityPool; this.font = info.Font ?? "Default"; if (info.Binding != null) { this.binding = Binding.Create(info.Binding, this); } }
private void LoadInfo(MeterInfo info) { this.info = info; positionX = info.Position.X; positionY = info.Position.Y; if (info.Binding != null) { this.binding = Binding.Create(info.Binding, this); MaxValue = 1; // use 0 - 1 range for values } horizontal = (info.Orient == MeterInfo.Orientation.Horizontal); tickOffset = new MegaMan.Common.Geometry.Point(info.TickOffset.X, info.TickOffset.Y); if (info.Sound != null) sound = Engine.Instance.SoundSystem.EffectFromInfo(info.Sound); }