public TextBox(Vector2 pos, TelephoneBase tel, TextBoxType tbt, String text, int maxStringSize) : base(pos) { this.name = text; boxType = tbt; font = TelephoneBase.font; maxSize = maxStringSize - 1; }
public Contact(TelephoneBase tel, string name, string number) : base(Vector2.Zero) { phone = tel; LoadText(tel.content, "GuiElements\\gui_human"); this.name = name; this.number = number; remove = new Button(Vector2.Zero, true, "", Color.Red); remove.LoadText(tel.content, "GuiElements\\gui_remove"); remove.size = 0.65f; fon = new Object(Vector2.Zero); fon.LoadText(tel.content, "GuiElements\\gui_contact"); }
public PhoneBookScreen(TelephoneBase tel) : base(tel) { Load(); base.LoadText(tel.content, "GuiElements\\screen_phonebook"); addContact = new Button(new Vector2(30, 64), true, "Новый", Color.Blue); addContact.LoadText(tel.content, "GuiElements\\gui_add"); addContact.size = 0.75f; addContact.stringPos = new Vector2(10, 0); acceptAdd = new Button(new Vector2(125, 386), true, "Добавить", Color.Blue); acceptAdd.LoadText(phone.content, "GuiElements\\gui_button"); acceptAdd.stringPos = new Vector2(-50, -10); guiType = GuiType.Main; nameBox = new TextBox(new Vector2(105, 180), phone, TextBoxType.All, "Имя", 16); nameBox.LoadText(phone.content, "GuiElements\\gui_inputbox"); phoneBox = new TextBox(new Vector2(105, 240), phone, TextBoxType.Number, "Номер", 11); phoneBox.LoadText(phone.content, "GuiElements\\gui_inputbox"); screenFonAdd = new Object(new Vector2(Core.screenWidth / 2, 66)); screenFonAdd.LoadText(phone.content, "GuiElements\\screen_phonebookadd"); search = new Object(new Vector2(75, 64)); search.LoadText(phone.content, "GuiElements\\gui_search"); //search.color = new Vector4(0.2f, 0.75f, 1, 1); searchBox = new TextBox(new Vector2(170, 64), phone, TextBoxType.All, "Поиск", 8); searchBox.LoadText(phone.content, "GuiElements\\gui_inputsearch"); search.position = new Vector2(120, 64); searchBox.position = new Vector2(190, 64); if (firstStart) { Contact c = new Contact(phone, "Balance", "104"); contacts.Add(c); c = new Contact(phone, "Mother", "89181112233"); contacts.Add(c); c = new Contact(phone, "Father", "89184433121"); contacts.Add(c); c = new Contact(phone, "Brother", "89187711889"); contacts.Add(c); c = new Contact(phone, "Friend", "89187722889"); contacts.Add(c); c = new Contact(phone, "Antoha", "89003475712"); contacts.Add(c); c = new Contact(phone, "My number", "89237643712"); contacts.Add(c); c = new Contact(phone, "OLD NUMBER", "89648527592"); contacts.Add(c); c = new Contact(phone, "Matvey", "8964245314"); contacts.Add(c); } firstStart = false; Save(); }
public PhoneBook(TelephoneBase tel, Vector2 pos) : base(pos, tel) { LoadText(phone.content, "GuiElements\\icon_phonebook"); }
public PhoneScreen(TelephoneBase tel) : base(tel.position) { phone = tel; }
public AppIcon(Vector2 pos, TelephoneBase tel) : base(pos) { phone = tel; addPos = pos; }
public LoadingScreen(TelephoneBase tel) : base(tel) { base.LoadText(tel.content, "GuiElements\\screen_loading"); }