public Slot(int x, int y) { back = new GUCVisual(x, y, SlotSize, SlotSize); back.SetBackTexture(TextureSlot); vis = new GUCVobVisual(x, y, SlotSize, SlotSize); amount = vis.CreateText("", SlotSize - 5, SlotSize - 5 - FontsizeDefault); amount.Format = GUCVisualText.TextFormat.Right; }
public MainMenuCharacter(string help, int x, int y, int w, int h) { HelpText = help; thisVob = oCNpc.Create(); vis = new GUCVobVisual(x, y, w, h) { Lighting = true, }; UpdateOrientation(); leftArrow = new GUCVisual(x + 150, y + h / 2 - 40, 15, 20); leftArrow.SetBackTexture("L.TGA"); rightArrow = new GUCVisual(x + w - 170, y + h / 2 - 40, 15, 20); rightArrow.SetBackTexture("R.TGA"); vis.CreateText("Zoom +/-", 120, 10); }