public static void ShowWindow(ScriptableInventory db, int _id) { database = db; idElement = _id; window = GetWindow <ContentModifiWindows>(); window.titleContent = new GUIContent("Edit Content For Languajes"); window.minSize = new Vector2(300, 380); /*contents = new List<string>(); * foreach (var idioma in db.idiomas) * contents.Add(idioma.GetContent(idElement).content);*/ }
public static void ShowWindow(ScriptableInventory db) { database = db; window = GetWindow <AddItemWindows>(); window.minSize = new Vector2(300, 380); newItem = new Item(db.ItemsCount + 1, "", "", ""); newItem.editorShow = true; newItem.selected = false; textAreaStyle.wordWrap = true; valueStyle.wordWrap = true; valueStyle.alignment = TextAnchor.MiddleLeft; h1.fontSize = 16; window.titleContent = new GUIContent("Add new Item"); }
private void OnEnable() { database = (ScriptableInventory)target; layoutWrap.wordWrap = true; h1.fontSize = 16; }