public static statusSymbol ( CreatureStatus s ) : string | ||
s | CreatureStatus | |
리턴 | string |
public void buttonEdit_Click(object sender, EventArgs e) { SuspendLayout(); if (creature != null) { if (panel1.Visible) { closeSettings(false); } else { checkBoxIsBred.Checked = creature.isBred; panelParents.Visible = creature.isBred; if (creature.isBred) { populateParentsList(); } textBoxName.Text = creature.name; textBoxOwner.Text = creature.owner; textBoxNote.Text = creature.note; sex = creature.gender; buttonSex.Text = Utils.sexSymbol(sex); status = creature.status; buttonStatus.Text = Utils.statusSymbol(status); textBoxName.SelectAll(); textBoxName.Focus(); panel1.Visible = true; for (int s = 0; s < 7; s++) { numUDLevelsDom[s].Value = creature.levelsDom[s]; } } } ResumeLayout(); }
private void buttonEdit_Click(object sender, EventArgs e) { SuspendLayout(); if (creature != null) { if (panel1.Visible) { CloseSettings(false); } else { checkBoxIsBred.Checked = creature.isBred; panelParents.Visible = creature.isBred; if (creature.isBred) { PopulateParentsList(); } textBoxName.Text = creature.name; textBoxOwner.Text = creature.owner; textBoxNote.Text = creature.note; sex = creature.sex; buttonSex.Text = Utils.sexSymbol(sex); creatureStatus = creature.status; buttonStatus.Text = Utils.statusSymbol(creatureStatus); textBoxName.SelectAll(); textBoxName.Focus(); panel1.Visible = true; } } ResumeLayout(); }
private void buttonStatus_Click(object sender, EventArgs e) { c.status = Utils.nextStatus(c.status); buttonStatus.Text = Utils.statusSymbol(c.status); checkBoxStatus.Checked = true; tt.SetToolTip(buttonStatus, "Status: " + c.status.ToString()); }
private void buttonStatus_Click(object sender, EventArgs e) { creatureStatus = Utils.nextStatus(creatureStatus); buttonStatus.Text = Utils.statusSymbol(creatureStatus); }
private void setTitle() { groupBox1.Text = (!onlyLevels && creature.status != CreatureStatus.Available ? "(" + Utils.statusSymbol(creature.status) + ") " : "") + creature.name + " (" + creature.levelHatched + (totalLevelUnknown ? "+" : "") + ")"; if (creature.growingUntil > DateTime.Now) { groupBox1.Text += " (grown at " + Utils.shortTimeDate(creature.growingUntil) + ")"; } else if (creature.cooldownUntil > DateTime.Now) { groupBox1.Text += " (cooldown until " + Utils.shortTimeDate(creature.cooldownUntil) + ")"; } }
public void setCreature(Creature creature) { this.creature = creature; groupBox1.Text = (!onlyLevels && creature.status != CreatureStatus.Available ? "(" + Utils.statusSymbol(creature.status) + ") " : "") + creature.name + " (" + creature.levelHatched + (totalLevelUnknown ? "+" : "") + ")"; if (!onlyLevels && creature.status == CreatureStatus.Dead) { groupBox1.ForeColor = SystemColors.GrayText; tt.SetToolTip(groupBox1, "Creature has passed away"); } else if (!onlyLevels && creature.status == CreatureStatus.Unavailable) { groupBox1.ForeColor = SystemColors.GrayText; tt.SetToolTip(groupBox1, "Creature is currently not available"); } for (int s = 0; s < 7; s++) { if (creature.levelsWild[s] < 0) { labels[s].Text = "?"; labels[s].BackColor = Color.WhiteSmoke; labels[s].ForeColor = Color.LightGray; } else { labels[s].Text = creature.levelsWild[s].ToString(); labels[s].BackColor = Utils.getColorFromPercent((int)(creature.levelsWild[s] * 2.5), (creature.topBreedingStats[s] ? 0.2 : 0.7)); labels[s].ForeColor = SystemColors.ControlText; tt.SetToolTip(labels[s], Utils.statName(s) + ": " + (creature.valuesBreeding[s] * (Utils.precision(s) == 3 ? 100 : 1)).ToString() + (Utils.precision(s) == 3 ? "%" : "")); } labels[s].Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, (creature.topBreedingStats[s] ? System.Drawing.FontStyle.Bold : System.Drawing.FontStyle.Regular), System.Drawing.GraphicsUnit.Point, ((byte)(0))); } if (onlyLevels) { labelSex.Visible = false; pictureBox1.Visible = false; plainTextcurrentValuesToolStripMenuItem.Visible = false; aRKChatcurrentValuesToolStripMenuItem.Visible = false; } else { labelSex.Visible = true; labelSex.Text = Utils.sexSymbol(creature.gender); labelSex.BackColor = creature.neutered ? SystemColors.GrayText : Utils.sexColor(creature.gender); // creature Colors pictureBox1.Image = CreatureColored.getColoredCreature(creature.colors, "", enabledColorRegions, 24, 22, true); labelSex.Visible = true; pictureBox1.Visible = true; plainTextcurrentValuesToolStripMenuItem.Visible = true; aRKChatcurrentValuesToolStripMenuItem.Visible = true; } labelMutations.BackColor = Color.FromArgb(225, 192, 255); labelMutations.Text = creature.mutationCounter.ToString(); labelMutations.Visible = creature.mutationCounter > 0; contextMenuAvailable = true; }
private void buttonStatus_Click(object sender, EventArgs e) { c.status = Utils.nextStatus(c.status); buttonStatus.Text = Utils.statusSymbol(c.status); checkBoxStatus.Checked = true; }