public UIAnalog(string _Name, Control _Parent) : base(_Name, _Parent) { Transformation = new Float3x3(0.1f, 0, 0, 0, 0.1f, 0, 0, 0, 1); ZoomedTransformation = new Float3x3(0.9f, 0, 0, 0, 0.9f, 0, 0, 0, 1); font = new SpriteFont("./content/Arial.png", "./content/Arial.xml"); NormalTransformation = Transformation; OnControllerInput += new OnControllerInputHandler(UIButton_OnControllerInput); }
public static void Load() { font = new SpriteFont(@".\content\Arial.png", @".\content\Arial.xml"); handwrittenfont = new SpriteFont(@".\content\Handwritten.png", @".\content\Handwritten.xml"); GenericBrowserElementBackground = new TextureGPU(@".\content\GenericBrowserElementBackground.png"); GenericBrowserHeaderBackground = new TextureGPU(@".\content\GenericBrowserHeaderBackground.png"); Background = new TextureGPU(@".\content\Background.png"); }
public UIButton(string _Name, Control _Parent) : base(_Name, _Parent) { Transformation = new Float3x3(0.1f, 0, 0, 0, 0.1f, 0, 0, 0, 0); shader = ShaderCompiler.Compile(System.IO.File.ReadAllText("Default.fx")); loadingshader = ShaderCompiler.Compile(System.IO.File.ReadAllText("Loading.fx")); font = new SpriteFont("./content/Arial.png", "./content/Arial.xml"); OnControllerInput += new OnControllerInputHandler(UIButton_OnControllerInput); }