예제 #1
0
 private void TextChangeCrop(PanelActive panelActive)
 {
     if (gameObject.name == "TomatoCrop")
     {
         panelActive.GetComponent <PanelActive>().croppanel_text.text = "토마토를 키우시겠습니까?";
     }
     else if (gameObject.name == "CornCrop")
     {
         panelActive.GetComponent <PanelActive>().croppanel_text.text = "옥수수를 키우시겠습니까?";
     }
     else if (gameObject.name == "ChilliCrop")
     {
         panelActive.GetComponent <PanelActive>().croppanel_text.text = "오이고추를 키우시겠습니까?";
     }
     else if (gameObject.name == "EggplantCrop")
     {
         panelActive.GetComponent <PanelActive>().croppanel_text.text = "가지를 키우시겠습니까?";
     }
 }
예제 #2
0
        private void SetPanel(PanelActive panel)
        {
            panelConnection.Visible = false;
            panelSettings.Visible   = false;
            panelInfo.Visible       = false;

            buttonConnection.BackColor = ColorButtonInActive;
            buttonSettings.BackColor   = ColorButtonInActive;
            buttonInfo.BackColor       = ColorButtonInActive;

            buttonConnection.FlatAppearance.MouseOverBackColor = ColorButtonOver;
            buttonSettings.FlatAppearance.MouseOverBackColor   = ColorButtonOver;
            buttonInfo.FlatAppearance.MouseOverBackColor       = ColorButtonOver;
            switch (panel)
            {
            case PanelActive.Connection:
                panelConnection.Visible    = true;
                buttonConnection.BackColor = ColorButtonActive;
                buttonConnection.FlatAppearance.MouseOverBackColor = ColorButtonActive;
                SetInitialSize();
                break;

            case PanelActive.Settings:
                panelSettings.Visible    = true;
                buttonSettings.BackColor = ColorButtonActive;
                buttonSettings.FlatAppearance.MouseOverBackColor = ColorButtonActive;
                SetInitialSize();
                SetSettingsValuesToUI();
                break;

            case PanelActive.Info:
                panelInfo.Visible    = true;
                buttonInfo.BackColor = ColorButtonActive;
                buttonInfo.FlatAppearance.MouseOverBackColor = ColorButtonActive;
                SetInfoSize();
                panelInfo.Focus();
                break;
            }
        }
예제 #3
0
        private void SetPanel(PanelActive panel)
        {
            panelConnection.Visible = false;
            panelSettings.Visible = false;
            panelInfo.Visible = false;

            buttonConnection.BackColor = ColorButtonInActive;
            buttonSettings.BackColor = ColorButtonInActive;
            buttonInfo.BackColor = ColorButtonInActive;

            buttonConnection.FlatAppearance.MouseOverBackColor = ColorButtonOver;
            buttonSettings.FlatAppearance.MouseOverBackColor = ColorButtonOver;
            buttonInfo.FlatAppearance.MouseOverBackColor = ColorButtonOver;
            switch (panel)
            {
                case PanelActive.Connection:
                    panelConnection.Visible = true;
                    buttonConnection.BackColor = ColorButtonActive;
                    buttonConnection.FlatAppearance.MouseOverBackColor = ColorButtonActive;
                    SetInitialSize();
                    break;
                case PanelActive.Settings:
                    panelSettings.Visible = true;
                    buttonSettings.BackColor = ColorButtonActive;
                    buttonSettings.FlatAppearance.MouseOverBackColor = ColorButtonActive;
                    SetInitialSize();
                    SetSettingsValuesToUI();
                    break;
                case PanelActive.Info:
                    panelInfo.Visible = true;
                    buttonInfo.BackColor = ColorButtonActive;
                    buttonInfo.FlatAppearance.MouseOverBackColor = ColorButtonActive;
                    SetInfoSize();
                    panelInfo.Focus();
                    break;
            }
        }