예제 #1
0
        static void AddButton(MenuCommand menuCommand)
        {
            var go = DefaultControls.CreateButton(
                LoadResource <Sprite>("Texture/Button.png"),
                LoadResource <Font>("Font/DejaVuSans-ExtraLight.ttf")
                );

            PlaceUIElementRoot(go, menuCommand);
        }
예제 #2
0
        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);
        }