예제 #1
0
        internal void RemoveEmptyParagraphs()
        {
            var startParagraph = StartText.GetParent <Paragraph>();

            if (startParagraph?.Parent != null &&
                !startParagraph.HasText() &&
                CanDeleteParagraph(startParagraph))
            {
                startParagraph.Remove();
            }

            var endParagraph = EndText.GetParent <Paragraph>();

            if (endParagraph?.Parent != null &&
                !endParagraph.HasText() &&
                CanDeleteParagraph(endParagraph))
            {
                endParagraph.Remove();
            }

            var tb = this as TextBlock;

            if (tb?.FirstInsertionPointParagraph.Parent != null)
            {
                tb.FirstInsertionPointParagraph.Remove();
            }
        }
예제 #2
0
 private void Start()
 {
     gameOverHeight = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>().GetMinHeight() - 10.0f;
     player         = GameObject.FindGameObjectWithTag("Player");
     endText        = GameObject.Find("EndText").GetComponent <EndText>();
     pc             = GameObject.Find("PenguinController").GetComponent <PenguinController>();
     pac            = GameObject.Find("sirokuma").GetComponent <PlayerAnimationController>();
 }
예제 #3
0
    public void SetGameOver()
    {
        GameOver = true;
        EndText.SetActive(true);
        EndBackgroundImage.SetActive(true);

        EndGameText.text += "Pontos: " + player.GetComponent <movementPlayer>().points;
        EndGameText.text += "\n\nPressione R para Recomeçar";


        gameText.text = "";
    }
예제 #4
0
        internal void RemoveEmptyParagraphs()
        {
            var startParagraph = StartText.GetParent <Paragraph>();

            if (startParagraph?.Parent != null &&
                !startParagraph.HasText() &&
                CanDeleteParagraph(startParagraph))
            {
                startParagraph.Remove();
            }

            var endParagraph = EndText.GetParent <Paragraph>();

            if (endParagraph?.Parent != null &&
                !endParagraph.HasText() &&
                CanDeleteParagraph(endParagraph))
            {
                endParagraph.Remove();
            }
        }
예제 #5
0
 /**
  * Clear button to remove entries from all text boxes
  * Also sets the date back to the default in the DateTimePicker
  * Repopulates the Proof of Purchase listbox with Yes/No values
  *
  * */
 private void Clear_Click(object sender, EventArgs e)
 {
     FirstName.Clear();
     Middleinitial.Clear();
     Lastname.Clear();
     AddLine1.Clear();
     AddLine2.Clear();
     City.Clear();
     State.Clear();
     Zip.Clear();
     Email.Clear();
     Phone.Clear();
     date.Value = DateTime.Today;
     Proof.Items.Clear();
     Proof.Items.Add("Yes");
     Proof.Items.Add("No");
     StartText.Clear();
     EndText.Clear();
     modifyFlag = false;                   //Reset flag if data is cleared and can no longer be used to add modified entry
 }
예제 #6
0
 void Awake()
 {
     sngl = this;
     my_text = GetComponent<Text>();
     child_text = transform.FindChild("Text").GetComponent<Text>();
 }
예제 #7
0
 // Use this for initialization
 void Start()
 {
     EndGameText    = EndText.GetComponent <Text>();
     movementPlayer = player.GetComponent <movementPlayer>();
 }
예제 #8
0
        public string ToSQL()
        {
            string sql = "REPLACE INTO questcache VALUES (";

            sql += Entry + ", ";
            sql += (int)Method + ", ";
            sql += Level + ", ";
            sql += MinLevel + ", ";
            sql += ZoneOrSort + ", ";
            sql += (int)Type + ", ";
            sql += SuggestedPlayers + ", ";
            sql += RepObjectiveFaction1 + ", ";
            sql += RepObjectiveValue1 + ", ";
            sql += RepObjectiveFaction2 + ", ";
            sql += RepObjectiveValue2 + ", ";
            sql += NextQuestID + ", ";
            sql += XPID + ", ";
            sql += RewardMoney + ", ";
            sql += RewardMoneyAtMaxLevel + ", ";
            sql += Spell + ", ";
            sql += SpellCast + ", ";
            sql += Honor + ", ";
            sql += HonorMultiplier + ", ";
            sql += SourceItemID + ", ";
            sql += (int)Flags + ", ";
            sql += Unk + ", ";
            sql += RewardTitleID + ", ";
            sql += PlayersSlain + ", ";
            sql += RewardTalentPoints + ", ";
            sql += RewardArenaPoints + ", ";
            sql += RewardSkillLineID + ", ";
            sql += RewardSkillPoints + ", ";
            sql += RewardFactionMask + ", ";
            sql += QuestGiverPortraitID + ", ";
            sql += QuestTurnInPortraitID + ", ";
            sql += RewardItem.ToSQL() + ", ";
            sql += RewardItemCount.ToSQL() + ", ";
            sql += RewardItemChoice.ToSQL() + ", ";
            sql += RewardItemChoiceCount.ToSQL() + ", ";
            sql += RewardRepFactionID.ToSQL() + ", ";
            sql += RewardRepValueID.ToSQL() + ", ";
            sql += RewardRepValue.ToSQL() + ", ";
            sql += PointMapID + ", ";
            sql += PointX + ", ";
            sql += PointY + ", ";
            sql += PointOption + ", ";
            sql += "'" + Title.ToSQL() + "', ";
            sql += "'" + ObjectiveText.ToSQL() + "', ";
            sql += "'" + Description.ToSQL() + "', ";
            sql += "'" + EndText.ToSQL() + "', ";
            sql += "'" + CompletionText.ToSQL() + "', ";
            sql += RequiredCreatureOrGOID.ToSQL() + ", ";
            sql += RequiredCreatureOrGOCount.ToSQL() + ", ";
            sql += ItemDropIntermediateID.ToSQL() + ", ";
            sql += ItemDropIntermediateCount.ToSQL() + ", ";
            sql += RequiredItemID.ToSQL() + ", ";
            sql += RequiredItemCount.ToSQL() + ", ";
            sql += CriteriaSpellID + ", ";
            sql += ObjectiveTexts.ToSQL() + ", ";
            sql += RewardCurrencyID.ToSQL() + ", ";
            sql += RewardCurrencyValue.ToSQL() + ", ";
            sql += RequiredCurrencyID.ToSQL() + ", ";
            sql += RequiredCurrencyValue.ToSQL() + ", ";
            sql += "'" + QuestGiverPortraitText.ToSQL() + "', ";
            sql += "'" + QuestGiverPortraitUnk.ToSQL() + "', ";
            sql += "'" + QuestTurnInPortraitText.ToSQL() + "', ";
            sql += "'" + QuestTurnInPortraitUnk.ToSQL() + "', ";
            sql += SoundField1 + ", ";
            sql += SoundField2 + ");";
            return(sql);
        }
예제 #9
0
 // Display end text
 public void DisplayEndText(EndText et)
 {
     SetButtonsEnable(ScenarioMode.Story);
     text.GetComponent <Text>().color = playerColors[playerIndex];
     text.GetComponent <typer>().StartRoutines(et.GetFromChoices());
 }