Esempio n. 1
0
 static ActionTrigger()
 {
     textField = new TextField("actionTrigger");
     textField.sizeX = 16;
     textField.sizeY = 24;
     _actionName = "ASDF";
 }
Esempio n. 2
0
 private void UpdateTextFields()
 {
     height = sizeY * (numberOfLines + 1);
     textFields = new TextField[numberOfLines];
     for(int i = 0; i < numberOfLines; i++)
     {
         textFields[i] = new TextField("asdf");
         textFields[i].text = "";
         textFields[i].textMaterial.textureName = fontTextureName;
         textFields[i].sizeX = sizeX;
         textFields[i].sizeY = sizeY;
         textFields[i].textMaterial.baseColor = textColor;
     }
     inputField = new TextField("asfd");
     inputField.text = inputPrefix + input;
     inputField.textMaterial.textureName = fontTextureName;
     inputField.sizeX = sizeX;
     inputField.sizeY = sizeY;
     inputField.textMaterial.baseColor = textColor;
 }