static void AddButton(MenuCommand menuCommand) { var go = DefaultControls.CreateButton( LoadResource <Sprite>("Texture/Button.png"), LoadResource <Font>("Font/DejaVuSans-ExtraLight.ttf") ); PlaceUIElementRoot(go, menuCommand); }
static void AddKnob(MenuCommand menuCommand) { var go = DefaultControls.CreateKnob( LoadResource <Material>("Shader/Knob.mat"), LoadResource <Sprite>("Texture/Knob.png"), LoadResource <Font>("Font/DejaVuSans-ExtraLight.ttf") ); PlaceUIElementRoot(go, menuCommand); }