Beispiel #1
0
        public Screen_Radial()
        {
            aui_instances = new List <AUI_Base>();

            button_back = new AUI_Button(
                16 * 3, 16 * 2 + 8, 16 * 3, "< to title");
            button_back.CenterText();
            aui_instances.Add(button_back);

            int btnWidth = 16 * 5;

            //left set
            radial_TopLeft         = new AUI_ButtonWithLine(-256, -256, btnWidth, "btn a");
            radial_TopLeft.offsetX = btnWidth;
            radial_TopLeft.offsetY = 8;
            aui_instances.Add(radial_TopLeft);

            radial_MidLeft         = new AUI_ButtonWithLine(-256, -256, btnWidth, "btn b");
            radial_MidLeft.offsetX = btnWidth;
            radial_MidLeft.offsetY = 8;
            aui_instances.Add(radial_MidLeft);

            radial_BotLeft         = new AUI_ButtonWithLine(-256, -256, btnWidth, "btn c");
            radial_BotLeft.offsetX = btnWidth;
            radial_BotLeft.offsetY = 8;
            aui_instances.Add(radial_BotLeft);

            //right set
            radial_TopRight         = new AUI_ButtonWithLine(-256, -256, btnWidth, "btn d");
            radial_TopRight.offsetX = 0;
            radial_TopRight.offsetY = 8;
            aui_instances.Add(radial_TopRight);

            radial_MidRight         = new AUI_ButtonWithLine(-256, -256, btnWidth, "btn e");
            radial_MidRight.offsetX = 0;
            radial_MidRight.offsetY = 8;
            aui_instances.Add(radial_MidRight);

            radial_BotRight         = new AUI_ButtonWithLine(-256, -256, btnWidth, "btn f");
            radial_BotRight.offsetX = 0;
            radial_BotRight.offsetY = 8;
            aui_instances.Add(radial_BotRight);

            introText = new AUI_Text(
                "press and hold spacebar to open the radial menu",
                16 * 7, 16 * 2 + 8, Assets.TextColor);
            aui_instances.Add(introText);
        }
Beispiel #2
0
        public AUI_CrownButton(int X, int Y, int W, string Title)
        {
            button = new AUI_Button(
                X, Y, W, Title);
            button.CenterText();

            //setup crown children
            aui_crown_children  = new List <AUI_ButtonWithLine>();
            button_crown_child1 = new AUI_ButtonWithLine(0, 0, 16 * 4, "test a");
            button_crown_child1.line.line.animType = LineAnimType.Reverse;
            button_crown_child1.button.draggable   = true;
            aui_crown_children.Add(button_crown_child1);

            button_crown_child2 = new AUI_ButtonWithLine(0, 0, 16 * 4, "test b");
            button_crown_child2.line.line.animType = LineAnimType.Reverse;
            button_crown_child2.button.draggable   = true;
            aui_crown_children.Add(button_crown_child2);

            button_crown_child3 = new AUI_ButtonWithLine(0, 0, 16 * 4, "test c");
            button_crown_child3.line.line.animType = LineAnimType.Reverse;
            button_crown_child3.button.draggable   = true;
            aui_crown_children.Add(button_crown_child3);

            button_crown_child4 = new AUI_ButtonWithLine(0, 0, 16 * 4, "test d");
            button_crown_child4.line.line.animType = LineAnimType.Reverse;
            button_crown_child4.button.draggable   = true;
            aui_crown_children.Add(button_crown_child4);

            button_crown_child5 = new AUI_ButtonWithLine(0, 0, 16 * 4, "test e");
            button_crown_child5.line.line.animType = LineAnimType.Reverse;
            button_crown_child5.button.draggable   = true;
            aui_crown_children.Add(button_crown_child5);

            button_crown_child6 = new AUI_ButtonWithLine(0, 0, 16 * 4, "test f");
            button_crown_child6.line.line.animType = LineAnimType.Reverse;
            button_crown_child6.button.draggable   = true;
            aui_crown_children.Add(button_crown_child6);

            //place crown children
            PlaceChildren();
            CloseChildren();
        }