示例#1
0
        public static void setWindowLayout(String winName, Layout.Direction layout)
        {
            Window win = findWindow(winName);

            if (win != null)
            {
                win.setLayout(layout);
            }
        }
示例#2
0
        public void beginLayout(Layout.Direction layout)
        {
            Vector2 pos = Vector2.Zero;

            if (myLayoutStack.Count > 0)
            {
                pos = cursorPosition;
            }

            Layout l = new Layout(this, layout, pos);

            myLayoutStack.Push(l);
        }
示例#3
0
        public static float percent(float p, Layout.Direction dir)
        {
            Window win = currentWindow;

            if (win.skipItems)
            {
                return(0.0f);
            }

            float size = win.size[(int)dir];

            return((p / 100.0f) * size);
        }
示例#4
0
        public static void beginLayout(Layout.Direction layout)
        {
            Window win = currentWindow;

            win.beginLayout(layout);
        }
示例#5
0
        public static void setWindowLayout(Layout.Direction layout)
        {
            Window win = currentWindow;

            win.setLayout(layout);
        }
示例#6
0
        public void beginLayout(Vector2 position, Layout.Direction layout)
        {
            Layout l = new Layout(this, layout, position);

            myLayoutStack.Push(l);
        }
示例#7
0
 public void setLayout(Layout.Direction layout)
 {
     myLayoutStack.Peek().myDirection = layout;
 }