public void highlightBuildType() { //if the build type is set to be included, then highlight it. otherwise, highlight the build button disselectBuildAndNotes(); GameObject button; if (clickTileAction == "Toggle Note 1" && includeNote1Btn) { button = note1Button; } else if (clickTileAction == "Toggle Note 2" && includeNote2Btn) { button = note2Button; } else if (clickTileAction == "Clear Tile") { button = clearTileButton; } else { clickTileAction = "Apply Selected"; button = buildButton; } InterfaceFunctions.colorPuzzleButtonOn(button); }
public void hitClearButton() { //choose the clear tile selection mode clickTileAction = "Clear Tile"; disselectNumber(prevClickedNumButton); disselectBuildAndNotes(); foreach (PuzzleTile t in puzzleGenerator.puzzleTiles) { t.unhighlightBuildingNumber(); } InterfaceFunctions.colorPuzzleButtonOn(clearTileButton); updateRemoveSelectedNumber(); save(); }
public void hitNote1Button() { //choose the note 1 selection mode if (clickTileAction == "Clear Tile") { selectNumber(prevClickedNumButton); foreach (PuzzleTile t in puzzleGenerator.puzzleTiles) { t.highlightIfBuildingNumber(selectedNumber); } } clickTileAction = "Toggle Note 1"; disselectBuildAndNotes(); InterfaceFunctions.colorPuzzleButtonOn(note1Button); updateRemoveSelectedNumber(); save(); }
private void selectNumber(GameObject btn) { //color chosen the number button to the "on" coloration from the current skin InterfaceFunctions.colorPuzzleButtonOn(btn, skin); }