public MapTabTexturesViewModel() { Layers = new TextureLayerBoxViewModel(false); TileBrowser = new TileBrowserViewModel(); TileBrowser.CanMultiSelect = true; AutotileBrowser = new AutotileBrowserViewModel(); }
public MapTabTerrainViewModel() { TileBrowser = new TileBrowserViewModel(); TileBrowser.CanMultiSelect = true; AutotileBrowser = new AutotileBrowserViewModel(); TerrainTypes = new ObservableCollection <string>(); string[] terrain_names = DataManager.Instance.DataIndices[DataManager.DataType.Terrain].GetLocalStringArray(); for (int ii = 0; ii < terrain_names.Length; ii++) { TerrainTypes.Add(ii.ToString("D3") + ": " + terrain_names[ii]); } }