public override void _Ready()
        {
            SpeedContrl.Pause();

            surplus     = GetNode <ReactiveLabel>("CenterContainer/EconomyDetail/VBoxContainer/Bottom/Surplus/Value");
            incomeTotal = GetNode <ReactiveLabel>("CenterContainer/EconomyDetail/VBoxContainer/HBoxContainer/Income/VBoxContainer/Total/Value");
            outputTotal = GetNode <ReactiveLabel>("CenterContainer/EconomyDetail/VBoxContainer/HBoxContainer/Output/VBoxContainer/Total/Value");

            surplus.Assoc(RunData.Economy.inst.monthSurplus);
            incomeTotal.Assoc(RunData.Economy.inst.incomes.total);
            outputTotal.Assoc(RunData.Economy.inst.outputs.total);

            foreach (var income in RunData.Economy.inst.incomes)
            {
                var incomPanel = (IncomePanel)ResourceLoader.Load <PackedScene>("res://Scenes/Main/Dynamic/EconomyDetail/IncomePanel.tscn").Instance();
                incomPanel.gmObj = income;

                GetNode <VBoxContainer>("CenterContainer/EconomyDetail/VBoxContainer/HBoxContainer/Income/VBoxContainer/VBoxContainer").AddChild(incomPanel);
            }

            foreach (var output in RunData.Economy.inst.outputs)
            {
                var outputPanel = (OutputPanel)ResourceLoader.Load <PackedScene>("res://Scenes/Main/Dynamic/EconomyDetail/OutputPanel.tscn").Instance();
                outputPanel.gmObj = output;

                GetNode <VBoxContainer>("CenterContainer/EconomyDetail/VBoxContainer/HBoxContainer/Output/VBoxContainer/VBoxContainer").AddChild(outputPanel);
            }

            ////UpDateTempOutputStatus();
        }
Beispiel #2
0
 public override void _ExitTree()
 {
     SpeedContrl.UnPause();
 }
Beispiel #3
0
 public override void _EnterTree()
 {
     SpeedContrl.Pause();
 }
Beispiel #4
0
        private void Exit()
        {
            QueueFree();

            SpeedContrl.UnPause();
        }
Beispiel #5
0
 public DialogPanel()
 {
     SpeedContrl.Pause();
 }