コード例 #1
0
        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);
        }
コード例 #2
0
        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");
        }
コード例 #3
0
        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);
        }