Пример #1
0
    public override void _Ready()
    {
        Show();
        cam = GetNode("../playerSprite/Camera2D") as Camera2D;
        p   = GetNode("../playerSprite") as player;
        g   = GetNode("/root/globals") as globals;
        c   = GetNode("../combatOps") as combatOps;

        oocMenu     = GetNode("oocMenu") as Sprite;
        oocSel      = GetNode("oocSel") as Sprite;
        oocTxt      = GetNode("oocMenu/menuTxt") as Label;
        dialogueWin = GetNode("dialogueWin") as Sprite;
        dialogueTxt = GetNode("dialogueWin/dialogueTxt") as Label;
        mapSel      = GetNode("mapSelector") as Sprite;

        combatUI    = GetNode("combatUI") as Sprite;
        combatSel   = GetNode("combatUI/selector") as Sprite;
        combatSelNo = 0;

        statLbl     = GetNode("combatUI/charStats") as Label;
        menuLbl     = GetNode("combatUI/menuSelTxt") as Label;
        feedbackLbl = GetNode("combatUI/feedbackTxt") as Label;

        scrip = System.IO.File.ReadAllLines("./scripts/dialogue.db");

        combatUI.Hide();
        oocMenu.Hide();
        dialogueWin.Hide();

        fadeTicker = new Timer();
        this.AddChild(fadeTicker);
    }
Пример #2
0
 public override void _Ready()
 {
     g           = GetNode("/root/globals") as globals;
     p           = GetNode("../playerSprite") as player;
     c           = GetNode("../combatOps") as combatOps;
     gui         = GetNode("../UI") as UI;
     g.inputMode = inputModes.moving;
 }
Пример #3
0
    public override void _Ready()
    {
        g   = GetNode("/root/globals") as globals;
        c   = GetNode("../combatOps") as combatOps;
        gui = GetNode("../UI") as UI;
        InitializeRays();

        newt.Connect("timeout", this, "combatBeginNextTurn");
        newt.OneShot = true;
        AddChild(newt);
    }