Exemplo n.º 1
0
        protected override void DrawWindow(int id)
        {
            versionLabel(id);                                                   /* The standard version number and close button */
            closeBox(id);

            growS();
            windowTabs(id);                                                     /* Draws the window selection tabs across the top */
            if (windowMode == 0)
            {
                growE();
                paletteTextures(id);                                    /* Draws the palette selection button and preview swatches */
                paletteOptions(id);                                     /* All of the terrain and palette options */
                stopE();
                fillS(8);
                growE();
                palettePreview(id);                                     /* Draws the two preview palette legends */
                paletteConfirmation(id);                                /* The buttons for default, apply, and cancel */
                stopE();
            }
            else if (windowMode == 1)
            {
                growE();
                fillS(10);
                slopeColorPickerLow.drawColorSelector(WindowRect);
                fillS(40);
                slopeColorPickerHigh.drawColorSelector(WindowRect);
                stopE();
                fillS(100);
                growE();
                fillS(140);
                slopeOptions(id);
                slopeConfirm(id);
                stopE();
            }
            else if (windowMode == 2)
            {
                growE();
                fillS(10);
                biomeColorPicker.drawColorSelector(WindowRect);
                fillS(80);
                growS();
                biomeOptions(id);
                biomeConfirm(id);
                stopS();
                stopE();
            }
            else if (windowMode == 3 && SCANconfigLoader.GlobalResource)
            {
                growE();
                fillS(10);
                resourceColorPicker.drawColorSelector(WindowRect);
                fillS(90);
                growS();
                resourceOptions(id);
                resourceConfirm(id);
                stopS();
                stopE();
            }
            else
            {
                windowMode = 0;
            }
            stopS();

            dropDownBox(id);                                            /* Draw the drop down menu for the palette selection box */
        }