private void GenerateMemoryCacheLayout() { LayoutItem lMemoryCache = rootLayoutItem.Create(pUseMemoryCache); lMemoryCache.drawGroup = LayoutItem.Group.valueOn; lMemoryCache.Create("checkCacheSize", CheckMemoryCacheSize); lMemoryCache.Create(pMaxMemoryCacheSize).content = new GUIContent("Size (mb)"); lMemoryCache.Create("unloadRate", DrawMemoryCacheUnloadRate); lMemoryCache.Create("drawSize", DrawMemoryCacheSize); }
private void GenerateCustomCacheLayout() { LayoutItem lCustomCache = rootLayoutItem.Create("CustomCache"); lCustomCache.drawGroup = LayoutItem.Group.always; lCustomCache.Create("label", () => EditorGUILayout.LabelField("Custom Cache")); lCustomCache.Create(pMaxCustomCacheSize).content = new GUIContent("Size (mb)"); lCustomCache.Create("unloadRate", DrawCustomCacheUnloadRate); lCustomCache.Create("drawSize", DrawCustomCacheSize); }
protected override void GenerateLayoutItems() { base.GenerateLayoutItems(); warningLayoutItem = rootLayoutItem.Create("WarningArea"); rootLayoutItem.Create(pAllowUserControl); LayoutItem lZoom = rootLayoutItem.Create(pAllowZoom); lZoom.drawGroup = LayoutItem.Group.valueOn; lZoom.Create(pZoomMode); lZoom.Create(pZoomInOnDoubleClick); lZoom.Create(pInvertTouchZoom); }
private void GenerateMaterialsLayout() { LayoutItem mats = rootLayoutItem.Create("materialsAndShaders"); mats.drawGroup = LayoutItem.Group.validated; mats.drawGroupBorder = true; mats.OnValidateDrawChilds += () => showShaders; mats.action += () => { showShaders = GUILayout.Toggle(showShaders, "Materials & Shaders", EditorStyles.foldout); }; mats.Create(pTileMaterial); mats.Create(pMarkerMaterial); mats.Create(pTilesetShader).OnChanged += () => { if (pTilesetShader.objectReferenceValue == null) { pTilesetShader.objectReferenceValue = defaultTilesetShader; } }; mats.Create(pMarkerShader).OnChanged += () => { if (pMarkerShader.objectReferenceValue == null) { pMarkerShader.objectReferenceValue = Shader.Find("Transparent/Diffuse"); } }; mats.Create(pDrawingShader).OnChanged += () => { if (pDrawingShader.objectReferenceValue == null) { pDrawingShader.objectReferenceValue = Shader.Find("Infinity Code/Online Maps/Tileset DrawingElement"); } }; mats.Create(pMipmapForTiles); }
public async Task Create(CreateLayoutItemDto input) { var _header = _layoutHeaderRepository.Get(input.LayoutHeaderId); var @layoutItem = input.MapTo <LayoutItem>(); @layoutItem.TenantId = AbpSession.GetTenantId(); @layoutItem = LayoutItem.Create(AbpSession.GetTenantId(), input.Key, input.Size, input.Source, input.Position, input.Group); _header.LayoutItems.Add(@layoutItem); await CurrentUnitOfWork.SaveChangesAsync(); }
protected override void GenerateLayoutItems() { base.GenerateLayoutItems(); rootLayoutItem.Create(pActiveCamera).content = new GUIContent("Camera"); LayoutItem markerMode = rootLayoutItem.Create(pMarker2DMode); markerMode.OnChangedInPlaymode += () => { if (pMarker2DMode.enumValueIndex == (int)OnlineMapsMarker2DMode.billboard) { control.markerDrawer = new OnlineMapsMarkerBillboardDrawer(control as OnlineMapsControlBaseDynamicMesh); } else { control.markerDrawer = new OnlineMapsMarkerFlatDrawer(control as OnlineMapsControlBaseDynamicMesh); } OnlineMaps.instance.Redraw(); }; markerMode.Create(pMarker2DSize).OnValidateDraw += () => pMarker2DMode.enumValueIndex == (int)OnlineMapsMarker2DMode.billboard; }
private void GenerateFileCacheLayout() { LayoutItem lFileCache = rootLayoutItem.Create(pUseFileCache); lFileCache.drawGroup = LayoutItem.Group.valueOn; #if UNITY_WEBGL lFileCache.Create("webGLWarning", DrawWebGLWarning); #endif lFileCache.Create("checkCacheSize", CheckFileCacheSize); lFileCache.Create(pMaxFileCacheSize).content = new GUIContent("Size (mb)"); lFileCache.Create("pFileCacheUnloadRate", DrawFileCacheUnloadRate); LayoutItem lFileCacheLocation = lFileCache.Create(pFileCacheLocation); lFileCacheLocation.content = new GUIContent("Cache Location"); lFileCacheLocation.drawGroup = LayoutItem.Group.validated; lFileCacheLocation.drawGroupBorder = false; lFileCacheLocation.OnValidateDrawChilds += () => pFileCacheLocation.enumValueIndex == (int)OnlineMapsCache.CacheLocation.custom; lFileCacheLocation.OnChildChanged += item => { fileCacheSize = null; serializedObject.ApplyModifiedProperties(); }; lFileCacheLocation.OnChanged += () => { fileCacheSize = null; serializedObject.ApplyModifiedProperties(); }; lFileCacheLocation.Create("customCacheFolder", DrawCustomCacheFolder); lFileCache.Create(pFileCacheTilePath).content = new GUIContent("Tile Path"); lFileCache.Create("availableTokens", DrawAvailableTokens); lFileCache.Create("drawFileCacheSize", DrawFileCacheSize); }