Exemplo n.º 1
0
    public override void _Ready()
    {
        compoundBars = GetTree().GetNodesInGroup("CompoundBar");

        winExtinctBoxHolder = GetNode <Control>("WinExtinctBoxHolder");

        panelsTween     = GetNode <Tween>(PanelsTweenPath);
        mouseHoverPanel = GetNode <MarginContainer>(MouseHoverPanelPath);
        pauseButton     = GetNode <TextureButton>(PauseButtonPath);
        resumeButton    = GetNode <TextureButton>(ResumeButtonPath);
        agentsPanel     = GetNode <Control>(AgentsPanelPath);

        environmentPanel             = GetNode <Panel>(EnvironmentPanelPath);
        environmentPanelBarContainer = GetNode <GridContainer>(EnvironmentPanelBarContainerPath);
        oxygenBar     = GetNode <ProgressBar>(OxygenBarPath);
        co2Bar        = GetNode <ProgressBar>(Co2BarPath);
        nitrogenBar   = GetNode <ProgressBar>(NitrogenBarPath);
        temperature   = GetNode <ProgressBar>(TemperaturePath);
        sunlightLabel = GetNode <ProgressBar>(SunlightPath);
        pressure      = GetNode <ProgressBar>(PressurePath);

        compoundsPanel             = GetNode <Panel>(CompoundsPanelPath);
        compoundsPanelBarContainer = GetNode <GridContainer>(CompoundsPanelBarContainerPath);
        glucoseBar         = GetNode <ProgressBar>(GlucoseBarPath);
        ammoniaBar         = GetNode <ProgressBar>(AmmoniaBarPath);
        phosphateBar       = GetNode <ProgressBar>(PhosphateBarPath);
        hydrogenSulfideBar = GetNode <ProgressBar>(HydrogenSulfideBarPath);
        ironBar            = GetNode <ProgressBar>(IronBarPath);

        oxytoxyBar               = GetNode <ProgressBar>(OxytoxyBarPath);
        atpBar                   = GetNode <TextureProgress>(AtpBarPath);
        healthBar                = GetNode <TextureProgress>(HealthBarPath);
        ammoniaReproductionBar   = GetNode <TextureProgress>(AmmoniaReproductionBarPath);
        phosphateReproductionBar = GetNode <TextureProgress>(PhosphateReproductionBarPath);

        atpLabel                  = GetNode <Label>(AtpLabelPath);
        hpLabel                   = GetNode <Label>(HpLabelPath);
        menu                      = GetNode <PauseMenu>(MenuPath);
        animationPlayer           = GetNode <AnimationPlayer>(AnimationPlayerPath);
        hoveredCompoundsContainer = GetNode <VBoxContainer>(HoveredCompoundsContainerPath);
        hoveredCellsSeparator     = GetNode <HSeparator>(HoverPanelSeparatorPath);
        hoveredCellsContainer     = GetNode <VBoxContainer>(HoveredCellsContainerPath);
        populationLabel           = GetNode <Label>(PopulationLabelPath);
        patchLabel                = GetNode <Label>(PatchLabelPath);
        editorButton              = GetNode <TextureButton>(EditorButtonPath);

        processPanel       = GetNode <ProcessPanel>(ProcessPanelPath);
        processPanelButton = GetNode <TextureButton>(ProcessPanelButtonPath);
    }
Exemplo n.º 2
0
    public void DisableAllPanels()
    {
        LoadingPanel.SetActive(false);

        AccountPanel.SetActive(false);
        ProcessPanel.SetActive(false);

        LobbyPanel.SetActive(false);
        CharacterSelectPanel.SetActive(false);
        ProfilePanel.SetActive(false);
        ShopPanel.SetActive(false);
        FriendsPanel.SetActive(false);
        GameModePanel.SetActive(false);
        SettingsPanel.SetActive(false);
        AboutPanel.SetActive(false);
        WaitingPanel.SetActive(false);
    }
Exemplo n.º 3
0
 public void OnClick_CreateAccount()
 {
     ProcessPanel.SetActive(true);
     UsernamePanel.SetActive(true);
     SignUpButton.SetActive(true);
 }
Exemplo n.º 4
0
 public void OnClick_LogIn()
 {
     ProcessPanel.SetActive(true);
     UsernamePanel.SetActive(false);
     SignInButton.SetActive(true);
 }