public KeyImage(char key) { this._font = new FancyBitmapFont("smallFont"); this._keySprite = new Sprite("buttons/keyboard/key"); this._keyString = string.Concat((object)key); this._texture = this._keySprite.texture; }
public UIPresentBox(Furniture f, float xpos, float ypos, float wide = -1f, float high = -1f) : base("", xpos, ypos, wide, high) { Graphics.fade = 1f; this._frame = new Sprite("unlockFrame"); this._frame.CenterOrigin(); this._wrappedFrame = new Sprite("unlockFrameWrapped"); this._wrappedFrame.CenterOrigin(); this._font = new BitmapFont("biosFontUI", 8, 7); this._fancyFont = new FancyBitmapFont("smallFont"); this._furni = f; this._eggSprite = Profile.GetEggSprite(); }
public UIFuneral(float xpos, float ypos, float wide = -1f, float high = -1f, UIMenu link = null) : base("", xpos, ypos, wide, high) { Graphics.fade = 1f; this._frame = new Sprite("deathFrame"); this._frame.CenterOrigin(); this._link = link; this._font = new BitmapFont("biosFontUI", 8, 7); this._fancyFont = new FancyBitmapFont("smallFont"); this._portraitFrame = new Sprite("funeralPic"); this._portraitSprite = new SpriteMap("littleMan", 16, 16); this._portraitSprite.frame = UILevelBox.LittleManFrame(Profiles.experienceProfile.numLittleMen - 9, 7); }
public ContextTextbox(string text, IContextListener owner, FieldBinding field = null) : base(owner) { this.itemSize.x = 150f; this.itemSize.y = 16f; this._text = text; this._field = field; if (field == null) { this._field = new FieldBinding((object)this, "isChecked"); } this._fancyFont = new FancyBitmapFont("smallFont"); }
public override void Initialize() { this.layer = Layer.HUD; this.depth = new Depth(0.97f); float num1 = 300f; float num2 = 40f; Vec2 vec2_1 = new Vec2((float)((double)this.layer.width / 2.0 - (double)num1 / 2.0), (float)((double)this.layer.height / 2.0 - (double)num2 / 2.0)); Vec2 vec2_2 = new Vec2((float)((double)this.layer.width / 2.0 + (double)num1 / 2.0), (float)((double)this.layer.height / 2.0 + (double)num2 / 2.0)); this.position = vec2_1 + new Vec2(4f, 20f); this.itemSize = new Vec2(490f, 16f); this._root = true; this._font = new BitmapFont("biosFont", 8); this._fancyFont = new FancyBitmapFont("smallFont"); }