Exemplo n.º 1
0
    private void InitializeFSP()
    {
        int fspWidth = 75, fspHeight = 250, fspX = (Screen.width / 2) - (fspWidth / 2), fspY = (Screen.height / 2) - (fspHeight / 2);

        fsp = new OxListFileSelectorPrompt(new Vector2(fspX, fspY), new Vector2(fspWidth, fspHeight));
        OxPanel quickPanel = tabbedPanel.AddTab("FileSelectorPrompt");

        quickPanel.AddItems(fsp);
    }
Exemplo n.º 2
0
    private void InitializeScrollbar()
    {
        int scrollbarWidth = 200, scrollbarHeight = 48, scrollbarX = (Screen.width / 2) - (scrollbarWidth / 2), scrollbarY = (Screen.height / 2) - (scrollbarHeight / 2);

        scrollbar = new OxScrollbar(new Vector2(scrollbarX, scrollbarY), new Vector2(scrollbarWidth, scrollbarHeight));
        OxPanel quickPanel = tabbedPanel.AddTab("Scrollbar");

        quickPanel.AddItems(scrollbar);
    }
Exemplo n.º 3
0
    private void InitializeFS()
    {
        int fsWidth = 75, fsHeight = 250, fsX = (Screen.width / 2) - (fsWidth / 2), fsY = (Screen.height / 2) - (fsHeight / 2);

        fs = new OxListFileSelector(new Vector2(fsX, fsY), new Vector2(fsWidth, fsHeight));
        OxPanel quickPanel = tabbedPanel.AddTab("FileSelector");

        quickPanel.AddItems(fs);
    }
Exemplo n.º 4
0
    private void InitializeTextbox()
    {
        int textboxWidth = 100, textboxHeight = 48, textboxX = (Screen.width / 2) - (textboxWidth / 2), textboxY = (Screen.height / 2) - (textboxHeight / 2);

        textbox      = new OxTextbox(new Vector2(textboxX, textboxY), new Vector2(textboxWidth, textboxHeight));
        textbox.text = "Hello";
        OxPanel quickPanel = tabbedPanel.AddTab("Textbox");

        quickPanel.AddItems(textbox);
    }
Exemplo n.º 5
0
    private void InitializeCheckbox()
    {
        int checkboxWidth = 150, checkboxHeight = 48, checkboxX = (Screen.width / 2) - (checkboxWidth / 2), checkboxY = (Screen.height / 2) - (checkboxHeight / 2);

        checkbox      = new OxCheckbox(new Vector2(checkboxX, checkboxY), new Vector2(checkboxWidth, checkboxHeight));
        checkbox.text = "Toggle";
        OxPanel quickPanel = tabbedPanel.AddTab("Checkbox");

        quickPanel.AddItems(checkbox);
    }
Exemplo n.º 6
0
    private void InitializeButton()
    {
        int buttonWidth = 48, buttonHeight = 48, buttonX = (Screen.width / 2) - (buttonWidth / 2), buttonY = (Screen.height / 2) - (buttonHeight / 2);

        button      = new OxButton(new Vector2(buttonX, buttonY), new Vector2(buttonWidth, buttonHeight));
        button.text = "Hello";
        OxPanel quickPanel = tabbedPanel.AddTab("Button");

        quickPanel.AddItems(button);
    }
Exemplo n.º 7
0
    private void InitializeMenu()
    {
        int menuWidth = 75, menuHeight = 250, menuX = (Screen.width / 2) - (menuWidth / 2), menuY = (Screen.height / 2) - (menuHeight / 2);

        menu = new OxMenu(new Vector2(menuX, menuY), new Vector2(menuWidth, menuHeight));
        for (int i = 0; i < 25; i++)
        {
            OxButton menuButton = new OxButton();
            menuButton.text = (i + 1).ToString();
            menu.AddItems(menuButton);
        }
        OxPanel quickPanel = tabbedPanel.AddTab("Menu");

        quickPanel.AddItems(menu);
    }