public UIBackground(string _Name, Control _Parent) : base(_Name, _Parent) { Transformation = new Float3x3(1, 0, 0, 0, 1, 0, 0, 0, 1); shader = ShaderCompiler.Compile(System.IO.File.ReadAllText("Default.fx")); OnControllerInput += new OnControllerInputHandler(UIButton_OnControllerInput); }
public UIFloor(string _Name, Control _Parent) : base(_Name, _Parent) { RelativeToParent = false; ZoomedTransform = new Float3x3(0.9f, 0, 0, 0, 0.9f, 0, 0, 0, 1); OnControllerInput += new OnControllerInputHandler(UIButton_OnControllerInput); }
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 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); }
public UIProgressBar(string _Name, Control _Parent) : base(_Name, _Parent) { OnControllerInput += new OnControllerInputHandler(UIButton_OnControllerInput); }