protected void PanelSymbol(GameObject parent) { if (panelSymbol) { return; } GameObject panel = Panel(parent, "PanelSymbol"); GameObject column = Column(panel); StandardPanel standardPanel = panel.GetComponent <StandardPanel>(); PanelHeader(standardPanel, column); ButtonRow(standardPanel, column, new List <Key> { K("["), K("]"), K("{"), K("}"), K("#"), K("%"), K("^"), K("*"), K("+"), K("=") }); ButtonRow(standardPanel, column, new List <Key> { K("_"), K("\\"), K("|"), K("~"), K("<"), K(">"), K("€"), K("£"), K("¥"), K("•") }); ButtonRow(standardPanel, column, new List <Key> { Key.NumLock("123"), Key.Spacer(spacerWidth), W("."), W(","), W("?"), W("!"), W("'"), Key.Spacer(spacerWidth), Key.Backspace("⇦") }); ButtonRow(standardPanel, column, new List <Key> { Key.ABC("ABC"), Key.Spacer(spacerWidth), Key.Space("space"), Key.Return("return") }); panelSymbol = panel; keyboard.panelSymbol = standardPanel; }
protected void PanelNumber(GameObject parent) { if (panelNumber) { return; } GameObject panel = Panel(parent, "PanelNumber"); GameObject column = Column(panel); StandardPanel standardPanel = panel.GetComponent <StandardPanel>(); PanelHeader(standardPanel, column); ButtonRow(standardPanel, column, new List <Key> { K("1"), K("2"), K("3"), K("4"), K("5"), K("6"), K("7"), K("8"), K("9"), K("0") }); ButtonRow(standardPanel, column, new List <Key> { K("-"), K("/"), K(":"), K(";"), K("("), K(")"), K("$"), K("&"), K("@"), K("\"") }); ButtonRow(standardPanel, column, new List <Key> { Key.Symbol("#+="), Key.Spacer(spacerWidth), W("."), W(","), W("?"), W("!"), W("'"), Key.Spacer(spacerWidth), Key.Backspace("⇦") }); ButtonRow(standardPanel, column, new List <Key> { Key.ABC("ABC"), Key.Spacer(spacerWidth), Key.Space("space"), Key.Return("return") }); panelNumber = panel; keyboard.panelNumber = standardPanel; }