public void applyTones(int x, int y, DialogueBox theTip) { // Applying tones to Text Boxes for (var i = 0; i < buttons.Count; i++) { if (buttons[i].GetSelected()) { //CHECK MATRIX BS // Move to character state //double[,] final = tfx.MatrixMult(tfx, cf); ////Console.WriteLine(final[2, 3]); ////Console.WriteLine("HEY THE BUTTON I AM DRAGGING IS: " + buttons[i].getTone().ToString()); // Get UI Text Boxes var playerDialogues = this.getPlayerDialogues(); for (var j = 0; j < playerDialogues.Count; j++) { var boxBounds = playerDialogues[j].getBoxBounds(); //change color if the button is hovering over the textbox if (contains(buttons[i])) { for (int k = 0; k < playerDialogues.Count; k++) { playerDialogues[k].setPrevColor(playerDialogues[k].getBoxColor("curr")); playerDialogues[k].setBoxColor(buttons[i].getTonalColor()); playerDialogues[k].setAffected(true); playerDialogues[k].setTone(buttons[i].getTone()); if (theTip.init == true) { theTip.loadNewDialogue("tooltip3", "Click/Space to Speak"); } ////Console.WriteLine("MY TONE IS: " + playerDialogues[0].getTone()); //IF THE PLAYER DRAGGED IN BLUNT //HAVE THE TARGET CHARS REACT ANGRILY if (playerDialogues[0].getTone() == tone.Blunt) { //only pgets called when dragged!! keys will not work // Program.getGame().getTargets(); //Console.WriteLine("hello"); //applyReactionToBlunt(Program.getGame().getTargets()); } } break; } } buttons[i].snapBack(); buttons[i].SetSelected(false); break; } } }
public GameState() { currentState = "menu"; currentMenuState = "start"; //sound_man.init_music(); playerDialogueBox = new DialogueBox(this, "PLAYER"); dialogueBox = new DialogueBox(this, "AI"); tooltip = new DialogueBox(this, "tooltip"); dialogueBox.animationStart = true; dialogueBox.init = true; }
public void applyToneShortcut(UIButton button, DialogueBox theTip) { if (button.getDisabled() == false) { for (int i = 0; i < playerDialogues.Count; i++) { rootBackgroundBorder.OutlineColor = button.getTonalColor(); playerDialogues[i].setPrevColor(playerDialogues[i].getBoxColor("curr")); playerDialogues[i].setBoxColor(button.getTonalColor()); playerDialogues[i].setTone(button.getTone()); if (theTip.init == true) { theTip.loadNewDialogue("tooltip3", "Click/space to speak"); } } } }
//TooltipToggle(false, db box); public void TooltipToggle(bool b, DialogueBox theTip) { theTip.init = b; }