コード例 #1
0
        public JsonResult Add(AssetsMaster ass)
        {
            MTSHRDataLayer.AssetsMaster data_asset = new MTSHRDataLayer.AssetsMaster();
            int result = data_asset.Create(ass.AssetTypeId, ass.AssetName, ass.AssetDepreciation, ass.ExpectedLife, ass.SalvageValue);

            return(Json(new { success = result }, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        private static void OpenAssetsMaster()
        {
            AssetsMaster master = EditorWindow.GetWindow <AssetsMaster>();

            master.titleContent.image = EditorGUIUtility.IconContent("d_WelcomeScreen.AssetStoreLogo").image;
            master.titleContent.text  = "Assets Master";
            master.minSize            = new Vector2(1000, 600);
            master.SearchAssetsInOpenedScene();
            master.Show();
        }
コード例 #3
0
        public static void ShowWindow(AssetsMaster assetsMaster, Vector2 pos)
        {
            TextureAlarmValueSetter window = GetWindow <TextureAlarmValueSetter>();

            window.titleContent.image = EditorGUIUtility.IconContent("d_editicon.sml").image;
            window.titleContent.text  = "Texture Alarm Value";
            window._assetsMaster      = assetsMaster;
            window.minSize            = new Vector2(250, 150);
            window.maxSize            = new Vector2(250, 150);
            window.position           = new Rect(pos.x, pos.y, 250, 150);
            window.Show();
        }