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(); } }
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>(); }
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 = ""; }
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(); } }
/** * 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 }
void Awake() { sngl = this; my_text = GetComponent<Text>(); child_text = transform.FindChild("Text").GetComponent<Text>(); }
// Use this for initialization void Start() { EndGameText = EndText.GetComponent <Text>(); movementPlayer = player.GetComponent <movementPlayer>(); }
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); }
// Display end text public void DisplayEndText(EndText et) { SetButtonsEnable(ScenarioMode.Story); text.GetComponent <Text>().color = playerColors[playerIndex]; text.GetComponent <typer>().StartRoutines(et.GetFromChoices()); }