diff --git a/Documentation~/CONTRIBUTING.md b/Documentation~/CONTRIBUTING.md new file mode 100644 index 00000000..cf9235f8 --- /dev/null +++ b/Documentation~/CONTRIBUTING.md @@ -0,0 +1,37 @@ +This repository exists for the sole purpose of publishing to package manager. Please contribute to https://github.com/UnityTech/UIWidgets instead. + +# Contributing + +## If you are interested in contributing, here are some ground rules: + +### Code Style (using JetBrains Rider) +1. **Import the Customized Code Cleanup Settings**: Open Preferences -> Manage Layers, +Choose 'Solution "\" personal' and Click "Add Layer" ("+") -> "Open Settings File...". +and Open the file "UIWidgetCleanupPlugin.DotSettings" under \/Packages/com.unity.uiwidgets/" + +2. **Cleanup Code style using the Customized Code Cleanup Settings**: Open Code -> Code Cleanup, +Pick a Cleanup scope as you want and Choose "UIWidgets" as the "Code cleanup profile", then click "OK" + +3. **Refine Code Style Rules**: Edit the ".editorconfig" file under \/Packages/com.unity.uiwidgets/". Visit + https://www.jetbrains.com/help/rider/EditorConfig_Index.html for the detailed. + +### Generate Code. + +Code files ending with ".gen.cs" are auto generated. Follow these steps to generate them: + +1. **Go to scripts Folder and Run npm install**: +``` +cd /Packages/com.unity.uiwidgets/scripts~ +npm install +``` + +2. **Run the codegen Command**: +``` +node uiwidgets-cli.js codegen . generate mixin code +``` + + +## All contributions are subject to the [Unity Contribution Agreement(UCA)](https://unity3d.com/legal/licenses/Unity_Contribution_Agreement) +By making a pull request, you are confirming agreement to the terms and conditions of the UCA, including that your Contributions are your original creation and that you have complete right and authority to make your Contributions. + +## Once you have a change ready following these ground rules. Simply make a pull request diff --git a/Documentation~/TableOfContents.md b/Documentation~/TableOfContents.md new file mode 100644 index 00000000..c1525550 --- /dev/null +++ b/Documentation~/TableOfContents.md @@ -0,0 +1,2 @@ +* [UIWidgets Documentation](index) +* [UIWidgets中文文档](index-zh) diff --git a/Documentation~/com.unity.uiwidgets.md b/Documentation~/com.unity.uiwidgets.md new file mode 100644 index 00000000..f74b8fcb --- /dev/null +++ b/Documentation~/com.unity.uiwidgets.md @@ -0,0 +1,356 @@ +# UIWidgets + + +## Introduction + +UIWidgets is a plugin package for Unity Editor which helps developers to create, debug and deploy efficient, +cross-platform Apps using the Unity Engine. + +UIWidgets is mainly derived from [Flutter](https://github.com/flutter/flutter). However, taking advantage of +the powerful Unity Engine, it offers developers many new features to improve their Apps +as well as the develop workflow significantly. + +#### Efficiency +Using the latest Unity rendering SDKs, a UIWidgets App can run very fast and keep >60fps in most times. + + +#### Cross-Platform +A UIWidgets App can be deployed on all kinds of platforms including PCs, mobile devices and web page directly, like +any other Unity projects. + +#### Multimedia Support +Except for basic 2D UIs, developers are also able to include 3D Models, audios, particle-systems to their UIWidgets Apps. + + +#### Developer-Friendly +A UIWidgets App can be debug in the Unity Editor directly with many advanced tools like +CPU/GPU Profiling, FPS Profiling. + + +## Example + +
+ + + + +
+ + + + + + + +
+ +### Projects using UIWidgets + +#### Unity Connect App +The Unity Connect App is created using UIWidgets and available for both Android (https://connect.unity.com/connectApp/download) +and iOS (Searching for "Unity Connect" in App Store). This project is open-sourced @https://github.com/UnityTech/ConnectAppCN. + +#### Unity Chinese Doc +The official website of Unity Chinese Documentation (https://connect.unity.com/doc) is powered by UIWidgets and +open-sourced @https://github.com/UnityTech/DocCN. + +## Requirements + +#### Unity + +Install **Unity 2018.4.10f1 (LTS)** or **Unity 2019.1.14f1** and above. You can download the latest Unity on https://unity3d.com/get-unity/download. + +#### UIWidgets Package +Visit our Github repository https://github.com/UnityTech/UIWidgets + to download the latest UIWidgets package. + +Move the downloaded package folder into the **Package** folder of your Unity project. + +Generally, you can make it using a console (or terminal) application by just a few commands as below: + + ```none + cd /Packages + git clone https://github.com/UnityTech/UIWidgets.git com.unity.uiwidgets + ``` + +## Getting Start + +#### i. Overview +In this tutorial, we will create a very simple UIWidgets App as the kick-starter. The app contains +only a text label and a button. The text label will count the times of clicks upon the button. + +First of all, please open or create a Unity Project and open it with Unity Editor. + +And then open Project Settings, go to Player section and **add "UIWidgets_DEBUG" to the Scripting Define Symbols field.** +This enables the debug mode of UIWidgets for your development. Remove this for your release build afterwards. + +#### ii. Scene Build +A UIWidgets App is usually built upon a Unity UI Canvas. Please follow the steps to create a +UI Canvas in Unity. +1. Create a new Scene by "File -> New Scene"; +1. Create a UI Canvas in the scene by "GameObject -> UI -> Canvas"; +1. Add a Panel (i.e., **Panel 1**) to the UI Canvas by right click on the Canvas and select "UI -> Panel". Then remove the +**Image** Component from the Panel. + +#### iii. Create Widget +A UIWidgets App is written in **C# Scripts**. Please follow the steps to create an App and play it +in Unity Editor. + +1. Create a new C# Script named "UIWidgetsExample.cs" and paste the following codes into it. + ```csharp + using System.Collections.Generic; + using Unity.UIWidgets.animation; + using Unity.UIWidgets.engine; + using Unity.UIWidgets.foundation; + using Unity.UIWidgets.material; + using Unity.UIWidgets.painting; + using Unity.UIWidgets.ui; + using Unity.UIWidgets.widgets; + using UnityEngine; + using FontStyle = Unity.UIWidgets.ui.FontStyle; + + namespace UIWidgetsSample { + public class UIWidgetsExample : UIWidgetsPanel { + protected override void OnEnable() { + // if you want to use your own font or font icons. + // FontManager.instance.addFont(Resources.Load(path: "path to your font"), "font family name"); + + // load custom font with weight & style. The font weight & style corresponds to fontWeight, fontStyle of + // a TextStyle object + // FontManager.instance.addFont(Resources.Load(path: "path to your font"), "Roboto", FontWeight.w500, + // FontStyle.italic); + + // add material icons, familyName must be "Material Icons" + // FontManager.instance.addFont(Resources.Load(path: "path to material icons"), "Material Icons"); + + base.OnEnable(); + } + + protected override Widget createWidget() { + return new WidgetsApp( + home: new ExampleApp(), + pageRouteBuilder: (RouteSettings settings, WidgetBuilder builder) => + new PageRouteBuilder( + settings: settings, + pageBuilder: (BuildContext context, Animation animation, + Animation secondaryAnimation) => builder(context) + ) + ); + } + + class ExampleApp : StatefulWidget { + public ExampleApp(Key key = null) : base(key) { + } + + public override State createState() { + return new ExampleState(); + } + } + + class ExampleState : State { + int counter = 0; + + public override Widget build(BuildContext context) { + return new Column( + children: new List { + new Text("Counter: " + this.counter), + new GestureDetector( + onTap: () => { + this.setState(() + => { + this.counter++; + }); + }, + child: new Container( + padding: EdgeInsets.symmetric(20, 20), + color: Colors.blue, + child: new Text("Click Me") + ) + ) + } + ); + } + } + } + } + ``` + +1. Save this script and attach it to **Panel 1** as its component. +1. Press the "Play" Button to start the App in Unity Editor. + +#### iv. Build App +Finally, the UIWidgets App can be built to packages for any specific platform by the following steps. +1. Open the Build Settings Panel by "File -> Build Settings..." +1. Choose a target platform and click "Build". Then the Unity Editor will automatically assemble +all relevant resources and generate the final App package. + +#### How to load images? +1. Put your images files in Resources folder. e.g. image1.png. +2. You can add image1@2.png and image1@3.png in the same folder to support HD screens. +3. Use Image.asset("image1") to load the image. Note: as in Unity, ".png" is not needed. + +UIWidgets supports Gif as well! +1. Suppose you have loading1.gif. Rename it to loading1.gif.bytes and copy it to Resources folder. +2. You can add loading1@2.gif.bytes and loading1@3.gif.bytes in the same folder to support HD screens. +3. Use Image.asset("loading1.gif") to load the gif images. + +#### Using Window Scope +If you see the error `AssertionError: Window.instance is null` or null pointer error of `Window.instance`, +it means the code is not running in the window scope. In this case, you can enclose your code +with window scope as below: +```csharp +using(WindowProvider.of(your gameObject with UIWidgetsPanel).getScope()) { + // code dealing with UIWidgets, + // e.g. setState(() => {....}) +} +``` + +This is needed if the code is in methods +not invoked by UIWidgets. For example, if the code is in `completed` callback of `UnityWebRequest`, +you need to enclose them with window scope. +Please see [HttpRequestSample](./Samples/UIWidgetSample/HttpRequestSample.cs) for detail. +For callback/event handler methods from UIWidgets (e.g `Widget.build, State.initState...`), you don't need do +it yourself, since the framework ensure it's in window scope. + +#### Show Status Bar on Android +Status bar is always hidden by default when an Unity project is running on an Android device. If you + want to show the status bar in your App, this + [solution](https://github.com/Over17/UnityShowAndroidStatusBar) seems to be + compatible to UIWidgets, therefore can be used as a good option before we release our + full support solution on this issue. + + Besides, + please set "Render Outside Safe Area" to true in the "Player Settings" to make this plugin working properly on Android P or later. + + + + +#### Automatically Adjust Frame Rate + +To build an App that is able to adjust the frame rate automatically, please open Project Settings, and in the Quality tab, set the "V Sync Count" option of the target platform to "Don't Sync". +The default logic is to reduce the frame rate when the screen is static, and change it back to 60 whenever the screen changes. +If you would like to disable this behavior, please set `Window.onFrameRateSpeedUp` and `Window.onFrameRateCoolDown` to null function, i.e., () => {}. + +Note that in Unity 2019.3 and above, UIWidgets will use OnDemandRenderAPI to implement this feature, which will greatly save the battery. + +#### WebGL Canvas Device Pixel Ratio Plugin +The width and height of the Canvas in browser may differ from the number of pixels the Canvas occupies on the screen. +Therefore, the image may blur in the builded WebGL program. +The Plugin `Plugins/platform/webgl/UIWidgetsCanvasDevicePixelRatio_20xx.x.jslib` (2018.3 and 2019.1 for now) solves this issue. +Please select the plugin of the Unity version corresponding to your project, and disable other versions of this plugin, as follows: select this plugin in the **Project** panel, and uncheck **WebGL** under **Select platforms for plugin** in the **Inspector** panel. +If you need to disable this plugin for any reason, please disable all the versions of this plugin as described above. + +This plugin overrides the following parameters in the Unity WebGL building module: +```none +JS_SystemInfo_GetWidth +JS_SystemInfo_GetHeight +JS_SystemInfo_GetCurrentCanvasWidth +JS_SystemInfo_GetCurrentCanvasHeight +$Browser +$JSEvents +``` +If you would like to implement your own WebGL plugin, and your plugin overrides at least one of the above parameters, you need to disable the `UIWidgetsCanvasDevicePixelRatio` plugin in the above mentioned way to avoid possible conflicts. +If you still need the function provided by this plugin, you can mannually apply the modification to Unity WebGL building module introduced in this plugin. +All the modifications introduced in `UIWidgetsCanvasDevicePixelRatio` are marked by `////////// Modifcation Start ////////////` and `////////// Modifcation End ////////////`. +In the marked codes, all the multiplications and divisions with `devicePixelRatio` are introduced by our modification. +To learn about the original script in detail, please refer to `SystemInfo.js` and `UnityNativeJS/UnityNative.js` in `PlaybackEngines/WebGLSupport/BuildTools/lib` in your Unity Editor installation. + +#### Image Import Setting +Unity, by default, resizes the width and height of an imported image to the nearest integer that is a power of 2. +In UIWidgets, you should almost always disable this by selecting the image in the "Project" panel, then in the "Inspector" panel set the "Non Power of 2" option (in "Advanced") to "None", to prevent your image from being resized unexpectedly. + +#### Update Emoji +UIWidgets supports rendering emoji in (editable) texts. +The default emoji resource version is [iOS 13.2](https://emojipedia.org/apple/ios-13.2). +We also prepared the resources of [Google Emoji](https://emojipedia.org/google). +To switch to Google version of emoji, please follow the following steps: + +1. Copy `Runtime/Resources/backup~/EmojiGoogle.png` to `Runtime/Resources/images` folder. +2. In the **Project** panel, find and select `EmojiGoogle` asset, and in the **Inspector** panel, change **Max Size** to 4096, and disable **Generate Mipmaps**. +3. In the `OnEnable()` function in your class overriding `UIWidgetsPanel`, add the following code + +```csharp +EmojiUtils.configuration = EmojiUtils.googleEmojiConfiguration; +``` + +If you would like to use your own images for emoji, please follow the following steps: + +1. Create the sprite sheet (take `EmojiGoogle.png` as an example), and put in a `Resources` folder in your project, (for example `Resources/myImages/MyEmoji.png`). +2. In the `OnEnable()` function, add the following code (replace example values with actual value). Note that the order of emoji codes should be consistent with the sprite sheet. + +```csharp +EmojiUtils.configuration = new EmojiResourceConfiguration( + spriteSheetAssetName: "myImage/MyEmoji", + emojiCodes: new List { + 0x1f004, 0x1f0cf, 0x1f170, ... + }, + spriteSheetNumberOfRows: 36, + spriteSheetNumberOfColumns: 37, +); +``` + +#### Interact with GameObject Drag&Drops + +

+ +

+ +With the provided packaged stateful widget `UnityObjectDetector` and its `onRelease` callback function, you can easily drag some objects (for example GameObject from Hierarchy, files from Project Window, etc) into the area, get the UnityEngine.Object[] references and make further modification. + + +## Debug UIWidgets Application + +#### Define UIWidgets_DEBUG +It's recommended to define the **UIWidgets_DEBUG** script symbol in editor, this will turn on +debug assertion in UIWidgets, which will help to find potential bugs earlier. To do this: +please go to **Player Settings -> Other Settings -> Configuration -> Scripting Define Symbols**, +and add **UIWidgets_DEBUG**. +The symbol is for debug purpose, please remove it from your release build. + +#### UIWidgets Inspector +The UIWidgets Inspector tool is for visualizing and exploring the widget trees. You can find it +via *Window/Analysis/UIWidgets* inspector in Editor menu. + +**Note** +* **UIWidgets_DEBUG** needs to be define for inspector to work properly. +* Inspector currently only works in Editor Play Mode, inspect standalone built application is not supported for now. + +## Learn + +#### Samples +You can find many UIWidgets sample projects on Github, which cover different aspects and provide you +learning materials in various levels: +* UIWidgetsSamples (https://github.com/UIWidgets/UIWidgetsSamples). These samples are developed by the dev team in order to illustrates all the features of +UIWidgets. First clone this Repo to the **Assets** folder of your local UIWidgets project. Then +you can find all the sample scenes under the **Scene** folder. +You can also try UIWidgets-based Editor windows by clicking the new **UIWidgetsTests** tab on the main menu +and open one of the dropdown samples. +* awesome-UIWidgets by Liangxie (https://github.com/liangxiegame/awesome-uiwidgets). This Repo contains +lots of UIWidget demo apps and third-party applications. +* ConnectApp (https://github.com/UnityTech/ConnectAppCN). This is an online, open-source UIWidget-based App developed +by the dev team. If you are making your own App with UIWidgets, this project will provides you with +many best practice cases. + + +#### Wiki +The develop team is still working on the UIWidgets Wiki. However, since UIWidgets is mainly derived from Flutter, + you can refer to Flutter Wiki to access detailed descriptions of UIWidgets APIs + from those of their Flutter counterparts. +Meanwhile, you can join the discussion channel at (https://connect.unity.com/g/uiwidgets) + +#### FAQ + +| Question | Answer | +| :-----------------------------------------------| ---------------------: | +| Can I create standalone App using UIWidgets? | **Yes** | +| Can I use UIWidgets to build game UIs? | **Yes** | +| Can I develop Unity Editor plugins using UIWidgets? | **Yes** | +| Is UIWidgets a extension of UGUI/NGUI? | **No** | +| Is UIWidgets just a copy of Flutter? | **No** | +| Can I create UI with UIWidgets by simply drag&drop? | **No** | +| Do I have to pay for using UIWidgets? | **No** | +| Any IDE recommendation for UIWidgets? | **Rider, VSCode(Open .sln)** | + +## How to Contribute + +Check [CONTRIBUTING](CONTRIBUTING) diff --git a/Documentation~/images/example.png b/Documentation~/images/example.png deleted file mode 100644 index 216328df..00000000 Binary files a/Documentation~/images/example.png and /dev/null differ diff --git a/Documentation~/index-zh.md b/Documentation~/index-zh.md new file mode 100644 index 00000000..aa31ff20 --- /dev/null +++ b/Documentation~/index-zh.md @@ -0,0 +1,315 @@ +# UIWidgets + + +## 介绍 + +UIWidgets是Unity编辑器的一个插件包,可帮助开发人员通过Unity引擎来创建、调试和部署高效的跨平台应用。 + +UIWidgets主要来自[Flutter](https://github.com/flutter/flutter)。但UIWidgets通过使用强大的Unity引擎为开发人员提供了许多新功能,显著地改进他们开发的应用性能和工作流程。 + +#### 效率 +通过使用最新的Unity渲染SDK,UIWidgets应用可以非常快速地运行并且大多数时间保持大于60fps的速度。 + +#### 跨平台 +与任何其他Unity项目一样,UIWidgets应用可以直接部署在各种平台上,包括PC,移动设备和网页等。 + +#### 多媒体支持 +除了基本的2D UI之外,开发人员还能够将3D模型,音频,粒子系统添加到UIWidgets应用中。 + +#### 开发者友好 +开发者可以使用许多高级工具,如CPU/GPU Profiling和FPS Profiling,直接在Unity Editor中调试UIWidgets应用。 + +## 示例 + +
+ + + + +
+ + + + + + + +
+ +### 基于UIWidgets的项目 + +#### Unity Connect App +Unity Connect App是使用UIWidgets开发的一个移动App产品,您随时可以在Android (https://connect.unity.com/connectApp/download) +以及iOS (Searching for "Unity Connect" in App Store)端下载到它最新的版本. 本项目的所有代码均开源@https://github.com/UnityTech/ConnectAppCN. + +#### Unity中文官方文档 +Unity的线上中文官方文档由UIWidgets开发,您可以点击以下网址 https://connect.unity.com/doc 来访问它的全部内容。该项目目前已开源,所有代码可以在 +https://github.com/UnityTech/DocCN 查看。 + +## 使用要求 + +#### Unity + +安装 **Unity 2018.4.10f1(LTS)** 或 **Unity 2019.1.14f1** 及其更高版本。 你可以从[https://unity3d.com/get-unity/download](https://unity3d.com/get-unity/download)下载最新的Unity。 + +#### UIWidgets包 + +访问我们的Github存储库 [https://github.com/UnityTech/UIWidgets](https://github.com/UnityTech/UIWidgets)下载最新的UIWidgets包。 + +将下载的包文件夹移动到Unity项目的Package文件夹中。 + +通常,你可以在控制台(或终端)应用程序中输入下面的代码来完成这个操作: + + ```none + cd /Packages + git clone https://github.com/UnityTech/UIWidgets.git com.unity.uiwidgets + ``` + +## 入门指南 + +#### 一、 概观 +在本教程中,我们将创建一个非常简单的UIWidgets应用。 该应用只包含文本标签和按钮。 文本标签将计算按钮上的点击次数。 + +首先,请打开或创建Unity项目并使用Unity编辑器打开它。 + +然后打开Project Settings,转到Player部分并**将“UIWidgets_DEBUG”添加到Scripting Define Symbols字段中。** + +这样就启动了UIWidgets的调试模式。 在之后发布版本的时候清空这个字段。 + +#### 二、 场景构建 + +UIWidgets应用通常构建在Unity UI Canvas上。 请按照以下步骤在Unity中创建一个 +UI Canvas。 +1. 选择 File > New Scene来创建一个新场景。 +2. 选择 GameObject > UI > Canvas 在场景中创建UI Canvas。 +3. 右键单击Canvas并选择UI > Panel,将面板(即面板1)添加到UI Canvas中。 然后删除面板中的 **Image** 组件。 + +#### 三、创建小部件 + +UIWidgets应用是用**C#脚本**来编写的。 请按照以下步骤创建应用程序并在Unity编辑器中播放。 +1. 创建一个新C#脚本,命名为“UIWidgetsExample.cs”,并将以下代码粘贴到其中。 + +```csharp + using System.Collections.Generic; + using Unity.UIWidgets.animation; + using Unity.UIWidgets.engine; + using Unity.UIWidgets.foundation; + using Unity.UIWidgets.material; + using Unity.UIWidgets.painting; + using Unity.UIWidgets.ui; + using Unity.UIWidgets.widgets; + using UnityEngine; + using FontStyle = Unity.UIWidgets.ui.FontStyle; + + namespace UIWidgetsSample { + public class UIWidgetsExample : UIWidgetsPanel { + protected override void OnEnable() { + // if you want to use your own font or font icons. + // FontManager.instance.addFont(Resources.Load(path: "path to your font"), "font family name"); + + // load custom font with weight & style. The font weight & style corresponds to fontWeight, fontStyle of + // a TextStyle object + // FontManager.instance.addFont(Resources.Load(path: "path to your font"), "Roboto", FontWeight.w500, + // FontStyle.italic); + + // add material icons, familyName must be "Material Icons" + // FontManager.instance.addFont(Resources.Load(path: "path to material icons"), "Material Icons"); + + base.OnEnable(); + } + + protected override Widget createWidget() { + return new WidgetsApp( + home: new ExampleApp(), + pageRouteBuilder: (RouteSettings settings, WidgetBuilder builder) => + new PageRouteBuilder( + settings: settings, + pageBuilder: (BuildContext context, Animation animation, + Animation secondaryAnimation) => builder(context) + ) + ); + } + + class ExampleApp : StatefulWidget { + public ExampleApp(Key key = null) : base(key) { + } + + public override State createState() { + return new ExampleState(); + } + } + + class ExampleState : State { + int counter = 0; + + public override Widget build(BuildContext context) { + return new Column( + children: new List { + new Text("Counter: " + this.counter), + new GestureDetector( + onTap: () => { + this.setState(() => { + this.counter++; + }); + }, + child: new Container( + padding: EdgeInsets.symmetric(20, 20), + color: Colors.blue, + child: new Text("Click Me") + ) + ) + } + ); + } + } + } + } +``` + +2. 保存此脚本,并将其附加到Panel 1中作为其组件。 +3. 在Unity编辑器中,点击Play按钮来启动应用。 + +#### 四、构建应用程序 + +最后,你可以按以下步骤将UIWidgets应用构建成适用于任何特定平台的应用程序包。 +1. 选择**File** > **Build Settings...**打开Build Settings面板。 +2. 选择目标平台,点击Build。 之后Unity编辑器将自动组装所有相关资源并生成最终的应用程序包。 + +#### 五、如何加载图像? +1. 将你的图像文件,如image1.png,放在Resources文件夹中。 +2. 你可以在同一文件夹中添加image1@2.png和image1@3.png以支持高清屏幕显示。 +3. 使用Image.asset(“image1”)加载图像。 注意:因为是在Unity中,所以不需要添加.png后缀。 + + +UIWidgets也支持Gif! +1. 假设你有一个loading1.gif文件,将其重命名为loading1.gif.bytes并复制到Resources文件夹。 +2. 你可以在同一文件夹中添加loading1@2.gif.bytes和loading1@3.gif.bytes以支持高清屏幕显示。 +3. 使用Image.asset(“loading1.gif”)加载gif图像。 + +#### 六、在安卓上显示状态栏 +当一个Unity项目运行在Android设备上时,状态栏是默认隐藏且无法在编辑内进行调整的。 +如果您希望在您的UIWidgets App中显示状态栏,您可以使用这个[解决方案](https://github.com/Over17/UnityShowAndroidStatusBar)。我们将尽快推出我们自己的解决方案,并保证届时开发者可以进行无缝切换。 + +此外,为了让上述插件在Android P及以上Android系统中正常工作,请勾选上"Player Settings"中的"Render Outside Safe Area"选项。 + +#### 七、自动调节帧率 +如果要使得构建出的应用能够自动调节帧率,请打开Project Settings,将构建目标平台对应的Quality选项卡中的V Sync Count设置为Don't Sync。 +默认的逻辑是在界面静止时将帧率降低,在界面变动时再将帧率提高至60。 +如果您不想开启该功能,请将`Window.onFrameRateSpeedUp`和/或`Window.onFrameRateCoolDown`设置为空函数,()=> {}即可。 + +在Unity 2019.3版本及以上,UIWidgets将使用OnDemandRenderAPI来实现帧率调节,它将在不影响UI响应速度的情况下大幅降低耗电和发热问题。 + +#### 八、WebGL Canvas分辨率调整插件 +因为浏览器中Canvas的宽高和其在显示器上的像素数可能不一致,所以构建出的WebGL程序中画面可能会模糊。 +插件`Plugins/platform/webgl/UIWidgetsCanvasDevicePixelRatio_20xx.x.jslib`(目前有2018.3和2019.1)解决了这个问题。 +请根据您的项目的Unity版本选择对应的插件,并禁用此插件的其他版本。方法如下:在Project面板中选中该插件,在Inspector面板中的Select platforms for plugin中,去掉WebGL后面的对勾。 +如果您因为任何原因需要完全禁止此插件的功能,请按上述方法禁用此插件的所有版本。 + +此插件覆盖了Unity WebGL构建模块中的如下参数: +```none +JS_SystemInfo_GetWidth +JS_SystemInfo_GetHeight +JS_SystemInfo_GetCurrentCanvasWidth +JS_SystemInfo_GetCurrentCanvasHeight +$Browser +$JSEvents +``` +如果您需要实现自己的WebGL插件,并且您的插件覆盖了这些参数中的至少一种,您需要采用上文中提到的方法禁用`UIWidgetsCanvasDevicePixelRatio`插件,以防止可能的冲突。 +如果您仍然需要此插件所提供的功能,您可以手动将此插件对Unity WebGL构建模块的修改应用到您的插件中。 +`UIWidgetsCanvasDevicePixelRatio`插件中所有的修改之处都以`////////// Modification Start ////////////`和`////////// Modification End ////////////`标识。 +在被标识的代码中,所有乘/除以`devicePixelRatio`都来自于我们的修改。 +若您需要详细了解此插件所修改的脚本,请参考您的Unity Editor安装目录下的`PlaybackEngines/WebGLSupport/BuildTools/lib`文件夹中的`SystemInfo.js`和`UnityNativeJS/UnityNative.js`。 + +#### 九、图片导入设置 +默认情况下,Unity会将导入图片的宽和高放缩为最近的等于2的幂的整数。 +在UIWidgets中使用图片时,记得将这一特性关闭,以免图片被意外放缩,方法如下:在Project面板中选中图片,在"Inspector"面板中将"Non Power of 2"(在"Advanced"中)设置为"None"。 + +#### 十、更新表情(Emoji) +UIWidgets支持渲染文本中包含的表情。 +默认的表情资源为[iOS 13.2](https://emojipedia.org/apple/ios-13.2)。 +我们也准备了[Google Emoji](https://emojipedia.org/google)的表情资源。 +如果您希望切换到Google版本的表情,请按如下步骤操作: + +1. 拷贝`Runtime/Resources/backup~/EmojiGoogle.png`到`Runtime/Resources/images`目录。 +2. 在**Project**面板中,找到`EmojiGoogle`资源,在**Inspector**面板中,将**Max Size**更改为4096,并取消**Generate Mipmaps**选项前的对勾。 +3. 在您的代码中继承`UIWidgetsPanel`的类的`OnEnable()`函数中,添加如下代码 + +```csharp +EmojiUtils.configuration = EmojiUtils.googleEmojiConfiguration; +``` + +如果您希望使用自己的表情图片,请按如下步骤操作: + +1. 参照`EmojiGoogle.png`,创建您自己的Emoji表单,并放到工程目录下的某个`Resources`目录中,例如`Resources/myImages/MyEmoji.png`)。 +2. 在`OnEnable()`函数中,添加如下代码(记得将示例的值改为真实的值)。注意Emoji的编码的顺序要和Emoji表单一致。 + +```csharp +EmojiUtils.configuration = new EmojiResourceConfiguration( + spriteSheetAssetName: "myImage/MyEmoji", + emojiCodes: new List { + 0x1f004, 0x1f0cf, 0x1f170, ... + }, + spriteSheetNumberOfRows: 36, + spriteSheetNumberOfColumns: 37, +); +``` + +#### 十一、与GameObject进行拖拽交互 + +

+ +

+ +我们提供了一个包装好的`UnityObjectDetector`组件以及`onRelease`回调函数,借此您可以实现简单地将物体(例如Hierarchy内的场景物体、Project窗口下的文件等)拖拽至区域内,来获得`UnityEngine.Object[] `类型的引用并进行操作。 + + +## 调试UIWidgets应用程序 + +#### 定义UIWidgets_DEBUG +我们建议在Unity编辑器中定义 UIWidgets_DEBUG 脚本符号,这将打开UIWidgets中的调试断言(debug assertion),有助于更早发现潜在的Bug。 +因此选择 **Player Settings** > **Other Settings** > **Configuration** > **Scripting Define Symbols** ,并添加 UIWidgets_DEBUG。 +该符号仅供调试使用,请在发布版本中删除它。 + +#### UIWidgets Inspector + +UIWidgets Inspector工具用于可视化和浏览窗口小部件树。 你可以在Unity编辑器的**Window** > **Analysis** > **UIWidget Inspector** 中的找到它。 + +注意 +- 需要定义 UIWidgets_DEBUG 使inspector正常工作。 +- Inspector目前仅适用于编辑器的播放模式,目前不支持独立版本的应用程序。 + + +## 学习 + +#### 教程 + +包括开发组在内的广大开发者为UIWidgets提供了许多可供学习的样例和教程,你可以根据你的需求进行学习: +- UIWidgets官方示例。目前所有官方使用的示例项目均维护在一个独立的Github仓库( https://github.com/UIWidgets/UIWidgetsSamples )中。你可以 +将它clone到你项目本地的Assets目录下使用。 +具体的,你可以在Sample项目的**Scene**子文件夹中浏览所有示例UI场景。 +此外,你还可以点击主菜单上的新增的UIWidgetsTests选项卡,并在下拉菜单中选择一个EditorWindow UI示例来运行。 +- UIWidgets凉鞋系列教程。你可以在凉鞋老师整理的Github仓库( https://github.com/liangxiegame/awesome-uiwidgets )中学习UIWidgets的基本用法 +以及许多有趣的小Demo。 +- ConnectApp开源项目。这是一个完整的线上、开源、完全基于UIWidgets的第一方App项目。其中包含了大量产品级的UIWidgets工程实践细节, +如果你想深入了解UIWidgets并且使用它构建线上项目,请访问项目Github仓库了解更多( https://github.com/UnityTech/ConnectAppCN )。 + +#### Wiki + +目前开发团队仍在改进UIWidgets Wiki。 由于UIWidgets主要来源于Flutter,你也可以参考Flutter Wiki中与UIWidgets API对应部分的详细描述。 +同时,你可以加入我们的讨论组( https://connect.unity.com/g/uiwidgets )。 + +#### 常问问题解答 + +| 问题 | 回答 | +| :-----------------------------------------------| ---------------------: | +| 我可以使用UIWidgets创建独立应用吗? | 可以 | +| 我可以使用UIWidgets构建游戏UI吗? | 可以 | +| 我可以使用UIWidgets开发Unity编辑器插件吗? | 可以 | +| UIWidgets是UGUI / NGUI的扩展吗? | 不是 | +| UIWidgets只是Flutter的副本吗? | 不是 | +| 我可以通过简单的拖放操作来创建带有UIWidgets的UI吗? | 不可以 | +| 我是否需要付费使用UIWidgets? | 不需要 | +| 有推荐的适用于UIWidgets的IDE吗? | Rider, VSCode(Open .sln) | + +## 如何贡献 +请查看[CONTRIBUTING.md](CONTRIBUTING.md) diff --git a/Documentation~/index.md b/Documentation~/index.md new file mode 100644 index 00000000..f74b8fcb --- /dev/null +++ b/Documentation~/index.md @@ -0,0 +1,356 @@ +# UIWidgets + + +## Introduction + +UIWidgets is a plugin package for Unity Editor which helps developers to create, debug and deploy efficient, +cross-platform Apps using the Unity Engine. + +UIWidgets is mainly derived from [Flutter](https://github.com/flutter/flutter). However, taking advantage of +the powerful Unity Engine, it offers developers many new features to improve their Apps +as well as the develop workflow significantly. + +#### Efficiency +Using the latest Unity rendering SDKs, a UIWidgets App can run very fast and keep >60fps in most times. + + +#### Cross-Platform +A UIWidgets App can be deployed on all kinds of platforms including PCs, mobile devices and web page directly, like +any other Unity projects. + +#### Multimedia Support +Except for basic 2D UIs, developers are also able to include 3D Models, audios, particle-systems to their UIWidgets Apps. + + +#### Developer-Friendly +A UIWidgets App can be debug in the Unity Editor directly with many advanced tools like +CPU/GPU Profiling, FPS Profiling. + + +## Example + +
+ + + + +
+ + + + + + + +
+ +### Projects using UIWidgets + +#### Unity Connect App +The Unity Connect App is created using UIWidgets and available for both Android (https://connect.unity.com/connectApp/download) +and iOS (Searching for "Unity Connect" in App Store). This project is open-sourced @https://github.com/UnityTech/ConnectAppCN. + +#### Unity Chinese Doc +The official website of Unity Chinese Documentation (https://connect.unity.com/doc) is powered by UIWidgets and +open-sourced @https://github.com/UnityTech/DocCN. + +## Requirements + +#### Unity + +Install **Unity 2018.4.10f1 (LTS)** or **Unity 2019.1.14f1** and above. You can download the latest Unity on https://unity3d.com/get-unity/download. + +#### UIWidgets Package +Visit our Github repository https://github.com/UnityTech/UIWidgets + to download the latest UIWidgets package. + +Move the downloaded package folder into the **Package** folder of your Unity project. + +Generally, you can make it using a console (or terminal) application by just a few commands as below: + + ```none + cd /Packages + git clone https://github.com/UnityTech/UIWidgets.git com.unity.uiwidgets + ``` + +## Getting Start + +#### i. Overview +In this tutorial, we will create a very simple UIWidgets App as the kick-starter. The app contains +only a text label and a button. The text label will count the times of clicks upon the button. + +First of all, please open or create a Unity Project and open it with Unity Editor. + +And then open Project Settings, go to Player section and **add "UIWidgets_DEBUG" to the Scripting Define Symbols field.** +This enables the debug mode of UIWidgets for your development. Remove this for your release build afterwards. + +#### ii. Scene Build +A UIWidgets App is usually built upon a Unity UI Canvas. Please follow the steps to create a +UI Canvas in Unity. +1. Create a new Scene by "File -> New Scene"; +1. Create a UI Canvas in the scene by "GameObject -> UI -> Canvas"; +1. Add a Panel (i.e., **Panel 1**) to the UI Canvas by right click on the Canvas and select "UI -> Panel". Then remove the +**Image** Component from the Panel. + +#### iii. Create Widget +A UIWidgets App is written in **C# Scripts**. Please follow the steps to create an App and play it +in Unity Editor. + +1. Create a new C# Script named "UIWidgetsExample.cs" and paste the following codes into it. + ```csharp + using System.Collections.Generic; + using Unity.UIWidgets.animation; + using Unity.UIWidgets.engine; + using Unity.UIWidgets.foundation; + using Unity.UIWidgets.material; + using Unity.UIWidgets.painting; + using Unity.UIWidgets.ui; + using Unity.UIWidgets.widgets; + using UnityEngine; + using FontStyle = Unity.UIWidgets.ui.FontStyle; + + namespace UIWidgetsSample { + public class UIWidgetsExample : UIWidgetsPanel { + protected override void OnEnable() { + // if you want to use your own font or font icons. + // FontManager.instance.addFont(Resources.Load(path: "path to your font"), "font family name"); + + // load custom font with weight & style. The font weight & style corresponds to fontWeight, fontStyle of + // a TextStyle object + // FontManager.instance.addFont(Resources.Load(path: "path to your font"), "Roboto", FontWeight.w500, + // FontStyle.italic); + + // add material icons, familyName must be "Material Icons" + // FontManager.instance.addFont(Resources.Load(path: "path to material icons"), "Material Icons"); + + base.OnEnable(); + } + + protected override Widget createWidget() { + return new WidgetsApp( + home: new ExampleApp(), + pageRouteBuilder: (RouteSettings settings, WidgetBuilder builder) => + new PageRouteBuilder( + settings: settings, + pageBuilder: (BuildContext context, Animation animation, + Animation secondaryAnimation) => builder(context) + ) + ); + } + + class ExampleApp : StatefulWidget { + public ExampleApp(Key key = null) : base(key) { + } + + public override State createState() { + return new ExampleState(); + } + } + + class ExampleState : State { + int counter = 0; + + public override Widget build(BuildContext context) { + return new Column( + children: new List { + new Text("Counter: " + this.counter), + new GestureDetector( + onTap: () => { + this.setState(() + => { + this.counter++; + }); + }, + child: new Container( + padding: EdgeInsets.symmetric(20, 20), + color: Colors.blue, + child: new Text("Click Me") + ) + ) + } + ); + } + } + } + } + ``` + +1. Save this script and attach it to **Panel 1** as its component. +1. Press the "Play" Button to start the App in Unity Editor. + +#### iv. Build App +Finally, the UIWidgets App can be built to packages for any specific platform by the following steps. +1. Open the Build Settings Panel by "File -> Build Settings..." +1. Choose a target platform and click "Build". Then the Unity Editor will automatically assemble +all relevant resources and generate the final App package. + +#### How to load images? +1. Put your images files in Resources folder. e.g. image1.png. +2. You can add image1@2.png and image1@3.png in the same folder to support HD screens. +3. Use Image.asset("image1") to load the image. Note: as in Unity, ".png" is not needed. + +UIWidgets supports Gif as well! +1. Suppose you have loading1.gif. Rename it to loading1.gif.bytes and copy it to Resources folder. +2. You can add loading1@2.gif.bytes and loading1@3.gif.bytes in the same folder to support HD screens. +3. Use Image.asset("loading1.gif") to load the gif images. + +#### Using Window Scope +If you see the error `AssertionError: Window.instance is null` or null pointer error of `Window.instance`, +it means the code is not running in the window scope. In this case, you can enclose your code +with window scope as below: +```csharp +using(WindowProvider.of(your gameObject with UIWidgetsPanel).getScope()) { + // code dealing with UIWidgets, + // e.g. setState(() => {....}) +} +``` + +This is needed if the code is in methods +not invoked by UIWidgets. For example, if the code is in `completed` callback of `UnityWebRequest`, +you need to enclose them with window scope. +Please see [HttpRequestSample](./Samples/UIWidgetSample/HttpRequestSample.cs) for detail. +For callback/event handler methods from UIWidgets (e.g `Widget.build, State.initState...`), you don't need do +it yourself, since the framework ensure it's in window scope. + +#### Show Status Bar on Android +Status bar is always hidden by default when an Unity project is running on an Android device. If you + want to show the status bar in your App, this + [solution](https://github.com/Over17/UnityShowAndroidStatusBar) seems to be + compatible to UIWidgets, therefore can be used as a good option before we release our + full support solution on this issue. + + Besides, + please set "Render Outside Safe Area" to true in the "Player Settings" to make this plugin working properly on Android P or later. + + + + +#### Automatically Adjust Frame Rate + +To build an App that is able to adjust the frame rate automatically, please open Project Settings, and in the Quality tab, set the "V Sync Count" option of the target platform to "Don't Sync". +The default logic is to reduce the frame rate when the screen is static, and change it back to 60 whenever the screen changes. +If you would like to disable this behavior, please set `Window.onFrameRateSpeedUp` and `Window.onFrameRateCoolDown` to null function, i.e., () => {}. + +Note that in Unity 2019.3 and above, UIWidgets will use OnDemandRenderAPI to implement this feature, which will greatly save the battery. + +#### WebGL Canvas Device Pixel Ratio Plugin +The width and height of the Canvas in browser may differ from the number of pixels the Canvas occupies on the screen. +Therefore, the image may blur in the builded WebGL program. +The Plugin `Plugins/platform/webgl/UIWidgetsCanvasDevicePixelRatio_20xx.x.jslib` (2018.3 and 2019.1 for now) solves this issue. +Please select the plugin of the Unity version corresponding to your project, and disable other versions of this plugin, as follows: select this plugin in the **Project** panel, and uncheck **WebGL** under **Select platforms for plugin** in the **Inspector** panel. +If you need to disable this plugin for any reason, please disable all the versions of this plugin as described above. + +This plugin overrides the following parameters in the Unity WebGL building module: +```none +JS_SystemInfo_GetWidth +JS_SystemInfo_GetHeight +JS_SystemInfo_GetCurrentCanvasWidth +JS_SystemInfo_GetCurrentCanvasHeight +$Browser +$JSEvents +``` +If you would like to implement your own WebGL plugin, and your plugin overrides at least one of the above parameters, you need to disable the `UIWidgetsCanvasDevicePixelRatio` plugin in the above mentioned way to avoid possible conflicts. +If you still need the function provided by this plugin, you can mannually apply the modification to Unity WebGL building module introduced in this plugin. +All the modifications introduced in `UIWidgetsCanvasDevicePixelRatio` are marked by `////////// Modifcation Start ////////////` and `////////// Modifcation End ////////////`. +In the marked codes, all the multiplications and divisions with `devicePixelRatio` are introduced by our modification. +To learn about the original script in detail, please refer to `SystemInfo.js` and `UnityNativeJS/UnityNative.js` in `PlaybackEngines/WebGLSupport/BuildTools/lib` in your Unity Editor installation. + +#### Image Import Setting +Unity, by default, resizes the width and height of an imported image to the nearest integer that is a power of 2. +In UIWidgets, you should almost always disable this by selecting the image in the "Project" panel, then in the "Inspector" panel set the "Non Power of 2" option (in "Advanced") to "None", to prevent your image from being resized unexpectedly. + +#### Update Emoji +UIWidgets supports rendering emoji in (editable) texts. +The default emoji resource version is [iOS 13.2](https://emojipedia.org/apple/ios-13.2). +We also prepared the resources of [Google Emoji](https://emojipedia.org/google). +To switch to Google version of emoji, please follow the following steps: + +1. Copy `Runtime/Resources/backup~/EmojiGoogle.png` to `Runtime/Resources/images` folder. +2. In the **Project** panel, find and select `EmojiGoogle` asset, and in the **Inspector** panel, change **Max Size** to 4096, and disable **Generate Mipmaps**. +3. In the `OnEnable()` function in your class overriding `UIWidgetsPanel`, add the following code + +```csharp +EmojiUtils.configuration = EmojiUtils.googleEmojiConfiguration; +``` + +If you would like to use your own images for emoji, please follow the following steps: + +1. Create the sprite sheet (take `EmojiGoogle.png` as an example), and put in a `Resources` folder in your project, (for example `Resources/myImages/MyEmoji.png`). +2. In the `OnEnable()` function, add the following code (replace example values with actual value). Note that the order of emoji codes should be consistent with the sprite sheet. + +```csharp +EmojiUtils.configuration = new EmojiResourceConfiguration( + spriteSheetAssetName: "myImage/MyEmoji", + emojiCodes: new List { + 0x1f004, 0x1f0cf, 0x1f170, ... + }, + spriteSheetNumberOfRows: 36, + spriteSheetNumberOfColumns: 37, +); +``` + +#### Interact with GameObject Drag&Drops + +

+ +

+ +With the provided packaged stateful widget `UnityObjectDetector` and its `onRelease` callback function, you can easily drag some objects (for example GameObject from Hierarchy, files from Project Window, etc) into the area, get the UnityEngine.Object[] references and make further modification. + + +## Debug UIWidgets Application + +#### Define UIWidgets_DEBUG +It's recommended to define the **UIWidgets_DEBUG** script symbol in editor, this will turn on +debug assertion in UIWidgets, which will help to find potential bugs earlier. To do this: +please go to **Player Settings -> Other Settings -> Configuration -> Scripting Define Symbols**, +and add **UIWidgets_DEBUG**. +The symbol is for debug purpose, please remove it from your release build. + +#### UIWidgets Inspector +The UIWidgets Inspector tool is for visualizing and exploring the widget trees. You can find it +via *Window/Analysis/UIWidgets* inspector in Editor menu. + +**Note** +* **UIWidgets_DEBUG** needs to be define for inspector to work properly. +* Inspector currently only works in Editor Play Mode, inspect standalone built application is not supported for now. + +## Learn + +#### Samples +You can find many UIWidgets sample projects on Github, which cover different aspects and provide you +learning materials in various levels: +* UIWidgetsSamples (https://github.com/UIWidgets/UIWidgetsSamples). These samples are developed by the dev team in order to illustrates all the features of +UIWidgets. First clone this Repo to the **Assets** folder of your local UIWidgets project. Then +you can find all the sample scenes under the **Scene** folder. +You can also try UIWidgets-based Editor windows by clicking the new **UIWidgetsTests** tab on the main menu +and open one of the dropdown samples. +* awesome-UIWidgets by Liangxie (https://github.com/liangxiegame/awesome-uiwidgets). This Repo contains +lots of UIWidget demo apps and third-party applications. +* ConnectApp (https://github.com/UnityTech/ConnectAppCN). This is an online, open-source UIWidget-based App developed +by the dev team. If you are making your own App with UIWidgets, this project will provides you with +many best practice cases. + + +#### Wiki +The develop team is still working on the UIWidgets Wiki. However, since UIWidgets is mainly derived from Flutter, + you can refer to Flutter Wiki to access detailed descriptions of UIWidgets APIs + from those of their Flutter counterparts. +Meanwhile, you can join the discussion channel at (https://connect.unity.com/g/uiwidgets) + +#### FAQ + +| Question | Answer | +| :-----------------------------------------------| ---------------------: | +| Can I create standalone App using UIWidgets? | **Yes** | +| Can I use UIWidgets to build game UIs? | **Yes** | +| Can I develop Unity Editor plugins using UIWidgets? | **Yes** | +| Is UIWidgets a extension of UGUI/NGUI? | **No** | +| Is UIWidgets just a copy of Flutter? | **No** | +| Can I create UI with UIWidgets by simply drag&drop? | **No** | +| Do I have to pay for using UIWidgets? | **No** | +| Any IDE recommendation for UIWidgets? | **Rider, VSCode(Open .sln)** | + +## How to Contribute + +Check [CONTRIBUTING](CONTRIBUTING) diff --git a/Documentation~/your-package-name.md b/Documentation~/your-package-name.md deleted file mode 100644 index b8a05415..00000000 --- a/Documentation~/your-package-name.md +++ /dev/null @@ -1,169 +0,0 @@ ->>> -**_Package Documentation Template_** - -Use this template to create preliminary, high-level documentation meant to introduce users to the feature and the sample files included in this package. When writing your documentation, do the following: - -1. Follow instructions in blockquotes. - -2. Replace angle brackets with the appropriate text. For example, replace "<package name>" with the official name of the package. - -3. Delete sections that do not apply to your package. For example, a package containing only sample files does not have a "Using <package_name>" section, so this section can be removed. - -4. After documentation is completed, make sure you delete all instructions and examples in blockquotes including this preamble and its title: - - ``` - >>> - Delete all of the text between pairs of blockquote markdown. - >>> - ``` ->>> - -# About <package name> - ->>> -Name the heading of the first topic after the **displayName** of the package as it appears in the package manifest. Check with your Product Manager to ensure that the package is named correctly. - -This first topic includes a brief, high-level explanation of the package and, if applicable, provides links to Unity Manual topics. - -There are two types of packages: - - - Packages that include features that augment the Unity Editor or Runtime. - - Packages that include sample files. - -Choose one of the following introductory paragraphs that best fits the package: ->>> - -Use the <package name> package to <list of the main uses for the package>. For example, use <package name> to create/generate/extend/capture <mention major use case, or a good example of what the package can be used for>. The <package name> package also includes <other relevant features or uses>. - -> *or* - -The <package name> package includes examples of <name of asset type, model, prefabs, and/or other GameObjects in the package>. For more information, see <xref to topic in the Unity Manual>. - ->>> -**_Examples:_** - -Here are some examples for reference only. Do not include these in the final documentation file: - -*Use the Unity Recorder package to capture and save in-game data. For example, use Unity Recorder to record an mp4 file during a game session. The Unity Recorder package also includes an interface for setting-up and triggering recording sessions.* - -*The Timeline Examples package includes examples of Timeline assets, Timeline Instances, animation, GameObjects, and scripts that illustrate how to use Unity's Timeline. For more information, see [ Unity's Timeline](https://docs.unity3d.com/Manual/TimelineSection.html) in the [Unity Manual](https://docs.unity3d.com). For licensing and usage, see Package Licensing.* ->>> - -# Installing <package name> ->>> -Begin this section with a cross-reference to the official Unity Manual topic on how to install packages. If the package requires special installation instructions, include these steps in this section. ->>> - -To install this package, follow the instructions in the [Package Manager documentation](https://docs.unity3d.com/Packages/com.unity.package-manager-ui@latest/index.html). - ->>> -For some packages, there may be additional steps to complete the setup. You can add those here. ->>> - -In addition, you need to install the following resources: - - - <name of resource>: To install, open *Window > <name of menu item>*. The resource appears <at this location>. - - <name of sample>: To install, open *Window > <name of menu item>*. The new sample folder appears <at this location>. - - - -# Using <package name> ->>> -The contents of this section depends on the type of package. - -For packages that augment the Unity Editor with additional features, this section should include workflow and/or reference documentation: - -* At a minimum, this section should include reference documentation that describes the windows, editors, and properties that the package adds to Unity. This reference documentation should include screen grabs (see how to add screens below), a list of settings, an explanation of what each setting does, and the default values of each setting. -* Ideally, this section should also include a workflow: a list of steps that the user can easily follow that demonstrates how to use the feature. This list of steps should include screen grabs (see how to add screens below) to better describe how to use the feature. - -For packages that include sample files, this section may include detailed information on how the user can use these sample files in their projects and scenes. However, workflow diagrams or illustrations could be included if deemed appropriate. - -## How to add images - -*(This section is for reference. Do not include in the final documentation file)* - -If the [Using <package name>](#UsingPackageName) section includes screen grabs or diagrams, a link to the image must be added to this MD file, before or after the paragraph with the instruction or description that references the image. In addition, a caption should be added to the image link that includes the name of the screen or diagram. All images must be PNG files with underscores for spaces. No animated GIFs. - -An example is included below: - -![A cinematic in the Timeline Editor window.](images/example.png) - -Notice that the example screen shot is included in the images folder. All screen grabs and/or diagrams must be added and referenced from the images folder. - -For more on the Unity documentation standards for creating and adding screen grabs, see this confluence page: https://confluence.hq.unity3d.com/pages/viewpage.action?pageId=13500715 ->>> - - - -# Technical details -## Requirements ->>> -This subtopic includes a bullet list with the compatible versions of Unity. This subtopic may also include additional requirements or recommendations for 3rd party software or hardware. An example includes a dependency on other packages. If you need to include references to non-Unity products, make sure you refer to these products correctly and that all references include the proper trademarks (tm or r) ->>> - -This version of <package name> is compatible with the following versions of the Unity Editor: - -* 2018.1 and later (recommended) - -To use this package, you must have the following 3rd party products: - -* <product name and version with trademark or registered trademark.> -* <product name and version with trademark or registered trademark.> -* <product name and version with trademark or registered trademark.> - -## Known limitations ->>> -This section lists the known limitations with this version of the package. If there are no known limitations, or if the limitations are trivial, exclude this section. An example is provided. ->>> - -<package name> version <package version> includes the following known limitations: - -* <brief one-line description of first limitation.> -* <brief one-line description of second limitation.> -* <and so on> - ->>> -*Example (For reference. Do not include in the final documentation file):* - -The Unity Recorder version 1.0 has the following limitations:* - -* The Unity Recorder does not support sound. -* The Recorder window and Recorder properties are not available in standalone players. -* MP4 encoding is only available on Windows. ->>> - -## Package contents ->>> -This section includes the location of important files you want the user to know about. For example, if this is a sample package containing textures, models, and materials separated by sample group, you may want to provide the folder location of each group. ->>> - -The following table indicates the <describe the breakdown you used here>: - -|Location|Description| -|---|---| -|``|Contains <describe what the folder contains>.| -|``|Contains <describe what the file represents or implements>.| - ->>> -*Example (For reference. Do not include in the final documentation file):* - -The following table indicates the root folder of each type of sample in this package. Each sample's root folder contains its own Materials, Models, or Textures folders: - -|Folder Location|Description| -|---|---| -|`WoodenCrate_Orange`|Root folder containing the assets for the orange crates.| -|`WoodenCrate_Mahogany`|Root folder containing the assets for the mahogany crates.| -|`WoodenCrate_Shared`|Root folder containing any material assets shared by all crates.| ->>> - -## Document revision history ->>> -This section includes the revision history of the document. The revision history tracks when a document is created, edited, and updated. If you create or update a document, you must add a new row describing the revision. The Documentation Team also uses this table to track when a document is edited and its editing level. An example is provided: - -|Date|Reason| -|---|---| -|Sept 12, 2017|Unedited. Published to package.| -|Sept 10, 2017|Document updated for package version 1.1.
New features:
  • audio support for capturing MP4s.
  • Instructions on saving Recorder prefabs| -|Sept 5, 2017|Limited edit by Documentation Team. Published to package.| -|Aug 25, 2017|Document created. Matches package version 1.0.| ->>> \ No newline at end of file diff --git a/QAReport.md b/QAReport.md index 26c5ba37..25a80c51 100644 --- a/QAReport.md +++ b/QAReport.md @@ -1,26 +1,21 @@ # Quality Report -Use this file to outline the test strategy for this package. -## Version tested: [*package version*] +## Version tested: [1.0.3-preview] -## QA Owner: [*Add Name*] -## UX Owner: [*Add Name*] +## QA Owner: Jason Fu +## UX Owner: Yuncong Zhang ## Test strategy -*Use this section to describe how this feature was tested.* -* A link to the Test Plan (Test Rails, other) * Results from the package's editor and runtime test suite. -* Link to automated test results (if any) -* Manual test Results, [here's an example](https://docs.google.com/spreadsheets/d/12A76U5Gf969w10KL4Ik0wC1oFIBDUoRrqIvQgD18TFo/edit#gid=0) -* Scenario test week outcome -* etc. +``` +Overall result: PASS +Total Tests run: 4, Passed: 4, Failures: 0, Errors: 0, Inconclusives: 0 +Total not run : 0, Invalid: 0, Ignored: 0, Skipped: 0 +``` +* Test Rail Scenarios:https://qatestrail.hq.unity3d.com/index.php?/suites/view/67&group_by=cases:section_id&group_order=asc&group_id=76244 +* Editor/Runtime Test Suite: +* Manual test Results: https://qatestrail.hq.unity3d.com/index.php?/runs/view/13298&group_by=cases:section_id&group_order=asc ## Package Status -Use this section to describe: -* UX status/evaluation results * package stability -* known bugs, issues -* performance metrics, -* etc - -In other words, a general feeling on the health of this package. + * Stable \ No newline at end of file diff --git a/README-ZH.md b/README-ZH.md index 485b7e4b..3d717275 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -194,8 +194,10 @@ UIWidgets也支持Gif! #### 七、自动调节帧率 如果要使得构建出的应用能够自动调节帧率,请打开Project Settings,将构建目标平台对应的Quality选项卡中的V Sync Count设置为Don't Sync。 -默认的逻辑是在界面静止时将帧率降低为25,在界面变动时将帧率提高至60。 -如果您需要修改帧率升高或降低时的行为,请将`Window.onFrameRateSpeedUp`和/或`Window.onFrameRateCoolDown`设置为您自己的函数。 +默认的逻辑是在界面静止时将帧率降低,在界面变动时再将帧率提高至60。 +如果您不想开启该功能,请将`Window.onFrameRateSpeedUp`和/或`Window.onFrameRateCoolDown`设置为空函数,()=> {}即可。 + +在Unity 2019.3版本及以上,UIWidgets将使用OnDemandRenderAPI来实现帧率调节,它将在不影响UI响应速度的情况下大幅降低耗电和发热问题。 #### 八、WebGL Canvas分辨率调整插件 因为浏览器中Canvas的宽高和其在显示器上的像素数可能不一致,所以构建出的WebGL程序中画面可能会模糊。 @@ -223,9 +225,34 @@ $JSEvents 在UIWidgets中使用图片时,记得将这一特性关闭,以免图片被意外放缩,方法如下:在Project面板中选中图片,在"Inspector"面板中将"Non Power of 2"(在"Advanced"中)设置为"None"。 #### 十、更新表情(Emoji) -UIWidgets支持渲染文本中包含的表情。表情的图片来自[Google Emoji](https://emojipedia.org/google)提供的免费资源。 -如果您希望使用自己的表情图片,请更新纹理图`Tests/Resources/Emoji.png`,以及`Runtime/ui/txt/emoji.cs`中将Unicode映射到纹理图中具体位置的映射表。 -特别地,请记得更新Dictionary变量`emojiLookupTable`,纹理图的行数`rowCount`以及纹理图的列数`colCount`。 +UIWidgets支持渲染文本中包含的表情。 +默认的表情资源为[iOS 13.2](https://emojipedia.org/apple/ios-13.2)。 +我们也准备了[Google Emoji](https://emojipedia.org/google)的表情资源。 +如果您希望切换到Google版本的表情,请按如下步骤操作: + +1. 拷贝`Runtime/Resources/backup~/EmojiGoogle.png`到`Runtime/Resources/images`目录。 +2. 在**Project**面板中,找到`EmojiGoogle`资源,在**Inspector**面板中,将**Max Size**更改为4096,取消选中**Generate Mipmaps**,并选中**Alpha Is Transparency**。 +3. 在您的代码中继承`UIWidgetsPanel`的类的`OnEnable()`函数中,添加如下代码 + +```csharp +EmojiUtils.configuration = EmojiUtils.googleEmojiConfiguration; +``` + +如果您希望使用自己的表情图片,请按如下步骤操作: + +1. 参照`EmojiGoogle.png`,创建您自己的Emoji表单,并放到工程目录下的某个`Resources`目录中,例如`Resources/myImages/MyEmoji.png`)。 +2. 在`OnEnable()`函数中,添加如下代码(记得将示例的值改为真实的值)。注意Emoji的编码的顺序要和Emoji表单一致。 + +```csharp +EmojiUtils.configuration = new EmojiResourceConfiguration( + spriteSheetAssetName: "myImage/MyEmoji", + emojiCodes: new List { + 0x1f004, 0x1f0cf, 0x1f170, ... + }, + spriteSheetNumberOfRows: 36, + spriteSheetNumberOfColumns: 37, +); +``` #### 十一、与GameObject进行拖拽交互 @@ -235,8 +262,6 @@ UIWidgets支持渲染文本中包含的表情。表情的图片来自[Google Emo 我们提供了一个包装好的`UnityObjectDetector`组件以及`onRelease`回调函数,借此您可以实现简单地将物体(例如Hierarchy内的场景物体、Project窗口下的文件等)拖拽至区域内,来获得`UnityEngine.Object[] `类型的引用并进行操作。 -你可以在“UIWidgetsTests -> Drag&Drop”下找到简单的实例样例。 - ## 调试UIWidgets应用程序 @@ -256,15 +281,22 @@ UIWidgets Inspector工具用于可视化和浏览窗口小部件树。 你可以 ## 学习 -#### 示例 - -你可以在**Samples**文件夹的UIWidgets包中找到一些精心挑选的UIWidgets应用示例,并通过这些示例来开始你的学习。请随意尝试并进行修改以查看结果。 +#### 教程 -你也可以在支持**UIWidgets**的编辑器中,点击主菜单上的UIWidgets,并在下拉窗口中选择一个示例。 +包括开发组在内的广大开发者为UIWidgets提供了许多可供学习的样例和教程,你可以根据你的需求进行学习: +- UIWidgets官方示例。目前所有官方使用的示例项目均维护在一个独立的Github仓库( https://github.com/UIWidgets/UIWidgetsSamples )中。你可以 +将它clone到你项目本地的Assets目录下使用。 +具体的,你可以在Sample项目的**Scene**子文件夹中浏览所有示例UI场景。 +此外,你还可以点击主菜单上的新增的UIWidgetsTests选项卡,并在下拉菜单中选择一个EditorWindow UI示例来运行。 +- UIWidgets凉鞋系列教程。你可以在凉鞋老师整理的Github仓库( https://github.com/liangxiegame/awesome-uiwidgets )中学习UIWidgets的基本用法 +以及许多有趣的小Demo。 +- ConnectApp开源项目。这是一个完整的线上、开源、完全基于UIWidgets的第一方App项目。其中包含了大量产品级的UIWidgets工程实践细节, +如果你想深入了解UIWidgets并且使用它构建线上项目,请访问项目Github仓库了解更多( https://github.com/UnityTech/ConnectAppCN )。 #### Wiki -目前开发团队仍在改进UIWidgets Wiki。 由于UIWidgets主要来源于Flutter,你也可以参考Flutter Wiki中与UIWidgets API对应部分的详细描述。同时,你可以加入我们的讨论组( https://connect.unity.com/g/uiwidgets )。 +目前开发团队仍在改进UIWidgets Wiki。 由于UIWidgets主要来源于Flutter,你也可以参考Flutter Wiki中与UIWidgets API对应部分的详细描述。 +同时,你可以加入我们的讨论组( https://connect.unity.com/g/uiwidgets )。 #### 常问问题解答 diff --git a/README.md b/README.md index 81a12aa7..485a94c8 100644 --- a/README.md +++ b/README.md @@ -229,8 +229,10 @@ Status bar is always hidden by default when an Unity project is running on an An #### Automatically Adjust Frame Rate To build an App that is able to adjust the frame rate automatically, please open Project Settings, and in the Quality tab, set the "V Sync Count" option of the target platform to "Don't Sync". -The default logic is to set the frame rate to 25 when the screen is static, and change the frame rate to 60 whenever the screen changes. -If you would like to modify the behavior of speeding up or cooling down the frame rate, please set `Window.onFrameRateSpeedUp` and/or `Window.onFrameRateCoolDown` to your own functions. +The default logic is to reduce the frame rate when the screen is static, and change it back to 60 whenever the screen changes. +If you would like to disable this behavior, please set `Window.onFrameRateSpeedUp` and `Window.onFrameRateCoolDown` to null function, i.e., () => {}. + +Note that in Unity 2019.3 and above, UIWidgets will use OnDemandRenderAPI to implement this feature, which will greatly save the battery. #### WebGL Canvas Device Pixel Ratio Plugin The width and height of the Canvas in browser may differ from the number of pixels the Canvas occupies on the screen. @@ -259,12 +261,34 @@ Unity, by default, resizes the width and height of an imported image to the near In UIWidgets, you should almost always disable this by selecting the image in the "Project" panel, then in the "Inspector" panel set the "Non Power of 2" option (in "Advanced") to "None", to prevent your image from being resized unexpectedly. #### Update Emoji -UIWidgets supports rendering emoji in (editable) texts. The emoji images comes from the free -resources provided by [Google Emoji](https://emojipedia.org/google). If you would -like to use your own images for emoji, please update the texture image `Tests/Resources/Emoji.png`, -and the unicode-index table in `Runtime/ui/txt/emoji.cs` which maps unicodes to specific locations -in the texture. Specifically, remember to update the Dictionary `emojiLookupTable`, number of rows -in the texture `rowCount`, and number of columns `colCount`. +UIWidgets supports rendering emoji in (editable) texts. +The default emoji resource version is [iOS 13.2](https://emojipedia.org/apple/ios-13.2). +We also prepared the resources of [Google Emoji](https://emojipedia.org/google). +To switch to Google version of emoji, please follow the following steps: + +1. Copy `Runtime/Resources/backup~/EmojiGoogle.png` to `Runtime/Resources/images` folder. +2. In the **Project** panel, find and select `EmojiGoogle` asset, and in the **Inspector** panel, change **Max Size** to 4096, disable **Generate Mipmaps**, and enable **Alpha Is Transparency**. +3. In the `OnEnable()` function in your class overriding `UIWidgetsPanel`, add the following code + +```csharp +EmojiUtils.configuration = EmojiUtils.googleEmojiConfiguration; +``` + +If you would like to use your own images for emoji, please follow the following steps: + +1. Create the sprite sheet (take `EmojiGoogle.png` as an example), and put in a `Resources` folder in your project, (for example `Resources/myImages/MyEmoji.png`). +2. In the `OnEnable()` function, add the following code (replace example values with actual value). Note that the order of emoji codes should be consistent with the sprite sheet. + +```csharp +EmojiUtils.configuration = new EmojiResourceConfiguration( + spriteSheetAssetName: "myImage/MyEmoji", + emojiCodes: new List { + 0x1f004, 0x1f0cf, 0x1f170, ... + }, + spriteSheetNumberOfRows: 36, + spriteSheetNumberOfColumns: 37, +); +``` #### Interact with GameObject Drag&Drops @@ -274,8 +298,6 @@ in the texture `rowCount`, and number of columns `colCount`. With the provided packaged stateful widget `UnityObjectDetector` and its `onRelease` callback function, you can easily drag some objects (for example GameObject from Hierarchy, files from Project Window, etc) into the area, get the UnityEngine.Object[] references and make further modification. -Please refer to "UIWidgetsTests -> Drag&Drop" for simple examples. - ## Debug UIWidgets Application @@ -289,6 +311,7 @@ The symbol is for debug purpose, please remove it from your release build. #### UIWidgets Inspector The UIWidgets Inspector tool is for visualizing and exploring the widget trees. You can find it via *Window/Analysis/UIWidgets* inspector in Editor menu. + **Note** * **UIWidgets_DEBUG** needs to be define for inspector to work properly. * Inspector currently only works in Editor Play Mode, inspect standalone built application is not supported for now. @@ -296,13 +319,19 @@ via *Window/Analysis/UIWidgets* inspector in Editor menu. ## Learn #### Samples -You can find many UIWidgets App samples in the UIWidgets package in the **Samples** folder. -Feel free to try them out and make modifications to see the results. -To get started, the UIWidgetsTheatre scene provides you -a list of carefully selected samples to start with. - -You can also try UIWidgets-based Editor windows by clicking **UIWidgetsTest** on the main menu +You can find many UIWidgets sample projects on Github, which cover different aspects and provide you +learning materials in various levels: +* UIWidgetsSamples (https://github.com/UIWidgets/UIWidgetsSamples). These samples are developed by the dev team in order to illustrates all the features of +UIWidgets. First clone this Repo to the **Assets** folder of your local UIWidgets project. Then +you can find all the sample scenes under the **Scene** folder. +You can also try UIWidgets-based Editor windows by clicking the new **UIWidgetsTests** tab on the main menu and open one of the dropdown samples. +* awesome-UIWidgets by Liangxie (https://github.com/liangxiegame/awesome-uiwidgets). This Repo contains +lots of UIWidget demo apps and third-party applications. +* ConnectApp (https://github.com/UnityTech/ConnectAppCN). This is an online, open-source UIWidget-based App developed +by the dev team. If you are making your own App with UIWidgets, this project will provides you with +many best practice cases. + #### Wiki The develop team is still working on the UIWidgets Wiki. However, since UIWidgets is mainly derived from Flutter, diff --git a/Tests/Resources/Emoji.png b/Runtime/Resources/backup~/EmojiGoogle.png similarity index 99% rename from Tests/Resources/Emoji.png rename to Runtime/Resources/backup~/EmojiGoogle.png index 380b418b..e67ac9f9 100644 Binary files a/Tests/Resources/Emoji.png and b/Runtime/Resources/backup~/EmojiGoogle.png differ diff --git a/Samples.meta b/Runtime/Resources/fonts.meta similarity index 77% rename from Samples.meta rename to Runtime/Resources/fonts.meta index 916c7410..3660509f 100644 --- a/Samples.meta +++ b/Runtime/Resources/fonts.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0e34324ad02e6491bb2e3ba81ff7b7df +guid: 85e7c93f407b3475eb107fc0877ac351 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Tests/Resources/CupertinoIcons.ttf b/Runtime/Resources/fonts/CupertinoIcons.ttf similarity index 100% rename from Tests/Resources/CupertinoIcons.ttf rename to Runtime/Resources/fonts/CupertinoIcons.ttf diff --git a/Tests/Resources/CupertinoIcons.ttf.meta b/Runtime/Resources/fonts/CupertinoIcons.ttf.meta similarity index 92% rename from Tests/Resources/CupertinoIcons.ttf.meta rename to Runtime/Resources/fonts/CupertinoIcons.ttf.meta index f887408d..77dfaaf7 100644 --- a/Tests/Resources/CupertinoIcons.ttf.meta +++ b/Runtime/Resources/fonts/CupertinoIcons.ttf.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 06748fb439a2a4c1aa38914b8698f547 +guid: cb93bb6e1c3874b67b6ad9fe6c775045 TrueTypeFontImporter: externalObjects: {} serializedVersion: 4 diff --git a/Tests/Resources/GalleryIcons.ttf b/Runtime/Resources/fonts/GalleryIcons.ttf similarity index 100% rename from Tests/Resources/GalleryIcons.ttf rename to Runtime/Resources/fonts/GalleryIcons.ttf diff --git a/Tests/Resources/GalleryIcons.ttf.meta b/Runtime/Resources/fonts/GalleryIcons.ttf.meta similarity index 92% rename from Tests/Resources/GalleryIcons.ttf.meta rename to Runtime/Resources/fonts/GalleryIcons.ttf.meta index 66b79889..398ddb2a 100644 --- a/Tests/Resources/GalleryIcons.ttf.meta +++ b/Runtime/Resources/fonts/GalleryIcons.ttf.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3a6743c0a08ca4626a9b85050002f40c +guid: 972403b703998429986576a840246ec2 TrueTypeFontImporter: externalObjects: {} serializedVersion: 4 diff --git a/Tests/Resources/MaterialIcons-Regular.ttf b/Runtime/Resources/fonts/MaterialIcons-Regular.ttf similarity index 100% rename from Tests/Resources/MaterialIcons-Regular.ttf rename to Runtime/Resources/fonts/MaterialIcons-Regular.ttf diff --git a/Tests/Resources/MaterialIcons-Regular.ttf.meta b/Runtime/Resources/fonts/MaterialIcons-Regular.ttf.meta similarity index 76% rename from Tests/Resources/MaterialIcons-Regular.ttf.meta rename to Runtime/Resources/fonts/MaterialIcons-Regular.ttf.meta index dc7caed0..564918c1 100644 --- a/Tests/Resources/MaterialIcons-Regular.ttf.meta +++ b/Runtime/Resources/fonts/MaterialIcons-Regular.ttf.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 454d829e3d72f41ad97833e7fc449127 +guid: 1bb29e480b1ee44a09d380d7e8521d1e TrueTypeFontImporter: externalObjects: {} serializedVersion: 4 @@ -11,8 +11,7 @@ TrueTypeFontImporter: fontName: Material Icons fontNames: - Material Icons - fallbackFontReferences: - - {fileID: 12800000, guid: c81e9379793cd4a3cbbc59d8be1ed447, type: 3} + fallbackFontReferences: [] customCharacters: fontRenderingMode: 0 ascentCalculationMode: 1 diff --git a/Tests/Resources/SF-Pro-Text-Bold.otf b/Runtime/Resources/fonts/SF-Pro-Text-Bold.otf old mode 100755 new mode 100644 similarity index 100% rename from Tests/Resources/SF-Pro-Text-Bold.otf rename to Runtime/Resources/fonts/SF-Pro-Text-Bold.otf diff --git a/Tests/Resources/SF-Pro-Text-Regular.otf.meta b/Runtime/Resources/fonts/SF-Pro-Text-Bold.otf.meta similarity index 75% rename from Tests/Resources/SF-Pro-Text-Regular.otf.meta rename to Runtime/Resources/fonts/SF-Pro-Text-Bold.otf.meta index 0a66c454..29a4f273 100644 --- a/Tests/Resources/SF-Pro-Text-Regular.otf.meta +++ b/Runtime/Resources/fonts/SF-Pro-Text-Bold.otf.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a7b8140888514456bb2e63f86338624a +guid: 88aadcd46e08344f4b9d60ad85cca1a7 TrueTypeFontImporter: externalObjects: {} serializedVersion: 4 @@ -11,7 +11,8 @@ TrueTypeFontImporter: fontName: SF Pro Text fontNames: - SF Pro Text - fallbackFontReferences: [] + fallbackFontReferences: + - {fileID: 12800000, guid: 3229e68e388b0492c9fe466e5f4bcef0, type: 3} customCharacters: fontRenderingMode: 0 ascentCalculationMode: 1 diff --git a/Tests/Resources/SF-Pro-Text-Regular.otf b/Runtime/Resources/fonts/SF-Pro-Text-Regular.otf similarity index 100% rename from Tests/Resources/SF-Pro-Text-Regular.otf rename to Runtime/Resources/fonts/SF-Pro-Text-Regular.otf diff --git a/Tests/Resources/SF-Pro-Text-Bold.otf.meta b/Runtime/Resources/fonts/SF-Pro-Text-Regular.otf.meta similarity index 73% rename from Tests/Resources/SF-Pro-Text-Bold.otf.meta rename to Runtime/Resources/fonts/SF-Pro-Text-Regular.otf.meta index 32b684a2..af00457b 100644 --- a/Tests/Resources/SF-Pro-Text-Bold.otf.meta +++ b/Runtime/Resources/fonts/SF-Pro-Text-Regular.otf.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: fe4433873da2c44a58194766452da171 +guid: 8c3ad6425c3594ad5aaa32d70ad513ae TrueTypeFontImporter: externalObjects: {} serializedVersion: 4 @@ -12,8 +12,8 @@ TrueTypeFontImporter: fontNames: - SF Pro Text fallbackFontReferences: - - {fileID: 12800000, guid: d59013752e4e844828a89a2b96cfa704, type: 3} - - {fileID: 12800000, guid: a7b8140888514456bb2e63f86338624a, type: 3} + - {fileID: 12800000, guid: 88aadcd46e08344f4b9d60ad85cca1a7, type: 3} + - {fileID: 12800000, guid: 3229e68e388b0492c9fe466e5f4bcef0, type: 3} customCharacters: fontRenderingMode: 0 ascentCalculationMode: 1 diff --git a/Tests/Resources/SF-Pro-Text-Semibold.otf b/Runtime/Resources/fonts/SF-Pro-Text-Semibold.otf old mode 100755 new mode 100644 similarity index 100% rename from Tests/Resources/SF-Pro-Text-Semibold.otf rename to Runtime/Resources/fonts/SF-Pro-Text-Semibold.otf diff --git a/Tests/Resources/SF-Pro-Text-Semibold.otf.meta b/Runtime/Resources/fonts/SF-Pro-Text-Semibold.otf.meta similarity index 75% rename from Tests/Resources/SF-Pro-Text-Semibold.otf.meta rename to Runtime/Resources/fonts/SF-Pro-Text-Semibold.otf.meta index 6bc846bb..7ee6db40 100644 --- a/Tests/Resources/SF-Pro-Text-Semibold.otf.meta +++ b/Runtime/Resources/fonts/SF-Pro-Text-Semibold.otf.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d59013752e4e844828a89a2b96cfa704 +guid: 3229e68e388b0492c9fe466e5f4bcef0 TrueTypeFontImporter: externalObjects: {} serializedVersion: 4 @@ -11,8 +11,7 @@ TrueTypeFontImporter: fontName: SF Pro Text fontNames: - SF Pro Text - fallbackFontReferences: - - {fileID: 12800000, guid: a7b8140888514456bb2e63f86338624a, type: 3} + fallbackFontReferences: [] customCharacters: fontRenderingMode: 0 ascentCalculationMode: 1 diff --git a/Samples/MaterialSample.meta b/Runtime/Resources/images.meta similarity index 77% rename from Samples/MaterialSample.meta rename to Runtime/Resources/images.meta index 3ceff443..70706e41 100644 --- a/Samples/MaterialSample.meta +++ b/Runtime/Resources/images.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 611706478d8aa410983272ad601895d3 +guid: 32feac74b59644395ac8e546617b14e2 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/Resources/images/EmojiIOS13.2.png b/Runtime/Resources/images/EmojiIOS13.2.png new file mode 100644 index 00000000..7a618606 Binary files /dev/null and b/Runtime/Resources/images/EmojiIOS13.2.png differ diff --git a/Tests/Resources/ali_landscape.png.meta b/Runtime/Resources/images/EmojiIOS13.2.png.meta similarity index 88% rename from Tests/Resources/ali_landscape.png.meta rename to Runtime/Resources/images/EmojiIOS13.2.png.meta index 82be4af5..38108f12 100644 --- a/Tests/Resources/ali_landscape.png.meta +++ b/Runtime/Resources/images/EmojiIOS13.2.png.meta @@ -1,12 +1,12 @@ fileFormatVersion: 2 -guid: e064ac38639964afe8017fb7079bf993 +guid: fe6ee86be009e43328c4814e85bff08c TextureImporter: - fileIDToRecycleName: {} + internalIDToNameTable: [] externalObjects: {} - serializedVersion: 7 + serializedVersion: 10 mipmaps: mipMapMode: 0 - enableMipMap: 1 + enableMipMap: 0 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 @@ -37,7 +37,7 @@ TextureImporter: wrapU: -1 wrapV: -1 wrapW: -1 - nPOTScale: 0 + nPOTScale: 1 lightmap: 0 compressionQuality: 50 spriteMode: 0 @@ -49,7 +49,7 @@ TextureImporter: spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 - alphaIsTransparency: 0 + alphaIsTransparency: 1 spriteTessellationDetail: -1 textureType: 0 textureShape: 1 @@ -60,7 +60,7 @@ TextureImporter: platformSettings: - serializedVersion: 2 buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 + maxTextureSize: 4096 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 @@ -71,7 +71,7 @@ TextureImporter: androidETC2FallbackOverride: 0 - serializedVersion: 2 buildTarget: Standalone - maxTextureSize: 2048 + maxTextureSize: 4096 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 @@ -82,7 +82,7 @@ TextureImporter: androidETC2FallbackOverride: 0 - serializedVersion: 2 buildTarget: iPhone - maxTextureSize: 2048 + maxTextureSize: 4096 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 @@ -92,8 +92,8 @@ TextureImporter: overridden: 0 androidETC2FallbackOverride: 0 - serializedVersion: 2 - buildTarget: WebGL - maxTextureSize: 2048 + buildTarget: Android + maxTextureSize: 4096 resizeAlgorithm: 0 textureFormat: -1 textureCompression: 1 @@ -109,10 +109,12 @@ TextureImporter: physicsShape: [] bones: [] spriteID: + internalID: 0 vertices: [] indices: edges: [] weights: [] + secondaryTextures: [] spritePackingTag: pSDRemoveMatte: 0 pSDShowRemoveMatteOption: 0 diff --git a/Runtime/RuntimeExample.cs b/Runtime/RuntimeExample.cs deleted file mode 100644 index 12348a63..00000000 --- a/Runtime/RuntimeExample.cs +++ /dev/null @@ -1,27 +0,0 @@ -// ----------------------------------------------------------------------------- -// -// Use this runtime example C# file to develop runtime code. -// -// ----------------------------------------------------------------------------- - -namespace Unity.UIWidgets { - /// - /// Provide a general description of the public class. - /// - /// - /// Packages require XmlDoc documentation for ALL Package APIs. - /// https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/xml-documentation-comments - /// - public class MyPublicRuntimeExampleClass { - /// - /// Provide a description of what this private method does. - /// - /// Description of parameter 1 - /// Description of parameter 2 - /// Description of parameter 3 - /// Description of what the function returns - public int CountThingsAndDoStuff(int parameter1, int parameter2, bool parameter3) { - return parameter3 ? (parameter1 + parameter2) : (parameter1 - parameter2); - } - } -} \ No newline at end of file diff --git a/Runtime/RuntimeExample.cs.meta b/Runtime/RuntimeExample.cs.meta deleted file mode 100644 index f9539c28..00000000 --- a/Runtime/RuntimeExample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f85dbe0ff914a4c3b9620d093073f3bb -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/ui/txt/emoji.cs b/Runtime/ui/txt/emoji.cs index de949113..b1a91dec 100644 --- a/Runtime/ui/txt/emoji.cs +++ b/Runtime/ui/txt/emoji.cs @@ -4,16 +4,451 @@ using UnityEngine; namespace Unity.UIWidgets.ui { + + public class EmojiResourceConfiguration { + public readonly string spriteSheetAssetName; + public readonly Dictionary emojiLookupTable; + public readonly int spriteSheetNumberOfRows; + public readonly int spriteSheetNumberOfColumns; + + public EmojiResourceConfiguration( + string spriteSheetAssetName, + List emojiCodes, + int spriteSheetNumberOfRows, + int spriteSheetNumberOfColumns + ) { + D.assert(spriteSheetAssetName != null); + D.assert(emojiCodes != null && emojiCodes.isNotEmpty()); + D.assert(spriteSheetNumberOfColumns > 0); + D.assert(spriteSheetNumberOfRows > 0); + D.assert(emojiCodes.Count <= spriteSheetNumberOfColumns * spriteSheetNumberOfRows); + this.spriteSheetAssetName = spriteSheetAssetName; + this.emojiLookupTable = new Dictionary(); + for (int i = 0; i < emojiCodes.Count; i++) { + this.emojiLookupTable[emojiCodes[i]] = i; + } + this.spriteSheetNumberOfRows = spriteSheetNumberOfRows; + this.spriteSheetNumberOfColumns = spriteSheetNumberOfColumns; + } + } + public class EmojiUtils { - static Image _image; + public static readonly EmojiResourceConfiguration googleEmojiConfiguration = new EmojiResourceConfiguration ( + "images/EmojiGoogle", + emojiCodes: new List { + 0x1f004, 0x1f0cf, 0x1f170, 0x1f171, 0x1f17e, 0x1f17f, 0x1f18e, + 0x1f191, 0x1f192, 0x1f193, 0x1f194, 0x1f195, 0x1f196, 0x1f197, + 0x1f198, 0x1f199, 0x1f19a, 0x1f1e6, 0x1f1e7, 0x1f1e8, 0x1f1e9, + 0x1f1ea, 0x1f1eb, 0x1f1ec, 0x1f1ed, 0x1f1ee, 0x1f1ef, 0x1f1f0, + 0x1f1f1, 0x1f1f2, 0x1f1f3, 0x1f1f4, 0x1f1f5, 0x1f1f6, 0x1f1f7, + 0x1f1f8, 0x1f1f9, 0x1f1fa, 0x1f1fb, 0x1f1fc, 0x1f1fd, 0x1f1fe, + 0x1f1ff, 0x1f201, 0x1f202, 0x1f21a, 0x1f22f, 0x1f232, 0x1f233, + 0x1f234, 0x1f235, 0x1f236, 0x1f237, 0x1f238, 0x1f239, 0x1f23a, + 0x1f250, 0x1f251, 0x1f300, 0x1f301, 0x1f302, 0x1f303, 0x1f304, + 0x1f305, 0x1f306, 0x1f307, 0x1f308, 0x1f309, 0x1f30a, 0x1f30b, + 0x1f30c, 0x1f30d, 0x1f30e, 0x1f30f, 0x1f310, 0x1f311, 0x1f312, + 0x1f313, 0x1f314, 0x1f315, 0x1f316, 0x1f317, 0x1f318, 0x1f319, + 0x1f31a, 0x1f31b, 0x1f31c, 0x1f31d, 0x1f31e, 0x1f31f, 0x1f320, + 0x1f321, 0x1f324, 0x1f325, 0x1f326, 0x1f327, 0x1f328, 0x1f329, + 0x1f32a, 0x1f32b, 0x1f32c, 0x1f32d, 0x1f32e, 0x1f32f, 0x1f330, + 0x1f331, 0x1f332, 0x1f333, 0x1f334, 0x1f335, 0x1f336, 0x1f337, + 0x1f338, 0x1f339, 0x1f33a, 0x1f33b, 0x1f33c, 0x1f33d, 0x1f33e, + 0x1f33f, 0x1f340, 0x1f341, 0x1f342, 0x1f343, 0x1f344, 0x1f345, + 0x1f346, 0x1f347, 0x1f348, 0x1f349, 0x1f34a, 0x1f34b, 0x1f34c, + 0x1f34d, 0x1f34e, 0x1f34f, 0x1f350, 0x1f351, 0x1f352, 0x1f353, + 0x1f354, 0x1f355, 0x1f356, 0x1f357, 0x1f358, 0x1f359, 0x1f35a, + 0x1f35b, 0x1f35c, 0x1f35d, 0x1f35e, 0x1f35f, 0x1f360, 0x1f361, + 0x1f362, 0x1f363, 0x1f364, 0x1f365, 0x1f366, 0x1f367, 0x1f368, + 0x1f369, 0x1f36a, 0x1f36b, 0x1f36c, 0x1f36d, 0x1f36e, 0x1f36f, + 0x1f370, 0x1f371, 0x1f372, 0x1f373, 0x1f374, 0x1f375, 0x1f376, + 0x1f377, 0x1f378, 0x1f379, 0x1f37a, 0x1f37b, 0x1f37c, 0x1f37d, + 0x1f37e, 0x1f37f, 0x1f380, 0x1f381, 0x1f382, 0x1f383, 0x1f384, + 0x1f385, 0x1f386, 0x1f387, 0x1f388, 0x1f389, 0x1f38a, 0x1f38b, + 0x1f38c, 0x1f38d, 0x1f38e, 0x1f38f, 0x1f390, 0x1f391, 0x1f392, + 0x1f393, 0x1f396, 0x1f397, 0x1f399, 0x1f39a, 0x1f39b, 0x1f39e, + 0x1f39f, 0x1f3a0, 0x1f3a1, 0x1f3a2, 0x1f3a3, 0x1f3a4, 0x1f3a5, + 0x1f3a6, 0x1f3a7, 0x1f3a8, 0x1f3a9, 0x1f3aa, 0x1f3ab, 0x1f3ac, + 0x1f3ad, 0x1f3ae, 0x1f3af, 0x1f3b0, 0x1f3b1, 0x1f3b2, 0x1f3b3, + 0x1f3b4, 0x1f3b5, 0x1f3b6, 0x1f3b7, 0x1f3b8, 0x1f3b9, 0x1f3ba, + 0x1f3bb, 0x1f3bc, 0x1f3bd, 0x1f3be, 0x1f3bf, 0x1f3c0, 0x1f3c1, + 0x1f3c2, 0x1f3c3, 0x1f3c4, 0x1f3c5, 0x1f3c6, 0x1f3c7, 0x1f3c8, + 0x1f3c9, 0x1f3ca, 0x1f3cb, 0x1f3cc, 0x1f3cd, 0x1f3ce, 0x1f3cf, + 0x1f3d0, 0x1f3d1, 0x1f3d2, 0x1f3d3, 0x1f3d4, 0x1f3d5, 0x1f3d6, + 0x1f3d7, 0x1f3d8, 0x1f3d9, 0x1f3da, 0x1f3db, 0x1f3dc, 0x1f3dd, + 0x1f3de, 0x1f3df, 0x1f3e0, 0x1f3e1, 0x1f3e2, 0x1f3e3, 0x1f3e4, + 0x1f3e5, 0x1f3e6, 0x1f3e7, 0x1f3e8, 0x1f3e9, 0x1f3ea, 0x1f3eb, + 0x1f3ec, 0x1f3ed, 0x1f3ee, 0x1f3ef, 0x1f3f0, 0x1f3f3, 0x1f3f4, + 0x1f3f5, 0x1f3f7, 0x1f3f8, 0x1f3f9, 0x1f3fa, 0x1f3fb, 0x1f3fc, + 0x1f3fd, 0x1f3fe, 0x1f3ff, 0x1f400, 0x1f401, 0x1f402, 0x1f403, + 0x1f404, 0x1f405, 0x1f406, 0x1f407, 0x1f408, 0x1f409, 0x1f40a, + 0x1f40b, 0x1f40c, 0x1f40d, 0x1f40e, 0x1f40f, 0x1f410, 0x1f411, + 0x1f412, 0x1f413, 0x1f414, 0x1f415, 0x1f416, 0x1f417, 0x1f418, + 0x1f419, 0x1f41a, 0x1f41b, 0x1f41c, 0x1f41d, 0x1f41e, 0x1f41f, + 0x1f420, 0x1f421, 0x1f422, 0x1f423, 0x1f424, 0x1f425, 0x1f426, + 0x1f427, 0x1f428, 0x1f429, 0x1f42a, 0x1f42b, 0x1f42c, 0x1f42d, + 0x1f42e, 0x1f42f, 0x1f430, 0x1f431, 0x1f432, 0x1f433, 0x1f434, + 0x1f435, 0x1f436, 0x1f437, 0x1f438, 0x1f439, 0x1f43a, 0x1f43b, + 0x1f43c, 0x1f43d, 0x1f43e, 0x1f43f, 0x1f440, 0x1f441, 0x1f442, + 0x1f443, 0x1f444, 0x1f445, 0x1f446, 0x1f447, 0x1f448, 0x1f449, + 0x1f44a, 0x1f44b, 0x1f44c, 0x1f44d, 0x1f44e, 0x1f44f, 0x1f450, + 0x1f451, 0x1f452, 0x1f453, 0x1f454, 0x1f455, 0x1f456, 0x1f457, + 0x1f458, 0x1f459, 0x1f45a, 0x1f45b, 0x1f45c, 0x1f45d, 0x1f45e, + 0x1f45f, 0x1f460, 0x1f461, 0x1f462, 0x1f463, 0x1f464, 0x1f465, + 0x1f466, 0x1f467, 0x1f468, 0x1f469, 0x1f46a, 0x1f46b, 0x1f46c, + 0x1f46d, 0x1f46e, 0x1f46f, 0x1f470, 0x1f471, 0x1f472, 0x1f473, + 0x1f474, 0x1f475, 0x1f476, 0x1f477, 0x1f478, 0x1f479, 0x1f47a, + 0x1f47b, 0x1f47c, 0x1f47d, 0x1f47e, 0x1f47f, 0x1f480, 0x1f481, + 0x1f482, 0x1f483, 0x1f484, 0x1f485, 0x1f486, 0x1f487, 0x1f488, + 0x1f489, 0x1f48a, 0x1f48b, 0x1f48c, 0x1f48d, 0x1f48e, 0x1f48f, + 0x1f490, 0x1f491, 0x1f492, 0x1f493, 0x1f494, 0x1f495, 0x1f496, + 0x1f497, 0x1f498, 0x1f499, 0x1f49a, 0x1f49b, 0x1f49c, 0x1f49d, + 0x1f49e, 0x1f49f, 0x1f4a0, 0x1f4a1, 0x1f4a2, 0x1f4a3, 0x1f4a4, + 0x1f4a5, 0x1f4a6, 0x1f4a7, 0x1f4a8, 0x1f4a9, 0x1f4aa, 0x1f4ab, + 0x1f4ac, 0x1f4ad, 0x1f4ae, 0x1f4af, 0x1f4b0, 0x1f4b1, 0x1f4b2, + 0x1f4b3, 0x1f4b4, 0x1f4b5, 0x1f4b6, 0x1f4b7, 0x1f4b8, 0x1f4b9, + 0x1f4ba, 0x1f4bb, 0x1f4bc, 0x1f4bd, 0x1f4be, 0x1f4bf, 0x1f4c0, + 0x1f4c1, 0x1f4c2, 0x1f4c3, 0x1f4c4, 0x1f4c5, 0x1f4c6, 0x1f4c7, + 0x1f4c8, 0x1f4c9, 0x1f4ca, 0x1f4cb, 0x1f4cc, 0x1f4cd, 0x1f4ce, + 0x1f4cf, 0x1f4d0, 0x1f4d1, 0x1f4d2, 0x1f4d3, 0x1f4d4, 0x1f4d5, + 0x1f4d6, 0x1f4d7, 0x1f4d8, 0x1f4d9, 0x1f4da, 0x1f4db, 0x1f4dc, + 0x1f4dd, 0x1f4de, 0x1f4df, 0x1f4e0, 0x1f4e1, 0x1f4e2, 0x1f4e3, + 0x1f4e4, 0x1f4e5, 0x1f4e6, 0x1f4e7, 0x1f4e8, 0x1f4e9, 0x1f4ea, + 0x1f4eb, 0x1f4ec, 0x1f4ed, 0x1f4ee, 0x1f4ef, 0x1f4f0, 0x1f4f1, + 0x1f4f2, 0x1f4f3, 0x1f4f4, 0x1f4f5, 0x1f4f6, 0x1f4f7, 0x1f4f8, + 0x1f4f9, 0x1f4fa, 0x1f4fb, 0x1f4fc, 0x1f4fd, 0x1f4ff, 0x1f500, + 0x1f501, 0x1f502, 0x1f503, 0x1f504, 0x1f505, 0x1f506, 0x1f507, + 0x1f508, 0x1f509, 0x1f50a, 0x1f50b, 0x1f50c, 0x1f50d, 0x1f50e, + 0x1f50f, 0x1f510, 0x1f511, 0x1f512, 0x1f513, 0x1f514, 0x1f515, + 0x1f516, 0x1f517, 0x1f518, 0x1f519, 0x1f51a, 0x1f51b, 0x1f51c, + 0x1f51d, 0x1f51e, 0x1f51f, 0x1f520, 0x1f521, 0x1f522, 0x1f523, + 0x1f524, 0x1f525, 0x1f526, 0x1f527, 0x1f528, 0x1f529, 0x1f52a, + 0x1f52b, 0x1f52c, 0x1f52d, 0x1f52e, 0x1f52f, 0x1f530, 0x1f531, + 0x1f532, 0x1f533, 0x1f534, 0x1f535, 0x1f536, 0x1f537, 0x1f538, + 0x1f539, 0x1f53a, 0x1f53b, 0x1f53c, 0x1f53d, 0x1f549, 0x1f54a, + 0x1f54b, 0x1f54c, 0x1f54d, 0x1f54e, 0x1f550, 0x1f551, 0x1f552, + 0x1f553, 0x1f554, 0x1f555, 0x1f556, 0x1f557, 0x1f558, 0x1f559, + 0x1f55a, 0x1f55b, 0x1f55c, 0x1f55d, 0x1f55e, 0x1f55f, 0x1f560, + 0x1f561, 0x1f562, 0x1f563, 0x1f564, 0x1f565, 0x1f566, 0x1f567, + 0x1f56f, 0x1f570, 0x1f573, 0x1f574, 0x1f575, 0x1f576, 0x1f577, + 0x1f578, 0x1f579, 0x1f57a, 0x1f587, 0x1f58a, 0x1f58b, 0x1f58c, + 0x1f58d, 0x1f590, 0x1f595, 0x1f596, 0x1f5a4, 0x1f5a5, 0x1f5a8, + 0x1f5b1, 0x1f5b2, 0x1f5bc, 0x1f5c2, 0x1f5c3, 0x1f5c4, 0x1f5d1, + 0x1f5d2, 0x1f5d3, 0x1f5dc, 0x1f5dd, 0x1f5de, 0x1f5e1, 0x1f5e3, + 0x1f5e8, 0x1f5ef, 0x1f5f3, 0x1f5fa, 0x1f5fb, 0x1f5fc, 0x1f5fd, + 0x1f5fe, 0x1f5ff, 0x1f600, 0x1f601, 0x1f602, 0x1f603, 0x1f604, + 0x1f605, 0x1f606, 0x1f607, 0x1f608, 0x1f609, 0x1f60a, 0x1f60b, + 0x1f60c, 0x1f60d, 0x1f60e, 0x1f60f, 0x1f610, 0x1f611, 0x1f612, + 0x1f613, 0x1f614, 0x1f615, 0x1f616, 0x1f617, 0x1f618, 0x1f619, + 0x1f61a, 0x1f61b, 0x1f61c, 0x1f61d, 0x1f61e, 0x1f61f, 0x1f620, + 0x1f621, 0x1f622, 0x1f623, 0x1f624, 0x1f625, 0x1f626, 0x1f627, + 0x1f628, 0x1f629, 0x1f62a, 0x1f62b, 0x1f62c, 0x1f62d, 0x1f62e, + 0x1f62f, 0x1f630, 0x1f631, 0x1f632, 0x1f633, 0x1f634, 0x1f635, + 0x1f636, 0x1f637, 0x1f638, 0x1f639, 0x1f63a, 0x1f63b, 0x1f63c, + 0x1f63d, 0x1f63e, 0x1f63f, 0x1f640, 0x1f641, 0x1f642, 0x1f643, + 0x1f644, 0x1f645, 0x1f646, 0x1f647, 0x1f648, 0x1f649, 0x1f64a, + 0x1f64b, 0x1f64c, 0x1f64d, 0x1f64e, 0x1f64f, 0x1f680, 0x1f681, + 0x1f682, 0x1f683, 0x1f684, 0x1f685, 0x1f686, 0x1f687, 0x1f688, + 0x1f689, 0x1f68a, 0x1f68b, 0x1f68c, 0x1f68d, 0x1f68e, 0x1f68f, + 0x1f690, 0x1f691, 0x1f692, 0x1f693, 0x1f694, 0x1f695, 0x1f696, + 0x1f697, 0x1f698, 0x1f699, 0x1f69a, 0x1f69b, 0x1f69c, 0x1f69d, + 0x1f69e, 0x1f69f, 0x1f6a0, 0x1f6a1, 0x1f6a2, 0x1f6a3, 0x1f6a4, + 0x1f6a5, 0x1f6a6, 0x1f6a7, 0x1f6a8, 0x1f6a9, 0x1f6aa, 0x1f6ab, + 0x1f6ac, 0x1f6ad, 0x1f6ae, 0x1f6af, 0x1f6b0, 0x1f6b1, 0x1f6b2, + 0x1f6b3, 0x1f6b4, 0x1f6b5, 0x1f6b6, 0x1f6b7, 0x1f6b8, 0x1f6b9, + 0x1f6ba, 0x1f6bb, 0x1f6bc, 0x1f6bd, 0x1f6be, 0x1f6bf, 0x1f6c0, + 0x1f6c1, 0x1f6c2, 0x1f6c3, 0x1f6c4, 0x1f6c5, 0x1f6cb, 0x1f6cc, + 0x1f6cd, 0x1f6ce, 0x1f6cf, 0x1f6d0, 0x1f6d1, 0x1f6d2, 0x1f6d5, + 0x1f6e0, 0x1f6e1, 0x1f6e2, 0x1f6e3, 0x1f6e4, 0x1f6e5, 0x1f6e9, + 0x1f6eb, 0x1f6ec, 0x1f6f0, 0x1f6f3, 0x1f6f4, 0x1f6f5, 0x1f6f6, + 0x1f6f7, 0x1f6f8, 0x1f6f9, 0x1f6fa, 0x1f7e0, 0x1f7e1, 0x1f7e2, + 0x1f7e3, 0x1f7e4, 0x1f7e5, 0x1f7e6, 0x1f7e7, 0x1f7e8, 0x1f7e9, + 0x1f7ea, 0x1f7eb, 0x1f90d, 0x1f90e, 0x1f90f, 0x1f910, 0x1f911, + 0x1f912, 0x1f913, 0x1f914, 0x1f915, 0x1f916, 0x1f917, 0x1f918, + 0x1f919, 0x1f91a, 0x1f91b, 0x1f91c, 0x1f91d, 0x1f91e, 0x1f91f, + 0x1f920, 0x1f921, 0x1f922, 0x1f923, 0x1f924, 0x1f925, 0x1f926, + 0x1f927, 0x1f928, 0x1f929, 0x1f92a, 0x1f92b, 0x1f92c, 0x1f92d, + 0x1f92e, 0x1f92f, 0x1f930, 0x1f931, 0x1f932, 0x1f933, 0x1f934, + 0x1f935, 0x1f936, 0x1f937, 0x1f938, 0x1f939, 0x1f93a, 0x1f93c, + 0x1f93d, 0x1f93e, 0x1f93f, 0x1f940, 0x1f941, 0x1f942, 0x1f943, + 0x1f944, 0x1f945, 0x1f947, 0x1f948, 0x1f949, 0x1f94a, 0x1f94b, + 0x1f94c, 0x1f94d, 0x1f94e, 0x1f94f, 0x1f950, 0x1f951, 0x1f952, + 0x1f953, 0x1f954, 0x1f955, 0x1f956, 0x1f957, 0x1f958, 0x1f959, + 0x1f95a, 0x1f95b, 0x1f95c, 0x1f95d, 0x1f95e, 0x1f95f, 0x1f960, + 0x1f961, 0x1f962, 0x1f963, 0x1f964, 0x1f965, 0x1f966, 0x1f967, + 0x1f968, 0x1f969, 0x1f96a, 0x1f96b, 0x1f96c, 0x1f96d, 0x1f96e, + 0x1f96f, 0x1f970, 0x1f971, 0x1f973, 0x1f974, 0x1f975, 0x1f976, + 0x1f97a, 0x1f97b, 0x1f97c, 0x1f97d, 0x1f97e, 0x1f97f, 0x1f980, + 0x1f981, 0x1f982, 0x1f983, 0x1f984, 0x1f985, 0x1f986, 0x1f987, + 0x1f988, 0x1f989, 0x1f98a, 0x1f98b, 0x1f98c, 0x1f98d, 0x1f98e, + 0x1f98f, 0x1f990, 0x1f991, 0x1f992, 0x1f993, 0x1f994, 0x1f995, + 0x1f996, 0x1f997, 0x1f998, 0x1f999, 0x1f99a, 0x1f99b, 0x1f99c, + 0x1f99d, 0x1f99e, 0x1f99f, 0x1f9a0, 0x1f9a1, 0x1f9a2, 0x1f9a5, + 0x1f9a6, 0x1f9a7, 0x1f9a8, 0x1f9a9, 0x1f9aa, 0x1f9ae, 0x1f9af, + 0x1f9b0, 0x1f9b1, 0x1f9b2, 0x1f9b3, 0x1f9b4, 0x1f9b5, 0x1f9b6, + 0x1f9b7, 0x1f9b8, 0x1f9b9, 0x1f9ba, 0x1f9bb, 0x1f9bc, 0x1f9bd, + 0x1f9be, 0x1f9bf, 0x1f9c0, 0x1f9c1, 0x1f9c2, 0x1f9c3, 0x1f9c4, + 0x1f9c5, 0x1f9c6, 0x1f9c7, 0x1f9c8, 0x1f9c9, 0x1f9ca, 0x1f9cd, + 0x1f9ce, 0x1f9cf, 0x1f9d0, 0x1f9d1, 0x1f9d2, 0x1f9d3, 0x1f9d4, + 0x1f9d5, 0x1f9d6, 0x1f9d7, 0x1f9d8, 0x1f9d9, 0x1f9da, 0x1f9db, + 0x1f9dc, 0x1f9dd, 0x1f9de, 0x1f9df, 0x1f9e0, 0x1f9e1, 0x1f9e2, + 0x1f9e3, 0x1f9e4, 0x1f9e5, 0x1f9e6, 0x1f9e7, 0x1f9e8, 0x1f9e9, + 0x1f9ea, 0x1f9eb, 0x1f9ec, 0x1f9ed, 0x1f9ee, 0x1f9ef, 0x1f9f0, + 0x1f9f1, 0x1f9f2, 0x1f9f3, 0x1f9f4, 0x1f9f5, 0x1f9f6, 0x1f9f7, + 0x1f9f8, 0x1f9f9, 0x1f9fa, 0x1f9fb, 0x1f9fc, 0x1f9fd, 0x1f9fe, + 0x1f9ff, 0x1fa70, 0x1fa71, 0x1fa72, 0x1fa73, 0x1fa78, 0x1fa79, + 0x1fa7a, 0x1fa80, 0x1fa81, 0x1fa82, 0x1fa90, 0x1fa91, 0x1fa92, + 0x1fa93, 0x1fa94, 0x1fa95, 0x203c, 0x2049, 0x20e3, 0x2122, + 0x2139, 0x2194, 0x2195, 0x2196, 0x2197, 0x2198, 0x2199, + 0x21a9, 0x21aa, 0x231a, 0x231b, 0x2328, 0x23cf, 0x23e9, + 0x23ea, 0x23eb, 0x23ec, 0x23ed, 0x23ee, 0x23ef, 0x23f0, + 0x23f1, 0x23f2, 0x23f3, 0x23f8, 0x23f9, 0x23fa, 0x24c2, + 0x25aa, 0x25ab, 0x25b6, 0x25c0, 0x25fb, 0x25fc, 0x25fd, + 0x25fe, 0x2600, 0x2601, 0x2602, 0x2603, 0x2604, 0x260e, + 0x2611, 0x2614, 0x2615, 0x2618, 0x261d, 0x2620, 0x2622, + 0x2623, 0x2626, 0x262a, 0x262e, 0x262f, 0x2638, 0x2639, + 0x263a, 0x2640, 0x2642, 0x2648, 0x2649, 0x264a, 0x264b, + 0x264c, 0x264d, 0x264e, 0x264f, 0x2650, 0x2651, 0x2652, + 0x2653, 0x265f, 0x2660, 0x2663, 0x2665, 0x2666, 0x2668, + 0x267b, 0x267e, 0x267f, 0x2692, 0x2693, 0x2694, 0x2695, + 0x2696, 0x2697, 0x2699, 0x269b, 0x269c, 0x26a0, 0x26a1, + 0x26aa, 0x26ab, 0x26b0, 0x26b1, 0x26bd, 0x26be, 0x26c4, + 0x26c5, 0x26c8, 0x26ce, 0x26cf, 0x26d1, 0x26d3, 0x26d4, + 0x26e9, 0x26ea, 0x26f0, 0x26f1, 0x26f2, 0x26f3, 0x26f4, + 0x26f5, 0x26f7, 0x26f8, 0x26f9, 0x26fa, 0x26fd, 0x2702, + 0x2705, 0x2708, 0x2709, 0x270a, 0x270b, 0x270c, 0x270d, + 0x270f, 0x2712, 0x2714, 0x2716, 0x271d, 0x2721, 0x2728, + 0x2733, 0x2734, 0x2744, 0x2747, 0x274c, 0x274e, 0x2753, + 0x2754, 0x2755, 0x2757, 0x2763, 0x2764, 0x2795, 0x2796, + 0x2797, 0x27a1, 0x27b0, 0x27bf, 0x2934, 0x2935, 0x2b05, + 0x2b06, 0x2b07, 0x2b1b, 0x2b1c, 0x2b50, 0x2b55, 0x3030, + 0x303d, 0x3297, 0x3299, 0xa9, 0xae, 0xfe0f + }, + spriteSheetNumberOfRows: 36, + spriteSheetNumberOfColumns: 37 + ); + + public static readonly EmojiResourceConfiguration appleEmojiConfiguration = new EmojiResourceConfiguration( + "images/EmojiIOS13.2", + emojiCodes: new List { + 0x1f004, 0x1f0cf, 0x1f170, 0x1f171, 0x1f17e, 0x1f17f, 0x1f18e, + 0x1f191, 0x1f192, 0x1f193, 0x1f194, 0x1f195, 0x1f196, 0x1f197, + 0x1f198, 0x1f199, 0x1f19a, 0x1f201, 0x1f202, 0x1f21a, 0x1f22f, + 0x1f232, 0x1f233, 0x1f234, 0x1f235, 0x1f236, 0x1f237, 0x1f238, + 0x1f239, 0x1f23a, 0x1f250, 0x1f251, 0x1f300, 0x1f301, 0x1f302, + 0x1f303, 0x1f304, 0x1f305, 0x1f306, 0x1f307, 0x1f308, 0x1f309, + 0x1f30a, 0x1f30b, 0x1f30c, 0x1f30d, 0x1f30e, 0x1f30f, 0x1f310, + 0x1f311, 0x1f312, 0x1f313, 0x1f314, 0x1f315, 0x1f316, 0x1f317, + 0x1f318, 0x1f319, 0x1f31a, 0x1f31b, 0x1f31c, 0x1f31d, 0x1f31e, + 0x1f31f, 0x1f320, 0x1f321, 0x1f324, 0x1f325, 0x1f326, 0x1f327, + 0x1f328, 0x1f329, 0x1f32a, 0x1f32b, 0x1f32c, 0x1f32d, 0x1f32e, + 0x1f32f, 0x1f330, 0x1f331, 0x1f332, 0x1f333, 0x1f334, 0x1f335, + 0x1f336, 0x1f337, 0x1f338, 0x1f339, 0x1f33a, 0x1f33b, 0x1f33c, + 0x1f33d, 0x1f33e, 0x1f33f, 0x1f340, 0x1f341, 0x1f342, 0x1f343, + 0x1f344, 0x1f345, 0x1f346, 0x1f347, 0x1f348, 0x1f349, 0x1f34a, + 0x1f34b, 0x1f34c, 0x1f34d, 0x1f34e, 0x1f34f, 0x1f350, 0x1f351, + 0x1f352, 0x1f353, 0x1f354, 0x1f355, 0x1f356, 0x1f357, 0x1f358, + 0x1f359, 0x1f35a, 0x1f35b, 0x1f35c, 0x1f35d, 0x1f35e, 0x1f35f, + 0x1f360, 0x1f361, 0x1f362, 0x1f363, 0x1f364, 0x1f365, 0x1f366, + 0x1f367, 0x1f368, 0x1f369, 0x1f36a, 0x1f36b, 0x1f36c, 0x1f36d, + 0x1f36e, 0x1f36f, 0x1f370, 0x1f371, 0x1f372, 0x1f373, 0x1f374, + 0x1f375, 0x1f376, 0x1f377, 0x1f378, 0x1f379, 0x1f37a, 0x1f37b, + 0x1f37c, 0x1f37d, 0x1f37e, 0x1f37f, 0x1f380, 0x1f381, 0x1f382, + 0x1f383, 0x1f384, 0x1f385, 0x1f386, 0x1f387, 0x1f388, 0x1f389, + 0x1f38a, 0x1f38b, 0x1f38c, 0x1f38d, 0x1f38e, 0x1f38f, 0x1f390, + 0x1f391, 0x1f392, 0x1f393, 0x1f396, 0x1f397, 0x1f399, 0x1f39a, + 0x1f39b, 0x1f39e, 0x1f39f, 0x1f3a0, 0x1f3a1, 0x1f3a2, 0x1f3a3, + 0x1f3a4, 0x1f3a5, 0x1f3a6, 0x1f3a7, 0x1f3a8, 0x1f3a9, 0x1f3aa, + 0x1f3ab, 0x1f3ac, 0x1f3ad, 0x1f3ae, 0x1f3af, 0x1f3b0, 0x1f3b1, + 0x1f3b2, 0x1f3b3, 0x1f3b4, 0x1f3b5, 0x1f3b6, 0x1f3b7, 0x1f3b8, + 0x1f3b9, 0x1f3ba, 0x1f3bb, 0x1f3bc, 0x1f3bd, 0x1f3be, 0x1f3bf, + 0x1f3c0, 0x1f3c1, 0x1f3c2, 0x1f3c3, 0x1f3c4, 0x1f3c5, 0x1f3c6, + 0x1f3c7, 0x1f3c8, 0x1f3c9, 0x1f3ca, 0x1f3cb, 0x1f3cc, 0x1f3cd, + 0x1f3ce, 0x1f3cf, 0x1f3d0, 0x1f3d1, 0x1f3d2, 0x1f3d3, 0x1f3d4, + 0x1f3d5, 0x1f3d6, 0x1f3d7, 0x1f3d8, 0x1f3d9, 0x1f3da, 0x1f3db, + 0x1f3dc, 0x1f3dd, 0x1f3de, 0x1f3df, 0x1f3e0, 0x1f3e1, 0x1f3e2, + 0x1f3e3, 0x1f3e4, 0x1f3e5, 0x1f3e6, 0x1f3e7, 0x1f3e8, 0x1f3e9, + 0x1f3ea, 0x1f3eb, 0x1f3ec, 0x1f3ed, 0x1f3ee, 0x1f3ef, 0x1f3f0, + 0x1f3f3, 0x1f3f4, 0x1f3f5, 0x1f3f7, 0x1f3f8, 0x1f3f9, 0x1f3fa, + 0x1f3fb, 0x1f3fc, 0x1f3fd, 0x1f3fe, 0x1f3ff, 0x1f400, 0x1f401, + 0x1f402, 0x1f403, 0x1f404, 0x1f405, 0x1f406, 0x1f407, 0x1f408, + 0x1f409, 0x1f40a, 0x1f40b, 0x1f40c, 0x1f40d, 0x1f40e, 0x1f40f, + 0x1f410, 0x1f411, 0x1f412, 0x1f413, 0x1f414, 0x1f415, 0x1f416, + 0x1f417, 0x1f418, 0x1f419, 0x1f41a, 0x1f41b, 0x1f41c, 0x1f41d, + 0x1f41e, 0x1f41f, 0x1f420, 0x1f421, 0x1f422, 0x1f423, 0x1f424, + 0x1f425, 0x1f426, 0x1f427, 0x1f428, 0x1f429, 0x1f42a, 0x1f42b, + 0x1f42c, 0x1f42d, 0x1f42e, 0x1f42f, 0x1f430, 0x1f431, 0x1f432, + 0x1f433, 0x1f434, 0x1f435, 0x1f436, 0x1f437, 0x1f438, 0x1f439, + 0x1f43a, 0x1f43b, 0x1f43c, 0x1f43d, 0x1f43e, 0x1f43f, 0x1f440, + 0x1f441, 0x1f442, 0x1f443, 0x1f444, 0x1f445, 0x1f446, 0x1f447, + 0x1f448, 0x1f449, 0x1f44a, 0x1f44b, 0x1f44c, 0x1f44d, 0x1f44e, + 0x1f44f, 0x1f450, 0x1f451, 0x1f452, 0x1f453, 0x1f454, 0x1f455, + 0x1f456, 0x1f457, 0x1f458, 0x1f459, 0x1f45a, 0x1f45b, 0x1f45c, + 0x1f45d, 0x1f45e, 0x1f45f, 0x1f460, 0x1f461, 0x1f462, 0x1f463, + 0x1f464, 0x1f465, 0x1f466, 0x1f467, 0x1f468, 0x1f469, 0x1f46a, + 0x1f46b, 0x1f46c, 0x1f46d, 0x1f46e, 0x1f46f, 0x1f470, 0x1f471, + 0x1f472, 0x1f473, 0x1f474, 0x1f475, 0x1f476, 0x1f477, 0x1f478, + 0x1f479, 0x1f47a, 0x1f47b, 0x1f47c, 0x1f47d, 0x1f47e, 0x1f47f, + 0x1f480, 0x1f481, 0x1f482, 0x1f483, 0x1f484, 0x1f485, 0x1f486, + 0x1f487, 0x1f488, 0x1f489, 0x1f48a, 0x1f48b, 0x1f48c, 0x1f48d, + 0x1f48e, 0x1f48f, 0x1f490, 0x1f491, 0x1f492, 0x1f493, 0x1f494, + 0x1f495, 0x1f496, 0x1f497, 0x1f498, 0x1f499, 0x1f49a, 0x1f49b, + 0x1f49c, 0x1f49d, 0x1f49e, 0x1f49f, 0x1f4a0, 0x1f4a1, 0x1f4a2, + 0x1f4a3, 0x1f4a4, 0x1f4a5, 0x1f4a6, 0x1f4a7, 0x1f4a8, 0x1f4a9, + 0x1f4aa, 0x1f4ab, 0x1f4ac, 0x1f4ad, 0x1f4ae, 0x1f4af, 0x1f4b0, + 0x1f4b1, 0x1f4b2, 0x1f4b3, 0x1f4b4, 0x1f4b5, 0x1f4b6, 0x1f4b7, + 0x1f4b8, 0x1f4b9, 0x1f4ba, 0x1f4bb, 0x1f4bc, 0x1f4bd, 0x1f4be, + 0x1f4bf, 0x1f4c0, 0x1f4c1, 0x1f4c2, 0x1f4c3, 0x1f4c4, 0x1f4c5, + 0x1f4c6, 0x1f4c7, 0x1f4c8, 0x1f4c9, 0x1f4ca, 0x1f4cb, 0x1f4cc, + 0x1f4cd, 0x1f4ce, 0x1f4cf, 0x1f4d0, 0x1f4d1, 0x1f4d2, 0x1f4d3, + 0x1f4d4, 0x1f4d5, 0x1f4d6, 0x1f4d7, 0x1f4d8, 0x1f4d9, 0x1f4da, + 0x1f4db, 0x1f4dc, 0x1f4dd, 0x1f4de, 0x1f4df, 0x1f4e0, 0x1f4e1, + 0x1f4e2, 0x1f4e3, 0x1f4e4, 0x1f4e5, 0x1f4e6, 0x1f4e7, 0x1f4e8, + 0x1f4e9, 0x1f4ea, 0x1f4eb, 0x1f4ec, 0x1f4ed, 0x1f4ee, 0x1f4ef, + 0x1f4f0, 0x1f4f1, 0x1f4f2, 0x1f4f3, 0x1f4f4, 0x1f4f5, 0x1f4f6, + 0x1f4f7, 0x1f4f8, 0x1f4f9, 0x1f4fa, 0x1f4fb, 0x1f4fc, 0x1f4fd, + 0x1f4ff, 0x1f500, 0x1f501, 0x1f502, 0x1f503, 0x1f504, 0x1f505, + 0x1f506, 0x1f507, 0x1f508, 0x1f509, 0x1f50a, 0x1f50b, 0x1f50c, + 0x1f50d, 0x1f50e, 0x1f50f, 0x1f510, 0x1f511, 0x1f512, 0x1f513, + 0x1f514, 0x1f515, 0x1f516, 0x1f517, 0x1f518, 0x1f519, 0x1f51a, + 0x1f51b, 0x1f51c, 0x1f51d, 0x1f51e, 0x1f51f, 0x1f520, 0x1f521, + 0x1f522, 0x1f523, 0x1f524, 0x1f525, 0x1f526, 0x1f527, 0x1f528, + 0x1f529, 0x1f52a, 0x1f52b, 0x1f52c, 0x1f52d, 0x1f52e, 0x1f52f, + 0x1f530, 0x1f531, 0x1f532, 0x1f533, 0x1f534, 0x1f535, 0x1f536, + 0x1f537, 0x1f538, 0x1f539, 0x1f53a, 0x1f53b, 0x1f53c, 0x1f53d, + 0x1f549, 0x1f54a, 0x1f54b, 0x1f54c, 0x1f54d, 0x1f54e, 0x1f550, + 0x1f551, 0x1f552, 0x1f553, 0x1f554, 0x1f555, 0x1f556, 0x1f557, + 0x1f558, 0x1f559, 0x1f55a, 0x1f55b, 0x1f55c, 0x1f55d, 0x1f55e, + 0x1f55f, 0x1f560, 0x1f561, 0x1f562, 0x1f563, 0x1f564, 0x1f565, + 0x1f566, 0x1f567, 0x1f56f, 0x1f570, 0x1f573, 0x1f574, 0x1f575, + 0x1f576, 0x1f577, 0x1f578, 0x1f579, 0x1f57a, 0x1f587, 0x1f58a, + 0x1f58b, 0x1f58c, 0x1f58d, 0x1f590, 0x1f595, 0x1f596, 0x1f5a4, + 0x1f5a5, 0x1f5a8, 0x1f5b1, 0x1f5b2, 0x1f5bc, 0x1f5c2, 0x1f5c3, + 0x1f5c4, 0x1f5d1, 0x1f5d2, 0x1f5d3, 0x1f5dc, 0x1f5dd, 0x1f5de, + 0x1f5e1, 0x1f5e3, 0x1f5e8, 0x1f5ef, 0x1f5f3, 0x1f5fa, 0x1f5fb, + 0x1f5fc, 0x1f5fd, 0x1f5fe, 0x1f5ff, 0x1f601, 0x1f602, 0x1f603, + 0x1f604, 0x1f605, 0x1f606, 0x1f607, 0x1f608, 0x1f609, 0x1f60a, + 0x1f60b, 0x1f60c, 0x1f60d, 0x1f60e, 0x1f60f, 0x1f610, 0x1f611, + 0x1f612, 0x1f613, 0x1f614, 0x1f615, 0x1f616, 0x1f617, 0x1f618, + 0x1f619, 0x1f61a, 0x1f61b, 0x1f61c, 0x1f61d, 0x1f61e, 0x1f61f, + 0x1f620, 0x1f621, 0x1f622, 0x1f623, 0x1f624, 0x1f625, 0x1f626, + 0x1f627, 0x1f628, 0x1f629, 0x1f62a, 0x1f62b, 0x1f62c, 0x1f62d, + 0x1f62e, 0x1f62f, 0x1f630, 0x1f631, 0x1f632, 0x1f633, 0x1f634, + 0x1f635, 0x1f636, 0x1f637, 0x1f638, 0x1f639, 0x1f63a, 0x1f63b, + 0x1f63c, 0x1f63d, 0x1f63e, 0x1f63f, 0x1f640, 0x1f641, 0x1f642, + 0x1f643, 0x1f644, 0x1f645, 0x1f646, 0x1f647, 0x1f648, 0x1f649, + 0x1f64a, 0x1f64b, 0x1f64c, 0x1f64d, 0x1f64e, 0x1f64f, 0x1f680, + 0x1f681, 0x1f682, 0x1f683, 0x1f684, 0x1f685, 0x1f686, 0x1f687, + 0x1f688, 0x1f689, 0x1f68a, 0x1f68b, 0x1f68c, 0x1f68d, 0x1f68e, + 0x1f68f, 0x1f690, 0x1f691, 0x1f692, 0x1f693, 0x1f694, 0x1f695, + 0x1f696, 0x1f697, 0x1f698, 0x1f699, 0x1f69a, 0x1f69b, 0x1f69c, + 0x1f69d, 0x1f69e, 0x1f69f, 0x1f6a0, 0x1f6a1, 0x1f6a2, 0x1f6a3, + 0x1f6a4, 0x1f6a5, 0x1f6a6, 0x1f6a7, 0x1f6a8, 0x1f6a9, 0x1f6aa, + 0x1f6ab, 0x1f6ac, 0x1f6ad, 0x1f6ae, 0x1f6af, 0x1f6b0, 0x1f6b1, + 0x1f6b2, 0x1f6b3, 0x1f6b4, 0x1f6b5, 0x1f6b6, 0x1f6b7, 0x1f6b8, + 0x1f6b9, 0x1f6ba, 0x1f6bb, 0x1f6bc, 0x1f6bd, 0x1f6be, 0x1f6bf, + 0x1f6c0, 0x1f6c1, 0x1f6c2, 0x1f6c3, 0x1f6c4, 0x1f6c5, 0x1f6cb, + 0x1f6cc, 0x1f6cd, 0x1f6ce, 0x1f6cf, 0x1f6d0, 0x1f6d1, 0x1f6d2, + 0x1f6d5, 0x1f6e0, 0x1f6e1, 0x1f6e2, 0x1f6e3, 0x1f6e4, 0x1f6e5, + 0x1f6e9, 0x1f6eb, 0x1f6ec, 0x1f6f0, 0x1f6f3, 0x1f6f4, 0x1f6f5, + 0x1f6f6, 0x1f6f7, 0x1f6f8, 0x1f6f9, 0x1f6fa, 0x1f7e0, 0x1f7e1, + 0x1f7e2, 0x1f7e3, 0x1f7e4, 0x1f7e5, 0x1f7e6, 0x1f7e7, 0x1f7e8, + 0x1f7e9, 0x1f7ea, 0x1f7eb, 0x1f90d, 0x1f90e, 0x1f90f, 0x1f910, + 0x1f911, 0x1f912, 0x1f913, 0x1f914, 0x1f915, 0x1f916, 0x1f917, + 0x1f918, 0x1f919, 0x1f91a, 0x1f91b, 0x1f91c, 0x1f91d, 0x1f91e, + 0x1f91f, 0x1f920, 0x1f921, 0x1f922, 0x1f923, 0x1f924, 0x1f925, + 0x1f926, 0x1f927, 0x1f928, 0x1f929, 0x1f92a, 0x1f92b, 0x1f92c, + 0x1f92d, 0x1f92e, 0x1f92f, 0x1f930, 0x1f931, 0x1f932, 0x1f933, + 0x1f934, 0x1f935, 0x1f936, 0x1f937, 0x1f938, 0x1f939, 0x1f93a, + 0x1f93c, 0x1f93d, 0x1f93e, 0x1f93f, 0x1f940, 0x1f941, 0x1f942, + 0x1f943, 0x1f944, 0x1f945, 0x1f947, 0x1f948, 0x1f949, 0x1f94a, + 0x1f94b, 0x1f94c, 0x1f94d, 0x1f94e, 0x1f94f, 0x1f950, 0x1f951, + 0x1f952, 0x1f953, 0x1f954, 0x1f955, 0x1f956, 0x1f957, 0x1f958, + 0x1f959, 0x1f95a, 0x1f95b, 0x1f95c, 0x1f95d, 0x1f95e, 0x1f95f, + 0x1f960, 0x1f961, 0x1f962, 0x1f963, 0x1f964, 0x1f965, 0x1f966, + 0x1f967, 0x1f968, 0x1f969, 0x1f96a, 0x1f96b, 0x1f96c, 0x1f96d, + 0x1f96e, 0x1f96f, 0x1f970, 0x1f971, 0x1f973, 0x1f974, 0x1f975, + 0x1f976, 0x1f97a, 0x1f97b, 0x1f97c, 0x1f97d, 0x1f97e, 0x1f97f, + 0x1f980, 0x1f981, 0x1f982, 0x1f983, 0x1f984, 0x1f985, 0x1f986, + 0x1f987, 0x1f988, 0x1f989, 0x1f98a, 0x1f98b, 0x1f98c, 0x1f98d, + 0x1f98e, 0x1f98f, 0x1f990, 0x1f991, 0x1f992, 0x1f993, 0x1f994, + 0x1f995, 0x1f996, 0x1f997, 0x1f998, 0x1f999, 0x1f99a, 0x1f99b, + 0x1f99c, 0x1f99d, 0x1f99e, 0x1f99f, 0x1f9a0, 0x1f9a1, 0x1f9a2, + 0x1f9a5, 0x1f9a6, 0x1f9a7, 0x1f9a8, 0x1f9a9, 0x1f9aa, 0x1f9ae, + 0x1f9af, 0x1f9b0, 0x1f9b1, 0x1f9b2, 0x1f9b3, 0x1f9b4, 0x1f9b5, + 0x1f9b6, 0x1f9b7, 0x1f9b8, 0x1f9b9, 0x1f9ba, 0x1f9bb, 0x1f9bc, + 0x1f9bd, 0x1f9be, 0x1f9bf, 0x1f9c0, 0x1f9c1, 0x1f9c2, 0x1f9c3, + 0x1f9c4, 0x1f9c5, 0x1f9c6, 0x1f9c7, 0x1f9c8, 0x1f9c9, 0x1f9ca, + 0x1f9cd, 0x1f9ce, 0x1f9cf, 0x1f9d0, 0x1f9d1, 0x1f9d2, 0x1f9d3, + 0x1f9d4, 0x1f9d5, 0x1f9d6, 0x1f9d7, 0x1f9d8, 0x1f9d9, 0x1f9da, + 0x1f9db, 0x1f9dc, 0x1f9dd, 0x1f9de, 0x1f9df, 0x1f9e0, 0x1f9e1, + 0x1f9e2, 0x1f9e3, 0x1f9e4, 0x1f9e5, 0x1f9e6, 0x1f9e7, 0x1f9e8, + 0x1f9e9, 0x1f9ea, 0x1f9eb, 0x1f9ec, 0x1f9ed, 0x1f9ee, 0x1f9ef, + 0x1f9f0, 0x1f9f1, 0x1f9f2, 0x1f9f3, 0x1f9f4, 0x1f9f5, 0x1f9f6, + 0x1f9f7, 0x1f9f8, 0x1f9f9, 0x1f9fa, 0x1f9fb, 0x1f9fc, 0x1f9fd, + 0x1f9fe, 0x1f9ff, 0x1fa70, 0x1fa71, 0x1fa72, 0x1fa73, 0x1fa78, + 0x1fa79, 0x1fa7a, 0x1fa80, 0x1fa81, 0x1fa82, 0x1fa90, 0x1fa91, + 0x1fa92, 0x1fa93, 0x1fa94, 0x1fa95, 0x203c, 0x2049, 0x2122, + 0x2139, 0x2194, 0x2195, 0x2196, 0x2197, 0x2198, 0x2199, + 0x21a9, 0x21aa, 0x231a, 0x231b, 0x2328, 0x23cf, 0x23e9, + 0x23ea, 0x23eb, 0x23ec, 0x23ed, 0x23ee, 0x23ef, 0x23f0, + 0x23f1, 0x23f2, 0x23f3, 0x23f8, 0x23f9, 0x23fa, 0x24c2, + 0x25aa, 0x25ab, 0x25b6, 0x25c0, 0x25fb, 0x25fc, 0x25fd, + 0x25fe, 0x2600, 0x2601, 0x2602, 0x2603, 0x2604, 0x260e, + 0x2611, 0x2614, 0x2615, 0x2618, 0x261d, 0x2620, 0x2622, + 0x2623, 0x2626, 0x262a, 0x262e, 0x262f, 0x2638, 0x2639, + 0x263a, 0x2648, 0x2649, 0x264a, 0x264b, 0x264c, 0x264d, + 0x264e, 0x264f, 0x2650, 0x2651, 0x2652, 0x2653, 0x265f, + 0x2660, 0x2663, 0x2665, 0x2666, 0x2668, 0x267b, 0x267e, + 0x267f, 0x2692, 0x2693, 0x2694, 0x2696, 0x2697, 0x2699, + 0x269b, 0x269c, 0x26a0, 0x26a1, 0x26aa, 0x26ab, 0x26b0, + 0x26b1, 0x26bd, 0x26be, 0x26c4, 0x26c5, 0x26c8, 0x26ce, + 0x26cf, 0x26d1, 0x26d3, 0x26d4, 0x26e9, 0x26ea, 0x26f0, + 0x26f1, 0x26f2, 0x26f3, 0x26f4, 0x26f5, 0x26f7, 0x26f8, + 0x26f9, 0x26fa, 0x26fd, 0x2702, 0x2705, 0x2708, 0x2709, + 0x270a, 0x270b, 0x270c, 0x270d, 0x270f, 0x2712, 0x2714, + 0x2716, 0x271d, 0x2721, 0x2728, 0x2733, 0x2734, 0x2744, + 0x2747, 0x274c, 0x274e, 0x2753, 0x2754, 0x2755, 0x2757, + 0x2763, 0x2764, 0x2795, 0x2796, 0x2797, 0x27a1, 0x27b0, + 0x27bf, 0x2934, 0x2935, 0x2b05, 0x2b06, 0x2b07, 0x2b1b, + 0x2b1c, 0x2b50, 0x2b55, 0x3030, 0x303d, 0x3297, 0x3299, + 0xa9, 0xae, 0xfe0f, + }, + spriteSheetNumberOfRows: 35, + spriteSheetNumberOfColumns: 37 + ); + + static readonly EmojiResourceConfiguration _defaultConfiguration = appleEmojiConfiguration; + + static EmojiResourceConfiguration _configuration = null; + public static EmojiResourceConfiguration configuration { + get { return _configuration ?? _defaultConfiguration; } + set { + if (value == _configuration) { + return; + } + + if (value != null && _configuration != null && + value.spriteSheetAssetName != _configuration.spriteSheetAssetName) { + try { + _image = new Image(Resources.Load(value.spriteSheetAssetName)); + } + catch (Exception e) { + _image = null; + Debug.LogError(e.StackTrace); + } + } + + _configuration = value; + } + } + + static Image _image; public static Image image { get { if (_image == null || _image.texture == null) { try { - _image = new Image( - Resources.Load("Emoji") - ); + _image = new Image(Resources.Load(configuration.spriteSheetAssetName)); } catch (Exception e) { _image = null; @@ -25,216 +460,23 @@ public static Image image { } } - public static readonly Dictionary emojiLookupTable = new Dictionary { - {0x1f004, 0}, {0x1f0cf, 1}, {0x1f170, 2}, {0x1f171, 3}, {0x1f17e, 4}, {0x1f17f, 5}, {0x1f18e, 6}, - {0x1f191, 7}, {0x1f192, 8}, {0x1f193, 9}, {0x1f194, 10}, {0x1f195, 11}, {0x1f196, 12}, {0x1f197, 13}, - {0x1f198, 14}, {0x1f199, 15}, {0x1f19a, 16}, {0x1f1e6, 17}, {0x1f1e7, 18}, {0x1f1e8, 19}, {0x1f1e9, 20}, - {0x1f1ea, 21}, {0x1f1eb, 22}, {0x1f1ec, 23}, {0x1f1ed, 24}, {0x1f1ee, 25}, {0x1f1ef, 26}, {0x1f1f0, 27}, - {0x1f1f1, 28}, {0x1f1f2, 29}, {0x1f1f3, 30}, {0x1f1f4, 31}, {0x1f1f5, 32}, {0x1f1f6, 33}, {0x1f1f7, 34}, - {0x1f1f8, 35}, {0x1f1f9, 36}, {0x1f1fa, 37}, {0x1f1fb, 38}, {0x1f1fc, 39}, {0x1f1fd, 40}, {0x1f1fe, 41}, - {0x1f1ff, 42}, {0x1f201, 43}, {0x1f202, 44}, {0x1f21a, 45}, {0x1f22f, 46}, {0x1f232, 47}, {0x1f233, 48}, - {0x1f234, 49}, {0x1f235, 50}, {0x1f236, 51}, {0x1f237, 52}, {0x1f238, 53}, {0x1f239, 54}, {0x1f23a, 55}, - {0x1f250, 56}, {0x1f251, 57}, {0x1f300, 58}, {0x1f301, 59}, {0x1f302, 60}, {0x1f303, 61}, {0x1f304, 62}, - {0x1f305, 63}, {0x1f306, 64}, {0x1f307, 65}, {0x1f308, 66}, {0x1f309, 67}, {0x1f30a, 68}, {0x1f30b, 69}, - {0x1f30c, 70}, {0x1f30d, 71}, {0x1f30e, 72}, {0x1f30f, 73}, {0x1f310, 74}, {0x1f311, 75}, {0x1f312, 76}, - {0x1f313, 77}, {0x1f314, 78}, {0x1f315, 79}, {0x1f316, 80}, {0x1f317, 81}, {0x1f318, 82}, {0x1f319, 83}, - {0x1f31a, 84}, {0x1f31b, 85}, {0x1f31c, 86}, {0x1f31d, 87}, {0x1f31e, 88}, {0x1f31f, 89}, {0x1f320, 90}, - {0x1f321, 91}, {0x1f324, 92}, {0x1f325, 93}, {0x1f326, 94}, {0x1f327, 95}, {0x1f328, 96}, {0x1f329, 97}, - {0x1f32a, 98}, {0x1f32b, 99}, {0x1f32c, 100}, {0x1f32d, 101}, {0x1f32e, 102}, {0x1f32f, 103}, {0x1f330, 104}, - {0x1f331, 105}, {0x1f332, 106}, {0x1f333, 107}, {0x1f334, 108}, {0x1f335, 109}, {0x1f336, 110}, {0x1f337, 111}, - {0x1f338, 112}, {0x1f339, 113}, {0x1f33a, 114}, {0x1f33b, 115}, {0x1f33c, 116}, {0x1f33d, 117}, {0x1f33e, 118}, - {0x1f33f, 119}, {0x1f340, 120}, {0x1f341, 121}, {0x1f342, 122}, {0x1f343, 123}, {0x1f344, 124}, {0x1f345, 125}, - {0x1f346, 126}, {0x1f347, 127}, {0x1f348, 128}, {0x1f349, 129}, {0x1f34a, 130}, {0x1f34b, 131}, {0x1f34c, 132}, - {0x1f34d, 133}, {0x1f34e, 134}, {0x1f34f, 135}, {0x1f350, 136}, {0x1f351, 137}, {0x1f352, 138}, {0x1f353, 139}, - {0x1f354, 140}, {0x1f355, 141}, {0x1f356, 142}, {0x1f357, 143}, {0x1f358, 144}, {0x1f359, 145}, {0x1f35a, 146}, - {0x1f35b, 147}, {0x1f35c, 148}, {0x1f35d, 149}, {0x1f35e, 150}, {0x1f35f, 151}, {0x1f360, 152}, {0x1f361, 153}, - {0x1f362, 154}, {0x1f363, 155}, {0x1f364, 156}, {0x1f365, 157}, {0x1f366, 158}, {0x1f367, 159}, {0x1f368, 160}, - {0x1f369, 161}, {0x1f36a, 162}, {0x1f36b, 163}, {0x1f36c, 164}, {0x1f36d, 165}, {0x1f36e, 166}, {0x1f36f, 167}, - {0x1f370, 168}, {0x1f371, 169}, {0x1f372, 170}, {0x1f373, 171}, {0x1f374, 172}, {0x1f375, 173}, {0x1f376, 174}, - {0x1f377, 175}, {0x1f378, 176}, {0x1f379, 177}, {0x1f37a, 178}, {0x1f37b, 179}, {0x1f37c, 180}, {0x1f37d, 181}, - {0x1f37e, 182}, {0x1f37f, 183}, {0x1f380, 184}, {0x1f381, 185}, {0x1f382, 186}, {0x1f383, 187}, {0x1f384, 188}, - {0x1f385, 189}, {0x1f386, 190}, {0x1f387, 191}, {0x1f388, 192}, {0x1f389, 193}, {0x1f38a, 194}, {0x1f38b, 195}, - {0x1f38c, 196}, {0x1f38d, 197}, {0x1f38e, 198}, {0x1f38f, 199}, {0x1f390, 200}, {0x1f391, 201}, {0x1f392, 202}, - {0x1f393, 203}, {0x1f396, 204}, {0x1f397, 205}, {0x1f399, 206}, {0x1f39a, 207}, {0x1f39b, 208}, {0x1f39e, 209}, - {0x1f39f, 210}, {0x1f3a0, 211}, {0x1f3a1, 212}, {0x1f3a2, 213}, {0x1f3a3, 214}, {0x1f3a4, 215}, {0x1f3a5, 216}, - {0x1f3a6, 217}, {0x1f3a7, 218}, {0x1f3a8, 219}, {0x1f3a9, 220}, {0x1f3aa, 221}, {0x1f3ab, 222}, {0x1f3ac, 223}, - {0x1f3ad, 224}, {0x1f3ae, 225}, {0x1f3af, 226}, {0x1f3b0, 227}, {0x1f3b1, 228}, {0x1f3b2, 229}, {0x1f3b3, 230}, - {0x1f3b4, 231}, {0x1f3b5, 232}, {0x1f3b6, 233}, {0x1f3b7, 234}, {0x1f3b8, 235}, {0x1f3b9, 236}, {0x1f3ba, 237}, - {0x1f3bb, 238}, {0x1f3bc, 239}, {0x1f3bd, 240}, {0x1f3be, 241}, {0x1f3bf, 242}, {0x1f3c0, 243}, {0x1f3c1, 244}, - {0x1f3c2, 245}, {0x1f3c3, 246}, {0x1f3c4, 247}, {0x1f3c5, 248}, {0x1f3c6, 249}, {0x1f3c7, 250}, {0x1f3c8, 251}, - {0x1f3c9, 252}, {0x1f3ca, 253}, {0x1f3cb, 254}, {0x1f3cc, 255}, {0x1f3cd, 256}, {0x1f3ce, 257}, {0x1f3cf, 258}, - {0x1f3d0, 259}, {0x1f3d1, 260}, {0x1f3d2, 261}, {0x1f3d3, 262}, {0x1f3d4, 263}, {0x1f3d5, 264}, {0x1f3d6, 265}, - {0x1f3d7, 266}, {0x1f3d8, 267}, {0x1f3d9, 268}, {0x1f3da, 269}, {0x1f3db, 270}, {0x1f3dc, 271}, {0x1f3dd, 272}, - {0x1f3de, 273}, {0x1f3df, 274}, {0x1f3e0, 275}, {0x1f3e1, 276}, {0x1f3e2, 277}, {0x1f3e3, 278}, {0x1f3e4, 279}, - {0x1f3e5, 280}, {0x1f3e6, 281}, {0x1f3e7, 282}, {0x1f3e8, 283}, {0x1f3e9, 284}, {0x1f3ea, 285}, {0x1f3eb, 286}, - {0x1f3ec, 287}, {0x1f3ed, 288}, {0x1f3ee, 289}, {0x1f3ef, 290}, {0x1f3f0, 291}, {0x1f3f3, 292}, {0x1f3f4, 293}, - {0x1f3f5, 294}, {0x1f3f7, 295}, {0x1f3f8, 296}, {0x1f3f9, 297}, {0x1f3fa, 298}, {0x1f3fb, 299}, {0x1f3fc, 300}, - {0x1f3fd, 301}, {0x1f3fe, 302}, {0x1f3ff, 303}, {0x1f400, 304}, {0x1f401, 305}, {0x1f402, 306}, {0x1f403, 307}, - {0x1f404, 308}, {0x1f405, 309}, {0x1f406, 310}, {0x1f407, 311}, {0x1f408, 312}, {0x1f409, 313}, {0x1f40a, 314}, - {0x1f40b, 315}, {0x1f40c, 316}, {0x1f40d, 317}, {0x1f40e, 318}, {0x1f40f, 319}, {0x1f410, 320}, {0x1f411, 321}, - {0x1f412, 322}, {0x1f413, 323}, {0x1f414, 324}, {0x1f415, 325}, {0x1f416, 326}, {0x1f417, 327}, {0x1f418, 328}, - {0x1f419, 329}, {0x1f41a, 330}, {0x1f41b, 331}, {0x1f41c, 332}, {0x1f41d, 333}, {0x1f41e, 334}, {0x1f41f, 335}, - {0x1f420, 336}, {0x1f421, 337}, {0x1f422, 338}, {0x1f423, 339}, {0x1f424, 340}, {0x1f425, 341}, {0x1f426, 342}, - {0x1f427, 343}, {0x1f428, 344}, {0x1f429, 345}, {0x1f42a, 346}, {0x1f42b, 347}, {0x1f42c, 348}, {0x1f42d, 349}, - {0x1f42e, 350}, {0x1f42f, 351}, {0x1f430, 352}, {0x1f431, 353}, {0x1f432, 354}, {0x1f433, 355}, {0x1f434, 356}, - {0x1f435, 357}, {0x1f436, 358}, {0x1f437, 359}, {0x1f438, 360}, {0x1f439, 361}, {0x1f43a, 362}, {0x1f43b, 363}, - {0x1f43c, 364}, {0x1f43d, 365}, {0x1f43e, 366}, {0x1f43f, 367}, {0x1f440, 368}, {0x1f441, 369}, {0x1f442, 370}, - {0x1f443, 371}, {0x1f444, 372}, {0x1f445, 373}, {0x1f446, 374}, {0x1f447, 375}, {0x1f448, 376}, {0x1f449, 377}, - {0x1f44a, 378}, {0x1f44b, 379}, {0x1f44c, 380}, {0x1f44d, 381}, {0x1f44e, 382}, {0x1f44f, 383}, {0x1f450, 384}, - {0x1f451, 385}, {0x1f452, 386}, {0x1f453, 387}, {0x1f454, 388}, {0x1f455, 389}, {0x1f456, 390}, {0x1f457, 391}, - {0x1f458, 392}, {0x1f459, 393}, {0x1f45a, 394}, {0x1f45b, 395}, {0x1f45c, 396}, {0x1f45d, 397}, {0x1f45e, 398}, - {0x1f45f, 399}, {0x1f460, 400}, {0x1f461, 401}, {0x1f462, 402}, {0x1f463, 403}, {0x1f464, 404}, {0x1f465, 405}, - {0x1f466, 406}, {0x1f467, 407}, {0x1f468, 408}, {0x1f469, 409}, {0x1f46a, 410}, {0x1f46b, 411}, {0x1f46c, 412}, - {0x1f46d, 413}, {0x1f46e, 414}, {0x1f46f, 415}, {0x1f470, 416}, {0x1f471, 417}, {0x1f472, 418}, {0x1f473, 419}, - {0x1f474, 420}, {0x1f475, 421}, {0x1f476, 422}, {0x1f477, 423}, {0x1f478, 424}, {0x1f479, 425}, {0x1f47a, 426}, - {0x1f47b, 427}, {0x1f47c, 428}, {0x1f47d, 429}, {0x1f47e, 430}, {0x1f47f, 431}, {0x1f480, 432}, {0x1f481, 433}, - {0x1f482, 434}, {0x1f483, 435}, {0x1f484, 436}, {0x1f485, 437}, {0x1f486, 438}, {0x1f487, 439}, {0x1f488, 440}, - {0x1f489, 441}, {0x1f48a, 442}, {0x1f48b, 443}, {0x1f48c, 444}, {0x1f48d, 445}, {0x1f48e, 446}, {0x1f48f, 447}, - {0x1f490, 448}, {0x1f491, 449}, {0x1f492, 450}, {0x1f493, 451}, {0x1f494, 452}, {0x1f495, 453}, {0x1f496, 454}, - {0x1f497, 455}, {0x1f498, 456}, {0x1f499, 457}, {0x1f49a, 458}, {0x1f49b, 459}, {0x1f49c, 460}, {0x1f49d, 461}, - {0x1f49e, 462}, {0x1f49f, 463}, {0x1f4a0, 464}, {0x1f4a1, 465}, {0x1f4a2, 466}, {0x1f4a3, 467}, {0x1f4a4, 468}, - {0x1f4a5, 469}, {0x1f4a6, 470}, {0x1f4a7, 471}, {0x1f4a8, 472}, {0x1f4a9, 473}, {0x1f4aa, 474}, {0x1f4ab, 475}, - {0x1f4ac, 476}, {0x1f4ad, 477}, {0x1f4ae, 478}, {0x1f4af, 479}, {0x1f4b0, 480}, {0x1f4b1, 481}, {0x1f4b2, 482}, - {0x1f4b3, 483}, {0x1f4b4, 484}, {0x1f4b5, 485}, {0x1f4b6, 486}, {0x1f4b7, 487}, {0x1f4b8, 488}, {0x1f4b9, 489}, - {0x1f4ba, 490}, {0x1f4bb, 491}, {0x1f4bc, 492}, {0x1f4bd, 493}, {0x1f4be, 494}, {0x1f4bf, 495}, {0x1f4c0, 496}, - {0x1f4c1, 497}, {0x1f4c2, 498}, {0x1f4c3, 499}, {0x1f4c4, 500}, {0x1f4c5, 501}, {0x1f4c6, 502}, {0x1f4c7, 503}, - {0x1f4c8, 504}, {0x1f4c9, 505}, {0x1f4ca, 506}, {0x1f4cb, 507}, {0x1f4cc, 508}, {0x1f4cd, 509}, {0x1f4ce, 510}, - {0x1f4cf, 511}, {0x1f4d0, 512}, {0x1f4d1, 513}, {0x1f4d2, 514}, {0x1f4d3, 515}, {0x1f4d4, 516}, {0x1f4d5, 517}, - {0x1f4d6, 518}, {0x1f4d7, 519}, {0x1f4d8, 520}, {0x1f4d9, 521}, {0x1f4da, 522}, {0x1f4db, 523}, {0x1f4dc, 524}, - {0x1f4dd, 525}, {0x1f4de, 526}, {0x1f4df, 527}, {0x1f4e0, 528}, {0x1f4e1, 529}, {0x1f4e2, 530}, {0x1f4e3, 531}, - {0x1f4e4, 532}, {0x1f4e5, 533}, {0x1f4e6, 534}, {0x1f4e7, 535}, {0x1f4e8, 536}, {0x1f4e9, 537}, {0x1f4ea, 538}, - {0x1f4eb, 539}, {0x1f4ec, 540}, {0x1f4ed, 541}, {0x1f4ee, 542}, {0x1f4ef, 543}, {0x1f4f0, 544}, {0x1f4f1, 545}, - {0x1f4f2, 546}, {0x1f4f3, 547}, {0x1f4f4, 548}, {0x1f4f5, 549}, {0x1f4f6, 550}, {0x1f4f7, 551}, {0x1f4f8, 552}, - {0x1f4f9, 553}, {0x1f4fa, 554}, {0x1f4fb, 555}, {0x1f4fc, 556}, {0x1f4fd, 557}, {0x1f4ff, 558}, {0x1f500, 559}, - {0x1f501, 560}, {0x1f502, 561}, {0x1f503, 562}, {0x1f504, 563}, {0x1f505, 564}, {0x1f506, 565}, {0x1f507, 566}, - {0x1f508, 567}, {0x1f509, 568}, {0x1f50a, 569}, {0x1f50b, 570}, {0x1f50c, 571}, {0x1f50d, 572}, {0x1f50e, 573}, - {0x1f50f, 574}, {0x1f510, 575}, {0x1f511, 576}, {0x1f512, 577}, {0x1f513, 578}, {0x1f514, 579}, {0x1f515, 580}, - {0x1f516, 581}, {0x1f517, 582}, {0x1f518, 583}, {0x1f519, 584}, {0x1f51a, 585}, {0x1f51b, 586}, {0x1f51c, 587}, - {0x1f51d, 588}, {0x1f51e, 589}, {0x1f51f, 590}, {0x1f520, 591}, {0x1f521, 592}, {0x1f522, 593}, {0x1f523, 594}, - {0x1f524, 595}, {0x1f525, 596}, {0x1f526, 597}, {0x1f527, 598}, {0x1f528, 599}, {0x1f529, 600}, {0x1f52a, 601}, - {0x1f52b, 602}, {0x1f52c, 603}, {0x1f52d, 604}, {0x1f52e, 605}, {0x1f52f, 606}, {0x1f530, 607}, {0x1f531, 608}, - {0x1f532, 609}, {0x1f533, 610}, {0x1f534, 611}, {0x1f535, 612}, {0x1f536, 613}, {0x1f537, 614}, {0x1f538, 615}, - {0x1f539, 616}, {0x1f53a, 617}, {0x1f53b, 618}, {0x1f53c, 619}, {0x1f53d, 620}, {0x1f549, 621}, {0x1f54a, 622}, - {0x1f54b, 623}, {0x1f54c, 624}, {0x1f54d, 625}, {0x1f54e, 626}, {0x1f550, 627}, {0x1f551, 628}, {0x1f552, 629}, - {0x1f553, 630}, {0x1f554, 631}, {0x1f555, 632}, {0x1f556, 633}, {0x1f557, 634}, {0x1f558, 635}, {0x1f559, 636}, - {0x1f55a, 637}, {0x1f55b, 638}, {0x1f55c, 639}, {0x1f55d, 640}, {0x1f55e, 641}, {0x1f55f, 642}, {0x1f560, 643}, - {0x1f561, 644}, {0x1f562, 645}, {0x1f563, 646}, {0x1f564, 647}, {0x1f565, 648}, {0x1f566, 649}, {0x1f567, 650}, - {0x1f56f, 651}, {0x1f570, 652}, {0x1f573, 653}, {0x1f574, 654}, {0x1f575, 655}, {0x1f576, 656}, {0x1f577, 657}, - {0x1f578, 658}, {0x1f579, 659}, {0x1f57a, 660}, {0x1f587, 661}, {0x1f58a, 662}, {0x1f58b, 663}, {0x1f58c, 664}, - {0x1f58d, 665}, {0x1f590, 666}, {0x1f595, 667}, {0x1f596, 668}, {0x1f5a4, 669}, {0x1f5a5, 670}, {0x1f5a8, 671}, - {0x1f5b1, 672}, {0x1f5b2, 673}, {0x1f5bc, 674}, {0x1f5c2, 675}, {0x1f5c3, 676}, {0x1f5c4, 677}, {0x1f5d1, 678}, - {0x1f5d2, 679}, {0x1f5d3, 680}, {0x1f5dc, 681}, {0x1f5dd, 682}, {0x1f5de, 683}, {0x1f5e1, 684}, {0x1f5e3, 685}, - {0x1f5e8, 686}, {0x1f5ef, 687}, {0x1f5f3, 688}, {0x1f5fa, 689}, {0x1f5fb, 690}, {0x1f5fc, 691}, {0x1f5fd, 692}, - {0x1f5fe, 693}, {0x1f5ff, 694}, {0x1f600, 695}, {0x1f601, 696}, {0x1f602, 697}, {0x1f603, 698}, {0x1f604, 699}, - {0x1f605, 700}, {0x1f606, 701}, {0x1f607, 702}, {0x1f608, 703}, {0x1f609, 704}, {0x1f60a, 705}, {0x1f60b, 706}, - {0x1f60c, 707}, {0x1f60d, 708}, {0x1f60e, 709}, {0x1f60f, 710}, {0x1f610, 711}, {0x1f611, 712}, {0x1f612, 713}, - {0x1f613, 714}, {0x1f614, 715}, {0x1f615, 716}, {0x1f616, 717}, {0x1f617, 718}, {0x1f618, 719}, {0x1f619, 720}, - {0x1f61a, 721}, {0x1f61b, 722}, {0x1f61c, 723}, {0x1f61d, 724}, {0x1f61e, 725}, {0x1f61f, 726}, {0x1f620, 727}, - {0x1f621, 728}, {0x1f622, 729}, {0x1f623, 730}, {0x1f624, 731}, {0x1f625, 732}, {0x1f626, 733}, {0x1f627, 734}, - {0x1f628, 735}, {0x1f629, 736}, {0x1f62a, 737}, {0x1f62b, 738}, {0x1f62c, 739}, {0x1f62d, 740}, {0x1f62e, 741}, - {0x1f62f, 742}, {0x1f630, 743}, {0x1f631, 744}, {0x1f632, 745}, {0x1f633, 746}, {0x1f634, 747}, {0x1f635, 748}, - {0x1f636, 749}, {0x1f637, 750}, {0x1f638, 751}, {0x1f639, 752}, {0x1f63a, 753}, {0x1f63b, 754}, {0x1f63c, 755}, - {0x1f63d, 756}, {0x1f63e, 757}, {0x1f63f, 758}, {0x1f640, 759}, {0x1f641, 760}, {0x1f642, 761}, {0x1f643, 762}, - {0x1f644, 763}, {0x1f645, 764}, {0x1f646, 765}, {0x1f647, 766}, {0x1f648, 767}, {0x1f649, 768}, {0x1f64a, 769}, - {0x1f64b, 770}, {0x1f64c, 771}, {0x1f64d, 772}, {0x1f64e, 773}, {0x1f64f, 774}, {0x1f680, 775}, {0x1f681, 776}, - {0x1f682, 777}, {0x1f683, 778}, {0x1f684, 779}, {0x1f685, 780}, {0x1f686, 781}, {0x1f687, 782}, {0x1f688, 783}, - {0x1f689, 784}, {0x1f68a, 785}, {0x1f68b, 786}, {0x1f68c, 787}, {0x1f68d, 788}, {0x1f68e, 789}, {0x1f68f, 790}, - {0x1f690, 791}, {0x1f691, 792}, {0x1f692, 793}, {0x1f693, 794}, {0x1f694, 795}, {0x1f695, 796}, {0x1f696, 797}, - {0x1f697, 798}, {0x1f698, 799}, {0x1f699, 800}, {0x1f69a, 801}, {0x1f69b, 802}, {0x1f69c, 803}, {0x1f69d, 804}, - {0x1f69e, 805}, {0x1f69f, 806}, {0x1f6a0, 807}, {0x1f6a1, 808}, {0x1f6a2, 809}, {0x1f6a3, 810}, {0x1f6a4, 811}, - {0x1f6a5, 812}, {0x1f6a6, 813}, {0x1f6a7, 814}, {0x1f6a8, 815}, {0x1f6a9, 816}, {0x1f6aa, 817}, {0x1f6ab, 818}, - {0x1f6ac, 819}, {0x1f6ad, 820}, {0x1f6ae, 821}, {0x1f6af, 822}, {0x1f6b0, 823}, {0x1f6b1, 824}, {0x1f6b2, 825}, - {0x1f6b3, 826}, {0x1f6b4, 827}, {0x1f6b5, 828}, {0x1f6b6, 829}, {0x1f6b7, 830}, {0x1f6b8, 831}, {0x1f6b9, 832}, - {0x1f6ba, 833}, {0x1f6bb, 834}, {0x1f6bc, 835}, {0x1f6bd, 836}, {0x1f6be, 837}, {0x1f6bf, 838}, {0x1f6c0, 839}, - {0x1f6c1, 840}, {0x1f6c2, 841}, {0x1f6c3, 842}, {0x1f6c4, 843}, {0x1f6c5, 844}, {0x1f6cb, 845}, {0x1f6cc, 846}, - {0x1f6cd, 847}, {0x1f6ce, 848}, {0x1f6cf, 849}, {0x1f6d0, 850}, {0x1f6d1, 851}, {0x1f6d2, 852}, {0x1f6d5, 853}, - {0x1f6e0, 854}, {0x1f6e1, 855}, {0x1f6e2, 856}, {0x1f6e3, 857}, {0x1f6e4, 858}, {0x1f6e5, 859}, {0x1f6e9, 860}, - {0x1f6eb, 861}, {0x1f6ec, 862}, {0x1f6f0, 863}, {0x1f6f3, 864}, {0x1f6f4, 865}, {0x1f6f5, 866}, {0x1f6f6, 867}, - {0x1f6f7, 868}, {0x1f6f8, 869}, {0x1f6f9, 870}, {0x1f6fa, 871}, {0x1f7e0, 872}, {0x1f7e1, 873}, {0x1f7e2, 874}, - {0x1f7e3, 875}, {0x1f7e4, 876}, {0x1f7e5, 877}, {0x1f7e6, 878}, {0x1f7e7, 879}, {0x1f7e8, 880}, {0x1f7e9, 881}, - {0x1f7ea, 882}, {0x1f7eb, 883}, {0x1f90d, 884}, {0x1f90e, 885}, {0x1f90f, 886}, {0x1f910, 887}, {0x1f911, 888}, - {0x1f912, 889}, {0x1f913, 890}, {0x1f914, 891}, {0x1f915, 892}, {0x1f916, 893}, {0x1f917, 894}, {0x1f918, 895}, - {0x1f919, 896}, {0x1f91a, 897}, {0x1f91b, 898}, {0x1f91c, 899}, {0x1f91d, 900}, {0x1f91e, 901}, {0x1f91f, 902}, - {0x1f920, 903}, {0x1f921, 904}, {0x1f922, 905}, {0x1f923, 906}, {0x1f924, 907}, {0x1f925, 908}, {0x1f926, 909}, - {0x1f927, 910}, {0x1f928, 911}, {0x1f929, 912}, {0x1f92a, 913}, {0x1f92b, 914}, {0x1f92c, 915}, {0x1f92d, 916}, - {0x1f92e, 917}, {0x1f92f, 918}, {0x1f930, 919}, {0x1f931, 920}, {0x1f932, 921}, {0x1f933, 922}, {0x1f934, 923}, - {0x1f935, 924}, {0x1f936, 925}, {0x1f937, 926}, {0x1f938, 927}, {0x1f939, 928}, {0x1f93a, 929}, {0x1f93c, 930}, - {0x1f93d, 931}, {0x1f93e, 932}, {0x1f93f, 933}, {0x1f940, 934}, {0x1f941, 935}, {0x1f942, 936}, {0x1f943, 937}, - {0x1f944, 938}, {0x1f945, 939}, {0x1f947, 940}, {0x1f948, 941}, {0x1f949, 942}, {0x1f94a, 943}, {0x1f94b, 944}, - {0x1f94c, 945}, {0x1f94d, 946}, {0x1f94e, 947}, {0x1f94f, 948}, {0x1f950, 949}, {0x1f951, 950}, {0x1f952, 951}, - {0x1f953, 952}, {0x1f954, 953}, {0x1f955, 954}, {0x1f956, 955}, {0x1f957, 956}, {0x1f958, 957}, {0x1f959, 958}, - {0x1f95a, 959}, {0x1f95b, 960}, {0x1f95c, 961}, {0x1f95d, 962}, {0x1f95e, 963}, {0x1f95f, 964}, {0x1f960, 965}, - {0x1f961, 966}, {0x1f962, 967}, {0x1f963, 968}, {0x1f964, 969}, {0x1f965, 970}, {0x1f966, 971}, {0x1f967, 972}, - {0x1f968, 973}, {0x1f969, 974}, {0x1f96a, 975}, {0x1f96b, 976}, {0x1f96c, 977}, {0x1f96d, 978}, {0x1f96e, 979}, - {0x1f96f, 980}, {0x1f970, 981}, {0x1f971, 982}, {0x1f973, 983}, {0x1f974, 984}, {0x1f975, 985}, {0x1f976, 986}, - {0x1f97a, 987}, {0x1f97b, 988}, {0x1f97c, 989}, {0x1f97d, 990}, {0x1f97e, 991}, {0x1f97f, 992}, {0x1f980, 993}, - {0x1f981, 994}, {0x1f982, 995}, {0x1f983, 996}, {0x1f984, 997}, {0x1f985, 998}, {0x1f986, 999}, {0x1f987, 1000}, - {0x1f988, 1001}, {0x1f989, 1002}, {0x1f98a, 1003}, {0x1f98b, 1004}, {0x1f98c, 1005}, {0x1f98d, 1006}, {0x1f98e, 1007}, - {0x1f98f, 1008}, {0x1f990, 1009}, {0x1f991, 1010}, {0x1f992, 1011}, {0x1f993, 1012}, {0x1f994, 1013}, {0x1f995, 1014}, - {0x1f996, 1015}, {0x1f997, 1016}, {0x1f998, 1017}, {0x1f999, 1018}, {0x1f99a, 1019}, {0x1f99b, 1020}, {0x1f99c, 1021}, - {0x1f99d, 1022}, {0x1f99e, 1023}, {0x1f99f, 1024}, {0x1f9a0, 1025}, {0x1f9a1, 1026}, {0x1f9a2, 1027}, {0x1f9a5, 1028}, - {0x1f9a6, 1029}, {0x1f9a7, 1030}, {0x1f9a8, 1031}, {0x1f9a9, 1032}, {0x1f9aa, 1033}, {0x1f9ae, 1034}, {0x1f9af, 1035}, - {0x1f9b0, 1036}, {0x1f9b1, 1037}, {0x1f9b2, 1038}, {0x1f9b3, 1039}, {0x1f9b4, 1040}, {0x1f9b5, 1041}, {0x1f9b6, 1042}, - {0x1f9b7, 1043}, {0x1f9b8, 1044}, {0x1f9b9, 1045}, {0x1f9ba, 1046}, {0x1f9bb, 1047}, {0x1f9bc, 1048}, {0x1f9bd, 1049}, - {0x1f9be, 1050}, {0x1f9bf, 1051}, {0x1f9c0, 1052}, {0x1f9c1, 1053}, {0x1f9c2, 1054}, {0x1f9c3, 1055}, {0x1f9c4, 1056}, - {0x1f9c5, 1057}, {0x1f9c6, 1058}, {0x1f9c7, 1059}, {0x1f9c8, 1060}, {0x1f9c9, 1061}, {0x1f9ca, 1062}, {0x1f9cd, 1063}, - {0x1f9ce, 1064}, {0x1f9cf, 1065}, {0x1f9d0, 1066}, {0x1f9d1, 1067}, {0x1f9d2, 1068}, {0x1f9d3, 1069}, {0x1f9d4, 1070}, - {0x1f9d5, 1071}, {0x1f9d6, 1072}, {0x1f9d7, 1073}, {0x1f9d8, 1074}, {0x1f9d9, 1075}, {0x1f9da, 1076}, {0x1f9db, 1077}, - {0x1f9dc, 1078}, {0x1f9dd, 1079}, {0x1f9de, 1080}, {0x1f9df, 1081}, {0x1f9e0, 1082}, {0x1f9e1, 1083}, {0x1f9e2, 1084}, - {0x1f9e3, 1085}, {0x1f9e4, 1086}, {0x1f9e5, 1087}, {0x1f9e6, 1088}, {0x1f9e7, 1089}, {0x1f9e8, 1090}, {0x1f9e9, 1091}, - {0x1f9ea, 1092}, {0x1f9eb, 1093}, {0x1f9ec, 1094}, {0x1f9ed, 1095}, {0x1f9ee, 1096}, {0x1f9ef, 1097}, {0x1f9f0, 1098}, - {0x1f9f1, 1099}, {0x1f9f2, 1100}, {0x1f9f3, 1101}, {0x1f9f4, 1102}, {0x1f9f5, 1103}, {0x1f9f6, 1104}, {0x1f9f7, 1105}, - {0x1f9f8, 1106}, {0x1f9f9, 1107}, {0x1f9fa, 1108}, {0x1f9fb, 1109}, {0x1f9fc, 1110}, {0x1f9fd, 1111}, {0x1f9fe, 1112}, - {0x1f9ff, 1113}, {0x1fa70, 1114}, {0x1fa71, 1115}, {0x1fa72, 1116}, {0x1fa73, 1117}, {0x1fa78, 1118}, {0x1fa79, 1119}, - {0x1fa7a, 1120}, {0x1fa80, 1121}, {0x1fa81, 1122}, {0x1fa82, 1123}, {0x1fa90, 1124}, {0x1fa91, 1125}, {0x1fa92, 1126}, - {0x1fa93, 1127}, {0x1fa94, 1128}, {0x1fa95, 1129}, {0x203c, 1130}, {0x2049, 1131}, {0x20e3, 1132}, {0x2122, 1133}, - {0x2139, 1134}, {0x2194, 1135}, {0x2195, 1136}, {0x2196, 1137}, {0x2197, 1138}, {0x2198, 1139}, {0x2199, 1140}, - {0x21a9, 1141}, {0x21aa, 1142}, {0x231a, 1143}, {0x231b, 1144}, {0x2328, 1145}, {0x23cf, 1146}, {0x23e9, 1147}, - {0x23ea, 1148}, {0x23eb, 1149}, {0x23ec, 1150}, {0x23ed, 1151}, {0x23ee, 1152}, {0x23ef, 1153}, {0x23f0, 1154}, - {0x23f1, 1155}, {0x23f2, 1156}, {0x23f3, 1157}, {0x23f8, 1158}, {0x23f9, 1159}, {0x23fa, 1160}, {0x24c2, 1161}, - {0x25aa, 1162}, {0x25ab, 1163}, {0x25b6, 1164}, {0x25c0, 1165}, {0x25fb, 1166}, {0x25fc, 1167}, {0x25fd, 1168}, - {0x25fe, 1169}, {0x2600, 1170}, {0x2601, 1171}, {0x2602, 1172}, {0x2603, 1173}, {0x2604, 1174}, {0x260e, 1175}, - {0x2611, 1176}, {0x2614, 1177}, {0x2615, 1178}, {0x2618, 1179}, {0x261d, 1180}, {0x2620, 1181}, {0x2622, 1182}, - {0x2623, 1183}, {0x2626, 1184}, {0x262a, 1185}, {0x262e, 1186}, {0x262f, 1187}, {0x2638, 1188}, {0x2639, 1189}, - {0x263a, 1190}, {0x2640, 1191}, {0x2642, 1192}, {0x2648, 1193}, {0x2649, 1194}, {0x264a, 1195}, {0x264b, 1196}, - {0x264c, 1197}, {0x264d, 1198}, {0x264e, 1199}, {0x264f, 1200}, {0x2650, 1201}, {0x2651, 1202}, {0x2652, 1203}, - {0x2653, 1204}, {0x265f, 1205}, {0x2660, 1206}, {0x2663, 1207}, {0x2665, 1208}, {0x2666, 1209}, {0x2668, 1210}, - {0x267b, 1211}, {0x267e, 1212}, {0x267f, 1213}, {0x2692, 1214}, {0x2693, 1215}, {0x2694, 1216}, {0x2695, 1217}, - {0x2696, 1218}, {0x2697, 1219}, {0x2699, 1220}, {0x269b, 1221}, {0x269c, 1222}, {0x26a0, 1223}, {0x26a1, 1224}, - {0x26aa, 1225}, {0x26ab, 1226}, {0x26b0, 1227}, {0x26b1, 1228}, {0x26bd, 1229}, {0x26be, 1230}, {0x26c4, 1231}, - {0x26c5, 1232}, {0x26c8, 1233}, {0x26ce, 1234}, {0x26cf, 1235}, {0x26d1, 1236}, {0x26d3, 1237}, {0x26d4, 1238}, - {0x26e9, 1239}, {0x26ea, 1240}, {0x26f0, 1241}, {0x26f1, 1242}, {0x26f2, 1243}, {0x26f3, 1244}, {0x26f4, 1245}, - {0x26f5, 1246}, {0x26f7, 1247}, {0x26f8, 1248}, {0x26f9, 1249}, {0x26fa, 1250}, {0x26fd, 1251}, {0x2702, 1252}, - {0x2705, 1253}, {0x2708, 1254}, {0x2709, 1255}, {0x270a, 1256}, {0x270b, 1257}, {0x270c, 1258}, {0x270d, 1259}, - {0x270f, 1260}, {0x2712, 1261}, {0x2714, 1262}, {0x2716, 1263}, {0x271d, 1264}, {0x2721, 1265}, {0x2728, 1266}, - {0x2733, 1267}, {0x2734, 1268}, {0x2744, 1269}, {0x2747, 1270}, {0x274c, 1271}, {0x274e, 1272}, {0x2753, 1273}, - {0x2754, 1274}, {0x2755, 1275}, {0x2757, 1276}, {0x2763, 1277}, {0x2764, 1278}, {0x2795, 1279}, {0x2796, 1280}, - {0x2797, 1281}, {0x27a1, 1282}, {0x27b0, 1283}, {0x27bf, 1284}, {0x2934, 1285}, {0x2935, 1286}, {0x2b05, 1287}, - {0x2b06, 1288}, {0x2b07, 1289}, {0x2b1b, 1290}, {0x2b1c, 1291}, {0x2b50, 1292}, {0x2b55, 1293}, {0x3030, 1294}, - {0x303d, 1295}, {0x3297, 1296}, {0x3299, 1297}, - }; + public static Dictionary emojiLookupTable { + get { + return configuration.emojiLookupTable; + } + } - public static readonly HashSet SingleCharEmojiCodePoints = new HashSet { - 0x203c, 0x2049, 0x20e3, 0x2122, 0x2139, 0x2194, 0x2195, 0x2196, 0x2197, 0x2198, 0x2199, 0x21a9, - 0x21aa, 0x231a, 0x231b, 0x2328, 0x23cf, 0x23e9, 0x23ea, 0x23eb, 0x23ec, 0x23ed, 0x23ee, 0x23ef, - 0x23f0, 0x23f1, 0x23f2, 0x23f3, 0x23f8, 0x23f9, 0x23fa, 0x24c2, 0x25aa, 0x25ab, 0x25b6, 0x25c0, - 0x25fb, 0x25fc, 0x25fd, 0x25fe, 0x2600, 0x2601, 0x2602, 0x2603, 0x2604, 0x260e, 0x2611, 0x2614, - 0x2615, 0x2618, 0x261d, 0x2620, 0x2622, 0x2623, 0x2626, 0x262a, 0x262e, 0x262f, 0x2638, 0x2639, - 0x263a, 0x2640, 0x2642, 0x2648, 0x2649, 0x264a, 0x264b, 0x264c, 0x264d, 0x264e, 0x264f, 0x2650, - 0x2651, 0x2652, 0x2653, 0x265f, 0x2660, 0x2663, 0x2665, 0x2666, 0x2668, 0x267b, 0x267e, 0x267f, - 0x2692, 0x2693, 0x2694, 0x2695, 0x2696, 0x2697, 0x2699, 0x269b, 0x269c, 0x26a0, 0x26a1, 0x26aa, - 0x26ab, 0x26b0, 0x26b1, 0x26bd, 0x26be, 0x26c4, 0x26c5, 0x26c8, 0x26ce, 0x26cf, 0x26d1, 0x26d3, - 0x26d4, 0x26e9, 0x26ea, 0x26f0, 0x26f1, 0x26f2, 0x26f3, 0x26f4, 0x26f5, 0x26f7, 0x26f8, 0x26f9, - 0x26fa, 0x26fd, 0x2702, 0x2705, 0x2708, 0x2709, 0x270a, 0x270b, 0x270c, 0x270d, 0x270f, 0x2712, - 0x2714, 0x2716, 0x271d, 0x2721, 0x2728, 0x2733, 0x2734, 0x2744, 0x2747, 0x274c, 0x274e, 0x2753, - 0x2754, 0x2755, 0x2757, 0x2763, 0x2764, 0x2795, 0x2796, 0x2797, 0x27a1, 0x27b0, 0x27bf, 0x2934, - 0x2935, 0x2b05, 0x2b06, 0x2b07, 0x2b1b, 0x2b1c, 0x2b50, 0x2b55, 0x3030, 0x303d, 0x3297, 0x3299 - }; + public static int rowCount { + get { return configuration.spriteSheetNumberOfRows; } + } - public const int rowCount = 36; - public const int colCount = 37; + public static int colCount { + get { return configuration.spriteSheetNumberOfColumns; } + } + public static float advanceFactor = 1.3f; public static float sizeFactor = 1.2f; + public const int emptyEmojiCode = 0xfe0f; public static Rect getMinMaxRect(float fontSize, float ascent, float descent) { return Rect.fromLTWH((advanceFactor - sizeFactor) / 2 * fontSize, @@ -245,6 +487,13 @@ public static Rect getMinMaxRect(float fontSize, float ascent, float descent) { public static Rect getUVRect(int code) { bool exist = emojiLookupTable.TryGetValue(code, out int index); + if(!exist) { + exist = emojiLookupTable.TryGetValue(emptyEmojiCode, out index); + D.assert(() => { + Debug.LogWarning($"Unrecognized unicode for emoji {code:x}"); + return true; + }); + } if (exist) { return Rect.fromLTWH( (index % colCount) * (1.0f / colCount), @@ -252,10 +501,6 @@ public static Rect getUVRect(int code) { 1.0f / colCount, 1.0f / rowCount); } - D.assert(() => { - Debug.LogWarning($"Unrecognized unicode for emoji {code:x}"); - return true; - }); return Rect.fromLTWH(0, 0, 0, 0); } @@ -264,11 +509,11 @@ public static bool isSingleCharEmoji(int c) { } public static bool isSingleCharNonEmptyEmoji(int c) { - return SingleCharEmojiCodePoints.Contains(c); + return c <= 0xffff && emojiLookupTable.ContainsKey(c); } public static bool isEmptyEmoji(int c) { - return c == 0xFE0F; + return c == emptyEmojiCode && !emojiLookupTable.ContainsKey(c); } public static List splitByEmoji(string text) { diff --git a/Samples/MaterialSample/DividerButton.cs b/Samples/MaterialSample/DividerButton.cs deleted file mode 100644 index 449faf43..00000000 --- a/Samples/MaterialSample/DividerButton.cs +++ /dev/null @@ -1,92 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.engine; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsSample { - public class DividerButton : UIWidgetsSamplePanel { - - protected override Widget createWidget() { - return new WidgetsApp( - home: new DemoApp(), - pageRouteBuilder: this.pageRouteBuilder); - } - - public class DemoApp : StatefulWidget { - public DemoApp(Key key = null) : base(key) { - } - - public override State createState() { - return new _DemoAppState(); - } - } - - public class _DemoAppState : State { - string title = "Hello"; - string subtitle = "World"; - TextEditingController controller = new TextEditingController(""); - - public override Widget build(BuildContext context) { - return new Container( - height: 200, - padding: EdgeInsets.all(10), - decoration: new BoxDecoration( - color: new Color(0xFFEF1F7F), - border: Border.all(color: Color.fromARGB(255, 0xDF, 0x10, 0x70), width: 5), - borderRadius: BorderRadius.all(20) - ), - child: new Center( - child: new Column( - children: new List() { - new Text(this.title), - new Divider(), - new Text(this.subtitle), - new Divider(), - new Container( - width: 500, - decoration: new BoxDecoration(border: Border.all(new Color(0xFF00FF00), 1)), - child: new EditableText( - controller: this.controller, - focusNode: new FocusNode(), - style: new TextStyle( - fontSize: 18, - height: 1.5f, - color: new Color(0xFFFF89FD)), - cursorColor: Color.fromARGB(255, 0, 0, 0) - ) - ), - new Divider(), - new ButtonBar( - children: new List { - new FlatButton( - onPressed: () => { - this.setState(() => { this.title = this.controller.text; }); - }, - padding: EdgeInsets.all(5.0f), - child: new Center( - child: new Text("Set Title") - ) - ), - new RaisedButton( - onPressed: () => { - this.setState(() => { this.subtitle = this.controller.text; }); - }, - padding: EdgeInsets.all(5.0f), - child: new Center( - child: new Text("Set Subtitle") - ) - ) - } - ) - } - ) - ) - ); - } - } - } -} \ No newline at end of file diff --git a/Samples/MaterialSample/DividerButton.cs.meta b/Samples/MaterialSample/DividerButton.cs.meta deleted file mode 100644 index b50b8871..00000000 --- a/Samples/MaterialSample/DividerButton.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7d02ebc8543484a84b26e073e5ec501f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample.meta b/Samples/ReduxSample.meta deleted file mode 100644 index 744061b1..00000000 --- a/Samples/ReduxSample.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5d9b41f3c48f94f93b5aaf521adbe0bf -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample/.sample.json b/Samples/ReduxSample/.sample.json deleted file mode 100644 index 39ad4031..00000000 --- a/Samples/ReduxSample/.sample.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "displayName":"Redux Sample", - "description": "Sample usage of Redux & UIWidgets", - "createSeparatePackage": false -} diff --git a/Samples/ReduxSample/CounterApp.meta b/Samples/ReduxSample/CounterApp.meta deleted file mode 100644 index 7b58fbd2..00000000 --- a/Samples/ReduxSample/CounterApp.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 97e1cfc4dc13449d3a13f106893e44cd -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample/CounterApp/CounterApp.unity b/Samples/ReduxSample/CounterApp/CounterApp.unity deleted file mode 100644 index ce61cfed..00000000 --- a/Samples/ReduxSample/CounterApp/CounterApp.unity +++ /dev/null @@ -1,503 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657892, g: 0.4964127, b: 0.5748172, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &147477927 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 147477931} - - component: {fileID: 147477930} - - component: {fileID: 147477929} - - component: {fileID: 147477928} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &147477928 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 147477927} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &147477929 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 147477927} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &147477930 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 147477927} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &147477931 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 147477927} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1059242950} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!1 &148280213 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 148280216} - - component: {fileID: 148280215} - - component: {fileID: 148280214} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &148280214 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 148280213} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &148280215 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 148280213} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &148280216 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 148280213} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1059242949 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1059242950} - - component: {fileID: 1059242952} - - component: {fileID: 1059242951} - m_Layer: 5 - m_Name: GameObject - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1059242950 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1059242949} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 147477931} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 300, y: 200} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1059242951 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1059242949} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1df7452b5a8dd478ca8988b48502efe1, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 ---- !u!222 &1059242952 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1059242949} - m_CullTransparentMesh: 0 ---- !u!1 &1660260751 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1660260753} - - component: {fileID: 1660260752} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &1660260752 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1660260751} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &1660260753 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1660260751} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &1941984212 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1941984215} - - component: {fileID: 1941984214} - - component: {fileID: 1941984213} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1941984213 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1941984212} - m_Enabled: 1 ---- !u!20 &1941984214 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1941984212} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1941984215 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1941984212} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Samples/ReduxSample/CounterApp/CounterApp.unity.meta b/Samples/ReduxSample/CounterApp/CounterApp.unity.meta deleted file mode 100644 index 72bb8a7a..00000000 --- a/Samples/ReduxSample/CounterApp/CounterApp.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b223e0fe089d54420b281da7ec2b7420 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample/CounterApp/CounterAppSample.cs b/Samples/ReduxSample/CounterApp/CounterAppSample.cs deleted file mode 100644 index fa9a503b..00000000 --- a/Samples/ReduxSample/CounterApp/CounterAppSample.cs +++ /dev/null @@ -1,113 +0,0 @@ -using System; -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.Redux; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace Unity.UIWidgets.Sample.Redux { - public class CounterAppSample : UIWidgetsSample.UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new WidgetsApp( - home: new CounterApp(), - pageRouteBuilder: this.pageRouteBuilder); - } - } - - [Serializable] - public class CouterState { - public int count; - - public CouterState(int count = 0) { - this.count = count; - } - } - - [Serializable] - public class CounterIncAction { - public int amount; - } - - public class CounterApp : StatelessWidget { - public override Widget build(BuildContext context) { - var store = new Store(reduce, new CouterState(), - ReduxLogging.create()); - return new StoreProvider(store, this.createWidget()); - } - - public static CouterState reduce(CouterState state, object action) { - var inc = action as CounterIncAction; - if (inc == null) { - return state; - } - - return new CouterState(inc.amount + state.count); - } - - Widget createWidget() { - return new Container( - height: 200.0f, - padding: EdgeInsets.all(10), - decoration: new BoxDecoration( - color: new Color(0xFF7F7F7F), - border: Border.all(color: Color.fromARGB(255, 255, 0, 0), width: 5), - borderRadius: BorderRadius.all(2)), - child: new Column( - children: new List() { - new StoreConnector( - converter: (state) => $"Count:{state.count}", - builder: (context, countText, dispatcher) => new Text(countText, style: new TextStyle( - fontSize: 20, fontWeight: FontWeight.w700 - )), - pure: true - ), - new StoreConnector( - converter: (state) => null, - builder: (context, _, dispatcher) => new CustomButton( - backgroundColor: Color.fromARGB(255, 0, 204, 204), - padding: EdgeInsets.all(10), - child: new Text("Add", style: new TextStyle( - fontSize: 16, color: Color.fromARGB(255, 255, 255, 255) - )), onPressed: () => { dispatcher.dispatch(new CounterIncAction() {amount = 1}); }), - pure: true - ), - } - ) - ); - } - } - - public class CustomButton : StatelessWidget { - public CustomButton( - Key key = null, - GestureTapCallback onPressed = null, - EdgeInsets padding = null, - Color backgroundColor = null, - Widget child = null - ) : base(key: key) { - this.onPressed = onPressed; - this.padding = padding ?? EdgeInsets.all(8.0f); - this.backgroundColor = backgroundColor; - this.child = child; - } - - public readonly GestureTapCallback onPressed; - public readonly EdgeInsets padding; - public readonly Widget child; - public readonly Color backgroundColor; - - public override Widget build(BuildContext context) { - return new GestureDetector( - onTap: this.onPressed, - child: new Container( - padding: this.padding, - decoration: new BoxDecoration(color: this.backgroundColor), - child: this.child - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/ReduxSample/CounterApp/CounterAppSample.cs.meta b/Samples/ReduxSample/CounterApp/CounterAppSample.cs.meta deleted file mode 100644 index 66524ae6..00000000 --- a/Samples/ReduxSample/CounterApp/CounterAppSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 1df7452b5a8dd478ca8988b48502efe1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample/ObjectFinder.meta b/Samples/ReduxSample/ObjectFinder.meta deleted file mode 100644 index 4dcc57ba..00000000 --- a/Samples/ReduxSample/ObjectFinder.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9b02ce0cc0eb64ae7bce356d7d003e6d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample/ObjectFinder/FinderGameObject.cs b/Samples/ReduxSample/ObjectFinder/FinderGameObject.cs deleted file mode 100644 index 78de465e..00000000 --- a/Samples/ReduxSample/ObjectFinder/FinderGameObject.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace Unity.UIWidgets.Sample.Redux.ObjectFinder { - public class FinderGameObject : MonoBehaviour { - // Start is called before the first frame update - void Start() { - this.GetComponent().material.color = new Color(1.0f, 0, 0, 1.0f); - } - - // Update is called once per frame - void Update() { - var selectedId = StoreProvider.store.getState().selected; - if (selectedId == this.GetInstanceID()) { - this.GetComponent().material.color = new Color(1.0f, 0, 0, 1.0f); - } - else { - this.GetComponent().material.color = new Color(1.0f, 1.0f, 1.0f, 1.0f); - } - } - - void OnMouseDown() { - StoreProvider.store.dispatcher.dispatch(new SelectObjectAction() {id = this.GetInstanceID()}); - } - } -} \ No newline at end of file diff --git a/Samples/ReduxSample/ObjectFinder/FinderGameObject.cs.meta b/Samples/ReduxSample/ObjectFinder/FinderGameObject.cs.meta deleted file mode 100644 index 8212230b..00000000 --- a/Samples/ReduxSample/ObjectFinder/FinderGameObject.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 969624a932ff84fe09dc38f9460223fb -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample/ObjectFinder/ObjectFinderApp.cs b/Samples/ReduxSample/ObjectFinder/ObjectFinderApp.cs deleted file mode 100644 index fe39d435..00000000 --- a/Samples/ReduxSample/ObjectFinder/ObjectFinderApp.cs +++ /dev/null @@ -1,223 +0,0 @@ -using System; -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.Redux; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace Unity.UIWidgets.Sample.Redux.ObjectFinder { - public class ObjectFinderApp : UIWidgetsSample.UIWidgetsSamplePanel { - public ObjectFinderApp() { - } - - protected override Widget createWidget() { - return new WidgetsApp( - home: new StoreProvider(StoreProvider.store, this.createRootWidget()), - pageRouteBuilder: this.pageRouteBuilder); - } - - Widget createRootWidget() { - return new StoreConnector( - pure: true, - builder: (context, viewModel, dispatcher) => new ObjectFinderAppWidget( - model: viewModel, - doSearch: (text) => dispatcher.dispatch(SearchAction.create(text)), - onSelect: (id) => dispatcher.dispatch(new SelectObjectAction() {id = id}), - title: this.gameObject.name - ), - converter: (state) => new ObjectFinderAppWidgetModel() { - objects = state.objects, - selected = state.selected, - } - ); - } - } - - - public delegate void onFindCallback(string keyword); - - public class ObjectFinderAppWidgetModel : IEquatable { - public int selected; - public List objects; - - public bool Equals(ObjectFinderAppWidgetModel other) { - if (ReferenceEquals(null, other)) { - return false; - } - if (ReferenceEquals(this, other)) { - return true; - } - return this.selected == other.selected && this.objects.equalsList(other.objects); - } - - public override bool Equals(object obj) { - if (ReferenceEquals(null, obj)) { - return false; - } - if (ReferenceEquals(this, obj)) { - return true; - } - if (obj.GetType() != this.GetType()) { - return false; - } - return this.Equals((ObjectFinderAppWidgetModel) obj); - } - - public override int GetHashCode() { - unchecked { - return (this.selected * 397) ^ this.objects.hashList(); - } - } - - public static bool operator ==(ObjectFinderAppWidgetModel left, ObjectFinderAppWidgetModel right) { - return Equals(left, right); - } - - public static bool operator !=(ObjectFinderAppWidgetModel left, ObjectFinderAppWidgetModel right) { - return !Equals(left, right); - } - } - - public class ObjectFinderAppWidget : StatefulWidget { - public readonly List objectInfos; - public readonly int selected; - - public readonly Action doSearch; - - public readonly Action onSelect; - - public readonly string title; - - public ObjectFinderAppWidget( - ObjectFinderAppWidgetModel model = null, - Action doSearch = null, - Action onSelect = null, - string title = null, - Key key = null) : base(key) { - this.objectInfos = model.objects; - this.selected = model.selected; - this.doSearch = doSearch; - this.onSelect = onSelect; - this.title = title; - } - - public override State createState() { - return new _ObjectFinderAppWidgetState(); - } - } - - public class _ObjectFinderAppWidgetState : State { - TextEditingController _controller; - - FocusNode _focusNode; - - public override void initState() { - base.initState(); - this._controller = new TextEditingController(""); - this._focusNode = new FocusNode(); - if (this.widget.doSearch != null) { - Window.instance.scheduleMicrotask(() => this.widget.doSearch("")); - } - - this._controller.addListener(this.textChange); - } - - public override void dispose() { - this._focusNode.dispose(); - this._controller.removeListener(this.textChange); - base.dispose(); - } - - public override Widget build(BuildContext context) { - Debug.Log("build ObjectFinderAppWidget"); - - return new Container( - padding: EdgeInsets.all(10), - decoration: new BoxDecoration(color: new Color(0x4FFFFFFF), - border: Border.all(color: Color.fromARGB(255, 255, 0, 0), width: 5), - borderRadius: BorderRadius.all(2)), - child: new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: new List() { - this._buildTitle(), - this._buildSearchInput(), - this._buildResultCount(), - this._buildResults(), - } - ) - ); - } - - void textChange() { - if (this.widget.doSearch != null) { - this.widget.doSearch(this._controller.text); - } - } - - Widget _buildTitle() { - return new Text(this.widget.title, textAlign: TextAlign.center, - style: new TextStyle(fontSize: 20, height: 1.5f)); - } - - Widget _buildSearchInput() { - return new Row( - children: new List { - new Text("Search:"), - new Flexible(child: - new Container( - margin: EdgeInsets.only(left: 8), - decoration: new BoxDecoration(border: Border.all(new Color(0xFF000000), 1)), - padding: EdgeInsets.only(left: 8, right: 8), - child: new EditableText( - selectionControls: MaterialUtils.materialTextSelectionControls, - backgroundCursorColor: Colors.transparent, - controller: this._controller, - focusNode: this._focusNode, - style: new TextStyle( - fontSize: 18, - height: 1.5f - ), - cursorColor: Color.fromARGB(255, 0, 0, 0) - ) - ) - ) - } - ); - } - - Widget _buildResultItem(GameObjectInfo obj) { - return new GestureDetector(child: - new Container( - key: new ValueKey(obj.id), - child: new Text(obj.name), - padding: EdgeInsets.all(8), - color: this.widget.selected == obj.id ? new Color(0xFFFF0000) : new Color(0) - ), onTap: () => { - if (this.widget.onSelect != null) { - this.widget.onSelect(obj.id); - } - }); - } - - Widget _buildResultCount() { - return new Text($"Total Results:{this.widget.objectInfos.Count}", - style: new TextStyle(height: 3.0f, fontSize: 12)); - } - - Widget _buildResults() { - List rows = new List(); - this.widget.objectInfos.ForEach(obj => { rows.Add(this._buildResultItem(obj)); }); - return new Flexible( - child: new ListView( - children: rows, - physics: new AlwaysScrollableScrollPhysics()) - ); - } - } -} \ No newline at end of file diff --git a/Samples/ReduxSample/ObjectFinder/ObjectFinderApp.cs.meta b/Samples/ReduxSample/ObjectFinder/ObjectFinderApp.cs.meta deleted file mode 100644 index 0a517699..00000000 --- a/Samples/ReduxSample/ObjectFinder/ObjectFinderApp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3e8946ae1a1b9498eb3eaa2cc6fc9b23 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample/ObjectFinder/ObjectFinderScene.unity b/Samples/ReduxSample/ObjectFinder/ObjectFinderScene.unity deleted file mode 100644 index 99fab765..00000000 --- a/Samples/ReduxSample/ObjectFinder/ObjectFinderScene.unity +++ /dev/null @@ -1,1743 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657892, g: 0.4964127, b: 0.5748172, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &384523370 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 384523374} - - component: {fileID: 384523373} - - component: {fileID: 384523372} - - component: {fileID: 384523371} - - component: {fileID: 384523375} - m_Layer: 0 - m_Name: Sphere (3) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!135 &384523371 -SphereCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 384523370} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Radius: 0.5 - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &384523372 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 384523370} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &384523373 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 384523370} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &384523374 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 384523370} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 5, y: 5, z: 1} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 15 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &384523375 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 384523370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &565543731 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 565543735} - - component: {fileID: 565543734} - - component: {fileID: 565543733} - - component: {fileID: 565543732} - - component: {fileID: 565543736} - m_Layer: 0 - m_Name: Cube (2) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!65 &565543732 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 565543731} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &565543733 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 565543731} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &565543734 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 565543731} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &565543735 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 565543731} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -3, y: -2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 7 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &565543736 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 565543731} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &603416551 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 603416555} - - component: {fileID: 603416554} - - component: {fileID: 603416553} - - component: {fileID: 603416552} - - component: {fileID: 603416556} - m_Layer: 0 - m_Name: Sphere (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!135 &603416552 -SphereCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 603416551} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Radius: 0.5 - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &603416553 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 603416551} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &603416554 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 603416551} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &603416555 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 603416551} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 4, y: 5, z: 1} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 13 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &603416556 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 603416551} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &647588331 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 647588333} - - component: {fileID: 647588332} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &647588332 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 647588331} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &647588333 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 647588331} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &734465800 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 734465801} - - component: {fileID: 734465803} - - component: {fileID: 734465802} - m_Layer: 5 - m_Name: Object Finder - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &734465801 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 734465800} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 2.2167413} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1343734726} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 0, y: 0.5} - m_AnchoredPosition: {x: 180, y: 0} - m_SizeDelta: {x: 300, y: 400} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &734465802 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 734465800} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3e8946ae1a1b9498eb3eaa2cc6fc9b23, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null ---- !u!222 &734465803 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 734465800} - m_CullTransparentMesh: 0 ---- !u!1 &767651608 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 767651612} - - component: {fileID: 767651611} - - component: {fileID: 767651610} - - component: {fileID: 767651609} - - component: {fileID: 767651613} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!65 &767651609 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 767651608} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &767651610 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 767651608} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &767651611 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 767651608} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &767651612 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 767651608} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &767651613 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 767651608} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1072507468 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1072507472} - - component: {fileID: 1072507471} - - component: {fileID: 1072507470} - - component: {fileID: 1072507469} - - component: {fileID: 1072507473} - m_Layer: 0 - m_Name: Cube (7) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!65 &1072507469 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1072507468} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1072507470 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1072507468} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1072507471 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1072507468} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1072507472 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1072507468} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 1, y: 1, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 12 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1072507473 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1072507468} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1159158897 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1159158900} - - component: {fileID: 1159158899} - - component: {fileID: 1159158898} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1159158898 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1159158897} - m_Enabled: 1 ---- !u!20 &1159158899 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1159158897} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1159158900 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1159158897} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1310826967 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1310826971} - - component: {fileID: 1310826970} - - component: {fileID: 1310826969} - - component: {fileID: 1310826968} - - component: {fileID: 1310826972} - m_Layer: 0 - m_Name: Cube (4) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!65 &1310826968 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1310826967} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1310826969 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1310826967} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1310826970 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1310826967} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1310826971 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1310826967} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -3, y: 2, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 9 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1310826972 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1310826967} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1343734722 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1343734726} - - component: {fileID: 1343734725} - - component: {fileID: 1343734724} - - component: {fileID: 1343734723} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1343734723 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1343734722} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1343734724 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1343734722} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1343734725 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1343734722} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &1343734726 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1343734722} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 734465801} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!1 &1377538370 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1377538374} - - component: {fileID: 1377538373} - - component: {fileID: 1377538372} - - component: {fileID: 1377538371} - - component: {fileID: 1377538375} - m_Layer: 0 - m_Name: Cube (5) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!65 &1377538371 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1377538370} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1377538372 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1377538370} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1377538373 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1377538370} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1377538374 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1377538370} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 4, y: -3, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 10 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1377538375 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1377538370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1393112515 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1393112519} - - component: {fileID: 1393112518} - - component: {fileID: 1393112517} - - component: {fileID: 1393112516} - - component: {fileID: 1393112520} - m_Layer: 0 - m_Name: Cube (6) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!65 &1393112516 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1393112515} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1393112517 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1393112515} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1393112518 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1393112515} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1393112519 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1393112515} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 1, y: 4, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 11 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1393112520 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1393112515} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1467859730 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1467859734} - - component: {fileID: 1467859733} - - component: {fileID: 1467859732} - - component: {fileID: 1467859731} - - component: {fileID: 1467859735} - m_Layer: 0 - m_Name: Cube (3) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!65 &1467859731 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1467859730} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1467859732 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1467859730} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1467859733 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1467859730} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1467859734 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1467859730} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 4, y: 4, z: 3} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 8 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1467859735 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1467859730} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1468246482 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1468246486} - - component: {fileID: 1468246485} - - component: {fileID: 1468246484} - - component: {fileID: 1468246483} - - component: {fileID: 1468246487} - m_Layer: 0 - m_Name: Cube (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!65 &1468246483 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1468246482} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1468246484 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1468246482} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1468246485 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1468246482} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1468246486 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1468246482} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 4, y: 2, z: 1} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1468246487 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1468246482} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1927534151 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1927534155} - - component: {fileID: 1927534154} - - component: {fileID: 1927534153} - - component: {fileID: 1927534152} - - component: {fileID: 1927534156} - m_Layer: 0 - m_Name: Sphere (2) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!135 &1927534152 -SphereCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1927534151} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Radius: 0.5 - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1927534153 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1927534151} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1927534154 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1927534151} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1927534155 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1927534151} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2, y: 3, z: 4} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 14 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1927534156 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1927534151} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1972966962 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1972966966} - - component: {fileID: 1972966965} - - component: {fileID: 1972966964} - - component: {fileID: 1972966963} - - component: {fileID: 1972966967} - m_Layer: 0 - m_Name: Sphere - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!135 &1972966963 -SphereCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1972966962} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Radius: 0.5 - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1972966964 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1972966962} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1972966965 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1972966962} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1972966966 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1972966962} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 3, y: 1, z: 2} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1972966967 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1972966962} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 969624a932ff84fe09dc38f9460223fb, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &2003825408 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2003825411} - - component: {fileID: 2003825410} - - component: {fileID: 2003825409} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &2003825409 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2003825408} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &2003825410 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2003825408} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &2003825411 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2003825408} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Samples/ReduxSample/ObjectFinder/ObjectFinderScene.unity.meta b/Samples/ReduxSample/ObjectFinder/ObjectFinderScene.unity.meta deleted file mode 100644 index 3f9cd80a..00000000 --- a/Samples/ReduxSample/ObjectFinder/ObjectFinderScene.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 27efec1d60b5b47ea892e8d510fb47e3 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample/ObjectFinder/Reducer.cs b/Samples/ReduxSample/ObjectFinder/Reducer.cs deleted file mode 100644 index a0e54d10..00000000 --- a/Samples/ReduxSample/ObjectFinder/Reducer.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.Redux; - -namespace Unity.UIWidgets.Sample.Redux.ObjectFinder { - [Serializable] - public class GameObjectInfo : IEquatable { - public int id; - public string name; - - public bool Equals(GameObjectInfo other) { - if (ReferenceEquals(null, other)) { - return false; - } - if (ReferenceEquals(this, other)) { - return true; - } - return this.id == other.id && string.Equals(this.name, other.name); - } - - public override bool Equals(object obj) { - if (ReferenceEquals(null, obj)) { - return false; - } - if (ReferenceEquals(this, obj)) { - return true; - } - if (obj.GetType() != this.GetType()) { - return false; - } - return this.Equals((GameObjectInfo) obj); - } - - public override int GetHashCode() { - unchecked { - return (this.id * 397) ^ (this.name != null ? this.name.GetHashCode() : 0); - } - } - - public static bool operator ==(GameObjectInfo left, GameObjectInfo right) { - return Equals(left, right); - } - - public static bool operator !=(GameObjectInfo left, GameObjectInfo right) { - return !Equals(left, right); - } - } - - public class FinderAppState : IEquatable { - public int selected; - public List objects; - - public FinderAppState() { - this.selected = 0; - this.objects = new List(); - } - - public bool Equals(FinderAppState other) { - if (ReferenceEquals(null, other)) { - return false; - } - if (ReferenceEquals(this, other)) { - return true; - } - return this.selected == other.selected && Equals(this.objects, other.objects); - } - - public override bool Equals(object obj) { - if (ReferenceEquals(null, obj)) { - return false; - } - if (ReferenceEquals(this, obj)) { - return true; - } - if (obj.GetType() != this.GetType()) { - return false; - } - return this.Equals((FinderAppState) obj); - } - - public override int GetHashCode() { - unchecked { - return (this.selected * 397) ^ (this.objects != null ? this.objects.GetHashCode() : 0); - } - } - - public static bool operator ==(FinderAppState left, FinderAppState right) { - return Equals(left, right); - } - - public static bool operator !=(FinderAppState left, FinderAppState right) { - return !Equals(left, right); - } - } - - public static class SearchAction { - public static ThunkAction create(string keyword) { - return new ThunkAction( - displayName: "SearchAction", - action: (dispatcher, getState) => { - var objects = UnityEngine.Object.FindObjectsOfType(typeof(FinderGameObject)).Where( - obj => keyword == "" || obj.name.ToUpper().Contains(keyword.ToUpper())).Select( - obj => new GameObjectInfo {id = obj.GetInstanceID(), name = obj.name}).ToList(); - - dispatcher.dispatch(new SearchResultAction {keyword = keyword, results = objects}); - return null; - }); - } - } - - [Serializable] - public class SearchResultAction { - public string keyword; - public List results; - } - - [Serializable] - public class SelectObjectAction { - public int id; - } - - public class ObjectFinderReducer { - public static FinderAppState Reduce(FinderAppState state, object action) { - if (action is SearchResultAction) { - var resultAction = (SearchResultAction) action; - var selected = state.selected; - if (selected != 0) { - var obj = resultAction.results.Find(o => o.id == selected); - if (obj == null) { - selected = 0; - } - } - - return new FinderAppState() { - objects = resultAction.results, - selected = state.selected, - }; - } - - if (action is SelectObjectAction) { - return new FinderAppState() { - objects = state.objects, - selected = ((SelectObjectAction) action).id, - }; - } - - return state; - } - } -} \ No newline at end of file diff --git a/Samples/ReduxSample/ObjectFinder/Reducer.cs.meta b/Samples/ReduxSample/ObjectFinder/Reducer.cs.meta deleted file mode 100644 index 6d898cbe..00000000 --- a/Samples/ReduxSample/ObjectFinder/Reducer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0a71f0cd918124d70a15139e7aaca9ac -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/ReduxSample/ObjectFinder/StoreProvider.cs b/Samples/ReduxSample/ObjectFinder/StoreProvider.cs deleted file mode 100644 index 05d95cdc..00000000 --- a/Samples/ReduxSample/ObjectFinder/StoreProvider.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Unity.UIWidgets.Redux; - -namespace Unity.UIWidgets.Sample.Redux.ObjectFinder { - public static class StoreProvider { - static Store _store; - - public static Store store { - get { - if (_store != null) { - return _store; - } - - var middlewares = new Middleware[] { - ReduxLogging.create(), - ReduxThunk.create(), - }; - _store = new Store(ObjectFinderReducer.Reduce, - new FinderAppState(), - middlewares - ); - return _store; - } - } - } -} \ No newline at end of file diff --git a/Samples/ReduxSample/ObjectFinder/StoreProvider.cs.meta b/Samples/ReduxSample/ObjectFinder/StoreProvider.cs.meta deleted file mode 100644 index 5d1b0056..00000000 --- a/Samples/ReduxSample/ObjectFinder/StoreProvider.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7eed2508558af4e7997726a61f44a9a4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample.meta b/Samples/UIWidgetSample.meta deleted file mode 100644 index 1df1375d..00000000 --- a/Samples/UIWidgetSample.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 554f0428d312c457e91dcab77ad9aa3c -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/.sample.json b/Samples/UIWidgetSample/.sample.json deleted file mode 100644 index b8933138..00000000 --- a/Samples/UIWidgetSample/.sample.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "displayName":"UIWidgetSample", - "description": "Sample usage of UI Wideget", - "createSeparatePackage": false -} diff --git a/Samples/UIWidgetSample/AntialiasSVGSample.cs b/Samples/UIWidgetSample/AntialiasSVGSample.cs deleted file mode 100644 index 2a8577c6..00000000 --- a/Samples/UIWidgetSample/AntialiasSVGSample.cs +++ /dev/null @@ -1,146 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.engine; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Canvas = Unity.UIWidgets.ui.Canvas; -using Color = Unity.UIWidgets.ui.Color; -using Gradient = Unity.UIWidgets.ui.Gradient; -using Image = Unity.UIWidgets.ui.Image; -using UIWidgetRect = Unity.UIWidgets.ui.Rect; - - -public class AntialiasSVGSample : UIWidgetsPanel { - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load("MaterialIcons-Regular"), "Material Icons"); - FontManager.instance.addFont(Resources.Load("GalleryIcons"), "GalleryIcons"); - - base.OnEnable(); - } - - protected override Widget createWidget() { - Debug.Log("[SVG Testbed Panel Created]"); - - return new SVGTestbedPanelWidget(); - } -} - -public class SVGTestbedPanelWidget : StatefulWidget { - public SVGTestbedPanelWidget(Key key = null) : base(key) { } - - public override State createState() { - return new SVGTestbedPanelWidgetState(); - } -} - -public class SVGTestbedPanelWidgetState : State { - static Texture2D texture6; - - public class CurvePainter : AbstractCustomPainter { - public override void paint(Canvas canvas, Size size) { - var paint = new Paint() - { - color = new Color(0xFFFF0000), - }; - - paint.color = Colors.yellow; - paint.style = PaintingStyle.stroke; - paint.strokeWidth = 3; - - var startPoint = new Offset(0, size.height / 6); - var controlPoint1 = new Offset(size.width / 4, 0); - var controlPoint2 = new Offset(3 * size.width / 4, 0); - var endPoint = new Offset(size.width, size.height / 6); - - var path = new Path(); - path.moveTo(startPoint.dx, startPoint.dy); - path.cubicTo( - controlPoint1.dx, controlPoint1.dy, - controlPoint2.dx, controlPoint2.dy, - endPoint.dx, endPoint.dy - ); - - path.moveTo(10, 10); - path.lineTo(90, 10); - path.lineTo(10, 90); - path.lineTo(90, 90); - path.winding(PathWinding.clockwise); - path.close(); - - path.moveTo(110, 10); - path.lineTo(190, 10); - path.lineTo(110, 90); - path.lineTo(190, 90); - path.close(); - - path.addRect(UIWidgetRect.fromLTWH(10, 25, 180, 50)); - - path.addRect(UIWidgetRect.fromLTWH(200, 0, 100, 100)); - path.addRRect(RRect.fromRectAndRadius(UIWidgetRect.fromLTWH(225, 25, 50, 50), 10)); - path.winding(PathWinding.clockwise); - path.addOval(UIWidgetRect.fromLTWH(200, 50, 100, 100)); - path.winding(PathWinding.clockwise); - - - canvas.drawPath(path, paint); - - paint = new Paint { - color = new Color(0xFFFF0000), - shader = Gradient.linear( - new Offset(0, 0), - new Offset(size.width, 200), - new List() { - Colors.red, Colors.black, Colors.green - }, null, TileMode.clamp), - }; - canvas.translate(0, 200); - canvas.drawPath(path, paint); - - canvas.translate(0, 200); - // paint.maskFilter = MaskFilter.blur(BlurStyle.normal, 5); - paint.shader = new ImageShader(new Image(texture6, true), TileMode.mirror); - canvas.drawPath(path, paint); - - canvas.translate(0, 200); - paint = new Paint { - color = new Color(0xFF00FF00), - shader = Gradient.sweep( - new Offset(size.width / 2, 100), - new List() { - Colors.red, Colors.black, Colors.green, Colors.red, - }, null, TileMode.clamp, 0 * Mathf.PI / 180, 360 * Mathf.PI / 180), - }; - canvas.drawPath(path, paint); - - - paint.shader = Gradient.radial( - new Offset(size.width / 2, 100), 200f, - new List() - { - Colors.red, Colors.black, Colors.green - }, null, TileMode.clamp); - canvas.translate(0, 200); - canvas.drawPath(path, paint); - } - - public override bool shouldRepaint(CustomPainter oldDelegate) { - return true; - } - } - - public override Widget build(BuildContext context) { - texture6 = Resources.Load("6"); - - return new SingleChildScrollView( - child: new Container( - child: new CustomPaint( - painter: new CurvePainter(), - child: new Container() - ), - height: 1500 - ) - ); - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/AntialiasSVGSample.cs.meta b/Samples/UIWidgetSample/AntialiasSVGSample.cs.meta deleted file mode 100644 index d36aac51..00000000 --- a/Samples/UIWidgetSample/AntialiasSVGSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 41696ca988ae5c44da3f545825faf3ac -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/AsScreenSample.cs b/Samples/UIWidgetSample/AsScreenSample.cs deleted file mode 100644 index e13e1c39..00000000 --- a/Samples/UIWidgetSample/AsScreenSample.cs +++ /dev/null @@ -1,570 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using Image = Unity.UIWidgets.widgets.Image; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsSample { - public class AsScreenSample : UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new WidgetsApp( - home: new AsScreenWidget(), - pageRouteBuilder: this.pageRouteBuilder); - } - - public class AsScreenWidget : StatefulWidget { - public AsScreenWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new _AsScreenState(); - } - } - - class _AsScreenState : State { - const float headerHeight = 50.0f; - - Widget _buildHeader(BuildContext context) { - return new Container( - padding: EdgeInsets.only(left: 16.0f, right: 8.0f), - height: headerHeight, - color: CLColors.header, - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - children: new List { - new Container( - child: new Text( - "All Assets", - style: new TextStyle( - fontSize: 16, - color: Color.fromARGB(100, 255, 255, 0) - ) - ) - ), - new CustomButton( - padding: EdgeInsets.only(0.0f, 0.0f, 16.0f, 0.0f), - child: new Icon( - Icons.keyboard_arrow_down, - size: 18.0f, - color: CLColors.icon2 - ) - ), - new Container( - decoration: new BoxDecoration( - color: CLColors.white, - borderRadius: BorderRadius.all(3) - ), - width: 320, - height: 36, - padding: EdgeInsets.all(10.0f), - margin: EdgeInsets.only(right: 4), - child: new EditableText( - maxLines: 1, - selectionControls: MaterialUtils.materialTextSelectionControls, - controller: new TextEditingController("Type here to search assets"), - focusNode: new FocusNode(), - style: new TextStyle( - fontSize: 16 - ), - selectionColor: Color.fromARGB(255, 255, 0, 0), - cursorColor: Color.fromARGB(255, 0, 0, 0), - backgroundCursorColor: Colors.blue - ) - ), - new Container( - decoration: new BoxDecoration( - color: CLColors.background4, - borderRadius: BorderRadius.all(2) - ), - width: 36, - height: 36, - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new CustomButton( - padding: EdgeInsets.only(8.0f, 0.0f, 8.0f, 0.0f), - child: new Icon( - Icons.search, - size: 18.0f, - color: CLColors.white - ) - ) - } - ) - ), - new Container( - margin: EdgeInsets.only(left: 16, right: 16), - child: new Text( - "Learn Game Development", - style: new TextStyle( - fontSize: 12, - color: CLColors.white - ) - ) - ), - new Container( - decoration: new BoxDecoration( - border: Border.all( - color: CLColors.white - ) - ), - margin: EdgeInsets.only(right: 16), - padding: EdgeInsets.all(4), - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new Text( - "Plus/Pro", - style: new TextStyle( - fontSize: 11, - color: CLColors.white - ) - ) - } - ) - ), - new Container( - margin: EdgeInsets.only(right: 16), - child: new Text( - "Impressive New Assets", - style: new TextStyle( - fontSize: 12, - color: CLColors.white - ) - ) - ), - new Container( - child: new Text( - "Shop On Old Store", - style: new TextStyle( - fontSize: 12, - color: CLColors.white - ) - ) - ), - } - ) - ); - } - - Widget _buildFooter(BuildContext context) { - return new Container( - color: CLColors.header, - margin: EdgeInsets.only(top: 50), - height: 90, - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - children: new List { - new Container( - margin: EdgeInsets.only(right: 10), - child: new Text( - "Copyright © 2018 Unity Technologies", - style: new TextStyle( - fontSize: 12, - color: CLColors.text9 - ) - ) - ), - new Container( - margin: EdgeInsets.only(right: 10), - child: new Text( - "All prices are exclusive of tax", - style: new TextStyle( - fontSize: 12, - color: CLColors.text9 - ) - ) - ), - new Container( - margin: EdgeInsets.only(right: 10), - child: new Text( - "Terms of Service and EULA", - style: new TextStyle( - fontSize: 12, - color: CLColors.text10 - ) - ) - ), - new Container( - child: new Text( - "Cookies", - style: new TextStyle( - fontSize: 12, - color: CLColors.text10 - ) - ) - ), - } - ) - ); - } - - Widget _buildBanner(BuildContext context) { - return new Container( - height: 450, - color: CLColors.white, - child: Image.network( - "https://assetstorev1-prd-cdn.unity3d.com/banner/9716cc07-748c-43cc-8809-10113119c97a.jpg", - fit: BoxFit.cover, - filterMode: FilterMode.Bilinear - ) - ); - } - - Widget _buildTopAssetsRow(BuildContext context, string title) { - var testCard = new AssetCard( - "AI Template", - "INVECTOR", - 45.0f, - 36.0f, - true, - "https://assetstorev1-prd-cdn.unity3d.com/key-image/76a549ae-de17-4536-bd96-4231ed20dece.jpg" - ); - return new Container( - margin: EdgeInsets.only(left: 98), - child: new Column( - children: new List { - new Container( - child: new Container( - margin: EdgeInsets.only(top: 50, bottom: 20), - child: new Row( - crossAxisAlignment: CrossAxisAlignment.baseline, - children: new List { - new Container( - child: new Text( - title, - style: new TextStyle( - fontSize: 24, - color: CLColors.black - ) - ) - ), - new Container( - margin: EdgeInsets.only(left: 15), - child: - new Text( - "See More", - style: new TextStyle( - fontSize: 16, - color: CLColors.text4 - ) - ) - ) - }) - ) - ), - new Row( - children: new List { - testCard, - testCard, - testCard, - testCard, - testCard, - testCard - } - ) - } - )); - } - - bool _onNotification(ScrollNotification notification, BuildContext context) { - return true; - } - - Widget _buildContentList(BuildContext context) { - return new NotificationListener( - onNotification: (ScrollNotification notification) => { - this._onNotification(notification, context); - return true; - }, - child: new Flexible( - child: new ListView( - physics: new AlwaysScrollableScrollPhysics(), - children: new List { - this._buildBanner(context), - this._buildTopAssetsRow(context, "Recommanded For You"), - this._buildTopAssetsRow(context, "Beach Day"), - this._buildTopAssetsRow(context, "Top Free Packages"), - this._buildTopAssetsRow(context, "Top Paid Packages"), - this._buildFooter(context) - } - ) - ) - ); - } - - public override Widget build(BuildContext context) { - var container = new Container( - color: CLColors.background3, - child: new Container( - color: CLColors.background3, - child: new Column( - children: new List { - this._buildHeader(context), - this._buildContentList(context), - } - ) - ) - ); - return container; - } - } - - public class AssetCard : StatelessWidget { - public AssetCard( - string name, - string category, - float price, - float priceDiscount, - bool showBadge, - string imageSrc - ) { - this.name = name; - this.category = category; - this.price = price; - this.priceDiscount = priceDiscount; - this.showBadge = showBadge; - this.imageSrc = imageSrc; - } - - public string name; - public string category; - public float price; - public float priceDiscount; - public bool showBadge; - public string imageSrc; - - public override Widget build(BuildContext context) { - var card = new Container( - margin: EdgeInsets.only(right: 45), - child: new Container( - child: new Column( - children: new List { - new Container( - decoration: new BoxDecoration( - color: CLColors.white, - borderRadius: BorderRadius.only(topLeft: 3, topRight: 3) - ), - width: 200, - height: 124, - child: Image.network( - this.imageSrc, - fit: BoxFit.fill - ) - ), - new Container( - color: CLColors.white, - width: 200, - height: 86, - padding: EdgeInsets.fromLTRB(14, 12, 14, 8), - child: new Column( - crossAxisAlignment: CrossAxisAlignment.baseline, - children: new List { - new Container( - height: 18, - padding: EdgeInsets.only(top: 3), - child: - new Text(this.category, - style: new TextStyle( - fontSize: 11, - color: CLColors.text5 - ) - ) - ), - new Container( - height: 20, - padding: EdgeInsets.only(top: 2), - child: - new Text(this.name, - style: new TextStyle( - fontSize: 14, - color: CLColors.text6 - ) - ) - ), - new Container( - height: 22, - padding: EdgeInsets.only(top: 4), - child: new Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: new List { - new Container( - child: new Row( - children: new List { - new Container( - margin: EdgeInsets.only(right: 10), - child: new Text( - "$" + this.price, - style: new TextStyle( - fontSize: 14, - color: CLColors.text7, - decoration: TextDecoration.lineThrough - ) - ) - ), - new Container( - child: new Text( - "$" + this.priceDiscount, - style: new TextStyle( - fontSize: 14, - color: CLColors.text8 - ) - ) - ) - }) - ), - this.showBadge - ? new Container( - width: 80, - height: 18, - color: CLColors.black, - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new Text( - "Plus/Pro", - style: new TextStyle( - fontSize: 11, - color: CLColors.white - ) - ) - } - ) - ) - : new Container() - } - ) - ) - } - ) - ) - } - ) - ) - ); - return card; - } - } - - public class EventsWaterfallScreen : StatefulWidget { - public EventsWaterfallScreen(Key key = null) : base(key: key) { - } - - public override State createState() { - return new _EventsWaterfallScreenState(); - } - } - - class _EventsWaterfallScreenState : State { - const float headerHeight = 80.0f; - - float _offsetY = 0.0f; - - Widget _buildHeader(BuildContext context) { - return new Container( - padding: EdgeInsets.only(left: 16.0f, right: 8.0f), - // color: CLColors.blue, - height: headerHeight - this._offsetY, - child: new Row( - children: new List { - new Flexible( - flex: 1, - fit: FlexFit.tight, - child: new Text( - "Today", - style: new TextStyle( - fontSize: (34.0f / headerHeight) * - (headerHeight - this._offsetY), - color: CLColors.white - ) - )), - new CustomButton( - padding: EdgeInsets.only(8.0f, 0.0f, 8.0f, 0.0f), - child: new Icon( - Icons.notifications, - size: 18.0f, - color: CLColors.icon2 - ) - ), - new CustomButton( - padding: EdgeInsets.only(8.0f, 0.0f, 16.0f, 0.0f), - child: new Icon( - Icons.account_circle, - size: 18.0f, - color: CLColors.icon2 - ) - ) - } - ) - ); - } - - bool _onNotification(ScrollNotification notification, BuildContext context) { - float pixels = notification.metrics.pixels; - if (pixels >= 0.0) { - if (pixels <= headerHeight) { - this.setState(() => { this._offsetY = pixels / 2.0f; }); - } - } - else { - if (this._offsetY != 0.0) { - this.setState(() => { this._offsetY = 0.0f; }); - } - } - - return true; - } - - - Widget _buildContentList(BuildContext context) { - return new NotificationListener( - onNotification: (ScrollNotification notification) => { - this._onNotification(notification, context); - return true; - }, - child: new Flexible( - child: new Container( - // color: CLColors.green, - child: ListView.builder( - itemCount: 20, - itemExtent: 100, - physics: new AlwaysScrollableScrollPhysics(), - itemBuilder: (BuildContext context1, int index) => { - return new Container( - color: Color.fromARGB(255, (index * 10) % 256, (index * 20) % 256, - (index * 30) % 256) - ); - } - ) - ) - ) - ); - } - - public override Widget build(BuildContext context) { - var container = new Container( - // color: CLColors.background1, - child: new Container( - // color: CLColors.background1, - child: new Column( - children: new List { - this._buildHeader(context), - this._buildContentList(context) - } - ) - ) - ); - return container; - } - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/AsScreenSample.cs.meta b/Samples/UIWidgetSample/AsScreenSample.cs.meta deleted file mode 100644 index be668b07..00000000 --- a/Samples/UIWidgetSample/AsScreenSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 71d034a309904459c9016f0f17734267 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/BenchMarkLayout.cs b/Samples/UIWidgetSample/BenchMarkLayout.cs deleted file mode 100644 index 3a1c9248..00000000 --- a/Samples/UIWidgetSample/BenchMarkLayout.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using FontStyle = Unity.UIWidgets.ui.FontStyle; -using Material = Unity.UIWidgets.material.Material; - -namespace UIWidgetsSample { - public class BenchMarkLayout : UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new MaterialApp( - showPerformanceOverlay: false, - home: new Material( - child: new BenchMarkLayoutWidget()), - builder: (_, child) => { - return new Builder(builder: - context => { - return new MediaQuery( - data: MediaQuery.of(context).copyWith( - textScaleFactor: 1.0f - ), - child: child); - }); - }); - } - - protected override void OnEnable() { - base.OnEnable(); - FontManager.instance.addFont(Resources.Load(path: "MaterialIcons-Regular"), "Material Icons"); - } - } - - class BenchMarkLayoutWidget : StatefulWidget { - public BenchMarkLayoutWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new BenchMarkLayoutWidgetState(); - } - } - - class BenchMarkLayoutWidgetState : State { - int width = 260; - bool visible = true; - - Widget richtext = new Container( - child: new RichText( - text: new TextSpan("", children: - new List() { - new TextSpan("Real-time 3D revolutioni\t淡粉色的方式地方\tzes the animation pipeline "), - new TextSpan(style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0)), - text: "for Disney Television Animation's\t “Baymax Dreams"), - new TextSpan("\t", style: new TextStyle(color: Colors.black)), - new TextSpan(" Unity Widgets"), - new TextSpan(" Text"), - new TextSpan("Real-time 3D revolutionizes the animation pipeline "), - new TextSpan(style: new TextStyle(color: Color.fromARGB(125, 255, 0, 0)), - text: "Transparent Red Text\n\n"), - new TextSpan("Bold Text Test Bold Textfs Test: FontWeight.w70\n\n"), - new TextSpan(style: new TextStyle(fontStyle: FontStyle.italic), - text: "This is FontStyle.italic Text This is FontStyle.italic Text\n\n"), - new TextSpan( - style: new TextStyle(fontStyle: FontStyle.italic, fontWeight: FontWeight.w700), - text: - "This is FontStyle.italic And 发撒放豆腐sad 发生的 Bold Text This is FontStyle.italic And Bold Text\n\n"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "FontSize 18: Get a named matrix value from the shader.\n\n"), - new TextSpan(style: new TextStyle(fontSize: 24), - text: "Emoji \ud83d\ude0a\ud83d\ude0b\t\ud83d\ude0d\ud83d\ude0e\ud83d\ude00"), - new TextSpan(style: new TextStyle(fontSize: 14), - text: "Emoji \ud83d\ude0a\ud83d\ude0b\ud83d\ude0d\ud83d\ude0e\ud83d\ude00 Emoji"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "Emoji \ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "\ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "\ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "\ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "\ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 24), - text: - "Emoji \ud83d\ude06\ud83d\ude1C\ud83d\ude18\ud83d\ude2D\ud83d\ude0C\ud83d\ude1E\n\n"), - new TextSpan(style: new TextStyle(fontSize: 14), - text: "FontSize 14"), - }) - ) - ); - - public override Widget build(BuildContext context) { - Widget buttons = new Column( - mainAxisAlignment: MainAxisAlignment.end, - children: new List { - new Text($"Width: {this.width}"), - new RaisedButton( - onPressed: () => { this.setState(() => { this.width += 10; }); }, - child: new Text("Add Width") - ), - new Divider(), - new RaisedButton( - onPressed: () => { this.setState(() => { this.width -= 10; }); }, - child: new Text("Dec Width") - ), - new Divider(), - new RaisedButton( - onPressed: () => { this.setState(() => { this.visible = true; }); }, - child: new Text("Show") - ), - new Divider(), - new RaisedButton( - onPressed: () => { this.setState(() => { this.visible = false; }); }, - child: new Text("Hide") - ) - } - ); - Widget child = new Column( - children: new List { - this.visible ? this.richtext : new Text(""), - this.visible - ? new Text( - "Very Very Very Very Very Very Very Very Very Very Very Very Very Very\nVery Very Very Very Very Very Very Very Very Very Very Long Text", - maxLines: 3, overflow: TextOverflow.ellipsis, textAlign: TextAlign.justify - ) - : new Text("") - }); - child = new Stack( - children: new List { - child, - buttons - } - ); - child = new Container( - width: this.width, - color: Colors.black12, - child: child - ); - child = new Center( - child: child - ); - return child; - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/BenchMarkLayout.cs.meta b/Samples/UIWidgetSample/BenchMarkLayout.cs.meta deleted file mode 100644 index e20edd81..00000000 --- a/Samples/UIWidgetSample/BenchMarkLayout.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cba57cf034e23904ab2f929598f4cb45 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/CustomPaintSample.cs b/Samples/UIWidgetSample/CustomPaintSample.cs deleted file mode 100644 index 31a95b2b..00000000 --- a/Samples/UIWidgetSample/CustomPaintSample.cs +++ /dev/null @@ -1,69 +0,0 @@ -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsSample { - public class CustomPaintSample : UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new WidgetsApp( - home: new Unity.UIWidgets.widgets.CustomPaint( - child: new Container(width: 300, height: 300, color: new Color(0XFFFFFFFF)), - foregroundPainter: new GridPainter(null) - ), - pageRouteBuilder: this.pageRouteBuilder); - } - } - - public class GridPainter : AbstractCustomPainter { - public GridPainter(Listenable repaint) : base(repaint) { - } - - public override void paint(Canvas canvas, Size size) { - int numGrid = 4; - var paint = new Paint(); - paint.color = new Color(0xFFFF0000); - paint.strokeWidth = 2; - paint.style = PaintingStyle.stroke; - for (int i = 1; i < numGrid; i++) { - float offsetY = size.height * i / numGrid; - canvas.drawLine(new Offset(0, offsetY), new Offset(size.width, offsetY), - paint); - } - - for (int i = 1; i < numGrid; i++) { - float offsetx = size.width * i / numGrid; - canvas.drawLine(new Offset(offsetx, 0), new Offset(offsetx, size.height), - paint); - } - - - // draw a arrow line - canvas.save(); - canvas.rotate(0.4f); - canvas.scale(2, 2); - canvas.translate(50, 50); - canvas.drawLine(new Offset(0, 0), new Offset(100, 0), - new Paint() { - color = new Color(0xFFFF0000), - strokeWidth = 2, - style = PaintingStyle.stroke - }); - var path = new Path(); - var arrowPaint = new Paint() { - color = new Color(0xFFFF0000), - style = PaintingStyle.fill - }; - path.moveTo(100, 0); - path.lineTo(100, 5); - path.lineTo(120, 0); - path.lineTo(100, -5); - path.close(); - canvas.drawPath(path, arrowPaint); - canvas.restore(); - } - - public override bool shouldRepaint(CustomPainter oldDelegate) { - return false; - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/CustomPaintSample.cs.meta b/Samples/UIWidgetSample/CustomPaintSample.cs.meta deleted file mode 100644 index 80cd3418..00000000 --- a/Samples/UIWidgetSample/CustomPaintSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5debfd6de8ea942d487383a56aad8491 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/DragDropSample.cs b/Samples/UIWidgetSample/DragDropSample.cs deleted file mode 100644 index 792f3513..00000000 --- a/Samples/UIWidgetSample/DragDropSample.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; - -namespace UIWidgetsSample { - public class DragDropSample : UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new WidgetsApp( - home: new DragDropApp(), - pageRouteBuilder: this.pageRouteBuilder - ); - } - - class DragDropApp : StatefulWidget { - public DragDropApp(Key key = null) : base(key) { - } - - public override State createState() { - return new DragDropState(); - } - } - - class DragTargetWidget : StatefulWidget { - public DragTargetWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new DragTargetWidgetState(); - } - } - - class DragTargetWidgetState : State { - int value; - - public override Widget build(BuildContext context) { - return new Positioned( - left: 40.0f, - bottom: 40.0f, - child: new DragTarget( - onAccept: obj => { - Debug.Log("ON ACCEPTED ..." + obj); - this.setState(() => { this.value += obj; }); - }, - builder: (inner_context2, accepted, rejected) => { - return new Container( - width: 40.0f, - height: 40.0f, - constraints: BoxConstraints.tight(new Size(40, 40)), - color: CLColors.red, - child: new Center(child: new Text("" + this.value)) - ); - } - ) - ); - } - } - - class DragDropState : State { - public override Widget build(BuildContext context) { - var entries = new List(); - - var entry_bg = new OverlayEntry( - inner_context => new Container( - color: CLColors.white - )); - - var entry = new OverlayEntry( - inner_context => new Positioned( - left: 0.0f, - bottom: 0.0f, - child: new GestureDetector( - onTap: () => { }, - child: new Draggable( - 5, - child: new Container( - color: CLColors.blue, - width: 30.0f, - height: 30.0f, - constraints: BoxConstraints.tight(new Size(30, 30)), - child: new Center(child: new Text("5")) - ), - feedback: new Container( - color: CLColors.green, - width: 30.0f, - height: 30.0f), - //maxSimultaneousDrags: 1, - childWhenDragging: new Container( - color: CLColors.black, - width: 30.0f, - height: 30.0f, - constraints: BoxConstraints.tight(new Size(30, 30)) - ) - ) - ) - ) - ); - - var entry3 = new OverlayEntry( - inner_context => new Positioned( - left: 0.0f, - bottom: 40.0f, - child: new GestureDetector( - onTap: () => { }, - child: - new Draggable( - 8, - child: new Container( - color: CLColors.background4, - width: 30.0f, - height: 30.0f, - constraints: BoxConstraints.tight(new Size(30, 30)), - child: new Center(child: new Text("8"))) - , - feedback: new Container( - color: CLColors.green, - width: 30.0f, - height: 30.0f), - maxSimultaneousDrags: 1, - childWhenDragging: new Container( - color: CLColors.black, - width: 30.0f, - height: 30.0f, - constraints: BoxConstraints.tight(new Size(30, 30)) - ) - ) - ) - ) - ); - - var entry2 = new OverlayEntry( - inner_context => new DragTargetWidget() - ); - - entries.Add(entry_bg); - entries.Add(entry); - entries.Add(entry2); - entries.Add(entry3); - - return new Container( - color: CLColors.white, - child: new Overlay( - initialEntries: entries - ) - ); - } - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/DragDropSample.cs.meta b/Samples/UIWidgetSample/DragDropSample.cs.meta deleted file mode 100644 index b0c9963f..00000000 --- a/Samples/UIWidgetSample/DragDropSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d01ae8029ff2f4e54a5e9c1a9672e5dc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Editor.meta b/Samples/UIWidgetSample/Editor.meta deleted file mode 100644 index c8206f3b..00000000 --- a/Samples/UIWidgetSample/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0ae90c343ee0e4f7daf768fe6383340f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Editor/CupertinoSampleWidget.cs b/Samples/UIWidgetSample/Editor/CupertinoSampleWidget.cs deleted file mode 100644 index 6be45b38..00000000 --- a/Samples/UIWidgetSample/Editor/CupertinoSampleWidget.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Unity.UIWidgets.animation; -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEditor; -using UnityEngine; -using Rect = UnityEngine.Rect; - -namespace UIWidgetsSample { - public class CupertinoSample : UIWidgetsEditorWindow { - [MenuItem("UIWidgetsTests/CupertinoSample")] - public static void gallery() { - GetWindow(); - } - - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load("CupertinoIcons"), "CupertinoIcons"); - base.OnEnable(); - } - - protected override Widget createWidget() { - Debug.Log("[Cupertino Sample] Created"); - return new CupertinoSampleApp(); - } - } - - - public class CupertinoSampleApp : StatelessWidget { - public override Widget build(BuildContext context) { - return new CupertinoApp( - theme: new CupertinoThemeData( - textTheme: new CupertinoTextThemeData( - navLargeTitleTextStyle: new TextStyle( - fontWeight: FontWeight.bold, - fontSize: 70f, - color: CupertinoColors.activeBlue - ) - )), - home: new CupertinoSampleWidget() - ); - } - } - - public class CupertinoSampleWidget : StatefulWidget { - public CupertinoSampleWidget(Key key = null) : base(key) { } - - public override State createState() { - return new CupertinoSampleWidgetState(); - } - } - - public class CupertinoSampleWidgetState : State { - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - child: new Center( - child: new Text("Hello Cupertino", - style: CupertinoTheme.of(context).textTheme.navLargeTitleTextStyle - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/Editor/CupertinoSampleWidget.cs.meta b/Samples/UIWidgetSample/Editor/CupertinoSampleWidget.cs.meta deleted file mode 100644 index 9f1cc637..00000000 --- a/Samples/UIWidgetSample/Editor/CupertinoSampleWidget.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 92aa3442134248a38d03c2a24a8a9962 -timeCreated: 1566545424 \ No newline at end of file diff --git a/Samples/UIWidgetSample/Editor/DragNDrop.meta b/Samples/UIWidgetSample/Editor/DragNDrop.meta deleted file mode 100644 index 893a6dc1..00000000 --- a/Samples/UIWidgetSample/Editor/DragNDrop.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 087f4b1b8d7aa4e93bca841df8a1d603 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Editor/DragNDrop/CustomInspectorSample.cs b/Samples/UIWidgetSample/Editor/DragNDrop/CustomInspectorSample.cs deleted file mode 100644 index d15f5aed..00000000 --- a/Samples/UIWidgetSample/Editor/DragNDrop/CustomInspectorSample.cs +++ /dev/null @@ -1,374 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using Transform = UnityEngine.Transform; - -namespace UIWidgetsSample.DragNDrop { - public class CustomInspectorSample : UIWidgetsEditorWindow { - [MenuItem("UIWidgetsTests/Drag&Drop/Custom Inspector")] - public static void ShowEditorWindow() { - var window = GetWindow(); - window.titleContent.text = "Custom Inspector Sample"; - } - - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load("MaterialIcons-Regular"), "Material Icons"); - FontManager.instance.addFont(Resources.Load("GalleryIcons"), "GalleryIcons"); - - base.OnEnable(); - } - - protected override Widget createWidget() { - Debug.Log("[ WIDGET RECREATED ]"); - return new MaterialApp( - home: new CustomInspectorSampleWidget(), - darkTheme: new ThemeData(primaryColor: Colors.black26) - ); - } - } - - public class CustomInspectorSampleWidget : StatefulWidget { - public CustomInspectorSampleWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new CustomInspectorSampleWidgetState(); - } - } - - public class CustomInspectorSampleWidgetState : State { - GameObject objectRef; - Transform transformRef; - - TextEditingController textController = new TextEditingController(); - - public override void initState() { - this.textController.addListener(() => { - var text = this.textController.text.ToLower(); - this.textController.value = this.textController.value.copyWith( - text: text, - selection: new TextSelection(baseOffset: text.Length, extentOffset: text.Length), - composing: TextRange.empty - ); - }); - base.initState(); - } - - enum ETransfrom { - Position, - Rotation, - Scale - } - - // make custom control of cursor position in TextField. - int oldCursorPosition = 0; - - // The decimal point input-and-parse exists problem. - Widget getCardRow(ETransfrom type, bool hasRef) { - var xValue = hasRef - ? type == ETransfrom.Position - ? this.transformRef.position.x.ToString() - : type == ETransfrom.Rotation - ? this.transformRef.localEulerAngles.x.ToString() - : this.transformRef.localScale.x.ToString() - : ""; - // Using individual TextEditingController to control TextField cursor position. - var xValueController = TextEditingController.fromValue( - new TextEditingValue(xValue, TextSelection.collapsed(this.oldCursorPosition)) - ); - - var yValue = hasRef - ? type == ETransfrom.Position - ? this.transformRef.position.y.ToString() - : type == ETransfrom.Rotation - ? this.transformRef.localEulerAngles.y.ToString() - : this.transformRef.localScale.y.ToString() - : ""; - - var yValueController = TextEditingController.fromValue( - new TextEditingValue(yValue, TextSelection.collapsed(this.oldCursorPosition)) - ); - - var zValue = hasRef - ? type == ETransfrom.Position - ? this.transformRef.position.z.ToString() - : type == ETransfrom.Rotation - ? this.transformRef.localEulerAngles.z.ToString() - : this.transformRef.localScale.z.ToString() - : ""; - - var zValueController = TextEditingController.fromValue( - new TextEditingValue(zValue, TextSelection.collapsed(this.oldCursorPosition)) - ); - - return new Column( - children: new List { - new Container( - padding: EdgeInsets.symmetric(vertical: 8f), - child: new Align( - alignment: Alignment.centerLeft, - child: new Text( - type == ETransfrom.Position ? "Position" : - type == ETransfrom.Rotation ? "Rotation" : "Scale", - style: new TextStyle(fontSize: 16.0f) - ) - ) - ), - new Row( - children: new List { - new Flexible( - flex: 8, - child: new Container( - decoration: new BoxDecoration( - color: new Color(0xfff5f5f5)), - child: new TextField( - decoration: new InputDecoration( - border: new UnderlineInputBorder(), - contentPadding: - EdgeInsets.symmetric( - horizontal: 10f, vertical: 5f), - labelText: "X" - ), - controller: xValueController, - onChanged: hasRef - ? (str) => { - // While the TextField value changed, try to parse and assign to transformRef. - this.setState(() => { - float result = 0; - float.TryParse(str, out result); - if (str == "" || str[0] == '0') { - this.oldCursorPosition = 1; - } - else { - this.oldCursorPosition = - xValueController.selection.startPos.offset; - } - - switch (type) { - case ETransfrom.Position: - var newPos = this.transformRef.position; - newPos.x = result; - this.transformRef.position = newPos; - break; - case ETransfrom.Rotation: - var newRot = this.transformRef.localEulerAngles; - newRot.x = result; - this.transformRef.localEulerAngles = newRot; - break; - case ETransfrom.Scale: - var newScale = this.transformRef.localScale; - newScale.x = result; - this.transformRef.localScale = newScale; - break; - } - }); - } - : (ValueChanged) null - ) - )), - new Flexible( - child: new Container() - ), - new Flexible( - flex: 8, - child: new Container( - decoration: new BoxDecoration( - color: new Color(0xfff5f5f5)), - child: new TextField( - decoration: new InputDecoration( - border: new UnderlineInputBorder(), - contentPadding: - EdgeInsets.symmetric( - horizontal: 10f, vertical: 5f), - labelText: "Y" - ), - controller: yValueController, - onChanged: hasRef - ? (str) => { - this.setState(() => { - float result = 0; - float.TryParse(str, out result); - if (str == "" || str[0] == '0') { - this.oldCursorPosition = 1; - } - else { - this.oldCursorPosition = - yValueController.selection.startPos.offset; - } - - switch (type) { - case ETransfrom.Position: - var newPos = this.transformRef.position; - newPos.y = result; - this.transformRef.position = newPos; - break; - case ETransfrom.Rotation: - var newRot = this.transformRef.localEulerAngles; - newRot.y = result; - this.transformRef.localEulerAngles = newRot; - break; - case ETransfrom.Scale: - var newScale = this.transformRef.localScale; - newScale.y = result; - this.transformRef.localScale = newScale; - break; - } - }); - } - : (ValueChanged) null - ) - )), - new Flexible( - child: new Container() - ), - new Flexible( - flex: 8, - child: new Container( - decoration: new BoxDecoration( - color: new Color(0xfff5f5f5)), - child: new TextField( - decoration: new InputDecoration( - border: new UnderlineInputBorder(), - contentPadding: - EdgeInsets.symmetric( - horizontal: 10f, vertical: 5f), - labelText: "Z" - ), - controller: zValueController, - onChanged: hasRef - ? (str) => { - this.setState(() => { - float result = 0; - float.TryParse(str, out result); - if (str == "" || str[0] == '0') { - this.oldCursorPosition = 1; - } - else { - this.oldCursorPosition = - zValueController.selection.startPos.offset; - } - - switch (type) { - case ETransfrom.Position: - var newPos = this.transformRef.position; - newPos.z = result; - this.transformRef.position = newPos; - break; - case ETransfrom.Rotation: - var newRot = this.transformRef.localEulerAngles; - newRot.z = result; - this.transformRef.localEulerAngles = newRot; - break; - case ETransfrom.Scale: - var newScale = this.transformRef.localScale; - newScale.z = result; - this.transformRef.localScale = newScale; - break; - } - }); - } - : (ValueChanged) null - ) - )) - } - ) - } - ); - } - - public override Widget build(BuildContext context) { - return new Theme( - data: new ThemeData( - appBarTheme: new AppBarTheme( - color: Colors.purple - ), - cardTheme: new CardTheme( - color: Colors.white, - elevation: 2.0f - ) - ), - child: new Scaffold( - appBar: new AppBar(title: new Text("Custom Inspector")), - body: new ListView( - children: new List { - new Card( - clipBehavior: Clip.antiAlias, - margin: EdgeInsets.all(20.0f), - shape: new RoundedRectangleBorder( - borderRadius: BorderRadius.circular(20.0f) - ), - child: new Container( - padding: EdgeInsets.symmetric(vertical: 20f, horizontal: 10f), - child: new Column( - mainAxisSize: MainAxisSize.min, - children: new List { - new UnityObjectDetector( - // When receiving a GameObject, get its transfrom. - onRelease: (details) => { - this.setState(() => { - var gameObj = details.objectReferences[0] as GameObject; - if (gameObj) { - this.objectRef = gameObj; - if (this.objectRef) { - this.transformRef = this.objectRef.transform; - } - } - }); - }, - child: new ListTile( - title: new Text( - this.objectRef == null ? "Object Name" : this.objectRef.name, - style: new TextStyle(fontSize: 28.0f)), - subtitle: new Text("Drag an object here", - style: new TextStyle(fontSize: 16.0f)), - contentPadding: EdgeInsets.symmetric(horizontal: 10f) - ) - ), - new Card( - clipBehavior: Clip.antiAlias, - shape: new RoundedRectangleBorder( - borderRadius: BorderRadius.circular(20.0f) - ), - child: new Container( - padding: EdgeInsets.symmetric(horizontal: 10.0f), - child: new Column( - mainAxisSize: MainAxisSize.min, - children: new List { - new Container( - padding: EdgeInsets.only(top: 20f), - child: new Align( - alignment: Alignment.centerLeft, - child: new Text("Transform", - style: new TextStyle(fontSize: 20.0f)) - ) - ), - this.getCardRow(ETransfrom.Position, - this.objectRef != null), - this.getCardRow(ETransfrom.Rotation, - this.objectRef != null), - this.getCardRow(ETransfrom.Scale, this.objectRef != null), - new Container(padding: EdgeInsets.only(bottom: 20f)) - } - ) - ) - ), - } - ) - ) - ) - } - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/Editor/DragNDrop/CustomInspectorSample.cs.meta b/Samples/UIWidgetSample/Editor/DragNDrop/CustomInspectorSample.cs.meta deleted file mode 100644 index e775529b..00000000 --- a/Samples/UIWidgetSample/Editor/DragNDrop/CustomInspectorSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5978da8ac1ccd4638bfe3d8425443807 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Editor/DragNDrop/UnityObjectDetectorSample.cs b/Samples/UIWidgetSample/Editor/DragNDrop/UnityObjectDetectorSample.cs deleted file mode 100644 index 97cf1d95..00000000 --- a/Samples/UIWidgetSample/Editor/DragNDrop/UnityObjectDetectorSample.cs +++ /dev/null @@ -1,171 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.widgets; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgetsSample.DragNDrop { - public class UnityObjectDetectorSample : UIWidgetsEditorWindow { - [MenuItem("UIWidgetsTests/Drag&Drop/UnityObject Detector")] - public static void ShowEditorWindow() { - var window = GetWindow(); - window.titleContent.text = "UnityObject Detector Sample"; - } - - protected override Widget createWidget() { - Debug.Log("[ WIDGET RECREATED ]"); - return new WidgetsApp( - home: new UnityObjectDetectorSampleWidget(), - pageRouteBuilder: (RouteSettings settings, WidgetBuilder builder) => - new PageRouteBuilder( - settings: settings, - pageBuilder: (BuildContext context, Animation animation, - Animation secondaryAnimation) => builder(context) - ) - ); - } - } - - public class UnityObjectDetectorSampleWidget : StatefulWidget { - public UnityObjectDetectorSampleWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new UnityObjectDetectorSampleWidgetState(); - } - } - - public class UnityObjectDetectorSampleWidgetState : State { - readonly Color highlightColor = Color.fromARGB(255, 88, 127, 219); - readonly Color defaultColor = Color.fromARGB(255, 211, 211, 211); - readonly List isHighlighted = new List { }; - readonly List objects = new List(); - - List getUnityObjectDetectorList(int count) { - if (this.isHighlighted.isEmpty()) { - for (int i = 0; i < count; i++) { - this.isHighlighted.Add(false); - } - } - - if (this.objects.isEmpty()) { - for (int i = 0; i < count; i++) { - this.objects.Add(null); - } - } - - List widgetList = new List(); - widgetList.Add(this.getGapBox("Generated List with UnityObjectDetector")); - - for (int i = 0; i < count; i++) { - var _i = i; - - Widget widget = new Container( - decoration: this.isHighlighted[_i] - ? new BoxDecoration(color: this.highlightColor) - : new BoxDecoration(color: this.defaultColor), - height: 100f, - child: new UnityObjectDetector( - onEnter: () => { - Debug.Log("Widget " + _i + " onEnter"); - this.setState(() => { this.isHighlighted[_i] = true; }); - }, - onRelease: (details) => { - Debug.Log("Widget " + _i + " onRelease"); - this.setState(() => { - this.isHighlighted[_i] = false; - this.objects[_i] = details.objectReferences; - }); - }, - onExit: () => { - Debug.Log("Widget " + _i + " onExit"); - this.setState(() => { this.isHighlighted[_i] = false; }); - }, - child: new Center( - child: new Text(this.objects[_i] != null - ? this.getNameString(this.objects[_i]) - : "[Drop/Multi-Drop Here]") - ) - ) - ); - - widgetList.Add(widget); - if (_i != count - 1) { - widgetList.Add(this.getGapBox()); - } - } - - return widgetList; - } - - string getNameString(Object[] objs) { - var str = ""; - for (int i = 0; i < objs.Length; i++) { - str += "[" + objs[i].name + "]"; - if (i != objs.Length - 1) { - str += "\n"; - } - } - - return str; - } - - Widget getGapBox(string str = "") { - return new Container( - height: 25, - child: str == "" - ? null - : new Center( - child: new Text(str) - ) - ); - } - - bool highlight; - Object[] objRef; - - public override Widget build(BuildContext context) { - var columnList = new List(); - - columnList.Add(this.getGapBox()); - columnList.AddRange(this.getUnityObjectDetectorList(3)); - columnList.AddRange( - new List { - this.getGapBox("With Listener"), - new Container( - decoration: this.highlight - ? new BoxDecoration(color: this.highlightColor) - : new BoxDecoration(color: this.defaultColor), - height: 100f, - child: new Listener( - onPointerDragFromEditorEnter: (evt) => { this.setState(() => { this.highlight = true; }); }, - onPointerDragFromEditorExit: (evt) => { this.setState(() => { this.highlight = false; }); }, - // onPointerDragFromEditorHover: (evt) => { }, - onPointerDragFromEditorRelease: (evt) => { - this.objRef = evt.objectReferences; - this.setState(() => { this.highlight = false; }); - }, - child: new Center( - child: new Text(this.objRef != null - ? this.getNameString(this.objRef) - : "[Drop/Multi-Drop Here]") - ) - ) - ) - } - ); - - return new Container( - padding: EdgeInsets.symmetric(horizontal: 25f), - color: Colors.grey, - child: new ListView( - children: columnList - )); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/Editor/DragNDrop/UnityObjectDetectorSample.cs.meta b/Samples/UIWidgetSample/Editor/DragNDrop/UnityObjectDetectorSample.cs.meta deleted file mode 100644 index 6bea379b..00000000 --- a/Samples/UIWidgetSample/Editor/DragNDrop/UnityObjectDetectorSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2948179a390a944a9a44b7f86cfa3c57 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Editor/UIWidgetsSample.Editor.asmdef b/Samples/UIWidgetSample/Editor/UIWidgetsSample.Editor.asmdef deleted file mode 100644 index 05a68793..00000000 --- a/Samples/UIWidgetSample/Editor/UIWidgetsSample.Editor.asmdef +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "UIWidgetsSample.Editor", - "references": [ - "Unity.UIWidgets", - "UIWidgetsSample"], - "optionalUnityReferences": [], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [] -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/Editor/UIWidgetsSample.Editor.asmdef.meta b/Samples/UIWidgetSample/Editor/UIWidgetsSample.Editor.asmdef.meta deleted file mode 100644 index b875e7cb..00000000 --- a/Samples/UIWidgetSample/Editor/UIWidgetsSample.Editor.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3d357564df62f4f7286d70a70fe8b98b -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/ExpansionPanelSample.cs b/Samples/UIWidgetSample/ExpansionPanelSample.cs deleted file mode 100644 index cc25d2b3..00000000 --- a/Samples/UIWidgetSample/ExpansionPanelSample.cs +++ /dev/null @@ -1,158 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.engine; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Material = Unity.UIWidgets.material.Material; - -namespace UIWidgetsSample { - public class ExpansionPanelSample : UIWidgetsSamplePanel { - int testCaseId = 1; - - readonly List testCases = new List { - new SingleChildScrollWidget(), - new ExpansionPanelWidget() - }; - - protected override Widget createWidget() { - return new WidgetsApp( - home: this.testCases[this.testCaseId], - pageRouteBuilder: this.pageRouteBuilder); - } - } - - - class SingleChildScrollWidget : StatefulWidget { - public SingleChildScrollWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new SingleChildScrollWidgetState(); - } - } - - class SingleChildScrollWidgetState : State { - public override Widget build(BuildContext context) { - return new Material( - child: new SingleChildScrollView( - child: new Container( - width: 40.0f, - height: 40.0f, - constraints: BoxConstraints.tight(new Size(40, 600)), - color: CLColors.red, - child: new Center(child: new Text("Beijing")) - ) - ) - ); - } - } - - - class ExpansionPanelWidget : StatefulWidget { - public ExpansionPanelWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new ExpansionPanelWidgetState(); - } - } - - class ExpansionPanelWidgetState : State { - readonly List isExpand = new List {false, false}; - - public override Widget build(BuildContext context) { - return new Material( - child: new SingleChildScrollView( - child: new ExpansionPanelList( - expansionCallback: (int _index, bool _isExpanded) => { - Debug.Log(" from [" + (_isExpanded ? "Open" : "Close") + "]" + - " to [" + (_isExpanded ? "Close" : "Open") + "]"); - - this.isExpand[_index] = !_isExpanded; - this.setState(() => { }); - }, - children: new List { - new ExpansionPanel( - headerBuilder: (BuildContext subContext, bool isExpanded) => { - return new Container( - color: Colors.black45, - child: new Center( - child: new Text("Beijing") - ) - ); - }, - body: new Container( - child: new Column( - children: new List { - new Card( - child: new Container( - color: Colors.black38, - height: 36, - width: 300, - child: new Center( - child: new Text("Beijing") - ) - ) - ) - } - ) - ), - isExpanded: this.isExpand[0] - ), - new ExpansionPanel( - headerBuilder: (BuildContext subContext, bool isExpanded) => { - return new Container( - color: Colors.black45, - child: new Center( - child: new Text("Hebei") - ) - ); - }, - body: new Container( - child: new Column( - children: new List { - new Card( - child: new Container( - color: Colors.black38, - height: 36, - width: 300, - child: new Center( - child: new Text("Tianjin") - ) - ) - ), - new Card( - child: new Container( - color: Colors.black38, - height: 36, - width: 300, - child: new Center( - child: new Text("Shijiazhuang") - ) - ) - ), - new Card( - child: new Container( - color: Colors.black38, - height: 36, - width: 300, - child: new Center( - child: new Text("Zhumadian") - ) - ) - ) - } - ) - ), - isExpanded: this.isExpand[1] - ), - } - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/ExpansionPanelSample.cs.meta b/Samples/UIWidgetSample/ExpansionPanelSample.cs.meta deleted file mode 100644 index 0ccdc84a..00000000 --- a/Samples/UIWidgetSample/ExpansionPanelSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7b7c8f92f79054eb6ae6e6749ebec2a1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/HoverRecognizerSample.cs b/Samples/UIWidgetSample/HoverRecognizerSample.cs deleted file mode 100644 index bef34d92..00000000 --- a/Samples/UIWidgetSample/HoverRecognizerSample.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; - -namespace UIWidgetsSample { - public class HoverRecognizerSample : UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new MaterialApp( - showPerformanceOverlay: false, - home: new HoverMainPanel() - ); - } - - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load(path: "MaterialIcons-Regular"), "Material Icons"); - base.OnEnable(); - } - } - - class HoverMainPanel : StatefulWidget { - public override State createState() { - return new HoverMainPanelState(); - } - } - - class HoverMainPanelState : State { - bool hoverActivated = false; - - public override Widget build(BuildContext context) { - return new Scaffold( - appBar: new AppBar( - title: new Center( - child: new SelectableText("Test Hover Widget") - ) - ), - body: new Card( - color: Colors.white, - child: new Center( - child: new Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new Icon(this.hoverActivated ? Unity.UIWidgets.material.Icons.pool : Unity.UIWidgets.material.Icons.directions_walk, size: 128.0f), - new RichText( - text: new TextSpan( - text: "Test <", - style: new TextStyle(color: Colors.black), - children: new List() { - new TextSpan( - text: "Hover Me", - style: new TextStyle( - color: Colors.green, - decoration: TextDecoration.underline - ), - hoverRecognizer: new HoverRecognizer { - OnPointerEnter = evt => { - this.setState(() => { this.hoverActivated = true; }); - }, - OnPointerLeave = () => { - this.setState(() => { this.hoverActivated = false;}); - } - } - ), - new TextSpan( - text: ">" - ) - } - ) - ) - } - ) - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/HoverRecognizerSample.cs.meta b/Samples/UIWidgetSample/HoverRecognizerSample.cs.meta deleted file mode 100644 index 845ccc7c..00000000 --- a/Samples/UIWidgetSample/HoverRecognizerSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: aeab7b6e566d741a8a11a4400d52e708 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/HttpRequestSample.cs b/Samples/UIWidgetSample/HttpRequestSample.cs deleted file mode 100644 index 575f1b9b..00000000 --- a/Samples/UIWidgetSample/HttpRequestSample.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using System.Collections.Generic; -using Unity.UIWidgets.engine; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.widgets; -using UnityEngine; -using UnityEngine.Networking; - -public class HttpRequestSample : UIWidgetsPanel -{ - protected override Widget createWidget() { - return new MaterialApp( - title: "Http Request Sample", - home: new Scaffold( - body:new AsyncRequestWidget(this.gameObject) - ) - ); - } -} - -public class AsyncRequestWidget : StatefulWidget { - - public readonly GameObject gameObjOfUIWidgetsPanel; - - public AsyncRequestWidget(GameObject gameObjOfUiWidgetsPanel, Key key = null) : base(key) { - this.gameObjOfUIWidgetsPanel = gameObjOfUiWidgetsPanel; - } - - public override State createState() { - return new _AsyncRequestWidgetState(); - } -} - -[Serializable] -public class TimeData { - public long currentFileTime; -} - -class _AsyncRequestWidgetState : State { - - long _fileTime; - - public override Widget build(BuildContext context) { - - return new Column( - children: new List() { - new FlatButton(child: new Text("Click To Get Time"), onPressed: () => { - UnityWebRequest www = UnityWebRequest.Get("http://worldclockapi.com/api/json/est/now"); - var asyncOperation = www.SendWebRequest(); - asyncOperation.completed += operation => { - var timeData = JsonUtility.FromJson(www.downloadHandler.text); - using(WindowProvider.of(this.widget.gameObjOfUIWidgetsPanel).getScope()) - { - this.setState(() => { this._fileTime = timeData.currentFileTime; }); - } - - }; - }), - new Text($"current file time: {this._fileTime}") - }); - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/HttpRequestSample.cs.meta b/Samples/UIWidgetSample/HttpRequestSample.cs.meta deleted file mode 100644 index ad2e0a3e..00000000 --- a/Samples/UIWidgetSample/HttpRequestSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cfa3e1cd78bb74aef90a7a0289dfc23c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/LongPressSample.cs b/Samples/UIWidgetSample/LongPressSample.cs deleted file mode 100644 index 6c824869..00000000 --- a/Samples/UIWidgetSample/LongPressSample.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Unity.UIWidgets.material; -using Unity.UIWidgets.widgets; -using UnityEngine; - -namespace UIWidgetsSample { - public class LongPressSample : UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new WidgetsApp( - home: new LongPressSampleWidget(), - pageRouteBuilder: this.pageRouteBuilder); - } - } - - public class LongPressSampleWidget : StatefulWidget { - public override State createState() { - return new _LongPressSampleWidgetState(); - } - } - - class _LongPressSampleWidgetState : State { - public override Widget build(BuildContext context) { - return new GestureDetector( - onLongPressStart: (value) => { Debug.Log($"Long Press Drag Start: {value}"); }, - onLongPressMoveUpdate: (value) => { Debug.Log($"Long Press Drag Update: {value}"); }, - onLongPressEnd: (value) => { Debug.Log($"Long Press Drag Up: {value}"); }, - onLongPressUp: () => { Debug.Log($"Long Press Up"); }, - onLongPress: () => { Debug.Log($"Long Press"); }, - child: new Center( - child: new Container( - width: 200, - height: 200, - color: Colors.blue - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/LongPressSample.cs.meta b/Samples/UIWidgetSample/LongPressSample.cs.meta deleted file mode 100644 index 748d2409..00000000 --- a/Samples/UIWidgetSample/LongPressSample.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 5bab4c4cc3a446f280edec6a9d0a4f16 -timeCreated: 1556594174 \ No newline at end of file diff --git a/Samples/UIWidgetSample/LongPressSample.unity b/Samples/UIWidgetSample/LongPressSample.unity deleted file mode 100644 index 998ce35b..00000000 --- a/Samples/UIWidgetSample/LongPressSample.unity +++ /dev/null @@ -1,468 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657898, g: 0.49641287, b: 0.5748173, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &332995326 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 332995329} - - component: {fileID: 332995328} - - component: {fileID: 332995327} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &332995327 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 332995326} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &332995328 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 332995326} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &332995329 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 332995326} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1301752092 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1301752095} - - component: {fileID: 1301752094} - - component: {fileID: 1301752093} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1301752093 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1301752092} - m_Enabled: 1 ---- !u!20 &1301752094 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1301752092} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1301752095 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1301752092} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1907726269 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1907726273} - - component: {fileID: 1907726272} - - component: {fileID: 1907726271} - - component: {fileID: 1907726270} - - component: {fileID: 1907726275} - - component: {fileID: 1907726274} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1907726270 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1907726269} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1907726271 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1907726269} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1907726272 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1907726269} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &1907726273 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1907726269} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1907726274 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1907726269} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5bab4c4cc3a446f280edec6a9d0a4f16, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 - antiAliasingOverride: 4 ---- !u!222 &1907726275 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1907726269} - m_CullTransparentMesh: 0 ---- !u!1 &1963403153 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1963403155} - - component: {fileID: 1963403154} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &1963403154 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1963403153} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &1963403155 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1963403153} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} diff --git a/Samples/UIWidgetSample/LongPressSample.unity.meta b/Samples/UIWidgetSample/LongPressSample.unity.meta deleted file mode 100644 index d36e2629..00000000 --- a/Samples/UIWidgetSample/LongPressSample.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ea79b711dbc434533b52afdbe4e3ec11 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/MaterialSample.cs b/Samples/UIWidgetSample/MaterialSample.cs deleted file mode 100644 index 0d01d521..00000000 --- a/Samples/UIWidgetSample/MaterialSample.cs +++ /dev/null @@ -1,570 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using RSG; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using Material = Unity.UIWidgets.material.Material; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsSample { - public class MaterialSample : UIWidgetsSamplePanel { - const int testCaseId = 6; - - readonly List testCases = new List { - new MaterialButtonWidget(), - new MaterialInkWellWidget(), - new MaterialAppBarWidget(), - new MaterialTabBarWidget(), - new TableWidget(), - new BottomAppBarWidget(), - new MaterialSliderWidget(), - new MaterialNavigationBarWidget(), - new MaterialReorderableListViewWidget(), - }; - - protected override Widget createWidget() { - return new MaterialApp( - showPerformanceOverlay: false, - home: this.testCases[testCaseId]); - } - - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load(path: "MaterialIcons-Regular"), "Material Icons"); - base.OnEnable(); - } - } - - public class BottomAppBarWidget : StatelessWidget { - public BottomAppBarWidget(Key key = null) : base(key) { - - } - - public override Widget build(BuildContext context) { - return new Scaffold( - backgroundColor: Color.clear, - bottomNavigationBar: new BottomAppBar( - child: new Row( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: new List { - new IconButton(icon: new Icon(Unity.UIWidgets.material.Icons.menu), onPressed: () => { }), - new IconButton(icon: new Icon(Unity.UIWidgets.material.Icons.account_balance), - onPressed: () => { }) - }))); - } - } - - - public class TableWidget : StatelessWidget { - public TableWidget(Key key = null) : base(key) { - } - - public override Widget build(BuildContext context) { - return new Scaffold( - body: new Table( - children: new List { - new TableRow( - decoration: new BoxDecoration(color: Colors.blue), - children: new List { - new Text("item 1"), - new Text("item 2") - } - ), - new TableRow(children: new List { - new Text("item 3"), - new Text("item 4") - } - ) - }, - defaultVerticalAlignment: TableCellVerticalAlignment.middle)); - } - } - - - public class MaterialTabBarWidget : StatefulWidget { - public MaterialTabBarWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new MaterialTabBarWidgetState(); - } - } - - public class MaterialTabBarWidgetState : SingleTickerProviderStateMixin { - TabController _tabController; - - public override void initState() { - base.initState(); - this._tabController = new TabController(vsync: this, length: Choice.choices.Count); - } - - public override void dispose() { - this._tabController.dispose(); - base.dispose(); - } - - void _nextPage(int delta) { - int newIndex = this._tabController.index + delta; - if (newIndex < 0 || newIndex >= this._tabController.length) { - return; - } - - this._tabController.animateTo(newIndex); - } - - public override Widget build(BuildContext context) { - List tapChildren = new List(); - foreach (Choice choice in Choice.choices) { - tapChildren.Add( - new Padding( - padding: EdgeInsets.all(16.0f), - child: new ChoiceCard(choice: choice))); - } - - return new Scaffold( - appBar: new AppBar( - title: new Center( - child: new Text("AppBar Bottom Widget") - ), - leading: new IconButton( - tooltip: "Previous choice", - icon: new Icon(Unity.UIWidgets.material.Icons.arrow_back), - onPressed: () => { this._nextPage(-1); } - ), - actions: new List { - new IconButton( - icon: new Icon(Unity.UIWidgets.material.Icons.arrow_forward), - tooltip: "Next choice", - onPressed: () => { this._nextPage(1); }) - }, - bottom: new PreferredSize( - preferredSize: Size.fromHeight(48.0f), - child: new Theme( - data: Theme.of(context).copyWith(accentColor: Colors.white), - child: new Container( - height: 48.0f, - alignment: Alignment.center, - child: new TabPageSelector( - controller: this._tabController)))) - ), - body: new TabBarView( - controller: this._tabController, - children: tapChildren - )); - } - } - - public class MaterialAppBarWidget : StatefulWidget { - public MaterialAppBarWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new MaterialAppBarWidgetState(); - } - } - - public class MaterialAppBarWidgetState : State { - Choice _selectedChoice = Choice.choices[0]; - - GlobalKey _scaffoldKey = GlobalKey.key(); - - VoidCallback _showBottomSheetCallback; - - public override void initState() { - base.initState(); - this._showBottomSheetCallback = this._showBottomSheet; - } - - void _showBottomSheet() { - this.setState(() => { this._showBottomSheetCallback = null; }); - - this._scaffoldKey.currentState.showBottomSheet((BuildContext subContext) => { - ThemeData themeData = Theme.of(subContext); - return new Container( - decoration: new BoxDecoration( - border: new Border( - top: new BorderSide( - color: themeData.disabledColor))), - child: new Padding( - padding: EdgeInsets.all(32.0f), - child: new Text("This is a Material persistent bottom sheet. Drag downwards to dismiss it.", - textAlign: TextAlign.center, - style: new TextStyle( - color: themeData.accentColor, - fontSize: 16.0f)) - ) - ); - }).closed.Then((object obj) => { - if (this.mounted) { - this.setState(() => { this._showBottomSheetCallback = this._showBottomSheet; }); - } - - return new Promise(); - }); - } - - void _select(Choice choice) { - this.setState(() => { this._selectedChoice = choice; }); - } - - public override Widget build(BuildContext context) { - return new Scaffold( - key: this._scaffoldKey, - appBar: new AppBar( - title: new Text("Basic AppBar"), - actions: new List { - new IconButton( - icon: new Icon(Choice.choices[0].icon), - //color: Colors.blue, - onPressed: () => { this._select((Choice.choices[0])); } - ), - new IconButton( - icon: new Icon(Choice.choices[1].icon), - //color: Colors.blue, - onPressed: () => { this._select((Choice.choices[1])); } - ), - - new PopupMenuButton( - onSelected: this._select, - itemBuilder: (BuildContext subContext) => { - List> popupItems = new List>(); - for (int i = 2; i < Choice.choices.Count; i++) { - popupItems.Add(new PopupMenuItem( - value: Choice.choices[i], - child: new Text(Choice.choices[i].title))); - } - - return popupItems; - } - ) - } - ), - body: new Padding( - padding: EdgeInsets.all(16.0f), - child: new ChoiceCard(choice: this._selectedChoice) - ), - floatingActionButton: new FloatingActionButton( - backgroundColor: Colors.redAccent, - child: new Icon(Unity.UIWidgets.material.Icons.add_alert), - onPressed: this._showBottomSheetCallback - ), - drawer: new Drawer( - child: new ListView( - padding: EdgeInsets.zero, - children: new List { - new ListTile( - leading: new Icon(Unity.UIWidgets.material.Icons.account_circle), - title: new Text("Login"), - onTap: () => { } - ), - new Divider( - height: 2.0f), - new ListTile( - leading: new Icon(Unity.UIWidgets.material.Icons.account_balance_wallet), - title: new Text("Wallet"), - onTap: () => { } - ), - new Divider( - height: 2.0f), - new ListTile( - leading: new Icon(Unity.UIWidgets.material.Icons.accessibility), - title: new Text("Balance"), - onTap: () => { } - ) - } - ) - ) - ); - } - } - - - class Choice { - public Choice(string title, IconData icon) { - this.title = title; - this.icon = icon; - } - - public readonly string title; - public readonly IconData icon; - - public static List choices = new List { - new Choice("Car", Unity.UIWidgets.material.Icons.directions_car), - new Choice("Bicycle", Unity.UIWidgets.material.Icons.directions_bike), - new Choice("Boat", Unity.UIWidgets.material.Icons.directions_boat), - new Choice("Bus", Unity.UIWidgets.material.Icons.directions_bus), - new Choice("Train", Unity.UIWidgets.material.Icons.directions_railway), - new Choice("Walk", Unity.UIWidgets.material.Icons.directions_walk) - }; - } - - class ChoiceCard : StatelessWidget { - public ChoiceCard(Key key = null, Choice choice = null) : base(key: key) { - this.choice = choice; - } - - public readonly Choice choice; - - public override Widget build(BuildContext context) { - TextStyle textStyle = Theme.of(context).textTheme.display1; - return new Card( - color: Colors.white, - child: new Center( - child: new Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new Icon(this.choice.icon, size: 128.0f, color: textStyle.color), - new RaisedButton( - child: new Text(this.choice.title, style: textStyle), - onPressed: () => { - SnackBar snackBar = new SnackBar( - content: new Text(this.choice.title + " is chosen !"), - action: new SnackBarAction( - label: "Ok", - onPressed: () => { })); - - Scaffold.of(context).showSnackBar(snackBar); - }) - } - ) - ) - ); - } - } - - public class MaterialInkWellWidget : StatefulWidget { - public MaterialInkWellWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new MaterialInkWidgetState(); - } - } - - public class MaterialInkWidgetState : State { - public override Widget build(BuildContext context) { - return new Material( - //color: Colors.blue, - child: new Center( - child: new Container( - width: 200, - height: 200, - child: new InkWell( - borderRadius: BorderRadius.circular(2.0f), - highlightColor: new Color(0xAAFF0000), - splashColor: new Color(0xAA0000FF), - onTap: () => { Debug.Log("on tap"); } - ) - ) - ) - ); - } - } - - public class MaterialButtonWidget : StatefulWidget { - public MaterialButtonWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new MaterialButtonWidgetState(); - } - } - - public class MaterialButtonWidgetState : State { - public override Widget build(BuildContext context) { - return new Stack( - children: new List { - new Material( - child: new Center( - child: new Column( - children: new List { - new Padding(padding: EdgeInsets.only(top: 30f)), - new MaterialButton( - shape: new RoundedRectangleBorder(borderRadius: BorderRadius.all(20.0f)), - color: new Color(0xFF00FF00), - splashColor: new Color(0xFFFF0011), - highlightColor: new Color(0x88FF0011), - child: new Text("Click Me"), - onPressed: () => { Debug.Log("pressed flat button"); } - ), - new Padding(padding: EdgeInsets.only(top: 30f)), - new MaterialButton( - shape: new RoundedRectangleBorder(borderRadius: BorderRadius.all(20.0f)), - color: new Color(0xFFFF00FF), - splashColor: new Color(0xFFFF0011), - highlightColor: new Color(0x88FF0011), - elevation: 4.0f, - child: new Text("Click Me"), - onPressed: () => { Debug.Log("pressed raised button"); } - ) - } - ) - ) - ), - new PerformanceOverlay() - } - ); - } - } - - public class MaterialSliderWidget : StatefulWidget { - public override State createState() { - return new MaterialSliderState(); - } - } - - public class MaterialSliderState : State { - - float _value = 0.8f; - - void onChanged(float value) { - this.setState(() => { this._value = value; }); - } - - public override Widget build(BuildContext context) { - return new Scaffold( - appBar: new AppBar( - title: new Text("Slider and Indicators")), - body: new Column( - children: new List { - new Padding( - padding: EdgeInsets.only(top: 100.0f), - child: new Container( - child: new Slider( - divisions: 10, - min: 0.4f, - label: "Here", - value: this._value, - onChanged: this.onChanged)) - ) - } - ) - ); - } - } - - class MaterialNavigationBarWidget : StatefulWidget { - public MaterialNavigationBarWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new MaterialNavigationBarWidgetState(); - } - } - - class MaterialNavigationBarWidgetState : SingleTickerProviderStateMixin { - int _currentIndex = 0; - - public MaterialNavigationBarWidgetState() { - } - - public override Widget build(BuildContext context) { - return new Scaffold( - bottomNavigationBar: new Container( - height: 100, - color: Colors.blue, - child: new Center( - child: new BottomNavigationBar( - type: BottomNavigationBarType.shifting, - // type: BottomNavigationBarType.fix, - items: new List { - new BottomNavigationBarItem( - icon: new Icon(icon: Unity.UIWidgets.material.Icons.work, size: 30), - title: new Text("Work"), - activeIcon: new Icon(icon: Unity.UIWidgets.material.Icons.work, size: 50), - backgroundColor: Colors.blue - ), - new BottomNavigationBarItem( - icon: new Icon(icon: Unity.UIWidgets.material.Icons.home, size: 30), - title: new Text("Home"), - activeIcon: new Icon(icon: Unity.UIWidgets.material.Icons.home, size: 50), - backgroundColor: Colors.blue - ), - new BottomNavigationBarItem( - icon: new Icon(icon: Unity.UIWidgets.material.Icons.shop, size: 30), - title: new Text("Shop"), - activeIcon: new Icon(icon: Unity.UIWidgets.material.Icons.shop, size: 50), - backgroundColor: Colors.blue - ), - new BottomNavigationBarItem( - icon: new Icon(icon: Unity.UIWidgets.material.Icons.school, size: 30), - title: new Text("School"), - activeIcon: new Icon(icon: Unity.UIWidgets.material.Icons.school, size: 50), - backgroundColor: Colors.blue - ), - }, - currentIndex: this._currentIndex, - onTap: (value) => { this.setState(() => { this._currentIndex = value; }); } - ) - ) - ) - ); - } - } - - class MaterialReorderableListViewWidget : StatefulWidget { - public MaterialReorderableListViewWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new MaterialReorderableListViewWidgetState(); - } - } - - class MaterialReorderableListViewWidgetState : State { - List items = new List {"First", "Second", "Third"}; - - public override Widget build(BuildContext context) { - return new Stack( - children: new List { - new Scaffold( - body: new Scrollbar( - child: new ReorderableListView( - header: new Text("Header of list"), - children: this.items.Select((item) => { - return new Container( - key: Key.key(item), - width: 300.0f, - height: 50.0f, - decoration: new BoxDecoration( - color: Colors.blue, - border: Border.all( - color: Colors.black - ) - ), - child: new Center( - child: new Text( - item, - style: new TextStyle( - fontSize: 32 - ) - ) - ) - ); - }).ToList(), - onReorder: (int oldIndex, int newIndex) => { - this.setState(() => { - if (newIndex > oldIndex) { - newIndex -= 1; - } - string item = this.items[oldIndex]; - this.items.RemoveAt(oldIndex); - this.items.Insert(newIndex, item); - }); - } - ) - ) - ), - new PerformanceOverlay() - } - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/MaterialSample.cs.meta b/Samples/UIWidgetSample/MaterialSample.cs.meta deleted file mode 100644 index 9c0f0518..00000000 --- a/Samples/UIWidgetSample/MaterialSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d7c3be43dd8b94a349f26e3e7173c3f6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/MaterialThemeSample.cs b/Samples/UIWidgetSample/MaterialThemeSample.cs deleted file mode 100644 index 216572eb..00000000 --- a/Samples/UIWidgetSample/MaterialThemeSample.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.engine; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Image = Unity.UIWidgets.widgets.Image; - -namespace UIWidgetsSample { - public class MaterialThemeSample: UIWidgetsSamplePanel { - - protected override Widget createWidget() { - return new MaterialApp( - home: new MaterialThemeSampleWidget(), - darkTheme: new ThemeData(primaryColor: Colors.black26) - ); - } - - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load(path: "MaterialIcons-Regular"), "Material Icons"); - base.OnEnable(); - } - } - - public class MaterialThemeSampleWidget: StatefulWidget { - public override State createState() { - return new _MaterialThemeSampleWidgetState(); - } - } - - class _MaterialThemeSampleWidgetState : State { - public override Widget build(BuildContext context) { - return new Theme( - data: new ThemeData( - appBarTheme: new AppBarTheme( - color: Colors.purple - ), - bottomAppBarTheme: new BottomAppBarTheme( - color: Colors.blue - ), - cardTheme: new CardTheme( - color: Colors.red, - elevation: 2.0f - ) - ), - child: new Scaffold( - appBar: new AppBar(title: new Text("Test App Bar Theme")), - body: new Center( - child: new Card( - shape: new RoundedRectangleBorder( - borderRadius: BorderRadius.all(5.0f) - ), - child: new Container( - height: 250, - child: new Column( - children: new List { - Image.asset( - "products/backpack", - fit: BoxFit.cover, - width: 200, - height: 200 - ), - new Text("Card Theme") - } - ) - ) - ) - ), - bottomNavigationBar: new BottomAppBar( - child: new Row( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: new List { - new IconButton(icon: new Icon(Unity.UIWidgets.material.Icons.menu), onPressed: () => { }), - new IconButton(icon: new Icon(Unity.UIWidgets.material.Icons.account_balance), onPressed: () => { }) - }) - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/MaterialThemeSample.cs.meta b/Samples/UIWidgetSample/MaterialThemeSample.cs.meta deleted file mode 100644 index 0d5a461b..00000000 --- a/Samples/UIWidgetSample/MaterialThemeSample.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: f5061bd7b85f4179a65c68ac289a4a58 -timeCreated: 1556597371 \ No newline at end of file diff --git a/Samples/UIWidgetSample/MaterialThemeSample.unity b/Samples/UIWidgetSample/MaterialThemeSample.unity deleted file mode 100644 index a32147d7..00000000 --- a/Samples/UIWidgetSample/MaterialThemeSample.unity +++ /dev/null @@ -1,468 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657898, g: 0.49641287, b: 0.5748173, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &1354633538 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1354633541} - - component: {fileID: 1354633540} - - component: {fileID: 1354633539} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1354633539 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1354633538} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &1354633540 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1354633538} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &1354633541 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1354633538} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1488377021 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1488377023} - - component: {fileID: 1488377022} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &1488377022 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1488377021} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &1488377023 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1488377021} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &1752286437 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1752286441} - - component: {fileID: 1752286440} - - component: {fileID: 1752286439} - - component: {fileID: 1752286438} - - component: {fileID: 1752286443} - - component: {fileID: 1752286442} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1752286438 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1752286437} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1752286439 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1752286437} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1752286440 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1752286437} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &1752286441 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1752286437} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1752286442 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1752286437} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f5061bd7b85f4179a65c68ac289a4a58, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 - antiAliasingOverride: 4 ---- !u!222 &1752286443 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1752286437} - m_CullTransparentMesh: 0 ---- !u!1 &1937049299 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1937049302} - - component: {fileID: 1937049301} - - component: {fileID: 1937049300} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1937049300 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1937049299} - m_Enabled: 1 ---- !u!20 &1937049301 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1937049299} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1937049302 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1937049299} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Samples/UIWidgetSample/MaterialThemeSample.unity.meta b/Samples/UIWidgetSample/MaterialThemeSample.unity.meta deleted file mode 100644 index bad5ea33..00000000 --- a/Samples/UIWidgetSample/MaterialThemeSample.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 525ef411443314aae829b4252f00e997 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Navigation.unity b/Samples/UIWidgetSample/Navigation.unity deleted file mode 100644 index 75e74600..00000000 --- a/Samples/UIWidgetSample/Navigation.unity +++ /dev/null @@ -1,648 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657892, g: 0.4964127, b: 0.5748172, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &4286172 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4286176} - - component: {fileID: 4286175} - - component: {fileID: 4286174} - - component: {fileID: 4286173} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &4286173 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4286172} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &4286174 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4286172} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &4286175 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4286172} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &4286176 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4286172} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 927824195} - - {fileID: 1158582124} - - {fileID: 172161728} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!1 &26611619 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 26611622} - - component: {fileID: 26611621} - - component: {fileID: 26611620} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &26611620 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 26611619} - m_Enabled: 1 ---- !u!20 &26611621 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 26611619} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &26611622 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 26611619} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &172161727 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 172161728} - - component: {fileID: 172161730} - - component: {fileID: 172161729} - m_Layer: 5 - m_Name: PageView - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &172161728 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 172161727} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 4286176} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &172161729 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 172161727} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a8dea5be0500345ccb20b797d19e741c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &172161730 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 172161727} - m_CullTransparentMesh: 0 ---- !u!1 &897547349 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 897547351} - - component: {fileID: 897547350} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &897547350 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 897547349} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &897547351 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 897547349} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &927824194 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 927824195} - - component: {fileID: 927824197} - - component: {fileID: 927824196} - m_Layer: 5 - m_Name: Navigation - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &927824195 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 927824194} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 4286176} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &927824196 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 927824194} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 020016dfbbaef41b496f4e5be17d098c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &927824197 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 927824194} - m_CullTransparentMesh: 0 ---- !u!1 &1158582123 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1158582124} - - component: {fileID: 1158582126} - - component: {fileID: 1158582125} - m_Layer: 5 - m_Name: CustomPaint - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &1158582124 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1158582123} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 4286176} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1158582125 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1158582123} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5debfd6de8ea942d487383a56aad8491, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1158582126 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1158582123} - m_CullTransparentMesh: 0 ---- !u!1 &1838283857 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1838283860} - - component: {fileID: 1838283859} - - component: {fileID: 1838283858} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1838283858 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1838283857} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &1838283859 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1838283857} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &1838283860 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1838283857} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Samples/UIWidgetSample/Navigation.unity.meta b/Samples/UIWidgetSample/Navigation.unity.meta deleted file mode 100644 index 2a84e5b6..00000000 --- a/Samples/UIWidgetSample/Navigation.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 48300882e985d484880e16569661a93c -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/NavigationSample.cs b/Samples/UIWidgetSample/NavigationSample.cs deleted file mode 100644 index fe48fa9f..00000000 --- a/Samples/UIWidgetSample/NavigationSample.cs +++ /dev/null @@ -1,186 +0,0 @@ -using System; -using System.Collections.Generic; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using DialogUtils = Unity.UIWidgets.widgets.DialogUtils; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsSample { - public class NavigationSample : UIWidgetsSamplePanel { - - protected override Widget createWidget() { - return new WidgetsApp( - initialRoute: "/", - textStyle: new TextStyle(fontSize: 24), - pageRouteBuilder: this.pageRouteBuilder, - routes: new Dictionary { - {"/", (context) => new HomeScreen()}, - {"/detail", (context) => new DetailScreen()} - }); - } - - protected override PageRouteFactory pageRouteBuilder { - get { - return (RouteSettings settings, WidgetBuilder builder) => - new PageRouteBuilder( - settings: settings, - pageBuilder: (BuildContext context, Animation animation, - Animation secondaryAnimation) => builder(context), - transitionsBuilder: (BuildContext context, Animation - animation, Animation secondaryAnimation, Widget child) => - new _FadeUpwardsPageTransition( - routeAnimation: animation, - child: child - ) - ); - } - } - } - - - class HomeScreen : StatelessWidget { - public override Widget build(BuildContext context) { - return new NavigationPage( - body: new Container( - color: new Color(0xFF888888), - child: new Center( - child: new CustomButton(onPressed: () => { Navigator.pushNamed(context, "/detail"); }, - child: new Text("Go to Detail")) - )), - title: "Home" - ); - } - } - - class DetailScreen : StatelessWidget { - public override Widget build(BuildContext context) { - return new NavigationPage( - body: new Container( - color: new Color(0xFF1389FD), - child: new Center( - child: new Column( - children: new List() { - new CustomButton(onPressed: () => { Navigator.pop(context); }, child: new Text("Back")), - new CustomButton( - onPressed: () => { - _Dialog.showDialog(context, builder: (BuildContext c) => new Dialog()); - }, child: new Text("Show Dialog")) - } - ) - )), - title: "Detail"); - } - } - - class Dialog : StatelessWidget { - public override Widget build(BuildContext context) { - return new Center(child: new Container( - color: new Color(0xFFFF0000), - width: 100, - height: 80, - child: new Center( - child: new Text("Hello Dialog") - ))); - } - } - - class _FadeUpwardsPageTransition : StatelessWidget { - internal _FadeUpwardsPageTransition( - Key key = null, - Animation routeAnimation = null, // The route's linear 0.0 - 1.0 animation. - Widget child = null - ) : base(key: key) { - this._positionAnimation = _bottomUpTween.chain(_fastOutSlowInTween).animate(routeAnimation); - this._opacityAnimation = _easeInTween.animate(routeAnimation); - this.child = child; - } - - static Tween _bottomUpTween = new OffsetTween( - begin: new Offset(0.0f, 0.25f), - end: Offset.zero - ); - - static Animatable _fastOutSlowInTween = new CurveTween(curve: Curves.fastOutSlowIn); - static Animatable _easeInTween = new CurveTween(curve: Curves.easeIn); - - readonly Animation _positionAnimation; - readonly Animation _opacityAnimation; - public readonly Widget child; - - public override Widget build(BuildContext context) { - return new SlideTransition( - position: this._positionAnimation, - child: new FadeTransition( - opacity: this._opacityAnimation, - child: this.child - ) - ); - } - } - - class NavigationPage : StatelessWidget { - public readonly Widget body; - public readonly string title; - - public NavigationPage(Widget body = null, string title = null) { - this.title = title; - this.body = body; - } - - public override Widget build(BuildContext context) { - Widget back = null; - if (Navigator.of(context).canPop()) { - back = new CustomButton(onPressed: () => { Navigator.pop(context); }, - child: new Text("Go Back")); - back = new Column(mainAxisAlignment: MainAxisAlignment.center, children: new List() {back}); - } - - - return new Container( - child: new Column( - children: new List() { - new ConstrainedBox(constraints: new BoxConstraints(maxHeight: 80), - child: new DecoratedBox( - decoration: new BoxDecoration(color: new Color(0XFFE1ECF4)), - child: new NavigationToolbar(leading: back, - middle: new Text(this.title, textAlign: TextAlign.center)))), - new Flexible(child: this.body) - } - ) - ); - } - } - - static class _Dialog { - public static void showDialog(BuildContext context, - bool barrierDismissible = true, WidgetBuilder builder = null) { - DialogUtils.showGeneralDialog( - context: context, - pageBuilder: (BuildContext buildContext, Animation animation, - Animation secondaryAnimation) => { - return builder(buildContext); - }, - barrierDismissible: barrierDismissible, - barrierColor: new Color(0x8A000000), - transitionDuration: TimeSpan.FromMilliseconds(150), - transitionBuilder: _buildMaterialDialogTransitions - ); - } - - static Widget _buildMaterialDialogTransitions(BuildContext context, - Animation animation, Animation secondaryAnimation, Widget child) { - return new FadeTransition( - opacity: new CurvedAnimation( - parent: animation, - curve: Curves.easeOut - ), - child: child - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/NavigationSample.cs.meta b/Samples/UIWidgetSample/NavigationSample.cs.meta deleted file mode 100644 index 4e3a12fd..00000000 --- a/Samples/UIWidgetSample/NavigationSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 020016dfbbaef41b496f4e5be17d098c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/PageViewSample.cs b/Samples/UIWidgetSample/PageViewSample.cs deleted file mode 100644 index c8619335..00000000 --- a/Samples/UIWidgetSample/PageViewSample.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsSample { - public class PageViewSample : UIWidgetsSamplePanel { - - protected override Widget createWidget() { - return new WidgetsApp( - home: new Container( - width: 200, - height: 400, - child: new PageView( - children: new List() { - new Container( - color: new Color(0xFFE91E63) - ), - new Container( - color: new Color(0xFF00BCD4) - ), - new Container( - color: new Color(0xFF673AB7) - ) - } - )), - pageRouteBuilder: this.pageRouteBuilder); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/PageViewSample.cs.meta b/Samples/UIWidgetSample/PageViewSample.cs.meta deleted file mode 100644 index db4487e5..00000000 --- a/Samples/UIWidgetSample/PageViewSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a8dea5be0500345ccb20b797d19e741c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Resources.meta b/Samples/UIWidgetSample/Resources.meta deleted file mode 100644 index 89285f4a..00000000 --- a/Samples/UIWidgetSample/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 77196fe8699ab4d4ebcdcd40d51ad725 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Resources/VideoSampleRT.renderTexture b/Samples/UIWidgetSample/Resources/VideoSampleRT.renderTexture deleted file mode 100644 index 40eaf3b4..00000000 --- a/Samples/UIWidgetSample/Resources/VideoSampleRT.renderTexture +++ /dev/null @@ -1,34 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!84 &8400000 -RenderTexture: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: VideoSampleRT - m_ImageContentsHash: - serializedVersion: 2 - Hash: 00000000000000000000000000000000 - m_ForcedFallbackFormat: 4 - m_DownscaleFallback: 0 - m_Width: 480 - m_Height: 270 - m_AntiAliasing: 1 - m_DepthFormat: 2 - m_ColorFormat: 0 - m_MipMap: 0 - m_GenerateMips: 1 - m_SRGB: 0 - m_UseDynamicScale: 0 - m_BindMS: 0 - m_TextureSettings: - serializedVersion: 2 - m_FilterMode: 0 - m_Aniso: 0 - m_MipBias: 0 - m_WrapU: 1 - m_WrapV: 1 - m_WrapW: 1 - m_Dimension: 2 - m_VolumeDepth: 1 diff --git a/Samples/UIWidgetSample/Resources/VideoSampleRT.renderTexture.meta b/Samples/UIWidgetSample/Resources/VideoSampleRT.renderTexture.meta deleted file mode 100644 index 997a6eb7..00000000 --- a/Samples/UIWidgetSample/Resources/VideoSampleRT.renderTexture.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 53bf3f9b1464948cbb3f58add96afa32 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 8400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Resources/file_example_MOV_480_700kB.mov b/Samples/UIWidgetSample/Resources/file_example_MOV_480_700kB.mov deleted file mode 100644 index 28c89a1c..00000000 Binary files a/Samples/UIWidgetSample/Resources/file_example_MOV_480_700kB.mov and /dev/null differ diff --git a/Samples/UIWidgetSample/Resources/file_example_MOV_480_700kB.mov.meta b/Samples/UIWidgetSample/Resources/file_example_MOV_480_700kB.mov.meta deleted file mode 100644 index ebf786d9..00000000 --- a/Samples/UIWidgetSample/Resources/file_example_MOV_480_700kB.mov.meta +++ /dev/null @@ -1,21 +0,0 @@ -fileFormatVersion: 2 -guid: 9906c152cf75248e98d1edd60759f014 -VideoClipImporter: - externalObjects: {} - serializedVersion: 2 - useLegacyImporter: 0 - quality: 0.5 - isColorLinear: 0 - frameRange: 0 - startFrame: -1 - endFrame: -1 - colorSpace: 0 - deinterlace: 0 - encodeAlpha: 0 - flipVertical: 0 - flipHorizontal: 0 - importAudio: 1 - targetSettings: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/SampleExample.cs b/Samples/UIWidgetSample/SampleExample.cs deleted file mode 100644 index 2741641f..00000000 --- a/Samples/UIWidgetSample/SampleExample.cs +++ /dev/null @@ -1,8 +0,0 @@ -// ----------------------------------------------------------------------------- -// -// Use this sample example C# file to develop samples to guide usage of APIs -// in your package. -// -// ----------------------------------------------------------------------------- - - diff --git a/Samples/UIWidgetSample/SampleExample.cs.meta b/Samples/UIWidgetSample/SampleExample.cs.meta deleted file mode 100644 index a2deacbf..00000000 --- a/Samples/UIWidgetSample/SampleExample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d0b6d46ec9aeb4883a36de0ed9efc4db -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/ScaleGestureSample.cs b/Samples/UIWidgetSample/ScaleGestureSample.cs deleted file mode 100644 index 0a0c8d2b..00000000 --- a/Samples/UIWidgetSample/ScaleGestureSample.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.material; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; - -namespace UIWidgetsSample { - public class ScaleGestureSample : UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new MaterialApp( - showPerformanceOverlay: false, - home: new ScaleGesturePanel() - ); - } - - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load(path: "MaterialIcons-Regular"), "Material Icons"); - base.OnEnable(); - } - } - - class ScaleGesturePanel : StatefulWidget { - public override State createState() { - return new ScaleGesturePanelState(); - } - } - - class ScaleGesturePanelState : State { - float scaleValue = 1.0f; - - public override Widget build(BuildContext context) { - return new Scaffold( - appBar: new AppBar( - title: new Center( - child: new Text("Test Scale Gesture Widget") - ) - ), - body: new GestureDetector( - onScaleStart: scaleDetails => { Debug.Log("Scale Start !"); }, - onScaleUpdate: scaleDetails => { - Debug.Log("Scale value = " + scaleDetails.scale); - this.setState(() => { this.scaleValue = scaleDetails.scale; }); - }, - onScaleEnd: scaleDetails => { Debug.Log("Scale End"); }, - child: new Card( - color: Colors.white, - child: new Center( - child: new Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new Icon(Unity.UIWidgets.material.Icons.ac_unit, size: 128.0f, color: Colors.black), - new RaisedButton( - child: new Text("Scale: " + this.scaleValue), - onPressed: () => { Debug.Log("Button Pressed"); }) - } - ) - )) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/ScaleGestureSample.cs.meta b/Samples/UIWidgetSample/ScaleGestureSample.cs.meta deleted file mode 100644 index f3974db9..00000000 --- a/Samples/UIWidgetSample/ScaleGestureSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 38800d11bb7a9447582e892145b3bd82 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/ScrollBar.unity b/Samples/UIWidgetSample/ScrollBar.unity deleted file mode 100644 index 028acf60..00000000 --- a/Samples/UIWidgetSample/ScrollBar.unity +++ /dev/null @@ -1,502 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657898, g: 0.49641275, b: 0.5748174, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &288417894 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 288417898} - - component: {fileID: 288417897} - - component: {fileID: 288417896} - - component: {fileID: 288417895} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &288417895 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 288417894} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &288417896 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 288417894} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &288417897 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 288417894} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &288417898 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 288417894} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1525809614} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!1 &501956623 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 501956625} - - component: {fileID: 501956624} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &501956624 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 501956623} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &501956625 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 501956623} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &522912515 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 522912518} - - component: {fileID: 522912517} - - component: {fileID: 522912516} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &522912516 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 522912515} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &522912517 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 522912515} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &522912518 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 522912515} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1525809613 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1525809614} - - component: {fileID: 1525809615} - - component: {fileID: 1525809616} - m_Layer: 5 - m_Name: GameObject - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1525809614 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1525809613} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 288417898} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 100, y: 100} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &1525809615 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1525809613} - m_CullTransparentMesh: 0 ---- !u!114 &1525809616 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1525809613} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c5c73cb2437bb4d369115d787656adf4, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!1 &1713793689 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1713793692} - - component: {fileID: 1713793691} - - component: {fileID: 1713793690} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1713793690 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1713793689} - m_Enabled: 1 ---- !u!20 &1713793691 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1713793689} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1713793692 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1713793689} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Samples/UIWidgetSample/ScrollBar.unity.meta b/Samples/UIWidgetSample/ScrollBar.unity.meta deleted file mode 100644 index 5f9a3e6e..00000000 --- a/Samples/UIWidgetSample/ScrollBar.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 254fc2f80945542b191aff7ab8fda8cb -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/ScrollbarSample.cs b/Samples/UIWidgetSample/ScrollbarSample.cs deleted file mode 100644 index 766fb9c7..00000000 --- a/Samples/UIWidgetSample/ScrollbarSample.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsSample { - public class ScrollbarSample : UIWidgetsSamplePanel { - protected override Widget createWidget() { - var scroll = new Container( - decoration: new BoxDecoration( - border: Border.all(color: new Color(0xFFFFFF00)) - ), - child: new Scrollbar( - child: new ListView( - children: new List { - new Container(height: 40.0f, child: new Text("0")), - new Container(height: 40.0f, child: new Text("1")), - new Container(height: 40.0f, child: new Text("2")), - new Container(height: 40.0f, child: new Text("3")), - new Container(height: 40.0f, child: new Text("4")), - new Container(height: 40.0f, child: new Text("5")), - new Container(height: 40.0f, child: new Text("6")), - new Container(height: 40.0f, child: new Text("7")), - new Container(height: 40.0f, child: new Text("8")), - new Container(height: 40.0f, child: new Text("9")), - new Container(height: 40.0f, child: new Text("10")), - new Container(height: 40.0f, child: new Text("11")), - new Container(height: 40.0f, child: new Text("12")), - new Container(height: 40.0f, child: new Text("13")), - new Container(height: 40.0f, child: new Text("14")), - new Container(height: 40.0f, child: new Text("15")), - new Container(height: 40.0f, child: new Text("16")), - new Container(height: 40.0f, child: new Text("17")), - } - ) - ) - ); - return new WidgetsApp( - home: scroll, - pageRouteBuilder: this.pageRouteBuilder); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/ScrollbarSample.cs.meta b/Samples/UIWidgetSample/ScrollbarSample.cs.meta deleted file mode 100644 index 28c5e32a..00000000 --- a/Samples/UIWidgetSample/ScrollbarSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c5c73cb2437bb4d369115d787656adf4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/SelectOnStart.cs b/Samples/UIWidgetSample/SelectOnStart.cs deleted file mode 100644 index 610717f2..00000000 --- a/Samples/UIWidgetSample/SelectOnStart.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; -using UnityEngine.EventSystems; - -namespace UIWidgetsSample { - public class SelectOnStart : MonoBehaviour { - void Start() { - EventSystem.current.SetSelectedGameObject(this.gameObject); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/SelectOnStart.cs.meta b/Samples/UIWidgetSample/SelectOnStart.cs.meta deleted file mode 100644 index 5ab30bf4..00000000 --- a/Samples/UIWidgetSample/SelectOnStart.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c42d7614d405d465aab861f4a0cb146e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/TextInput.unity b/Samples/UIWidgetSample/TextInput.unity deleted file mode 100644 index 349a8462..00000000 --- a/Samples/UIWidgetSample/TextInput.unity +++ /dev/null @@ -1,1751 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074, b: 0.35872698, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &43384371 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 43384372} - - component: {fileID: 43384374} - - component: {fileID: 43384373} - m_Layer: 5 - m_Name: Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &43384372 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 43384371} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1556903570} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.25} - m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &43384373 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 43384371} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &43384374 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 43384371} - m_CullTransparentMesh: 0 ---- !u!1 &71411787 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 71411788} - m_Layer: 5 - m_Name: Handle Slide Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &71411788 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 71411787} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 385671180} - m_Father: {fileID: 1556903570} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &244594849 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 244594852} - - component: {fileID: 244594851} - - component: {fileID: 244594850} - - component: {fileID: 244594854} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &244594850 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 244594849} - m_Enabled: 1 ---- !u!20 &244594851 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 244594849} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 1, g: 1, b: 1, a: 1} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 1 - far clip plane: 100 - field of view: 26.991467 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &244594852 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 244594849} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -15} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &244594854 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 244594849} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -768656878, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_EventMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_MaxRayIntersections: 0 ---- !u!1 &304189370 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 304189374} - - component: {fileID: 304189373} - - component: {fileID: 304189372} - - component: {fileID: 304189371} - - component: {fileID: 304189376} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &304189371 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &304189372 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1.5 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &304189373 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &304189374 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1387978527} - - {fileID: 1354314692} - - {fileID: 1142533064} - - {fileID: 1399904531} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!222 &304189376 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_CullTransparentMesh: 0 ---- !u!1 &335487698 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 335487699} - - component: {fileID: 335487702} - - component: {fileID: 335487701} - - component: {fileID: 335487700} - m_Layer: 5 - m_Name: Button - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &335487699 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 335487698} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 998549136} - m_Father: {fileID: 1399904531} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 160, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &335487700 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 335487698} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 335487701} - m_OnClick: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null ---- !u!114 &335487701 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 335487698} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &335487702 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 335487698} - m_CullTransparentMesh: 0 ---- !u!1 &385671179 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 385671180} - - component: {fileID: 385671182} - - component: {fileID: 385671181} - m_Layer: 5 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &385671180 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 385671179} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 71411788} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &385671181 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 385671179} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &385671182 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 385671179} - m_CullTransparentMesh: 0 ---- !u!1 &390948269 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 390948272} - - component: {fileID: 390948271} - - component: {fileID: 390948270} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &390948270 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 390948269} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &390948271 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 390948269} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &390948272 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 390948269} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &431912886 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 431912887} - m_Layer: 5 - m_Name: Fill Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &431912887 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 431912886} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1777916082} - m_Father: {fileID: 1556903570} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.25} - m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: -5, y: 0} - m_SizeDelta: {x: -20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &554372217 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 554372218} - - component: {fileID: 554372221} - - component: {fileID: 554372220} - - component: {fileID: 554372219} - m_Layer: 5 - m_Name: InputField - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &554372218 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554372217} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1148735785} - - {fileID: 1621115925} - m_Father: {fileID: 1399904531} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -100} - m_SizeDelta: {x: 160, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &554372219 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554372217} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 575553740, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 554372220} - m_TextComponent: {fileID: 1621115926} - m_Placeholder: {fileID: 1148735786} - m_ContentType: 0 - m_InputType: 0 - m_AsteriskChar: 42 - m_KeyboardType: 0 - m_LineType: 0 - m_HideMobileInput: 0 - m_CharacterValidation: 0 - m_CharacterLimit: 0 - m_OnEndEdit: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.InputField+SubmitEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.InputField+OnChangeEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null - m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_CustomCaretColor: 0 - m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} - m_Text: - m_CaretBlinkRate: 0.85 - m_CaretWidth: 1 - m_ReadOnly: 0 ---- !u!114 &554372220 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554372217} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &554372221 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554372217} - m_CullTransparentMesh: 0 ---- !u!1 &579295879 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 579295880} - - component: {fileID: 579295882} - - component: {fileID: 579295881} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &579295880 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 579295879} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1399904531} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -30} - m_SizeDelta: {x: 160, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &579295881 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 579295879} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Unity UI Panels ---- !u!222 &579295882 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 579295879} - m_CullTransparentMesh: 0 ---- !u!1 &998549135 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 998549136} - - component: {fileID: 998549138} - - component: {fileID: 998549137} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &998549136 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 998549135} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 335487699} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &998549137 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 998549135} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Button ---- !u!222 &998549138 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 998549135} - m_CullTransparentMesh: 0 ---- !u!1 &1142533063 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1142533064} - - component: {fileID: 1142533066} - - component: {fileID: 1142533065} - - component: {fileID: 1142533067} - m_Layer: 5 - m_Name: Select On Start - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &1142533064 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142533063} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 304189374} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 500, y: -305} - m_SizeDelta: {x: 300, y: 400} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1142533065 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142533063} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e9bc91696c1584e11b23dca1a9e3cde3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 - antiAliasingOverride: 4 ---- !u!222 &1142533066 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142533063} - m_CullTransparentMesh: 0 ---- !u!114 &1142533067 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142533063} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c42d7614d405d465aab861f4a0cb146e, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1148735784 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1148735785} - - component: {fileID: 1148735787} - - component: {fileID: 1148735786} - m_Layer: 5 - m_Name: Placeholder - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1148735785 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1148735784} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 554372218} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: -0.5} - m_SizeDelta: {x: -20, y: -13} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1148735786 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1148735784} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 2 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Enter text... ---- !u!222 &1148735787 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1148735784} - m_CullTransparentMesh: 0 ---- !u!1 &1354314691 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1354314692} - - component: {fileID: 1354314694} - - component: {fileID: 1354314693} - m_Layer: 5 - m_Name: TextInput Override Ratio - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &1354314692 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1354314691} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 304189374} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1354314693 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1354314691} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e9bc91696c1584e11b23dca1a9e3cde3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 4 - antiAliasingOverride: 4 ---- !u!222 &1354314694 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1354314691} - m_CullTransparentMesh: 0 ---- !u!1 &1387978526 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1387978527} - - component: {fileID: 1387978529} - - component: {fileID: 1387978528} - m_Layer: 5 - m_Name: TextInput - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1387978527 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1387978526} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 304189374} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1387978528 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1387978526} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9c5c86936ca864ae684720ddcd50d759, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 - antiAliasingOverride: 0 ---- !u!222 &1387978529 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1387978526} - m_CullTransparentMesh: 0 ---- !u!1 &1399904530 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1399904531} - - component: {fileID: 1399904533} - - component: {fileID: 1399904532} - m_Layer: 5 - m_Name: Panel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &1399904531 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1399904530} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 579295880} - - {fileID: 554372218} - - {fileID: 1556903570} - - {fileID: 335487699} - m_Father: {fileID: 304189374} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -100, y: -200} - m_SizeDelta: {x: 200, y: 400} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1399904532 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1399904530} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.392} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &1399904533 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1399904530} - m_CullTransparentMesh: 0 ---- !u!1 &1492232671 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1492232675} - - component: {fileID: 1492232674} - - component: {fileID: 1492232673} - - component: {fileID: 1492232672} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!65 &1492232672 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1492232671} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1492232673 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1492232671} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 7e4e4512ac8a44bf09367b1661efddc4, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1492232674 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1492232671} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1492232675 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1492232671} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -1} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1556903569 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1556903570} - - component: {fileID: 1556903571} - m_Layer: 5 - m_Name: Slider - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1556903570 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1556903569} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 43384372} - - {fileID: 431912887} - - {fileID: 71411788} - m_Father: {fileID: 1399904531} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -150} - m_SizeDelta: {x: 160, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1556903571 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1556903569} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -113659843, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 385671181} - m_FillRect: {fileID: 1777916082} - m_HandleRect: {fileID: 385671180} - m_Direction: 0 - m_MinValue: 0 - m_MaxValue: 1 - m_WholeNumbers: 0 - m_Value: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.Slider+SliderEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null ---- !u!1 &1621115924 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1621115925} - - component: {fileID: 1621115927} - - component: {fileID: 1621115926} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1621115925 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1621115924} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 554372218} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: -0.5} - m_SizeDelta: {x: -20, y: -13} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1621115926 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1621115924} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 0 - m_HorizontalOverflow: 1 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: ---- !u!222 &1621115927 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1621115924} - m_CullTransparentMesh: 0 ---- !u!1 &1777916081 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1777916082} - - component: {fileID: 1777916084} - - component: {fileID: 1777916083} - m_Layer: 5 - m_Name: Fill - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1777916082 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1777916081} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 431912887} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 10, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1777916083 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1777916081} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &1777916084 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1777916081} - m_CullTransparentMesh: 0 diff --git a/Samples/UIWidgetSample/TextInput.unity.meta b/Samples/UIWidgetSample/TextInput.unity.meta deleted file mode 100644 index d4700191..00000000 --- a/Samples/UIWidgetSample/TextInput.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: a677aa8bdebec4af786ef0846602c037 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/TextInputSample.cs b/Samples/UIWidgetSample/TextInputSample.cs deleted file mode 100644 index f5be11a5..00000000 --- a/Samples/UIWidgetSample/TextInputSample.cs +++ /dev/null @@ -1,277 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgetsSample { - public class TextInputSample : UIWidgetsSamplePanel { - class _TextInputSample : StatefulWidget { - public readonly string title; - - public _TextInputSample(Key key = null, string title = null) : base(key) { - this.title = title; - } - - public override State createState() { - return new _TextInputSampleState(); - } - } - - protected override Widget createWidget() { - return new MaterialApp( - home: new EditableInputTypeWidget() - ); - } - - - class _TextInputSampleState : State<_TextInputSample> { - TextEditingController titleController = new TextEditingController(""); - TextEditingController descController = new TextEditingController(""); - FocusNode _titleFocusNode; - FocusNode _descFocusNode; - - public override void initState() { - base.initState(); - this._titleFocusNode = new FocusNode(); - this._descFocusNode = new FocusNode(); - } - - public override void dispose() { - this._titleFocusNode.dispose(); - this._descFocusNode.dispose(); - base.dispose(); - } - - Widget title() { - return new Container(child: new Text(this.widget.title ?? "", textAlign: TextAlign.center, - style: new TextStyle(fontSize: 24, fontWeight: FontWeight.w700)), - margin: EdgeInsets.only(bottom: 20)); - } - - Widget titleInput() { - return new Row( - children: new List( - ) { - new SizedBox(width: 100, child: new Text("Title")), - new Flexible(child: new Container( - decoration: new BoxDecoration(border: Border.all(new Color(0xFF000000), 1)), - padding: EdgeInsets.fromLTRB(8, 0, 8, 0), - child: new EditableText(maxLines: 1, - controller: this.titleController, - selectionControls: MaterialUtils.materialTextSelectionControls, - backgroundCursorColor: Colors.transparent, - autofocus: true, - focusNode: new FocusNode(), - style: new TextStyle( - fontSize: 18, - height: 1.5f, - color: new Color(0xFF1389FD) - ), - selectionColor: Color.fromARGB(255, 255, 0, 0), - cursorColor: Color.fromARGB(255, 0, 0, 0)) - )), - } - ); - } - - Widget descInput() { - return new Container( - margin: EdgeInsets.fromLTRB(0, 10, 0, 10), - child: new Row( - children: new List( - ) { - new SizedBox(width: 100, child: new Text("Description")), - new Flexible(child: new Container( - height: 200, - decoration: new BoxDecoration(border: Border.all(new Color(0xFF000000), 1)), - padding: EdgeInsets.fromLTRB(8, 0, 8, 0), - child: new EditableText(maxLines: 200, - controller: this.descController, - backgroundCursorColor: Colors.transparent, - selectionControls: MaterialUtils.materialTextSelectionControls, - focusNode: new FocusNode(), - style: new TextStyle( - fontSize: 18, - height: 1.5f, - color: new Color(0xFF1389FD) - ), - selectionColor: Color.fromARGB(255, 255, 0, 0), - cursorColor: Color.fromARGB(255, 0, 0, 0)) - )), - } - )); - } - - public override Widget build(BuildContext context) { - var container = new Container( - padding: EdgeInsets.all(10), - decoration: new BoxDecoration(color: new Color(0x7F000000), - border: Border.all(color: Color.fromARGB(255, 255, 0, 0), width: 5), - borderRadius: BorderRadius.all(2)), - child: new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: new List { - this.title(), - this.titleInput(), - this.descInput(), - } - ) - ); - return container; - } - } - } - - public class EditableInputTypeWidget : StatefulWidget { - public EditableInputTypeWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new _EditableInputTypeWidgetState(); - } - } - - class _EditableInputTypeWidgetState : State { - Widget rowWidgets(string title, Widget widget) { - return new Container( - height: 80, - child: new Row( - children: new List { - new Container(width: 100, - child: new Text(title, - style: new TextStyle(fontSize: 14, height: 2.0f, color: Colors.black, - decoration: TextDecoration.none))), - new Flexible(child: new Container(child: widget, padding: EdgeInsets.all(4), decoration: - new BoxDecoration(border: Border.all(color: Color.black)))) - } - )); - } - - void textSubmitted(string text) { - Debug.Log($"text submitted {text}"); - } - - List buildInputs(bool unityKeyboard) { - List widgets = new List(); - var style = new TextStyle(); - var cursorColor = new Color(0xFF000000); - var selectionColor = new Color(0xFF6F6F6F); - - widgets.Add(this.rowWidgets("Default", new EditStateProvider(builder: ((buildContext, controller, node) => - new EditableText(controller, node, style, cursorColor: cursorColor, backgroundCursorColor: Colors.blue, - selectionColor: selectionColor, onSubmitted: this.textSubmitted - , unityTouchKeyboard: unityKeyboard, - selectionControls: MaterialUtils.materialTextSelectionControls, - cursorWidth: 5.0f, cursorRadius: Radius.circular(2.5f), cursorOpacityAnimates: true, - paintCursorAboveText: true))))); - - widgets.Add(this.rowWidgets("Multiple Line", new EditStateProvider( - builder: ((buildContext, controller, node) => - new EditableText(controller, node, style, cursorColor: cursorColor, - backgroundCursorColor: Colors.transparent, - selectionColor: selectionColor, maxLines: 4, - onSubmitted: this.textSubmitted, unityTouchKeyboard: unityKeyboard, - selectionControls: MaterialUtils.materialTextSelectionControls))))); - - widgets.Add(this.rowWidgets("ObscureText", new EditStateProvider( - builder: ((buildContext, controller, node) => - new EditableText(controller, node, style, cursorColor: cursorColor, - backgroundCursorColor: Colors.transparent, - selectionColor: selectionColor, obscureText: true, - onSubmitted: this.textSubmitted, unityTouchKeyboard: unityKeyboard, - selectionControls: MaterialUtils.materialTextSelectionControls))))); - - widgets.Add(this.rowWidgets("Number", new EditStateProvider(builder: ((buildContext, controller, node) => - new EditableText(controller, node, style, cursorColor: cursorColor, - backgroundCursorColor: Colors.transparent, - selectionColor: selectionColor, keyboardType: TextInputType.number, - onSubmitted: this.textSubmitted, unityTouchKeyboard: unityKeyboard, - selectionControls: MaterialUtils.materialTextSelectionControls))))); - - widgets.Add(this.rowWidgets("Phone", new EditStateProvider(builder: ((buildContext, controller, node) => - new EditableText(controller, node, style, cursorColor: cursorColor, - backgroundCursorColor: Colors.transparent, - selectionColor: selectionColor, keyboardType: TextInputType.phone, - onSubmitted: this.textSubmitted, unityTouchKeyboard: unityKeyboard, - selectionControls: MaterialUtils.materialTextSelectionControls))))); - - widgets.Add(this.rowWidgets("Email", new EditStateProvider(builder: ((buildContext, controller, node) => - new EditableText(controller, node, style, cursorColor: cursorColor, - backgroundCursorColor: Colors.transparent, - selectionColor: selectionColor, keyboardType: TextInputType.emailAddress, - onSubmitted: this.textSubmitted, unityTouchKeyboard: unityKeyboard, - selectionControls: MaterialUtils.materialTextSelectionControls))))); - - widgets.Add(this.rowWidgets("Url", new EditStateProvider(builder: ((buildContext, controller, node) => - new EditableText(controller, node, style, cursorColor: cursorColor, - backgroundCursorColor: Colors.transparent, - selectionColor: selectionColor, keyboardType: TextInputType.url, - onSubmitted: this.textSubmitted, unityTouchKeyboard: unityKeyboard, - selectionControls: MaterialUtils.materialTextSelectionControls))))); - return widgets; - } - - public override Widget build(BuildContext context) { - List widgets = new List(); - - widgets.Add(new Text("UIWidgets Touch Keyboard", - style: new TextStyle(fontSize: 20, height: 2.0f, color: Colors.black, decoration: TextDecoration.none), - textAlign: TextAlign.center)); - widgets.AddRange(this.buildInputs(false)); - - widgets.Add(new Text("Unity Touch Keyboard", - style: new TextStyle(fontSize: 20, height: 2.0f, color: Colors.black, decoration: TextDecoration.none), - textAlign: TextAlign.center)); - widgets.AddRange(this.buildInputs(true)); - - return new Container( - padding: EdgeInsets.all(12), - child: new SingleChildScrollView(child: new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: widgets))); - } - } - - public class EditStateProvider : StatefulWidget { - public delegate EditableText EditableBuilder(BuildContext context, - TextEditingController controller, FocusNode focusNode); - - public readonly EditableBuilder builder; - - public EditStateProvider(Key key = null, EditableBuilder builder = null) : base(key) { - D.assert(builder != null); - this.builder = builder; - } - - public override State createState() { - return new _EditStateProviderState(); - } - } - - class _EditStateProviderState : State { - TextEditingController _controller; - FocusNode _focusNode; - - public override void initState() { - base.initState(); - this._focusNode = new FocusNode(); - this._controller = new TextEditingController(""); - } - - - public override void dispose() { - this._focusNode.dispose(); - base.dispose(); - } - - public override Widget build(BuildContext context) { - return this.widget.builder(context, this._controller, this._focusNode); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/TextInputSample.cs.meta b/Samples/UIWidgetSample/TextInputSample.cs.meta deleted file mode 100644 index d3901dd9..00000000 --- a/Samples/UIWidgetSample/TextInputSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e9bc91696c1584e11b23dca1a9e3cde3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/TextLayoutSample.unity b/Samples/UIWidgetSample/TextLayoutSample.unity deleted file mode 100644 index 6286c08a..00000000 --- a/Samples/UIWidgetSample/TextLayoutSample.unity +++ /dev/null @@ -1,296 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 1 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 12 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_ExtractAmbientOcclusion: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 512 - m_PVRBounces: 2 - m_PVREnvironmentSampleCount: 256 - m_PVREnvironmentReferencePointCount: 2048 - m_PVRFilteringMode: 1 - m_PVRDenoiserTypeDirect: 1 - m_PVRDenoiserTypeIndirect: 1 - m_PVRDenoiserTypeAO: 1 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVREnvironmentMIS: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_ExportTrainingData: 0 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &1668830267 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1668830270} - - component: {fileID: 1668830269} - - component: {fileID: 1668830268} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1668830268 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1668830267} - m_Enabled: 1 ---- !u!20 &1668830269 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1668830267} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_GateFitMode: 2 - m_FOVAxisMode: 0 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1668830270 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1668830267} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1774196668 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1774196670} - - component: {fileID: 1774196669} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &1774196669 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774196668} - m_Enabled: 1 - serializedVersion: 9 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_InnerSpotAngle: 21.80208 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_CullingMatrixOverride: - e00: 1 - e01: 0 - e02: 0 - e03: 0 - e10: 0 - e11: 1 - e12: 0 - e13: 0 - e20: 0 - e21: 0 - e22: 1 - e23: 0 - e30: 0 - e31: 0 - e32: 0 - e33: 1 - m_UseCullingMatrixOverride: 0 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingLayerMask: 1 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} - m_UseBoundingSphereOverride: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &1774196670 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774196668} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} diff --git a/Samples/UIWidgetSample/TextLayoutSample.unity.meta b/Samples/UIWidgetSample/TextLayoutSample.unity.meta deleted file mode 100644 index b27e0d8e..00000000 --- a/Samples/UIWidgetSample/TextLayoutSample.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 12e27c4b597519147a207be6204dc1f5 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/ToDoAppSample.cs b/Samples/UIWidgetSample/ToDoAppSample.cs deleted file mode 100644 index 3c6f45be..00000000 --- a/Samples/UIWidgetSample/ToDoAppSample.cs +++ /dev/null @@ -1,216 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using TextStyle = Unity.UIWidgets.painting.TextStyle; -using Texture = Unity.UIWidgets.widgets.Texture; - -namespace UIWidgetsSample { - public class ToDoAppSample : UIWidgetsSamplePanel { - public class ToDoListApp : StatefulWidget { - public ToDoListApp(Key key = null) : base(key) { - } - - public override State createState() { - return new _ToDoListAppState(); - } - } - - protected override Widget createWidget() { - return new WidgetsApp( - home: new ToDoListApp(), - pageRouteBuilder: this.pageRouteBuilder); - } - - public class CustomButton : StatelessWidget { - public CustomButton( - Key key = null, - GestureTapCallback onPressed = null, - EdgeInsets padding = null, - Color backgroundColor = null, - Widget child = null - ) : base(key: key) { - this.onPressed = onPressed; - this.padding = padding ?? EdgeInsets.all(8.0f); - this.backgroundColor = backgroundColor ?? CLColors.transparent; - this.child = child; - } - - public readonly GestureTapCallback onPressed; - public readonly EdgeInsets padding; - public readonly Widget child; - public readonly Color backgroundColor; - - public override Widget build(BuildContext context) { - return new GestureDetector( - onTap: this.onPressed, - child: new Container( - padding: this.padding, - color: this.backgroundColor, - child: this.child - ) - ); - } - } - - class _ToDoListAppState : State { - public class ToDoItem { - public int id; - public string content; - } - - List items = new List(); - int nextId = 0; - TextEditingController controller = new TextEditingController(""); - FocusNode _focusNode; - - public override void initState() { - base.initState(); - this._focusNode = new FocusNode(); - } - - public override void dispose() { - this._focusNode.dispose(); - base.dispose(); - } - - Widget title() { - return new Text("ToDo App", textAlign: TextAlign.center, - style: new TextStyle(fontSize: 30, fontWeight: FontWeight.w700)); - } - - Widget textInput() { - return new Container( - child: new Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: new List( - ) { - new Container( - width: 300, - decoration: new BoxDecoration(border: Border.all(new Color(0xFF000000), 1)), - padding: EdgeInsets.fromLTRB(8, 0, 8, 0), - child: new EditableText(maxLines: 1, - controller: this.controller, - onSubmitted: (text) => { - this.controller.clear(); - this._addItem(text); - }, - selectionControls: MaterialUtils.materialTextSelectionControls, - autofocus: true, - focusNode: new FocusNode(), - style: new TextStyle( - fontSize: 18, - height: 1.5f, - color: new Color(0xFF1389FD) - ), - selectionColor: Color.fromARGB(255, 255, 0, 0), - cursorColor: Color.fromARGB(255, 0, 0, 0)) - ), - - new CustomButton(backgroundColor: Color.fromARGB(255, 0, 204, 204), - padding: EdgeInsets.all(10), - child: new Text("Add", style: new TextStyle( - fontSize: 20, color: Color.fromARGB(255, 255, 255, 255), fontWeight: FontWeight.w700 - )), onPressed: () => { this._addItem(); }) - } - ) - ); - } - - void _addItem(string text = null) { - this.setState(() => { - text = text ?? this.controller.text; - if (text != "") { - this.items.Add(new ToDoItem() - {id = this.nextId++, content = text}); - } - }); - } - - Widget contents() { - var children = this.items.Select((item) => { - return (Widget) new Text( - item.content, style: new TextStyle( - fontSize: 18, - height: 1.5f - ) - ); - }); - return new Flexible( - child: new ListView( - physics: new AlwaysScrollableScrollPhysics(), - children: children.ToList() - ) - ); - } - - Widget videoTexture() { - var texture = Resources.Load("VideoSampleRT"); - return new Center( - child: new Container( - width: 240, height: 135, - child: new Texture(texture: texture) - ) - ); - } - - public override Widget build(BuildContext context) { - var container = new Container( - padding: EdgeInsets.all(10), - decoration: new BoxDecoration(color: new Color(0x7F000000), - border: Border.all(color: Color.fromARGB(255, 255, 0, 0), width: 5), - borderRadius: BorderRadius.all(2)), - child: new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: new List { - this.title(), - this.textInput(), - // textInput(), - this.contents(), - this.videoTexture(), - } - ) - ); - return container; - } - } - } - - public class CustomButton : StatelessWidget { - public CustomButton( - Key key = null, - GestureTapCallback onPressed = null, - EdgeInsets padding = null, - Color backgroundColor = null, - Widget child = null - ) : base(key: key) { - this.onPressed = onPressed; - this.padding = padding ?? EdgeInsets.all(8.0f); - this.backgroundColor = backgroundColor ?? CLColors.transparent; - this.child = child; - } - - public readonly GestureTapCallback onPressed; - public readonly EdgeInsets padding; - public readonly Widget child; - public readonly Color backgroundColor; - - public override Widget build(BuildContext context) { - return new GestureDetector( - onTap: this.onPressed, - child: new Container( - padding: this.padding, - color: this.backgroundColor, - child: this.child - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/ToDoAppSample.cs.meta b/Samples/UIWidgetSample/ToDoAppSample.cs.meta deleted file mode 100644 index 830a97bb..00000000 --- a/Samples/UIWidgetSample/ToDoAppSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 45683c1d42a0d4392a02956cc7886f83 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/UIWidgetSample.unity b/Samples/UIWidgetSample/UIWidgetSample.unity deleted file mode 100644 index c77ccdd7..00000000 --- a/Samples/UIWidgetSample/UIWidgetSample.unity +++ /dev/null @@ -1,2625 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074, b: 0.35872698, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &43384371 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 43384372} - - component: {fileID: 43384374} - - component: {fileID: 43384373} - m_Layer: 5 - m_Name: Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &43384372 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 43384371} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1556903570} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.25} - m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &43384373 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 43384371} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &43384374 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 43384371} - m_CullTransparentMesh: 0 ---- !u!1 &71411787 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 71411788} - m_Layer: 5 - m_Name: Handle Slide Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &71411788 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 71411787} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 385671180} - m_Father: {fileID: 1556903570} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &244594849 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 244594852} - - component: {fileID: 244594851} - - component: {fileID: 244594850} - - component: {fileID: 244594854} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &244594850 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 244594849} - m_Enabled: 1 ---- !u!20 &244594851 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 244594849} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 1, g: 1, b: 1, a: 1} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 1 - far clip plane: 100 - field of view: 26.991467 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &244594852 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 244594849} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -15} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &244594854 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 244594849} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -768656878, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_EventMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_MaxRayIntersections: 0 ---- !u!1 &304189370 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 304189374} - - component: {fileID: 304189373} - - component: {fileID: 304189372} - - component: {fileID: 304189371} - - component: {fileID: 304189376} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &304189371 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &304189372 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &304189373 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &304189374 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1387978527} - - {fileID: 1628409007} - - {fileID: 895510406} - - {fileID: 1399904531} - - {fileID: 432951246} - - {fileID: 552752111} - - {fileID: 1199742532} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!222 &304189376 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 304189370} - m_CullTransparentMesh: 0 ---- !u!1 &335487698 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 335487699} - - component: {fileID: 335487702} - - component: {fileID: 335487701} - - component: {fileID: 335487700} - m_Layer: 5 - m_Name: Button - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &335487699 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 335487698} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 998549136} - m_Father: {fileID: 1399904531} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 160, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &335487700 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 335487698} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 335487701} - m_OnClick: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null ---- !u!114 &335487701 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 335487698} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &335487702 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 335487698} - m_CullTransparentMesh: 0 ---- !u!1 &385671179 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 385671180} - - component: {fileID: 385671182} - - component: {fileID: 385671181} - m_Layer: 5 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &385671180 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 385671179} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 71411788} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &385671181 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 385671179} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &385671182 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 385671179} - m_CullTransparentMesh: 0 ---- !u!1 &390948269 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 390948272} - - component: {fileID: 390948271} - - component: {fileID: 390948270} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &390948270 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 390948269} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &390948271 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 390948269} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &390948272 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 390948269} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &431912886 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 431912887} - m_Layer: 5 - m_Name: Fill Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &431912887 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 431912886} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1777916082} - m_Father: {fileID: 1556903570} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.25} - m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: -5, y: 0} - m_SizeDelta: {x: -20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &432951245 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 432951246} - - component: {fileID: 432951248} - - component: {fileID: 432951247} - m_Layer: 5 - m_Name: DragDrop - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &432951246 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 432951245} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 304189374} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 100, y: 100} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &432951247 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 432951245} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d01ae8029ff2f4e54a5e9c1a9672e5dc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 ---- !u!222 &432951248 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 432951245} - m_CullTransparentMesh: 0 ---- !u!1 &484983222 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 484983223} - - component: {fileID: 484983225} - - component: {fileID: 484983224} - m_Layer: 5 - m_Name: Panel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &484983223 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 484983222} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1474326675} - - {fileID: 749367608} - - {fileID: 918558202} - m_Father: {fileID: 1628409007} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -75, y: -70} - m_SizeDelta: {x: 150, y: -140} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &484983224 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 484983222} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.392} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &484983225 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 484983222} - m_CullTransparentMesh: 0 ---- !u!1 &552752110 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 552752111} - - component: {fileID: 552752113} - - component: {fileID: 552752112} - m_Layer: 5 - m_Name: Material - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &552752111 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 552752110} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 304189374} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &552752112 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 552752110} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d7c3be43dd8b94a349f26e3e7173c3f6, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 ---- !u!222 &552752113 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 552752110} - m_CullTransparentMesh: 1 ---- !u!1 &554372217 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 554372218} - - component: {fileID: 554372221} - - component: {fileID: 554372220} - - component: {fileID: 554372219} - m_Layer: 5 - m_Name: InputField - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &554372218 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554372217} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1148735785} - - {fileID: 1621115925} - m_Father: {fileID: 1399904531} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -100} - m_SizeDelta: {x: 160, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &554372219 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554372217} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 575553740, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 554372220} - m_TextComponent: {fileID: 1621115926} - m_Placeholder: {fileID: 1148735786} - m_ContentType: 0 - m_InputType: 0 - m_AsteriskChar: 42 - m_KeyboardType: 0 - m_LineType: 0 - m_HideMobileInput: 0 - m_CharacterValidation: 0 - m_CharacterLimit: 0 - m_OnEndEdit: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.InputField+SubmitEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.InputField+OnChangeEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null - m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_CustomCaretColor: 0 - m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} - m_Text: - m_CaretBlinkRate: 0.85 - m_CaretWidth: 1 - m_ReadOnly: 0 ---- !u!114 &554372220 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554372217} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &554372221 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554372217} - m_CullTransparentMesh: 0 ---- !u!1 &579295879 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 579295880} - - component: {fileID: 579295882} - - component: {fileID: 579295881} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &579295880 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 579295879} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1399904531} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -30} - m_SizeDelta: {x: 160, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &579295881 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 579295879} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Unity UI Panels ---- !u!222 &579295882 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 579295879} - m_CullTransparentMesh: 0 ---- !u!1 &749367607 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 749367608} - - component: {fileID: 749367611} - - component: {fileID: 749367610} - - component: {fileID: 749367609} - m_Layer: 5 - m_Name: InputField - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &749367608 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 749367607} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1333497002} - - {fileID: 1882375726} - m_Father: {fileID: 484983223} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -60} - m_SizeDelta: {x: 130, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &749367609 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 749367607} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 575553740, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 749367610} - m_TextComponent: {fileID: 1882375727} - m_Placeholder: {fileID: 1333497003} - m_ContentType: 0 - m_InputType: 0 - m_AsteriskChar: 42 - m_KeyboardType: 0 - m_LineType: 0 - m_HideMobileInput: 0 - m_CharacterValidation: 0 - m_CharacterLimit: 0 - m_OnEndEdit: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.InputField+SubmitEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.InputField+OnChangeEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null - m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_CustomCaretColor: 0 - m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} - m_Text: - m_CaretBlinkRate: 0.85 - m_CaretWidth: 1 - m_ReadOnly: 0 ---- !u!114 &749367610 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 749367607} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &749367611 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 749367607} - m_CullTransparentMesh: 0 ---- !u!1 &895510405 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 895510406} - - component: {fileID: 895510408} - - component: {fileID: 895510407} - m_Layer: 5 - m_Name: ASCanvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &895510406 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 895510405} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 304189374} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &895510407 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 895510405} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 71d034a309904459c9016f0f17734267, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 ---- !u!222 &895510408 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 895510405} - m_CullTransparentMesh: 0 ---- !u!1 &918558201 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 918558202} - - component: {fileID: 918558205} - - component: {fileID: 918558204} - - component: {fileID: 918558203} - m_Layer: 5 - m_Name: Button - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &918558202 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 918558201} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1762141486} - m_Father: {fileID: 484983223} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -100} - m_SizeDelta: {x: 130, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &918558203 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 918558201} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 918558204} - m_OnClick: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null ---- !u!114 &918558204 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 918558201} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &918558205 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 918558201} - m_CullTransparentMesh: 0 ---- !u!1 &998549135 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 998549136} - - component: {fileID: 998549138} - - component: {fileID: 998549137} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &998549136 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 998549135} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 335487699} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &998549137 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 998549135} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Button ---- !u!222 &998549138 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 998549135} - m_CullTransparentMesh: 0 ---- !u!1 &1148735784 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1148735785} - - component: {fileID: 1148735787} - - component: {fileID: 1148735786} - m_Layer: 5 - m_Name: Placeholder - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1148735785 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1148735784} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 554372218} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: -0.5} - m_SizeDelta: {x: -20, y: -13} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1148735786 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1148735784} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 2 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Enter text... ---- !u!222 &1148735787 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1148735784} - m_CullTransparentMesh: 0 ---- !u!1 &1199742531 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1199742532} - - component: {fileID: 1199742534} - - component: {fileID: 1199742533} - m_Layer: 5 - m_Name: ExpansionPanel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &1199742532 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1199742531} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 304189374} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0} - m_AnchorMax: {x: 0.5, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 300, y: 500} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1199742533 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1199742531} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7b7c8f92f79054eb6ae6e6749ebec2a1, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 ---- !u!222 &1199742534 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1199742531} - m_CullTransparentMesh: 0 ---- !u!1 &1333497001 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1333497002} - - component: {fileID: 1333497004} - - component: {fileID: 1333497003} - m_Layer: 5 - m_Name: Placeholder - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1333497002 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1333497001} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 749367608} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: -0.5} - m_SizeDelta: {x: -20, y: -13} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1333497003 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1333497001} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 2 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Enter text... ---- !u!222 &1333497004 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1333497001} - m_CullTransparentMesh: 0 ---- !u!1 &1387978526 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1387978527} - - component: {fileID: 1387978529} - - component: {fileID: 1387978528} - - component: {fileID: 1387978530} - m_Layer: 5 - m_Name: ToAppPanel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &1387978527 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1387978526} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 304189374} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1387978528 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1387978526} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45683c1d42a0d4392a02956cc7886f83, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 ---- !u!222 &1387978529 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1387978526} - m_CullTransparentMesh: 0 ---- !u!114 &1387978530 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1387978526} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c1b5fe397122c4c5988b2bddfe92bd95, type: 3} - m_Name: - m_EditorClassIdentifier: - videoClip: {fileID: 32900000, guid: 9906c152cf75248e98d1edd60759f014, type: 3} - renderTexture: {fileID: 8400000, guid: 53bf3f9b1464948cbb3f58add96afa32, type: 2} ---- !u!1 &1399904530 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1399904531} - - component: {fileID: 1399904533} - - component: {fileID: 1399904532} - m_Layer: 5 - m_Name: Panel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &1399904531 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1399904530} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 579295880} - - {fileID: 554372218} - - {fileID: 1556903570} - - {fileID: 335487699} - m_Father: {fileID: 304189374} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -100, y: -200} - m_SizeDelta: {x: 200, y: 400} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1399904532 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1399904530} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.392} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &1399904533 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1399904530} - m_CullTransparentMesh: 0 ---- !u!1 &1474326674 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1474326675} - - component: {fileID: 1474326677} - - component: {fileID: 1474326676} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1474326675 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474326674} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 484983223} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -30} - m_SizeDelta: {x: 130, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1474326676 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474326674} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: UGUI Nested ---- !u!222 &1474326677 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474326674} - m_CullTransparentMesh: 0 ---- !u!1 &1492232671 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1492232675} - - component: {fileID: 1492232674} - - component: {fileID: 1492232673} - - component: {fileID: 1492232672} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!65 &1492232672 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1492232671} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1492232673 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1492232671} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 7e4e4512ac8a44bf09367b1661efddc4, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1492232674 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1492232671} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1492232675 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1492232671} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -1} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1556903569 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1556903570} - - component: {fileID: 1556903571} - m_Layer: 5 - m_Name: Slider - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1556903570 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1556903569} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 43384372} - - {fileID: 431912887} - - {fileID: 71411788} - m_Father: {fileID: 1399904531} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -150} - m_SizeDelta: {x: 160, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1556903571 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1556903569} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -113659843, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 385671181} - m_FillRect: {fileID: 1777916082} - m_HandleRect: {fileID: 385671180} - m_Direction: 0 - m_MinValue: 0 - m_MaxValue: 1 - m_WholeNumbers: 0 - m_Value: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.Slider+SliderEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null ---- !u!1 &1621115924 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1621115925} - - component: {fileID: 1621115927} - - component: {fileID: 1621115926} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1621115925 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1621115924} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 554372218} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: -0.5} - m_SizeDelta: {x: -20, y: -13} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1621115926 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1621115924} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 0 - m_HorizontalOverflow: 1 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: ---- !u!222 &1621115927 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1621115924} - m_CullTransparentMesh: 0 ---- !u!1 &1628409006 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1628409007} - - component: {fileID: 1628409009} - - component: {fileID: 1628409008} - m_Layer: 5 - m_Name: ToAppPanelWithUGUI - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &1628409007 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1628409006} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 484983223} - m_Father: {fileID: 304189374} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 600, y: 300} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1628409008 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1628409006} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45683c1d42a0d4392a02956cc7886f83, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 ---- !u!222 &1628409009 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1628409006} - m_CullTransparentMesh: 0 ---- !u!1 &1762141485 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1762141486} - - component: {fileID: 1762141488} - - component: {fileID: 1762141487} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1762141486 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1762141485} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 918558202} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1762141487 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1762141485} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Button ---- !u!222 &1762141488 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1762141485} - m_CullTransparentMesh: 0 ---- !u!1 &1777916081 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1777916082} - - component: {fileID: 1777916084} - - component: {fileID: 1777916083} - m_Layer: 5 - m_Name: Fill - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1777916082 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1777916081} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 431912887} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 10, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1777916083 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1777916081} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 ---- !u!222 &1777916084 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1777916081} - m_CullTransparentMesh: 0 ---- !u!1 &1882375725 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1882375726} - - component: {fileID: 1882375728} - - component: {fileID: 1882375727} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1882375726 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1882375725} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 749367608} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: -0.5} - m_SizeDelta: {x: -20, y: -13} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1882375727 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1882375725} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 0 - m_HorizontalOverflow: 1 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: ---- !u!222 &1882375728 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1882375725} - m_CullTransparentMesh: 0 diff --git a/Samples/UIWidgetSample/UIWidgetSample.unity.meta b/Samples/UIWidgetSample/UIWidgetSample.unity.meta deleted file mode 100644 index f788d270..00000000 --- a/Samples/UIWidgetSample/UIWidgetSample.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 4e3b67b8f19ff4635b924fb6e01a071d -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/UIWidgetsSamplePanel.cs b/Samples/UIWidgetSample/UIWidgetsSamplePanel.cs deleted file mode 100644 index de9f1422..00000000 --- a/Samples/UIWidgetSample/UIWidgetsSamplePanel.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Unity.UIWidgets.animation; -using Unity.UIWidgets.engine; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsSample { - public class UIWidgetsSamplePanel: UIWidgetsPanel { - - protected virtual PageRouteFactory pageRouteBuilder { - get { - return (RouteSettings settings, WidgetBuilder builder) => - new PageRouteBuilder( - settings: settings, - pageBuilder: (BuildContext context, Animation animation, - Animation secondaryAnimation) => builder(context) - ); - } - } - - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/UIWidgetsSamplePanel.cs.meta b/Samples/UIWidgetSample/UIWidgetsSamplePanel.cs.meta deleted file mode 100644 index 2e1a9c12..00000000 --- a/Samples/UIWidgetSample/UIWidgetsSamplePanel.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4a21c5e1a50e24057a4ecf249fa86c1f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/Utils.cs b/Samples/UIWidgetSample/Utils.cs deleted file mode 100644 index 970ba791..00000000 --- a/Samples/UIWidgetSample/Utils.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsSample { - - public static class Icons { - public static readonly IconData notifications = new IconData(0xe7f4, fontFamily: "Material Icons"); - public static readonly IconData account_circle = new IconData(0xe853, fontFamily: "Material Icons"); - public static readonly IconData search = new IconData(0xe8b6, fontFamily: "Material Icons"); - public static readonly IconData keyboard_arrow_down = new IconData(0xe313, fontFamily: "Material Icons"); - } - - public static class CLColors { - public static readonly Color primary = new Color(0xFFE91E63); - public static readonly Color secondary1 = new Color(0xFF00BCD4); - public static readonly Color secondary2 = new Color(0xFFF0513C); - public static readonly Color background1 = new Color(0xFF292929); - public static readonly Color background2 = new Color(0xFF383838); - public static readonly Color background3 = new Color(0xFFF5F5F5); - public static readonly Color background4 = new Color(0xFF00BCD4); - public static readonly Color icon1 = new Color(0xFFFFFFFF); - public static readonly Color icon2 = new Color(0xFFA4A4A4); - public static readonly Color text1 = new Color(0xFFFFFFFF); - public static readonly Color text2 = new Color(0xFFD8D8D8); - public static readonly Color text3 = new Color(0xFF959595); - public static readonly Color text4 = new Color(0xFF002835); - public static readonly Color text5 = new Color(0xFF9E9E9E); - public static readonly Color text6 = new Color(0xFF002835); - public static readonly Color text7 = new Color(0xFF5A5A5B); - public static readonly Color text8 = new Color(0xFF239988); - public static readonly Color text9 = new Color(0xFFB3B5B6); - public static readonly Color text10 = new Color(0xFF00BCD4); - public static readonly Color dividingLine1 = new Color(0xFF666666); - public static readonly Color dividingLine2 = new Color(0xFF404040); - - public static readonly Color transparent = new Color(0x00000000); - public static readonly Color white = new Color(0xFFFFFFFF); - public static readonly Color black = new Color(0xFF000000); - public static readonly Color red = new Color(0xFFFF0000); - public static readonly Color green = new Color(0xFF00FF00); - public static readonly Color blue = new Color(0xFF0000FF); - - public static readonly Color header = new Color(0xFF060B0C); - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/Utils.cs.meta b/Samples/UIWidgetSample/Utils.cs.meta deleted file mode 100644 index 7b832306..00000000 --- a/Samples/UIWidgetSample/Utils.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3781c9e4efebd4c928ef175761d31b58 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/VideoSampleComponent.cs b/Samples/UIWidgetSample/VideoSampleComponent.cs deleted file mode 100644 index cf6d4b33..00000000 --- a/Samples/UIWidgetSample/VideoSampleComponent.cs +++ /dev/null @@ -1,20 +0,0 @@ -using UnityEngine; -using UnityEngine.Video; -using Texture = Unity.UIWidgets.widgets.Texture; - -namespace UIWidgetsSample { - public class VideoSampleComponent : MonoBehaviour { - public VideoClip videoClip; - public RenderTexture renderTexture; - - void Start() { - var videoPlayer = this.gameObject.AddComponent(); - videoPlayer.clip = this.videoClip; - videoPlayer.targetTexture = this.renderTexture; - videoPlayer.isLooping = true; - videoPlayer.sendFrameReadyEvents = true; - videoPlayer.frameReady += (_, __) => Texture.textureFrameAvailable(); - videoPlayer.Play(); - } - } -} diff --git a/Samples/UIWidgetSample/VideoSampleComponent.cs.meta b/Samples/UIWidgetSample/VideoSampleComponent.cs.meta deleted file mode 100644 index b52e8cd2..00000000 --- a/Samples/UIWidgetSample/VideoSampleComponent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c1b5fe397122c4c5988b2bddfe92bd95 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/txt.meta b/Samples/UIWidgetSample/txt.meta deleted file mode 100644 index c658e7d2..00000000 --- a/Samples/UIWidgetSample/txt.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 57dc3a2ca4c5643b482cd6c4e9e545d6 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/txt/FontWeightStyle.cs b/Samples/UIWidgetSample/txt/FontWeightStyle.cs deleted file mode 100644 index 87533ebf..00000000 --- a/Samples/UIWidgetSample/txt/FontWeightStyle.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.material; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using FontStyle = Unity.UIWidgets.ui.FontStyle; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsSample { - public class FontWeightStyle : UIWidgetsSamplePanel { - protected override void OnEnable() { - // To run this sample, you need to download Roboto fonts and place them under Resources/Fonts folder - // Roboto fonts could be downloaded from google website - // https://fonts.google.com/specimen/Roboto?selection.family=Roboto - FontManager.instance.addFont(Resources.Load(path: "MaterialIcons-Regular"), "Material Icons"); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-Black"), "Roboto", - FontWeight.w900); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-BlackItalic"), "Roboto", - FontWeight.w900, FontStyle.italic); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-Bold"), "Roboto", - FontWeight.bold); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-BoldItalic"), "Roboto", - FontWeight.bold, FontStyle.italic); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-Regular"), "Roboto", - FontWeight.normal); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-Italic"), "Roboto", - FontWeight.normal, FontStyle.italic); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-Medium"), "Roboto", - FontWeight.w500); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-MediumItalic"), "Roboto", - FontWeight.w500, FontStyle.italic); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-Light"), "Roboto", - FontWeight.w300); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-LightItalic"), "Roboto", - FontWeight.w300, FontStyle.italic); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-Thin"), "Roboto", - FontWeight.w100); - FontManager.instance.addFont(Resources.Load(path: "Fonts/Roboto-ThinItalic"), "Roboto", - FontWeight.w100, FontStyle.italic); - - base.OnEnable(); - } - - protected override Widget createWidget() { - return new MaterialApp( - title: "Navigation Basics", - home: new FontWeightStyleWidget() - ); - } - } - - class FontWeightStyleWidget : StatelessWidget { - public override Widget build(BuildContext context) { - var fontStyleTexts = new List { - new Text("Thin", style: new TextStyle(fontWeight: FontWeight.w100)), - new Text("Thin Italic", style: new TextStyle(fontWeight: FontWeight.w100, - fontStyle: FontStyle.italic)), - new Text("Light", style: new TextStyle(fontWeight: FontWeight.w300)), - new Text("Light Italic", style: new TextStyle(fontWeight: FontWeight.w300, - fontStyle: FontStyle.italic)), - new Text("Regular", style: new TextStyle(fontWeight: FontWeight.normal)), - new Text("Regular Italic", style: new TextStyle(fontWeight: FontWeight.normal, - fontStyle: FontStyle.italic)), - new Text("Medium", style: new TextStyle(fontWeight: FontWeight.w500)), - new Text("Medium Italic", style: new TextStyle(fontWeight: FontWeight.w500, - fontStyle: FontStyle.italic)), - new Text("Bold", style: new TextStyle(fontWeight: FontWeight.bold)), - new Text("Bold Italic", style: new TextStyle(fontWeight: FontWeight.bold, - fontStyle: FontStyle.italic)), - new Text("Black", style: new TextStyle(fontWeight: FontWeight.w900)), - new Text("Black Italic", style: new TextStyle(fontWeight: FontWeight.w900, - fontStyle: FontStyle.italic)), - }; - return new Scaffold( - appBar: new AppBar( - title: new Text("Font weight & style") - ), - body: new Card( - child: new DefaultTextStyle( - style: new TextStyle(fontSize: 40, fontFamily: "Roboto"), - child: new ListView(children: fontStyleTexts)) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/txt/FontWeightStyle.cs.meta b/Samples/UIWidgetSample/txt/FontWeightStyle.cs.meta deleted file mode 100644 index 0345d26c..00000000 --- a/Samples/UIWidgetSample/txt/FontWeightStyle.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b64f268a7786741718163d1a4eef0a8c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/txt/TextFieldSample.cs b/Samples/UIWidgetSample/txt/TextFieldSample.cs deleted file mode 100644 index dd386a24..00000000 --- a/Samples/UIWidgetSample/txt/TextFieldSample.cs +++ /dev/null @@ -1,72 +0,0 @@ -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using DialogUtils = Unity.UIWidgets.material.DialogUtils; - -namespace UIWidgetsSample { - public class TextFieldSample : UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new MaterialApp( - title: "Text Fields", - home: new MyCustomForm() - ); - } - - protected override void OnEnable() { - base.OnEnable(); - FontManager.instance.addFont(Resources.Load(path: "MaterialIcons-Regular"), "Material Icons"); - } - } - - class MyCustomForm : StatefulWidget { - public override State createState() { - return new _MyCustomFormState(); - } - } - - class _MyCustomFormState : State { - readonly TextEditingController myController = new TextEditingController(); - - public override void dispose() { - this.myController.dispose(); - base.dispose(); - } - - public override Widget build(BuildContext context) { - return new Scaffold( - appBar: new AppBar( - title: new Text("Retrieve Text Input") - ), - body: new Padding( - padding: EdgeInsets.all(16.0f), - child: new TextField( - controller: this.myController, - autofocus: true, - decoration: new InputDecoration( - hintText: "hinthere", - labelText: "pwd", - prefixIcon: new Icon(Unity.UIWidgets.material.Icons.search))) - ), - floatingActionButton: new FloatingActionButton( - // When the user presses the button, show an alert dialog with the - // text the user has typed into our text field. - onPressed: () => { - DialogUtils.showDialog( - context: context, - builder: (_context) => { - return new AlertDialog( - // Retrieve the text the user has typed in using our - // TextEditingController - content: new Text(this.myController.text) - ); - }); - }, - tooltip: "Show me the value", - child: new Icon(Icons.search) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/txt/TextFieldSample.cs.meta b/Samples/UIWidgetSample/txt/TextFieldSample.cs.meta deleted file mode 100644 index 2a1ae401..00000000 --- a/Samples/UIWidgetSample/txt/TextFieldSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 85b678a668e064f5c90ee8a9f7c13f35 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/txt/TextSpanGesture.cs b/Samples/UIWidgetSample/txt/TextSpanGesture.cs deleted file mode 100644 index 1da1d7da..00000000 --- a/Samples/UIWidgetSample/txt/TextSpanGesture.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsSample { - public class TextSpanGesture : UIWidgetsSamplePanel { - protected override Widget createWidget() { - return new WidgetsApp( - home: new BuzzingText(), - pageRouteBuilder: this.pageRouteBuilder); - } - } - - class BuzzingText : StatefulWidget { - public override State createState() { - return new _BuzzingTextState(); - } - } - - class _BuzzingTextState : State { - LongPressGestureRecognizer _longPressRecognizer; - - public override void initState() { - base.initState(); - this._longPressRecognizer = new LongPressGestureRecognizer(); - this._longPressRecognizer.onLongPress = this._handlePress; - } - - public override void dispose() { - this._longPressRecognizer.dispose(); - base.dispose(); - } - - void _handlePress() { - Debug.Log("Long Pressed Text"); - } - /* - - Any professional looking app you have seen probably has multiple screens in it. It can contain a welcome screen, a login screen and then further screens. - */ - - public override Widget build(BuildContext context) { - return new RichText( - text: new TextSpan( - text: "Can you ", - style: new TextStyle(color: Colors.black), - children: new List() { - new TextSpan( - text: "find the", - style: new TextStyle( - color: Colors.green, - decoration: TextDecoration.underline - ) - //recognizer: this._longPressRecognizer - ), - new TextSpan( - text: " secret?" - ) - } - )); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/txt/TextSpanGesture.cs.meta b/Samples/UIWidgetSample/txt/TextSpanGesture.cs.meta deleted file mode 100644 index 381007df..00000000 --- a/Samples/UIWidgetSample/txt/TextSpanGesture.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c91c5cfdde64e465e956815f92b78ae7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetSample/txt/TextStyleSample.cs b/Samples/UIWidgetSample/txt/TextStyleSample.cs deleted file mode 100644 index cb0d43da..00000000 --- a/Samples/UIWidgetSample/txt/TextStyleSample.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsSample { - - public class TextStyleSample : UIWidgetsSamplePanel { - - protected override Widget createWidget() { - return new MaterialApp( - title: "Text Style", - home: new TextStyleSampleWidget() - ); - } - } - - class TextStyleSampleWidget : StatelessWidget { - public override Widget build(BuildContext context) { - var fontStyleTexts = new List { - new Text("text", style: new TextStyle(fontSize: 18)), - new Text("text with font size 0 below", style: new TextStyle(fontSize: 14)), - new Text("font size 0", style: new TextStyle(fontSize: 0)), - new Text("text with font size 0 above", style: new TextStyle(fontSize: 14)), - new Text("text with font size 0.3f", style: new TextStyle(fontSize: 0.3f)), - new Text("Text with background", style: new TextStyle(fontSize: 14, background: - new Paint(){color = new Color(0xFF00FF00)})), - new Text("positive letter spacing", style: new TextStyle(fontSize: 14, letterSpacing:5)), - new Text("negative letter spacing", style: new TextStyle(fontSize: 14, letterSpacing:-1)), - new Text("positive word spacing test", style: new TextStyle(fontSize: 14, wordSpacing: 20f)), - new Text("negative word spacing test", style: new TextStyle(fontSize: 14, wordSpacing: -4f)), - - }; - return new Scaffold( - appBar: new AppBar( - title: new Text("Text Style") - ), - body: new Card( - child: new DefaultTextStyle( - style: new TextStyle(fontSize: 40, fontFamily: "Roboto"), - child: new ListView(children: fontStyleTexts)) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetSample/txt/TextStyleSample.cs.meta b/Samples/UIWidgetSample/txt/TextStyleSample.cs.meta deleted file mode 100644 index b5f2fd1d..00000000 --- a/Samples/UIWidgetSample/txt/TextStyleSample.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 1de691b215926469a959e54492262ff4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery.meta b/Samples/UIWidgetsGallery.meta deleted file mode 100644 index aff0c070..00000000 --- a/Samples/UIWidgetsGallery.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d5570637d1b25467596ae3c19ff7f0b2 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/Editor.meta b/Samples/UIWidgetsGallery/Editor.meta deleted file mode 100644 index 10dd8fcd..00000000 --- a/Samples/UIWidgetsGallery/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 348a394ab7d3f4ba088eb92226e94979 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/Editor/GalleryMainEditor.cs b/Samples/UIWidgetsGallery/Editor/GalleryMainEditor.cs deleted file mode 100644 index c25ef479..00000000 --- a/Samples/UIWidgetsGallery/Editor/GalleryMainEditor.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UIWidgetsGallery.gallery; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEditor; -using UnityEngine; - -namespace UIWidgetsGallery { - public class GalleryMainEditor : UIWidgetsEditorWindow { - - [MenuItem("UIWidgetsTests/Gallery")] - public static void gallery() { - EditorWindow.GetWindow(); - } - - protected override Widget createWidget() { - return new GalleryApp(); - } - - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load("MaterialIcons-Regular"), "Material Icons"); - FontManager.instance.addFont(Resources.Load("GalleryIcons"), "GalleryIcons"); - - FontManager.instance.addFont(Resources.Load("CupertinoIcons"), "CupertinoIcons"); - FontManager.instance.addFont(Resources.Load(path: "SF-Pro-Text-Regular"), ".SF Pro Text", FontWeight.w400); - FontManager.instance.addFont(Resources.Load(path: "SF-Pro-Text-Semibold"), ".SF Pro Text", FontWeight.w600); - FontManager.instance.addFont(Resources.Load(path: "SF-Pro-Text-Bold"), ".SF Pro Text", FontWeight.w700); - base.OnEnable(); - } - } -} diff --git a/Samples/UIWidgetsGallery/Editor/GalleryMainEditor.cs.meta b/Samples/UIWidgetsGallery/Editor/GalleryMainEditor.cs.meta deleted file mode 100644 index 8bfa1793..00000000 --- a/Samples/UIWidgetsGallery/Editor/GalleryMainEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 98f11153c8c804448abe7a050222da98 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/Editor/UIWidgetsGallery.Editor.asmdef b/Samples/UIWidgetsGallery/Editor/UIWidgetsGallery.Editor.asmdef deleted file mode 100644 index 5a3b1c82..00000000 --- a/Samples/UIWidgetsGallery/Editor/UIWidgetsGallery.Editor.asmdef +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "UIWidgetsGallery.Editor", - "references": [ - "Unity.UIWidgets", - "UIWidgetsGallery"], - "optionalUnityReferences": [], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [] -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/Editor/UIWidgetsGallery.Editor.asmdef.meta b/Samples/UIWidgetsGallery/Editor/UIWidgetsGallery.Editor.asmdef.meta deleted file mode 100644 index 1689291e..00000000 --- a/Samples/UIWidgetsGallery/Editor/UIWidgetsGallery.Editor.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 58e068d0e290f4278b5ee4a75e56c10f -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/GalleryMain.cs b/Samples/UIWidgetsGallery/GalleryMain.cs deleted file mode 100644 index 903da1ae..00000000 --- a/Samples/UIWidgetsGallery/GalleryMain.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UIWidgetsGallery.gallery; -using Unity.UIWidgets.engine; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; - -namespace UIWidgetsGallery { - public class GalleryMain : UIWidgetsPanel { - protected override Widget createWidget() { - return new GalleryApp(); - } - - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load("MaterialIcons-Regular"), "Material Icons"); - FontManager.instance.addFont(Resources.Load("GalleryIcons"), "GalleryIcons"); - - FontManager.instance.addFont(Resources.Load("CupertinoIcons"), "CupertinoIcons"); - FontManager.instance.addFont(Resources.Load(path: "SF-Pro-Text-Regular"), ".SF Pro Text", FontWeight.w400); - FontManager.instance.addFont(Resources.Load(path: "SF-Pro-Text-Semibold"), ".SF Pro Text", FontWeight.w600); - FontManager.instance.addFont(Resources.Load(path: "SF-Pro-Text-Bold"), ".SF Pro Text", FontWeight.w700); - - base.OnEnable(); - } - } -} diff --git a/Samples/UIWidgetsGallery/GalleryMain.cs.meta b/Samples/UIWidgetsGallery/GalleryMain.cs.meta deleted file mode 100644 index efab2055..00000000 --- a/Samples/UIWidgetsGallery/GalleryMain.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9c5c86936ca864ae684720ddcd50d759 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/UIWidgetsGallery.asmdef b/Samples/UIWidgetsGallery/UIWidgetsGallery.asmdef deleted file mode 100644 index 03378a7e..00000000 --- a/Samples/UIWidgetsGallery/UIWidgetsGallery.asmdef +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "UIWidgetsGallery", - "references": ["Unity.UIWidgets"], - "includePlatforms": [], - "excludePlatforms": [] -} diff --git a/Samples/UIWidgetsGallery/UIWidgetsGallery.asmdef.meta b/Samples/UIWidgetsGallery/UIWidgetsGallery.asmdef.meta deleted file mode 100644 index 08dfd5a3..00000000 --- a/Samples/UIWidgetsGallery/UIWidgetsGallery.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 8597b5a1d1bdd45048ad62795a71b2f2 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo.meta b/Samples/UIWidgetsGallery/demo.meta deleted file mode 100644 index 12a6f43e..00000000 --- a/Samples/UIWidgetsGallery/demo.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5159692a5f76049d49b05fb717c096e3 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/animation.meta b/Samples/UIWidgetsGallery/demo/animation.meta deleted file mode 100644 index ff400158..00000000 --- a/Samples/UIWidgetsGallery/demo/animation.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 4861503ddfc74b9ba36f159521c79b65 -timeCreated: 1554970886 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/animation/home.cs b/Samples/UIWidgetsGallery/demo/animation/home.cs deleted file mode 100644 index 06eb8223..00000000 --- a/Samples/UIWidgetsGallery/demo/animation/home.cs +++ /dev/null @@ -1,616 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.physics; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using Rect = Unity.UIWidgets.ui.Rect; - -namespace UIWidgetsGallery.gallery { - class AnimationHomeUtils { - public static readonly Color _kAppBackgroundColor = new Color(0xFF353662); - public static readonly TimeSpan _kScrollDuration = new TimeSpan(0, 0, 0, 0, 400); - public static readonly Curve _kScrollCurve = Curves.fastOutSlowIn; - public const float _kAppBarMinHeight = 90.0f; - public const float _kAppBarMidHeight = 256.0f; - } - - class _RenderStatusBarPaddingSliver : RenderSliver { - public _RenderStatusBarPaddingSliver( - float? maxHeight = null, - float? scrollFactor = null - ) { - D.assert(maxHeight >= 0.0f); - D.assert(scrollFactor >= 1.0f); - this._maxHeight = maxHeight; - this._scrollFactor = scrollFactor; - } - - public float? maxHeight { - get { return this._maxHeight; } - set { - D.assert(this.maxHeight >= 0.0f); - if (this._maxHeight == value) { - return; - } - - this._maxHeight = value; - this.markNeedsLayout(); - } - } - - float? _maxHeight; - - public float? scrollFactor { - get { return this._scrollFactor; } - set { - D.assert(this.scrollFactor >= 1.0f); - if (this._scrollFactor == value) { - return; - } - - this._scrollFactor = value; - this.markNeedsLayout(); - } - } - - float? _scrollFactor; - - protected override void performLayout() { - float? height = - (this.maxHeight - this.constraints.scrollOffset / this.scrollFactor)?.clamp(0.0f, - this.maxHeight ?? 0.0f); - this.geometry = new SliverGeometry( - paintExtent: Mathf.Min(height ?? 0.0f, this.constraints.remainingPaintExtent), - scrollExtent: this.maxHeight ?? 0.0f, - maxPaintExtent: this.maxHeight ?? 0.0f - ); - } - } - - class _StatusBarPaddingSliver : SingleChildRenderObjectWidget { - public _StatusBarPaddingSliver( - Key key = null, - float? maxHeight = null, - float scrollFactor = 5.0f - ) : base(key: key) { - D.assert(maxHeight != null && maxHeight >= 0.0f); - D.assert(scrollFactor >= 1.0f); - this.maxHeight = maxHeight; - this.scrollFactor = scrollFactor; - } - - public readonly float? maxHeight; - public readonly float scrollFactor; - - public override RenderObject createRenderObject(BuildContext context) { - return new _RenderStatusBarPaddingSliver( - maxHeight: this.maxHeight, - scrollFactor: this.scrollFactor - ); - } - - public override void updateRenderObject(BuildContext context, RenderObject _renderObject) { - _RenderStatusBarPaddingSliver renderObject = _renderObject as _RenderStatusBarPaddingSliver; - renderObject.maxHeight = this.maxHeight; - renderObject.scrollFactor = this.scrollFactor; - } - - public override void debugFillProperties(DiagnosticPropertiesBuilder description) { - base.debugFillProperties(description); - description.add(new FloatProperty("maxHeight", this.maxHeight)); - description.add(new FloatProperty("scrollFactor", this.scrollFactor)); - } - } - - class _SliverAppBarDelegate : SliverPersistentHeaderDelegate { - public _SliverAppBarDelegate( - float minHeight, - float maxHeight, - Widget child - ) { - this.minHeight = minHeight; - this.maxHeight = maxHeight; - this.child = child; - } - - public readonly float minHeight; - public readonly float maxHeight; - public readonly Widget child; - - public override float? minExtent { - get { return this.minHeight; } - } - - public override float? maxExtent { - get { return Mathf.Max(this.maxHeight, this.minHeight); } - } - - public override Widget build(BuildContext context, float shrinkOffset, bool overlapsContent) { - return SizedBox.expand(child: this.child); - } - - public override bool shouldRebuild(SliverPersistentHeaderDelegate _oldDelegate) { - _SliverAppBarDelegate oldDelegate = _oldDelegate as _SliverAppBarDelegate; - return this.maxHeight != oldDelegate.maxHeight - || this.minHeight != oldDelegate.minHeight - || this.child != oldDelegate.child; - } - - public override string ToString() { - return "_SliverAppBarDelegate"; - } - } - - class _AllSectionsLayout : MultiChildLayoutDelegate { - public _AllSectionsLayout( - Alignment translation, - float tColumnToRow, - float tCollapsed, - int cardCount, - float selectedIndex - ) { - this.translation = translation; - this.tColumnToRow = tColumnToRow; - this.tCollapsed = tCollapsed; - this.cardCount = cardCount; - this.selectedIndex = selectedIndex; - } - - public readonly Alignment translation; - public readonly float tColumnToRow; - public readonly float tCollapsed; - public readonly int cardCount; - public readonly float selectedIndex; - - Rect _interpolateRect(Rect begin, Rect end) { - return Rect.lerp(begin, end, this.tColumnToRow); - } - - Offset _interpolatePoint(Offset begin, Offset end) { - return Offset.lerp(begin, end, this.tColumnToRow); - } - - public override void performLayout(Size size) { - float columnCardX = size.width / 5.0f; - float columnCardWidth = size.width - columnCardX; - float columnCardHeight = size.height / this.cardCount; - float rowCardWidth = size.width; - Offset offset = this.translation.alongSize(size); - float columnCardY = 0.0f; - float rowCardX = -(this.selectedIndex * rowCardWidth); - - float columnTitleX = size.width / 10.0f; - float rowTitleWidth = size.width * ((1 + this.tCollapsed) / 2.25f); - float rowTitleX = (size.width - rowTitleWidth) / 2.0f - this.selectedIndex * rowTitleWidth; - - const float paddedSectionIndicatorWidth = AnimationWidgetsUtils.kSectionIndicatorWidth + 8.0f; - float rowIndicatorWidth = paddedSectionIndicatorWidth + - (1.0f - this.tCollapsed) * (rowTitleWidth - paddedSectionIndicatorWidth); - float rowIndicatorX = (size.width - rowIndicatorWidth) / 2.0f - this.selectedIndex * rowIndicatorWidth; - - for (int index = 0; index < this.cardCount; index++) { - Rect columnCardRect = Rect.fromLTWH(columnCardX, columnCardY, columnCardWidth, columnCardHeight); - Rect rowCardRect = Rect.fromLTWH(rowCardX, 0.0f, rowCardWidth, size.height); - Rect cardRect = this._interpolateRect(columnCardRect, rowCardRect).shift(offset); - string cardId = $"card{index}"; - if (this.hasChild(cardId)) { - this.layoutChild(cardId, BoxConstraints.tight(cardRect.size)); - this.positionChild(cardId, cardRect.topLeft); - } - - Size titleSize = this.layoutChild($"title{index}", BoxConstraints.loose(cardRect.size)); - float columnTitleY = columnCardRect.centerLeft.dy - titleSize.height / 2.0f; - float rowTitleY = rowCardRect.centerLeft.dy - titleSize.height / 2.0f; - float centeredRowTitleX = rowTitleX + (rowTitleWidth - titleSize.width) / 2.0f; - Offset columnTitleOrigin = new Offset(columnTitleX, columnTitleY); - Offset rowTitleOrigin = new Offset(centeredRowTitleX, rowTitleY); - Offset titleOrigin = this._interpolatePoint(columnTitleOrigin, rowTitleOrigin); - this.positionChild($"title{index}", titleOrigin + offset); - - Size indicatorSize = this.layoutChild($"indicator{index}", BoxConstraints.loose(cardRect.size)); - float columnIndicatorX = cardRect.centerRight.dx - indicatorSize.width - 16.0f; - float columnIndicatorY = cardRect.bottomRight.dy - indicatorSize.height - 16.0f; - Offset columnIndicatorOrigin = new Offset(columnIndicatorX, columnIndicatorY); - Rect titleRect = Rect.fromPoints(titleOrigin, titleSize.bottomRight(titleOrigin)); - float centeredRowIndicatorX = rowIndicatorX + (rowIndicatorWidth - indicatorSize.width) / 2.0f; - float rowIndicatorY = titleRect.bottomCenter.dy + 16.0f; - Offset rowIndicatorOrigin = new Offset(centeredRowIndicatorX, rowIndicatorY); - Offset indicatorOrigin = this._interpolatePoint(columnIndicatorOrigin, rowIndicatorOrigin); - this.positionChild($"indicator{index}", indicatorOrigin + offset); - - columnCardY += columnCardHeight; - rowCardX += rowCardWidth; - rowTitleX += rowTitleWidth; - rowIndicatorX += rowIndicatorWidth; - } - } - - public override bool shouldRelayout(MultiChildLayoutDelegate _oldDelegate) { - _AllSectionsLayout oldDelegate = _oldDelegate as _AllSectionsLayout; - return this.tColumnToRow != oldDelegate.tColumnToRow - || this.cardCount != oldDelegate.cardCount - || this.selectedIndex != oldDelegate.selectedIndex; - } - } - - class _AllSectionsView : AnimatedWidget { - public _AllSectionsView( - Key key = null, - int? sectionIndex = null, - List
    sections = null, - ValueNotifier selectedIndex = null, - float? minHeight = null, - float? midHeight = null, - float? maxHeight = null, - List sectionCards = null - ) : base(key: key, listenable: selectedIndex) { - sectionCards = sectionCards ?? new List(); - D.assert(sections != null); - D.assert(sectionCards.Count == sections.Count); - D.assert(sectionIndex >= 0 && sectionIndex < sections.Count); - D.assert(selectedIndex != null); - D.assert(selectedIndex.value >= 0.0f && (float) selectedIndex.value < sections.Count); - this.sectionIndex = sectionIndex; - this.sections = sections; - this.selectedIndex = selectedIndex; - this.minHeight = minHeight; - this.midHeight = midHeight; - this.maxHeight = maxHeight; - this.sectionCards = sectionCards; - } - - public readonly int? sectionIndex; - public readonly List
    sections; - public readonly ValueNotifier selectedIndex; - public readonly float? minHeight; - public readonly float? midHeight; - public readonly float? maxHeight; - public readonly List sectionCards; - - float _selectedIndexDelta(int index) { - return (index - this.selectedIndex.value).abs().clamp(0.0f, 1.0f); - } - - Widget _build(BuildContext context, BoxConstraints constraints) { - Size size = constraints.biggest; - - float? tColumnToRow = - 1.0f - ((size.height - this.midHeight) / - (this.maxHeight - this.midHeight))?.clamp(0.0f, 1.0f); - - - float? tCollapsed = - 1.0f - ((size.height - this.minHeight) / - (this.midHeight - this.minHeight))?.clamp(0.0f, 1.0f); - - float _indicatorOpacity(int index) { - return 1.0f - this._selectedIndexDelta(index) * 0.5f; - } - - float? _titleOpacity(int index) { - return 1.0f - this._selectedIndexDelta(index) * tColumnToRow * 0.5f; - } - - float? _titleScale(int index) { - return 1.0f - this._selectedIndexDelta(index) * tColumnToRow * 0.15f; - } - - List children = new List(this.sectionCards); - - for (int index = 0; index < this.sections.Count; index++) { - Section section = this.sections[index]; - children.Add(new LayoutId( - id: $"title{index}", - child: new SectionTitle( - section: section, - scale: _titleScale(index), - opacity: _titleOpacity(index) - ) - )); - } - - for (int index = 0; index < this.sections.Count; index++) { - children.Add(new LayoutId( - id: $"indicator{index}", - child: new SectionIndicator( - opacity: _indicatorOpacity(index) - ) - )); - } - - return new CustomMultiChildLayout( - layoutDelegate: new _AllSectionsLayout( - translation: new Alignment((this.selectedIndex.value - this.sectionIndex) * 2.0f - 1.0f ?? 0.0f, - -1.0f), - tColumnToRow: tColumnToRow ?? 0.0f, - tCollapsed: tCollapsed ?? 0.0f, - cardCount: this.sections.Count, - selectedIndex: this.selectedIndex.value - ), - children: children - ); - } - - protected override Widget build(BuildContext context) { - return new LayoutBuilder(builder: this._build); - } - } - - class _SnappingScrollPhysics : ClampingScrollPhysics { - public _SnappingScrollPhysics( - ScrollPhysics parent = null, - float? midScrollOffset = null - ) : base(parent: parent) { - D.assert(midScrollOffset != null); - this.midScrollOffset = midScrollOffset ?? 0.0f; - } - - public readonly float midScrollOffset; - - public override ScrollPhysics applyTo(ScrollPhysics ancestor) { - return new _SnappingScrollPhysics(parent: this.buildParent(ancestor), - midScrollOffset: this.midScrollOffset); - } - - Simulation _toMidScrollOffsetSimulation(float offset, float dragVelocity) { - float velocity = Mathf.Max(dragVelocity, this.minFlingVelocity); - return new ScrollSpringSimulation(this.spring, offset, this.midScrollOffset, velocity, - tolerance: this.tolerance); - } - - Simulation _toZeroScrollOffsetSimulation(float offset, float dragVelocity) { - float velocity = Mathf.Max(dragVelocity, this.minFlingVelocity); - return new ScrollSpringSimulation(this.spring, offset, 0.0f, velocity, tolerance: this.tolerance); - } - - public override Simulation createBallisticSimulation(ScrollMetrics position, float dragVelocity) { - Simulation simulation = base.createBallisticSimulation(position, dragVelocity); - float offset = position.pixels; - - if (simulation != null) { - float simulationEnd = simulation.x(float.PositiveInfinity); - if (simulationEnd >= this.midScrollOffset) { - return simulation; - } - - if (dragVelocity > 0.0f) { - return this._toMidScrollOffsetSimulation(offset, dragVelocity); - } - - if (dragVelocity < 0.0f) { - return this._toZeroScrollOffsetSimulation(offset, dragVelocity); - } - } - else { - float snapThreshold = this.midScrollOffset / 2.0f; - if (offset >= snapThreshold && offset < this.midScrollOffset) { - return this._toMidScrollOffsetSimulation(offset, dragVelocity); - } - - if (offset > 0.0f && offset < snapThreshold) { - return this._toZeroScrollOffsetSimulation(offset, dragVelocity); - } - } - - return simulation; - } - } - - public class AnimationDemoHome : StatefulWidget { - public AnimationDemoHome(Key key = null) : base(key: key) { - } - - public const string routeName = "/animation"; - - public override State createState() { - return new _AnimationDemoHomeState(); - } - } - - class _AnimationDemoHomeState : State { - ScrollController _scrollController = new ScrollController(); - PageController _headingPageController = new PageController(); - PageController _detailsPageController = new PageController(); - ScrollPhysics _headingScrollPhysics = new NeverScrollableScrollPhysics(); - ValueNotifier selectedIndex = new ValueNotifier(0.0f); - - public override Widget build(BuildContext context) { - return new Scaffold( - backgroundColor: AnimationHomeUtils._kAppBackgroundColor, - body: new Builder( - builder: this._buildBody - ) - ); - } - - void _handleBackButton(float midScrollOffset) { - if (this._scrollController.offset >= midScrollOffset) { - this._scrollController.animateTo(0.0f, curve: AnimationHomeUtils._kScrollCurve, - duration: AnimationHomeUtils._kScrollDuration); - } - else { - Navigator.maybePop(this.context); - } - } - - bool _handleScrollNotification(ScrollNotification notification, float midScrollOffset) { - if (notification.depth == 0 && notification is ScrollUpdateNotification) { - ScrollPhysics physics = this._scrollController.position.pixels >= midScrollOffset - ? (ScrollPhysics) new PageScrollPhysics() - : new NeverScrollableScrollPhysics(); - if (physics != this._headingScrollPhysics) { - this.setState(() => { this._headingScrollPhysics = physics; }); - } - } - - return false; - } - - void _maybeScroll(float midScrollOffset, int pageIndex, float xOffset) { - if (this._scrollController.offset < midScrollOffset) { - this._headingPageController.animateToPage(pageIndex, curve: AnimationHomeUtils._kScrollCurve, - duration: AnimationHomeUtils._kScrollDuration); - this._scrollController.animateTo(midScrollOffset, curve: AnimationHomeUtils._kScrollCurve, - duration: AnimationHomeUtils._kScrollDuration); - } - else { - float centerX = this._headingPageController.position.viewportDimension / 2.0f; - int newPageIndex = xOffset > centerX ? pageIndex + 1 : pageIndex - 1; - this._headingPageController.animateToPage(newPageIndex, curve: AnimationHomeUtils._kScrollCurve, - duration: AnimationHomeUtils._kScrollDuration); - } - } - - bool _handlePageNotification(ScrollNotification notification, PageController leader, PageController follower) { - if (notification.depth == 0 && notification is ScrollUpdateNotification) { - this.selectedIndex.value = leader.page; - if (follower.page != leader.page) { - follower.position.jumpTo(leader.position.pixels); // ignore: deprecated_member_use - } - } - - return false; - } - - IEnumerable _detailItemsFor(Section section) { - IEnumerable detailItems = section.details.Select((SectionDetail detail) => { - return new SectionDetailView(detail: detail); - }); - return ListTile.divideTiles(context: this.context, tiles: detailItems); - } - - List _allHeadingItems(float maxHeight, float midScrollOffset) { - List sectionCards = new List { }; - for (int index = 0; index < AnimationSectionsUtils.allSections.Count; index++) { - sectionCards.Add(new LayoutId( - id: $"card{index}", - child: new GestureDetector( - behavior: HitTestBehavior.opaque, - child: new SectionCard(section: AnimationSectionsUtils.allSections[index]), - onTapUp: (TapUpDetails details) => { - float xOffset = details.globalPosition.dx; - this.setState(() => { this._maybeScroll(midScrollOffset, index, xOffset); }); - } - ) - )); - } - - List headings = new List { }; - for (int index = 0; index < AnimationSectionsUtils.allSections.Count; index++) { - headings.Add(new Container( - color: AnimationHomeUtils._kAppBackgroundColor, - child: new ClipRect( - child: new _AllSectionsView( - sectionIndex: index, - sections: AnimationSectionsUtils.allSections, - selectedIndex: this.selectedIndex, - minHeight: AnimationHomeUtils._kAppBarMinHeight, - midHeight: AnimationHomeUtils._kAppBarMidHeight, - maxHeight: maxHeight, - sectionCards: sectionCards - ) - ) - ) - ); - } - - return headings; - } - - Widget _buildBody(BuildContext context) { - MediaQueryData mediaQueryData = MediaQuery.of(context); - float statusBarHeight = mediaQueryData.padding.top; - float screenHeight = mediaQueryData.size.height; - float appBarMaxHeight = screenHeight - statusBarHeight; - - float appBarMidScrollOffset = statusBarHeight + appBarMaxHeight - AnimationHomeUtils._kAppBarMidHeight; - - return SizedBox.expand( - child: new Stack( - children: new List { - new NotificationListener( - onNotification: (ScrollNotification notification) => { - return this._handleScrollNotification(notification, appBarMidScrollOffset); - }, - child: new CustomScrollView( - controller: this._scrollController, - physics: new _SnappingScrollPhysics(midScrollOffset: appBarMidScrollOffset), - slivers: new List { - new _StatusBarPaddingSliver( - maxHeight: statusBarHeight, - scrollFactor: 7.0f - ), - new SliverPersistentHeader( - pinned: true, - del: new _SliverAppBarDelegate( - minHeight: AnimationHomeUtils._kAppBarMinHeight, - maxHeight: appBarMaxHeight, - child: new NotificationListener( - onNotification: (ScrollNotification notification) => { - return this._handlePageNotification(notification, - this._headingPageController, this._detailsPageController); - }, - child: new PageView( - physics: this._headingScrollPhysics, - controller: this._headingPageController, - children: this._allHeadingItems(appBarMaxHeight, - appBarMidScrollOffset) - ) - ) - ) - ), - new SliverToBoxAdapter( - child: new SizedBox( - height: 610.0f, - child: new NotificationListener( - onNotification: (ScrollNotification notification) => { - return this._handlePageNotification(notification, - this._detailsPageController, this._headingPageController); - }, - child: new PageView( - controller: this._detailsPageController, - children: AnimationSectionsUtils.allSections - .Select((Section section) => { - return new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: this._detailItemsFor(section).ToList() - ); - }).ToList() - ) - ) - ) - ) - } - ) - ), - new Positioned( - top: statusBarHeight, - left: 0.0f, - child: new IconTheme( - data: new IconThemeData(color: Colors.white), - child: new SafeArea( - top: false, - bottom: false, - child: new IconButton( - icon: new BackButtonIcon(), - tooltip: "Back", - onPressed: () => { this._handleBackButton(appBarMidScrollOffset); } - ) - ) - ) - ) - } - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/animation/home.cs.meta b/Samples/UIWidgetsGallery/demo/animation/home.cs.meta deleted file mode 100644 index fcce05fd..00000000 --- a/Samples/UIWidgetsGallery/demo/animation/home.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 628b4648bdda4c8d8c8fc6778c874067 -timeCreated: 1554970915 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/animation/sections.cs b/Samples/UIWidgetsGallery/demo/animation/sections.cs deleted file mode 100644 index 78dc6635..00000000 --- a/Samples/UIWidgetsGallery/demo/animation/sections.cs +++ /dev/null @@ -1,201 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.material; -using Unity.UIWidgets.ui; - -namespace UIWidgetsGallery.gallery { - public class AnimationSectionsUtils { - public static readonly Color _mariner = new Color(0xFF3B5F8F); - public static readonly Color _mediumPurple = new Color(0xFF8266D4); - public static readonly Color _tomato = new Color(0xFFF95B57); - public static readonly Color _mySin = new Color(0xFFF3A646); - const string _kGalleryAssetsPackage = "flutter_gallery_assets"; - - public static readonly SectionDetail _eyeglassesDetail = new SectionDetail( - imageAsset: "products/sunnies", - imageAssetPackage: _kGalleryAssetsPackage, - title: "Flutter enables interactive animation", - subtitle: "3K views - 5 days" - ); - - public static readonly SectionDetail _eyeglassesImageDetail = new SectionDetail( - imageAsset: "products/sunnies", - imageAssetPackage: _kGalleryAssetsPackage - ); - - public static readonly SectionDetail _seatingDetail = new SectionDetail( - imageAsset: "products/table", - imageAssetPackage: _kGalleryAssetsPackage, - title: "Flutter enables interactive animation", - subtitle: "3K views - 5 days" - ); - - public static readonly SectionDetail _seatingImageDetail = new SectionDetail( - imageAsset: "products/table", - imageAssetPackage: _kGalleryAssetsPackage - ); - - public static readonly SectionDetail _decorationDetail = new SectionDetail( - imageAsset: "products/earrings", - imageAssetPackage: _kGalleryAssetsPackage, - title: "Flutter enables interactive animation", - subtitle: "3K views - 5 days" - ); - - public static readonly SectionDetail _decorationImageDetail = new SectionDetail( - imageAsset: "products/earrings", - imageAssetPackage: _kGalleryAssetsPackage - ); - - public static readonly SectionDetail _protectionDetail = new SectionDetail( - imageAsset: "products/hat", - imageAssetPackage: _kGalleryAssetsPackage, - title: "Flutter enables interactive animation", - subtitle: "3K views - 5 days" - ); - - public static readonly SectionDetail _protectionImageDetail = new SectionDetail( - imageAsset: "products/hat", - imageAssetPackage: _kGalleryAssetsPackage - ); - - public static List
    allSections = new List
    { - new Section( - title: "SUNGLASSES", - leftColor: _mediumPurple, - rightColor: _mariner, - backgroundAsset: "products/sunnies", - backgroundAssetPackage: _kGalleryAssetsPackage, - details: new List { - _eyeglassesDetail, - _eyeglassesImageDetail, - _eyeglassesDetail, - _eyeglassesDetail, - _eyeglassesDetail, - _eyeglassesDetail - } - ), - new Section( - title: "FURNITURE", - leftColor: _tomato, - rightColor: _mediumPurple, - backgroundAsset: "products/table", - backgroundAssetPackage: _kGalleryAssetsPackage, - details: new List { - _seatingDetail, - _seatingImageDetail, - _seatingDetail, - _seatingDetail, - _seatingDetail, - _seatingDetail - } - ), - new Section( - title: "JEWELRY", - leftColor: _mySin, - rightColor: _tomato, - backgroundAsset: "products/earrings", - backgroundAssetPackage: _kGalleryAssetsPackage, - details: new List { - _decorationDetail, - _decorationImageDetail, - _decorationDetail, - _decorationDetail, - _decorationDetail, - _decorationDetail - } - ), - new Section( - title: "HEADWEAR", - leftColor: Colors.white, - rightColor: _tomato, - backgroundAsset: "products/hat", - backgroundAssetPackage: _kGalleryAssetsPackage, - details: new List { - _protectionDetail, - _protectionImageDetail, - _protectionDetail, - _protectionDetail, - _protectionDetail, - _protectionDetail - } - ) - }; - } - - - public class SectionDetail { - public SectionDetail( - string title = null, - string subtitle = null, - string imageAsset = null, - string imageAssetPackage = null - ) { - this.title = title; - this.subtitle = subtitle; - this.imageAsset = imageAsset; - this.imageAssetPackage = imageAssetPackage; - } - - public readonly string title; - public readonly string subtitle; - public readonly string imageAsset; - public readonly string imageAssetPackage; - } - - public class Section { - public Section( - string title, - string backgroundAsset, - string backgroundAssetPackage, - Color leftColor, - Color rightColor, - List details - ) { - this.title = title; - this.backgroundAsset = backgroundAsset; - this.backgroundAssetPackage = backgroundAssetPackage; - this.leftColor = leftColor; - this.rightColor = rightColor; - this.details = details; - } - - public readonly string title; - public readonly string backgroundAsset; - public readonly string backgroundAssetPackage; - public readonly Color leftColor; - public readonly Color rightColor; - public readonly List details; - - public static bool operator ==(Section left, Section right) { - return Equals(left, right); - } - - public static bool operator !=(Section left, Section right) { - return !Equals(left, right); - } - - public bool Equals(Section other) { - return this.title == other.title; - } - - public override bool Equals(object obj) { - if (ReferenceEquals(null, obj)) { - return false; - } - - if (ReferenceEquals(this, obj)) { - return true; - } - - if (obj.GetType() != this.GetType()) { - return false; - } - - return this.Equals((Section) obj); - } - - public override int GetHashCode() { - return this.title.GetHashCode(); - } - } -} diff --git a/Samples/UIWidgetsGallery/demo/animation/sections.cs.meta b/Samples/UIWidgetsGallery/demo/animation/sections.cs.meta deleted file mode 100644 index dd42ed52..00000000 --- a/Samples/UIWidgetsGallery/demo/animation/sections.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 5180fb461b7448de8d4d084ff3f7c761 -timeCreated: 1555049317 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/animation/widgets.cs b/Samples/UIWidgetsGallery/demo/animation/widgets.cs deleted file mode 100644 index d2df415c..00000000 --- a/Samples/UIWidgetsGallery/demo/animation/widgets.cs +++ /dev/null @@ -1,169 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using Image = Unity.UIWidgets.widgets.Image; - -namespace UIWidgetsGallery.gallery { - class AnimationWidgetsUtils { - public const float kSectionIndicatorWidth = 32.0f; - } - - public class SectionCard : StatelessWidget { - public SectionCard( - Key key = null, - Section section = null - ) : base(key: key) { - D.assert(section != null); - this.section = section; - } - - public readonly Section section; - - public override Widget build(BuildContext context) { - return new DecoratedBox( - decoration: new BoxDecoration( - gradient: new LinearGradient( - begin: Alignment.centerLeft, - end: Alignment.centerRight, - colors: new List { - this.section.leftColor, this.section.rightColor - } - ) - ), - child: Image.asset(this.section.backgroundAsset, - color: Color.fromRGBO(255, 255, 255, 0.075f), - colorBlendMode: BlendMode.modulate, - fit: BoxFit.cover - ) - ); - } - } - - public class SectionTitle : StatelessWidget { - public SectionTitle( - Key key = null, - Section section = null, - float? scale = null, - float? opacity = null - ) : base(key: key) { - D.assert(section != null); - D.assert(scale != null); - D.assert(opacity != null && opacity >= 0.0f && opacity <= 1.0f); - this.section = section; - this.scale = scale; - this.opacity = opacity; - } - - public readonly Section section; - public readonly float? scale; - public readonly float? opacity; - - public static readonly TextStyle sectionTitleStyle = new TextStyle( - fontFamily: "Raleway", - inherit: false, - fontSize: 24.0f, - fontWeight: FontWeight.w500, - color: Colors.white, - textBaseline: TextBaseline.alphabetic - ); - - public static readonly TextStyle sectionTitleShadowStyle = sectionTitleStyle.copyWith( - color: new Color(0x19000000) - ); - - public override Widget build(BuildContext context) { - return new IgnorePointer( - child: new Opacity( - opacity: this.opacity ?? 1.0f, - child: new Transform( - transform: Matrix3.makeScale(this.scale ?? 1.0f), - alignment: Alignment.center, - child: new Stack( - children: new List { - new Positioned( - top: 4.0f, - child: new Text(this.section.title, style: sectionTitleShadowStyle) - ), - new Text(this.section.title, style: sectionTitleStyle) - } - ) - ) - ) - ); - } - } - - public class SectionIndicator : StatelessWidget { - public SectionIndicator(Key key = null, float opacity = 1.0f) : base(key: key) { - this.opacity = opacity; - } - - public readonly float opacity; - - public override Widget build(BuildContext context) { - return new IgnorePointer( - child: new Container( - width: AnimationWidgetsUtils.kSectionIndicatorWidth, - height: 3.0f, - color: Colors.white.withOpacity(this.opacity) - ) - ); - } - } - - public class SectionDetailView : StatelessWidget { - public SectionDetailView( - Key key = null, - SectionDetail detail = null - ) : base(key: key) { - D.assert(detail != null && detail.imageAsset != null); - D.assert((detail.imageAsset ?? detail.title) != null); - this.detail = detail; - } - - public readonly SectionDetail detail; - - public override Widget build(BuildContext context) { - Widget image = new DecoratedBox( - decoration: new BoxDecoration( - borderRadius: BorderRadius.circular(6.0f), - image: new DecorationImage( - image: new AssetImage( - this.detail.imageAsset - ), - fit: BoxFit.cover, - alignment: Alignment.center - ) - ) - ); - - Widget item; - if (this.detail.title == null && this.detail.subtitle == null) { - item = new Container( - height: 240.0f, - padding: EdgeInsets.all(16.0f), - child: new SafeArea( - top: false, - bottom: false, - child: image - ) - ); - } - else { - item = new ListTile( - title: new Text(this.detail.title), - subtitle: new Text(this.detail.subtitle), - leading: new SizedBox(width: 32.0f, height: 32.0f, child: image) - ); - } - - return new DecoratedBox( - decoration: new BoxDecoration(color: Colors.grey.shade200), - child: item - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/animation/widgets.cs.meta b/Samples/UIWidgetsGallery/demo/animation/widgets.cs.meta deleted file mode 100644 index ae1689c3..00000000 --- a/Samples/UIWidgetsGallery/demo/animation/widgets.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 4c84aedb64bf44338944d63be7c563ed -timeCreated: 1555049115 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/animation_demo.cs b/Samples/UIWidgetsGallery/demo/animation_demo.cs deleted file mode 100644 index c6032344..00000000 --- a/Samples/UIWidgetsGallery/demo/animation_demo.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - public class AnimationDemo : StatelessWidget { - public AnimationDemo(Key key = null) : base(key: key) { - } - - public const string routeName = "/animation"; - - public override Widget build(BuildContext context) { - return new AnimationDemoHome(); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/animation_demo.cs.meta b/Samples/UIWidgetsGallery/demo/animation_demo.cs.meta deleted file mode 100644 index c51f9afc..00000000 --- a/Samples/UIWidgetsGallery/demo/animation_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: f13faff4d2b84ce0935236f3b953849f -timeCreated: 1554969121 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/colors_demo.cs b/Samples/UIWidgetsGallery/demo/colors_demo.cs deleted file mode 100644 index bf735c6f..00000000 --- a/Samples/UIWidgetsGallery/demo/colors_demo.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsGallery.gallery { - class ColorDemoConstants { - public const float kColorItemHeight = 48.0f; - - public static readonly List allPalettes = new List { - new Palette(name: "RED", primary: Colors.red, accent: Colors.redAccent, threshold: 300), - new Palette(name: "PINK", primary: Colors.pink, accent: Colors.pinkAccent, threshold: 200), - new Palette(name: "PURPLE", primary: Colors.purple, accent: Colors.purpleAccent, threshold: 200), - new Palette(name: "DEEP PURPLE", primary: Colors.deepPurple, accent: Colors.deepPurpleAccent, - threshold: 200), - new Palette(name: "INDIGO", primary: Colors.indigo, accent: Colors.indigoAccent, threshold: 200), - new Palette(name: "BLUE", primary: Colors.blue, accent: Colors.blueAccent, threshold: 400), - new Palette(name: "LIGHT BLUE", primary: Colors.lightBlue, accent: Colors.lightBlueAccent, threshold: 500), - new Palette(name: "CYAN", primary: Colors.cyan, accent: Colors.cyanAccent, threshold: 600), - new Palette(name: "TEAL", primary: Colors.teal, accent: Colors.tealAccent, threshold: 400), - new Palette(name: "GREEN", primary: Colors.green, accent: Colors.greenAccent, threshold: 500), - new Palette(name: "LIGHT GREEN", primary: Colors.lightGreen, accent: Colors.lightGreenAccent, - threshold: 600), - new Palette(name: "LIME", primary: Colors.lime, accent: Colors.limeAccent, threshold: 800), - new Palette(name: "YELLOW", primary: Colors.yellow, accent: Colors.yellowAccent), - new Palette(name: "AMBER", primary: Colors.amber, accent: Colors.amberAccent), - new Palette(name: "ORANGE", primary: Colors.orange, accent: Colors.orangeAccent, threshold: 700), - new Palette(name: "DEEP ORANGE", primary: Colors.deepOrange, accent: Colors.deepOrangeAccent, - threshold: 400), - new Palette(name: "BROWN", primary: Colors.brown, threshold: 200), - new Palette(name: "GREY", primary: Colors.grey, threshold: 500), - new Palette(name: "BLUE GREY", primary: Colors.blueGrey, threshold: 500), - }; - } - - public class Palette { - public Palette(string name = null, MaterialColor primary = null, MaterialAccentColor accent = null, - int threshold = 900) { - this.name = name; - this.primary = primary; - this.accent = accent; - this.threshold = threshold; - } - - public readonly string name; - public readonly MaterialColor primary; - public readonly MaterialAccentColor accent; - public readonly int threshold; - - public bool isValid { - get { return this.name != null && this.primary != null; } - } - } - - - public class ColorItem : StatelessWidget { - public ColorItem( - Key key = null, - int? index = null, - Color color = null, - string prefix = "" - ) : base(key: key) { - D.assert(index != null); - D.assert(color != null); - D.assert(prefix != null); - this.index = index; - this.color = color; - this.prefix = prefix; - } - - - public readonly int? index; - public readonly Color color; - public readonly string prefix; - - string colorString() { - return $"#{this.color.value.ToString("X8").ToUpper()}"; - } - - public override Widget build(BuildContext context) { - return new Container( - height: ColorDemoConstants.kColorItemHeight, - padding: EdgeInsets.symmetric(horizontal: 16.0f), - color: this.color, - child: new SafeArea( - top: false, - bottom: false, - child: new Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new Text($"{this.prefix}{this.index}"), - new Text(this.colorString()) - } - ) - ) - ); - } - } - - public class PaletteTabView : StatelessWidget { - public PaletteTabView( - Key key = null, - Palette colors = null - ) : base(key: key) { - D.assert(colors != null && colors.isValid); - this.colors = colors; - } - - public readonly Palette colors; - - public readonly static List primaryKeys = new List {50, 100, 200, 300, 400, 500, 600, 700, 800, 900}; - public readonly static List accentKeys = new List {100, 200, 400, 700}; - - public override Widget build(BuildContext context) { - TextTheme textTheme = Theme.of(context).textTheme; - TextStyle whiteTextStyle = textTheme.body1.copyWith(color: Colors.white); - TextStyle blackTextStyle = textTheme.body1.copyWith(color: Colors.black); - List colorItems = primaryKeys.Select((int index) => { - return new DefaultTextStyle( - style: index > this.colors.threshold ? whiteTextStyle : blackTextStyle, - child: new ColorItem(index: index, color: this.colors.primary[index]) - ); - }).ToList(); - - if (this.colors.accent != null) { - colorItems.AddRange(accentKeys.Select((int index) => { - return new DefaultTextStyle( - style: index > this.colors.threshold ? whiteTextStyle : blackTextStyle, - child: new ColorItem(index: index, color: this.colors.accent[index], prefix: "A") - ); - }).ToList()); - } - - return new ListView( - itemExtent: ColorDemoConstants.kColorItemHeight, - children: colorItems - ); - } - } - - public class ColorsDemo : StatelessWidget { - public const string routeName = "/colors"; - - public override Widget build(BuildContext context) { - return new DefaultTabController( - length: ColorDemoConstants.allPalettes.Count, - child: new Scaffold( - appBar: new AppBar( - elevation: 0.0f, - title: new Text("Colors"), - bottom: new TabBar( - isScrollable: true, - tabs: ColorDemoConstants.allPalettes - .Select((Palette swatch) => new Tab(text: swatch.name)).ToList() - ) - ), - body: new TabBarView( - children: ColorDemoConstants.allPalettes.Select((Palette colors) => { - return new PaletteTabView(colors: colors); - }).ToList() - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/colors_demo.cs.meta b/Samples/UIWidgetsGallery/demo/colors_demo.cs.meta deleted file mode 100644 index 4278d19f..00000000 --- a/Samples/UIWidgetsGallery/demo/colors_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 40024f3eaf7b44bfb09e27137c9d4aa9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/contacts_demo.cs b/Samples/UIWidgetsGallery/demo/contacts_demo.cs deleted file mode 100644 index 0277a1fe..00000000 --- a/Samples/UIWidgetsGallery/demo/contacts_demo.cs +++ /dev/null @@ -1,365 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using Image = Unity.UIWidgets.widgets.Image; - -namespace UIWidgetsGallery.gallery { - class _ContactCategory : StatelessWidget { - public _ContactCategory(Key key = null, IconData icon = null, List children = null) : base(key: key) { - this.icon = icon; - this.children = children; - } - - public readonly IconData icon; - public readonly List children; - - public override Widget build(BuildContext context) { - ThemeData themeData = Theme.of(context); - return new Container( - padding: EdgeInsets.symmetric(vertical: 16.0f), - decoration: new BoxDecoration( - border: new Border(bottom: new BorderSide(color: themeData.dividerColor)) - ), - child: new DefaultTextStyle( - style: Theme.of(context).textTheme.subhead, - child: new SafeArea( - top: false, - bottom: false, - child: new Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: new List { - new Container( - padding: EdgeInsets.symmetric(vertical: 24.0f), - width: 72.0f, - child: new Icon(this.icon, color: themeData.primaryColor) - ), - new Expanded(child: new Column(children: this.children)) - } - ) - ) - ) - ); - } - } - - class _ContactItem : StatelessWidget { - public _ContactItem(Key key = null, IconData icon = null, List lines = null, string tooltip = null, - VoidCallback onPressed = null) : base(key: key) { - D.assert(lines.Count > 1); - this.icon = icon; - this.lines = lines; - this.tooltip = tooltip; - this.onPressed = onPressed; - } - - public readonly IconData icon; - public readonly List lines; - public readonly string tooltip; - public readonly VoidCallback onPressed; - - public override Widget build(BuildContext context) { - ThemeData themeData = Theme.of(context); - List columnChildren = this.lines.GetRange(0, this.lines.Count - 1) - .Select((string line) => new Text(line)).ToList(); - columnChildren.Add(new Text(this.lines.Last(), style: themeData.textTheme.caption)); - - List rowChildren = new List { - new Expanded( - child: new Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: columnChildren - ) - ) - }; - if (this.icon != null) { - rowChildren.Add(new SizedBox( - width: 72.0f, - child: new IconButton( - icon: new Icon(this.icon), - color: themeData.primaryColor, - onPressed: this.onPressed - ) - )); - } - - return new Padding( - padding: EdgeInsets.symmetric(vertical: 16.0f), - child: new Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: rowChildren - ) - ); - } - } - - public class ContactsDemo : StatefulWidget { - public const string routeName = "/contacts"; - - public override State createState() { - return new ContactsDemoState(); - } - } - - public enum AppBarBehavior { - normal, - pinned, - floating, - snapping - } - - public class ContactsDemoState : State { - readonly GlobalKey _scaffoldKey = GlobalKey.key(); - const float _appBarHeight = 256.0f; - - AppBarBehavior _appBarBehavior = AppBarBehavior.pinned; - - public override Widget build(BuildContext context) { - return new Theme( - data: new ThemeData( - brightness: Brightness.light, - primarySwatch: Colors.indigo, - platform: Theme.of(context).platform - ), - child: new Scaffold( - key: this._scaffoldKey, - body: new CustomScrollView( - slivers: new List { - new SliverAppBar( - expandedHeight: _appBarHeight, - pinned: this._appBarBehavior == AppBarBehavior.pinned, - floating: this._appBarBehavior == AppBarBehavior.floating || - this._appBarBehavior == AppBarBehavior.snapping, - snap: this._appBarBehavior == AppBarBehavior.snapping, - actions: new List { - new IconButton( - icon: new Icon(Icons.create), - tooltip: "Edit", - onPressed: () => { - this._scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text("Editing isn't supported in this screen.") - )); - } - ), - new PopupMenuButton( - onSelected: (AppBarBehavior value) => { - this.setState(() => { this._appBarBehavior = value; }); - }, - itemBuilder: (BuildContext _context) => new List> { - new PopupMenuItem( - value: AppBarBehavior.normal, - child: new Text("App bar scrolls away") - ), - new PopupMenuItem( - value: AppBarBehavior.pinned, - child: new Text("App bar stays put") - ), - new PopupMenuItem( - value: AppBarBehavior.floating, - child: new Text("App bar floats") - ), - new PopupMenuItem( - value: AppBarBehavior.snapping, - child: new Text("App bar snaps") - ) - } - ) - }, - flexibleSpace: new FlexibleSpaceBar( - title: new Text("Ali Connors"), - background: new Stack( - fit: StackFit.expand, - children: new List { - Image.asset( - "ali_landscape", - fit: BoxFit.cover, - height: _appBarHeight - ), - new DecoratedBox( - decoration: new BoxDecoration( - gradient: new LinearGradient( - begin: new Alignment(0.0f, -1.0f), - end: new Alignment(0.0f, -0.4f), - colors: new List - {new Color(0x60000000), new Color(0x00000000)} - ) - ) - ) - } - ) - ) - ), - new SliverList( - del: new SliverChildListDelegate(new List { - new AnnotatedRegion( - value: SystemUiOverlayStyle.dark, - child: new _ContactCategory( - icon: Icons.call, - children: new List { - new _ContactItem( - icon: Icons.message, - tooltip: "Send message", - onPressed: () => { - this._scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text( - "Pretend that this opened your SMS application.") - )); - }, - lines: new List { - "(650) 555-1234", - "Mobile" - } - ), - new _ContactItem( - icon: Icons.message, - tooltip: "Send message", - onPressed: () => { - this._scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text("A messaging app appears.") - )); - }, - lines: new List { - "(323) 555-6789", - "Work" - } - ), - new _ContactItem( - icon: Icons.message, - tooltip: "Send message", - onPressed: () => { - this._scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text( - "Imagine if you will, a messaging application.") - )); - }, - lines: new List { - "(650) 555-6789", - "Home" - } - ) - } - ) - ), - new _ContactCategory( - icon: Icons.contact_mail, - children: new List { - new _ContactItem( - icon: Icons.email, - tooltip: "Send personal e-mail", - onPressed: () => { - this._scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text("Here, your e-mail application would open.") - )); - }, - lines: new List { - "ali_connors@example.com", - "Personal" - } - ), - new _ContactItem( - icon: Icons.email, - tooltip: "Send work e-mail", - onPressed: () => { - this._scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text( - "Summon your favorite e-mail application here.") - )); - }, - lines: new List { - "aliconnors@example.com", - "Work" - } - ) - } - ), - new _ContactCategory( - icon: Icons.location_on, - children: new List { - new _ContactItem( - icon: Icons.map, - tooltip: "Open map", - onPressed: () => { - this._scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text("This would show a map of San Francisco.") - )); - }, - lines: new List { - "2000 Main Street", - "San Francisco, CA", - "Home" - } - ), - new _ContactItem( - icon: Icons.map, - tooltip: "Open map", - onPressed: () => { - this._scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text("This would show a map of Mountain View.") - )); - }, - lines: new List { - "1600 Amphitheater Parkway", - "Mountain View, CA", - "Work" - } - ), - new _ContactItem( - icon: Icons.map, - tooltip: "Open map", - onPressed: () => { - this._scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text( - "This would also show a map, if this was not a demo.") - )); - }, - lines: new List { - "126 Severyns Ave", - "Mountain View, CA", - "Jet Travel", - } - ) - } - ), - new _ContactCategory( - icon: Icons.today, - children: new List { - new _ContactItem( - lines: new List { - "Birthday", - "January 9th, 1989" - } - ), - new _ContactItem( - lines: new List { - "Wedding anniversary", - "June 21st, 2014" - } - ), - new _ContactItem( - lines: new List { - "First day in office", - "January 20th, 2015", - } - ), - new _ContactItem( - lines: new List { - "Last day in office", - "August 9th, 2018" - } - ) - } - ) - }) - ) - } - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/contacts_demo.cs.meta b/Samples/UIWidgetsGallery/demo/contacts_demo.cs.meta deleted file mode 100644 index a29dc915..00000000 --- a/Samples/UIWidgetsGallery/demo/contacts_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 42aac0c9b12e437db9787de912355ed9 -timeCreated: 1553060178 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/cupertino.meta b/Samples/UIWidgetsGallery/demo/cupertino.meta deleted file mode 100644 index 929af2d5..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b971f24af9c984210a511bd0e81945a3 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_activity_indicator_demo.cs b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_activity_indicator_demo.cs deleted file mode 100644 index 33e51cc0..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_activity_indicator_demo.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - /* - class CupertinoProgressIndicatorDemo : StatelessWidget { - public static string routeName = "/cupertino/progress_indicator"; - - public override - Widget build(BuildContext context) { - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - previousPageTitle: "Cupertino", - middle: new Text("Activity Indicator"), - trailing: new CupertinoDemoDocumentationButton(routeName) - ), - child: new Center( - child: new CupertinoActivityIndicator() - ) - ); - } - } - */ -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_activity_indicator_demo.cs.meta b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_activity_indicator_demo.cs.meta deleted file mode 100644 index 26f19500..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_activity_indicator_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cd9442c2f316e4ad1924fa656a7788a8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_alert_demo.cs b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_alert_demo.cs deleted file mode 100644 index c2a1472e..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_alert_demo.cs +++ /dev/null @@ -1,272 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class CupertinoAlertDemo : StatefulWidget { - public static string routeName = "/cupertino/alert"; - - public override State createState() { - return new _CupertinoAlertDemoState(); - } - } - - class _CupertinoAlertDemoState : State { - string lastSelectedValue; - - void showDemoDialog( - BuildContext context = null, - Widget child = null - ) { - CupertinoRouteUtils.showCupertinoDialog( - context: context, - builder: (BuildContext _context) => child - ).Then((object value) => { - if (value != null) { - this.setState(() => { this.lastSelectedValue = value as string; }); - } - }); - } - - void showDemoActionSheet( - BuildContext context = null, - Widget child = null - ) { - CupertinoRouteUtils.showCupertinoModalPopup( - context: context, - builder: (BuildContext _context) => child - ).Then((object value) => { - if (value != null) { - this.setState(() => { this.lastSelectedValue = value as string; }); - } - }); - } - - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - middle: new Text("Alerts"), - previousPageTitle: "Cupertino", - trailing: new CupertinoDemoDocumentationButton(CupertinoAlertDemo.routeName) - ), - child: - new DefaultTextStyle( - style: CupertinoTheme.of(context).textTheme.textStyle, - child: new Builder( - builder: (BuildContext _context) => { - List stackChildren = new List { - new ListView( - padding: EdgeInsets.symmetric(vertical: 24.0f, horizontal: 72.0f) - + MediaQuery.of(_context).padding, - children: new List { - CupertinoButton.filled( - child: new Text("Alert"), - onPressed: () => { - this.showDemoDialog( - context: _context, - child: - new CupertinoAlertDialog( - title: new Text("Discard draft?"), - actions: new List { - new CupertinoDialogAction( - child: new Text("Discard"), - isDestructiveAction: true, - onPressed: () => { Navigator.pop(_context, "Discard"); } - ), - new CupertinoDialogAction( - child: new Text("Cancel"), - isDefaultAction: true, - onPressed: () => { Navigator.pop(_context, "Cancel"); } - ), - } - ) - ); - } - ), - new Padding(padding: EdgeInsets.all(8.0f)), - CupertinoButton.filled( - child: new Text("Alert with Title"), - padding: EdgeInsets.symmetric(vertical: 16.0f, horizontal: 36.0f), - onPressed: () => { - this.showDemoDialog( - context: _context, - child: new CupertinoAlertDialog( - title: new Text( - "Allow \"Maps\" to access your location while you are using the app?") - , - content: new Text( - "Your current location will be displayed on the map and used \n" + - "for directions, nearby search results, and estimated travel times.") - , - actions: new List { - new CupertinoDialogAction( - child: new Text("Don\"t Allow"), - onPressed: () => { - Navigator.pop(_context, "Disallow"); - } - ), - new CupertinoDialogAction( - child: new Text("Allow"), - onPressed: () => { Navigator.pop(_context, "Allow"); } - ), - } - ) - ); - } - ), - new Padding(padding: EdgeInsets.all(8.0f)), - CupertinoButton.filled( - child: new Text("Alert with Buttons"), - padding: EdgeInsets.symmetric(vertical: 16.0f, horizontal: 36.0f), - onPressed: () => { - this.showDemoDialog( - context: _context, - child: new CupertinoDessertDialog( - title: new Text("Select Favorite Dessert"), - content: new Text( - "Please select your favorite type of dessert from the \n" + - "list below. Your selection will be used to customize the suggested \n" + - "list of eateries in your area.") - ) - ); - } - ), - new Padding(padding: EdgeInsets.all(8.0f)), - CupertinoButton.filled( - child: new Text("Alert Buttons Only"), - padding: EdgeInsets.symmetric(vertical: 16.0f, horizontal: 36.0f), - onPressed: () => { - this.showDemoDialog( - context: _context, - child: new CupertinoDessertDialog() - ); - } - ), - // TODO: FIX BUG - new Padding(padding: EdgeInsets.all(8.0f)), - CupertinoButton.filled( - child: new Text("Action Sheet"), - padding: EdgeInsets.symmetric(vertical: 16.0f, horizontal: 36.0f), - onPressed: () => { - this.showDemoActionSheet( - context: _context, - child: new CupertinoActionSheet( - title: new Text("Favorite Dessert"), - message: new Text( - "Please select the best dessert from the options below."), - actions: new List { - new CupertinoActionSheetAction( - child: new Text("Profiteroles"), - onPressed: () => { - Navigator.pop(_context, "Profiteroles"); - } - ), - new CupertinoActionSheetAction( - child: new Text("Cannolis"), - onPressed: () => { - Navigator.pop(_context, "Cannolis"); - } - ), - new CupertinoActionSheetAction( - child: new Text("Trifle"), - onPressed: () => { Navigator.pop(_context, "Trifle"); } - ) - }, - cancelButton: new CupertinoActionSheetAction( - child: new Text("Cancel"), - isDefaultAction: true, - onPressed: () => { Navigator.pop(_context, "Cancel"); } - ) - ) - ); - } - ) - } - ) - }; - - if (this.lastSelectedValue != null) { - stackChildren.Add( - new Positioned( - bottom: 32.0f, - child: new Text($"You selected: {this.lastSelectedValue}") - ) - ); - } - - return new Stack( - alignment: Alignment.center, - children: stackChildren - ); - } - ) - ) - ); - } - } - - class CupertinoDessertDialog : StatelessWidget { - public CupertinoDessertDialog( - Key key = null, - Widget title = null, - Widget content = null - ) : base(key: key) { - this.title = title; - this.content = content; - } - - public readonly Widget title; - public readonly Widget content; - - public override Widget build(BuildContext context) { - return new CupertinoAlertDialog( - title: this.title, - content: this.content, - actions: new List { - new CupertinoDialogAction( - child: new Text("Cheesecake"), - onPressed: () => { Navigator.pop(context, "Cheesecake"); } - ), - new CupertinoDialogAction( - child: new Text("Tiramisu"), - onPressed: () => { Navigator.pop(context, "Tiramisu"); } - ), - new CupertinoDialogAction( - child: new Text("Apple Pie"), - onPressed: - () => { Navigator.pop(context, "Apple Pie"); } - ), - new CupertinoDialogAction( - child: new Text("Devil\"s food cake"), - onPressed: - () => { Navigator.pop(context, "Devil\"s food cake"); } - ), - new CupertinoDialogAction( - child: new Text("Banana Split"), - onPressed: - () => { Navigator.pop(context, "Banana Split"); } - ), - new CupertinoDialogAction( - child: new Text("Oatmeal Cookie"), - onPressed: - () => { Navigator.pop(context, "Oatmeal Cookies"); } - ), - new CupertinoDialogAction( - child: new Text("Chocolate Brownie"), - onPressed: - () => { Navigator.pop(context, "Chocolate Brownies"); } - ), - new CupertinoDialogAction( - child: new Text("Cancel"), - isDestructiveAction: - true, - onPressed: - () => { Navigator.pop(context, "Cancel"); } - ), - } - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_alert_demo.cs.meta b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_alert_demo.cs.meta deleted file mode 100644 index d37537c2..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_alert_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fcd454968bdd543c181c3bde5aee8651 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_buttons_demo.cs b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_buttons_demo.cs deleted file mode 100644 index 24c92943..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_buttons_demo.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class CupertinoButtonsDemo : StatefulWidget { - public static string routeName = "/cupertino/buttons"; - - public override State createState() { - return new _CupertinoButtonDemoState(); - } - } - - class _CupertinoButtonDemoState : State { - int _pressedCount = 0; - - - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - middle: new Text("Buttons"), - previousPageTitle: "Cupertino", - trailing: new CupertinoDemoDocumentationButton(CupertinoButtonsDemo.routeName) - ), - child: new DefaultTextStyle( - style: CupertinoTheme.of(context).textTheme.textStyle, - child: new SafeArea( - child: new Column( - children: new List { - new Padding( - padding: EdgeInsets.all(16.0f), - child: new Text( - "iOS themed buttons are flat. They can have borders or backgrounds but only when necessary." - ) - ), - new Expanded( - child: new Column( - mainAxisAlignment: MainAxisAlignment.center, - children: new List { - new Text(this._pressedCount > 0 - ? $"Button pressed {this._pressedCount} time" + - (this._pressedCount == 1 ? "" : "s") - : " "), - new Padding(padding: EdgeInsets.all(12.0f)), - new Align( - alignment: new Alignment(0.0f, -0.2f), - child: - new Row( - mainAxisSize: MainAxisSize.min, - children: new List { - new CupertinoButton( - child: new Text("Cupertino Button"), - onPressed: - () => { this.setState(() => { this._pressedCount += 1; }); } - ), - new CupertinoButton( - child: new Text("Disabled"), - onPressed: null - ) - } - ) - ), - new Padding(padding: EdgeInsets.all(12.0f)), - CupertinoButton.filled( - child: new Text("With Background"), - onPressed: - () => { this.setState(() => { this._pressedCount += 1; }); } - ), - new Padding(padding: EdgeInsets.all(12.0f)), - CupertinoButton.filled( - child: new Text("Disabled"), - onPressed: null - ), - } - ) - ) - } - ) - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_buttons_demo.cs.meta b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_buttons_demo.cs.meta deleted file mode 100644 index a6364c96..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_buttons_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 00dd97e6ab3004c7485beababbe548ab -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_navigation_demo.cs b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_navigation_demo.cs deleted file mode 100644 index 14994b45..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_navigation_demo.cs +++ /dev/null @@ -1,831 +0,0 @@ -using System.Collections.Generic; -using RSG; -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgetsGallery.gallery { - class CupertinoNavigationDemoUtils { - public const int _kChildCount = 50; - - public static List coolColors = new List { - Color.fromARGB(255, 255, 59, 48), - Color.fromARGB(255, 255, 149, 0), - Color.fromARGB(255, 255, 204, 0), - Color.fromARGB(255, 76, 217, 100), - Color.fromARGB(255, 90, 200, 250), - Color.fromARGB(255, 0, 122, 255), - Color.fromARGB(255, 88, 86, 214), - Color.fromARGB(255, 255, 45, 85), - }; - - public static List coolColorNames = new List { - "Sarcoline", "Coquelicot", "Smaragdine", "Mikado", "Glaucous", "Wenge", - "Fulvous", "Xanadu", "Falu", "Eburnean", "Amaranth", "Australien", - "Banan", "Falu", "Gingerline", "Incarnadine", "Labrador", "Nattier", - "Pervenche", "Sinoper", "Verditer", "Watchet", "Zafre", - }; - - public static Widget trailingButtons { - get { - return new Row( - mainAxisSize: MainAxisSize.min, - children: new List { - new CupertinoDemoDocumentationButton(CupertinoNavigationDemo.routeName), - new Padding(padding: EdgeInsets.only(left: 8.0f)), - new ExitButton(), - } - ); - } - } - - public static List buildTab2Conversation() { - return new List { - new Tab2ConversationRow( - text: "My Xanadu doesn't look right" - ), - new Tab2ConversationRow( - avatar: new Tab2ConversationAvatar( - text: "KL", - color: new Color(0xFFFD5015) - ), - text: "We'll rush you a new one.\nIt's gonna be incredible" - ), - new Tab2ConversationRow( - text: "Awesome thanks!" - ), - new Tab2ConversationRow( - avatar: new Tab2ConversationAvatar( - text: "SJ", - color: new Color(0xFF34CAD6) - ), - text: "We'll send you our\nnewest Labrador too!" - ), - new Tab2ConversationRow( - text: "Yay" - ), - new Tab2ConversationRow( - avatar: new Tab2ConversationAvatar( - text: "KL", - color: new Color(0xFFFD5015) - ), - text: "Actually there's one more thing..." - ), - new Tab2ConversationRow( - text: "What's that ? " - ), - }; - } - } - - public class CupertinoNavigationDemo : StatelessWidget { - public CupertinoNavigationDemo() { - this.colorItems = new List(); - - for (int i = 0; i < CupertinoNavigationDemoUtils._kChildCount; i++) { - this.colorItems.Add(CupertinoNavigationDemoUtils.coolColors[ - Random.Range(0, CupertinoNavigationDemoUtils.coolColors.Count) - ]); - } - - this.colorNameItems = new List(); - - for (int i = 0; i < CupertinoNavigationDemoUtils._kChildCount; i++) { - this.colorNameItems.Add(CupertinoNavigationDemoUtils.coolColorNames[ - Random.Range(0, CupertinoNavigationDemoUtils.coolColorNames.Count) - ]); - } - } - - public static string routeName = "/cupertino/navigation"; - public readonly List colorItems; - public readonly List colorNameItems; - - public override Widget build(BuildContext context) { - return new WillPopScope( - onWillPop: () => { return Promise.Resolved(true); }, - child: new DefaultTextStyle( - style: CupertinoTheme.of(context).textTheme.textStyle, - child: new CupertinoTabScaffold( - tabBar: new CupertinoTabBar( - items: new List { - new BottomNavigationBarItem( - icon: new Icon(CupertinoIcons.home), - title: new Text("Home") - ), - new BottomNavigationBarItem( - icon: new Icon(CupertinoIcons.conversation_bubble), - title: new Text("Support") - ), - new BottomNavigationBarItem( - icon: new Icon(CupertinoIcons.profile_circled), - title: new Text("Profile") - ) - } - ), - tabBuilder: (BuildContext _context, int index) => { - D.assert(index >= 0 && index <= 2); - switch (index) { - case 0: - return new CupertinoTabView( - builder: (BuildContext _context1) => { - return new CupertinoDemoTab1( - colorItems: this.colorItems, - colorNameItems: this.colorNameItems - ); - }, - defaultTitle: "Colors" - ); - case 1: - return new CupertinoTabView( - builder: (BuildContext _context2) => new CupertinoDemoTab2(), - defaultTitle: "Support Chat" - ); - case 2: - return new CupertinoTabView( - builder: (BuildContext _context3) => new CupertinoDemoTab3(), - defaultTitle: "Account" - ); - } - - return null; - } - ) - ) - ); - } - } - - class ExitButton : StatelessWidget { - public ExitButton() { } - - public override Widget build(BuildContext context) { - return new CupertinoButton( - padding: EdgeInsets.zero, - child: new Tooltip( - message: "Back", - child: new Text("Exit") - ), - onPressed: () => { Navigator.of(context, rootNavigator: true).pop(); } - ); - } - } - - - class CupertinoDemoTab1 : StatelessWidget { - public CupertinoDemoTab1( - List colorItems = null, - List colorNameItems = null - ) { - this.colorItems = colorItems ?? new List(); - this.colorNameItems = colorNameItems ?? new List(); - } - - public readonly List colorItems; - public readonly List colorNameItems; - - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - child: new CustomScrollView( - slivers: new List { - new CupertinoSliverNavigationBar( - trailing: CupertinoNavigationDemoUtils.trailingButtons - ), - new SliverPadding( - padding: MediaQuery.of(context).removePadding( - removeTop: true, - removeLeft: true, - removeRight: true - ).padding, - sliver: new SliverList( - del: new SliverChildBuilderDelegate( - (BuildContext _context, int index) => { - return new Tab1RowItem( - index: index, - lastItem: index == CupertinoNavigationDemoUtils._kChildCount - 1, - color: this.colorItems[index], - colorName: this.colorNameItems[index] - ); - }, - childCount: CupertinoNavigationDemoUtils._kChildCount - ) - ) - ) - } - ) - ); - } - } - - class Tab1RowItem : StatelessWidget { - public Tab1RowItem( - int index, - bool lastItem, - Color color, - string colorName - ) { - this.index = index; - this.lastItem = lastItem; - this.color = color; - this.colorName = colorName; - } - - public readonly int index; - public readonly bool lastItem; - public readonly Color color; - public readonly string colorName; - - public override Widget build(BuildContext context) { - Widget row = new GestureDetector( - behavior: HitTestBehavior.opaque, - onTap: () => { - Navigator.of(context).push(new CupertinoPageRoute( - title: this.colorName, - builder: (BuildContext _context) => new Tab1ItemPage( - color: this.color, - colorName: this.colorName, - index: this.index - ) - )); - }, - child: new SafeArea( - top: false, - bottom: false, - child: new Padding( - padding: EdgeInsets.only(left: 16.0f, top: 8.0f, bottom: 8.0f, right: 8.0f), - child: new Row( - children: new List { - new Container( - height: 60.0f, - width: 60.0f, - decoration: new BoxDecoration( - color: this.color, - borderRadius: BorderRadius.circular(8.0f) - ) - ), - new Expanded( - child: new Padding( - padding: EdgeInsets.symmetric(horizontal: 12.0f), - child: new Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: new List { - new Text(this.colorName), - new Padding(padding: EdgeInsets.only(top: 8.0f)), - new Text( - "Buy this cool color", - style: new TextStyle( - color: new Color(0xFF8E8E93), - fontSize: 13.0f, - fontWeight: FontWeight.w300 - ) - ) - } - ) - ) - ), - new CupertinoButton( - padding: EdgeInsets.zero, - child: new Icon(CupertinoIcons.plus_circled - ), - onPressed: () => { } - ), - new CupertinoButton( - padding: EdgeInsets.zero, - child: new Icon(CupertinoIcons.share - ), - onPressed: () => { } - ) - } - ) - ) - ) - ); - if (this.lastItem) { - return row; - } - - return new Column( - children: new List { - row, - new Container( - height: 1.0f, - color: new Color(0xFFD9D9D9) - ) - } - ); - } - } - - class Tab1ItemPage : StatefulWidget { - public Tab1ItemPage( - Color color, - string colorName, - int index - ) { - this.color = color; - this.colorName = colorName; - this.index = index; - } - - public readonly Color color; - public readonly string colorName; - public readonly int index; - - public override State createState() { - return new Tab1ItemPageState(); - } - } - - class Tab1ItemPageState : State { - public override void initState() { - base.initState(); - - this.relatedColors = new List(); - for (int i = 0; i < 10; i++) { - this.relatedColors.Add(Color.fromARGB( - 255, - (this.widget.color.red + Random.Range(-50, 50)).clamp(0, 255), - (this.widget.color.green + Random.Range(-50, 50)).clamp(0, 255), - (this.widget.color.blue + Random.Range(-50, 50)).clamp(0, 255) - )); - } - } - - List relatedColors; - - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - trailing: new ExitButton() - ), - child: new SafeArea( - bottom: false, - child: new ListView( - children: new List { - new Padding(padding: EdgeInsets.only(top: 16.0f)), - new Padding( - padding: EdgeInsets.symmetric(horizontal: 16.0f), - child: new Row( - mainAxisSize: MainAxisSize.max, - children: new List { - new Container( - height: 128.0f, - width: 128.0f, - decoration: new BoxDecoration( - color: this.widget.color, - borderRadius: BorderRadius.circular(24.0f) - ) - ), - new Padding(padding: EdgeInsets.only(left: 18.0f)), - new Expanded( - child: new Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: new List { - new Text(this.widget.colorName, - style: new TextStyle(fontSize: 24.0f, - fontWeight: FontWeight.bold) - ), - new Padding(padding: EdgeInsets.only(top: 6.0f)), - new Text( - $"Item number {this.widget.index}", - style: new TextStyle( - color: new Color(0xFF8E8E93), - fontSize: 16.0f, - fontWeight: FontWeight.w100 - ) - ), - new Padding(padding: EdgeInsets.only(top: 20.0f)), - new Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: new List { - CupertinoButton.filled( - minSize: 30.0f, - padding: EdgeInsets.symmetric(horizontal: 24.0f), - borderRadius: BorderRadius.circular(16.0f), - child: new Text( - "GET", - style: new TextStyle( - fontSize: 14.0f, - fontWeight: FontWeight.w700, - letterSpacing: -0.28f - ) - ), - onPressed: () => { } - ), - CupertinoButton.filled( - minSize: 30.0f, - padding: EdgeInsets.zero, - borderRadius: BorderRadius.circular(16.0f), - child: new Icon(CupertinoIcons.ellipsis), - onPressed: () => { } - ) - } - ) - } - ) - ) - } - ) - ), - new Padding( - padding: EdgeInsets.only(left: 16.0f, top: 28.0f, bottom: 8.0f), - child: new Text( - "USERS ALSO LIKED", - style: new TextStyle( - color: new Color(0xFF646464), - letterSpacing: -0.60f, - fontSize: 15.0f, - fontWeight: FontWeight.w500 - ) - ) - ), - new SizedBox( - height: 200.0f, - child: ListView.builder( - scrollDirection: Axis.horizontal, - itemCount: 10, - itemExtent: 160.0f, - itemBuilder: (BuildContext _context, int index) => { - return new Padding( - padding: EdgeInsets.only(left: 16.0f), - child: new Container( - decoration: new BoxDecoration( - borderRadius: BorderRadius.circular(8.0f), - color: this.relatedColors[index] - ), - child: new Center( - child: new CupertinoButton( - child: new Icon( - CupertinoIcons.plus_circled, - color: CupertinoColors.white, - size: 36.0f - ), - onPressed: () => { } - ) - ) - ) - ); - } - ) - ) - } - ) - ) - ); - } - } - - class CupertinoDemoTab2 : StatelessWidget { - public override Widget build(BuildContext context) { - var listViewList = new List(); - listViewList.Add(new Tab2Header()); - listViewList.AddRange(CupertinoNavigationDemoUtils.buildTab2Conversation()); - - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - trailing: CupertinoNavigationDemoUtils.trailingButtons - ), - child: - new SafeArea( - child: new ListView( - children: listViewList - ) - ) - ); - } - } - - class Tab2Header : StatelessWidget { - public override Widget build(BuildContext context) { - return new Padding( - padding: EdgeInsets.all(16.0f), - child: new ClipRRect( - borderRadius: BorderRadius.all(Radius.circular(16.0f)), - child: new Column( - mainAxisSize: MainAxisSize.min, - children: new List { - new Container( - decoration: new BoxDecoration( - color: new Color(0xFFE5E5E5) - ), - child: new Padding( - padding: EdgeInsets.symmetric(horizontal: 18.0f, vertical: 12.0f), - child: new Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: new List { - new Text( - "SUPPORT TICKET", - style: new TextStyle( - color: new Color(0xFF646464), - letterSpacing: -0.9f, - fontSize: 14.0f, - fontWeight: FontWeight.w500 - ) - ), - new Text( - "Show More", - style: new TextStyle( - color: new Color(0xFF646464), - letterSpacing: -0.6f, - fontSize: 12.0f, - fontWeight: FontWeight.w500 - ) - ) - } - ) - ) - ), - new Container( - decoration: new BoxDecoration( - color: new Color(0xFFF3F3F3) - ), - child: new Padding( - padding: EdgeInsets.symmetric(horizontal: 18.0f, vertical: 12.0f), - child: new Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: new List { - new Text( - "Product or product packaging damaged during transit", - style: new TextStyle( - fontSize: 16.0f, - fontWeight: FontWeight.w700, - letterSpacing: -0.46f - ) - ), - new Padding(padding: EdgeInsets.only(top: 16.0f)), - new Text( - "REVIEWERS", - style: new TextStyle( - color: new Color(0xFF646464), - fontSize: 12.0f, - letterSpacing: -0.6f, - fontWeight: FontWeight.w500 - ) - ), - new Padding(padding: EdgeInsets.only(top: 8.0f)), - new Row( - children: new List { - new Container( - width: 44.0f, - height: 44.0f, - decoration: new BoxDecoration( - image: new DecorationImage( - image: new AssetImage( - "people/square/trevor" - ) - ), - shape: BoxShape.circle - ) - ), - new Padding(padding: EdgeInsets.only(left: 8.0f)), - new Container( - width: 44.0f, - height: 44.0f, - decoration: new BoxDecoration( - image: new DecorationImage( - image: new AssetImage( - "people/square/sandra" - ) - ), - shape: BoxShape.circle - ) - ), - new Padding(padding: EdgeInsets.only(left: 2.0f)), - new Icon( - CupertinoIcons.check_mark_circled, - color: new Color(0xFF646464), - size: 20.0f - ) - } - ) - } - ) - ) - ) - } - ) - ) - ); - } - } - - enum Tab2ConversationBubbleColor { - blue, - gray, - } - - class Tab2ConversationBubble : StatelessWidget { - public Tab2ConversationBubble( - string text, - Tab2ConversationBubbleColor color - ) { - this.text = text; - this.color = color; - } - - public readonly string text; - public readonly Tab2ConversationBubbleColor color; - - public override Widget build(BuildContext context) { - return new Container( - decoration: new BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(18.0f)), - color: this.color == Tab2ConversationBubbleColor.blue - ? CupertinoColors.activeBlue - : CupertinoColors.lightBackgroundGray - ), - margin: EdgeInsets.symmetric(horizontal: 8.0f, vertical: 8.0f), - padding: EdgeInsets.symmetric(horizontal: 14.0f, vertical: 10.0f), - child: new Text(this.text, - style: new TextStyle( - color: this.color == Tab2ConversationBubbleColor.blue - ? CupertinoColors.white - : CupertinoColors.black, - letterSpacing: -0.4f, - fontSize: 15.0f, - fontWeight: FontWeight.w400 - ) - ) - ); - } - } - - class Tab2ConversationAvatar : StatelessWidget { - public Tab2ConversationAvatar( - string text, - Color color - ) { - this.text = text; - this.color = color; - } - - public readonly string text; - public readonly Color color; - - public override Widget build(BuildContext context) { - return new Container( - decoration: new BoxDecoration( - shape: BoxShape.circle, - gradient: new LinearGradient( - begin: Alignment.topCenter, // FractionalOfset.topCenter, - end: Alignment.bottomCenter, // FractionalOfset.bottomCenter, - colors: new List { - this.color, - Color.fromARGB(this.color.alpha, - (this.color.red - 60).clamp(0, 255), - (this.color.green - 60).clamp(0, 255), - (this.color.blue - 60).clamp(0, 255) - ) - } - ) - ), - margin: EdgeInsets.only(left: 8.0f, bottom: 8.0f), - padding: EdgeInsets.all(12.0f), - child: new Text(this.text, - style: new TextStyle( - color: CupertinoColors.white, - fontSize: 13.0f, - fontWeight: FontWeight.w500 - ) - ) - ); - } - } - - class Tab2ConversationRow : StatelessWidget { - public Tab2ConversationRow( - string text, - Tab2ConversationAvatar avatar = null - ) { - this.avatar = avatar; - this.text = text; - } - - public readonly Tab2ConversationAvatar avatar; - public readonly string text; - - public override Widget build(BuildContext context) { - List children = new List(); - - if (this.avatar != null) { - children.Add(this.avatar); - } - - bool isSelf = this.avatar == null; - children.Add( - new Tab2ConversationBubble( - text: this.text, - color: isSelf - ? Tab2ConversationBubbleColor.blue - : Tab2ConversationBubbleColor.gray - ) - ); - return new Row( - mainAxisAlignment: isSelf ? MainAxisAlignment.end : MainAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: isSelf ? CrossAxisAlignment.center : CrossAxisAlignment.end, - children: children - ); - } - } - - - class CupertinoDemoTab3 : StatelessWidget { - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - trailing: CupertinoNavigationDemoUtils.trailingButtons - ), - child: new SafeArea( - child: new DecoratedBox( - decoration: new BoxDecoration( - color: CupertinoTheme.of(context).brightness == Brightness.light - ? CupertinoColors.extraLightBackgroundGray - : CupertinoColors.darkBackgroundGray - ), - child: new ListView( - children: new List { - new Padding(padding: EdgeInsets.only(top: 32.0f)), - new GestureDetector( - onTap: () => { - Navigator.of(context, rootNavigator: true).push( - new CupertinoPageRoute( - fullscreenDialog: true, - builder: (BuildContext _context) => new Tab3Dialog() - ) - ); - }, - child: new Container( - decoration: new BoxDecoration( - color: CupertinoTheme.of(context).scaffoldBackgroundColor, - border: new Border( - top: new BorderSide(color: new Color(0xFFBCBBC1), width: 0.0f), - bottom: new BorderSide(color: new Color(0xFFBCBBC1), width: 0.0f) - ) - ), - height: 44.0f, - child: new Padding( - padding: EdgeInsets.symmetric(horizontal: 16.0f, vertical: 8.0f), - child: new SafeArea( - top: false, - bottom: false, - child: new Row( - children: new List { - new Text( - "Sign in", - style: new TextStyle(color: CupertinoTheme.of(context) - .primaryColor) - ), - } - ) - ) - ) - ) - ) - } - ) - ) - ) - ); - } - } - - class Tab3Dialog : StatelessWidget { - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - leading: new CupertinoButton( - child: new Text("Cancel"), - padding: EdgeInsets.zero, - onPressed: () => { Navigator.of(context).pop(false); } - ) - ), - child: new Center( - child: new Column( - mainAxisSize: MainAxisSize.min, - children: new List { - new Icon( - CupertinoIcons.profile_circled, - size: 160.0f, - color: new Color(0xFF646464) - ), - new Padding(padding: EdgeInsets.only(top: 18.0f)), - CupertinoButton.filled( - child: new Text("Sign in"), - onPressed: () => { Navigator.pop(context); } - ), - } - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_navigation_demo.cs.meta b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_navigation_demo.cs.meta deleted file mode 100644 index e20d8425..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_navigation_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d5de5bf11a3f04d208266b21a0acda47 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_picker_demo.cs b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_picker_demo.cs deleted file mode 100644 index 8fa7b9e1..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_picker_demo.cs +++ /dev/null @@ -1,283 +0,0 @@ -using System; -using System.Collections.Generic; -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class CupertinoPickerDemoUtils { - public const float _kPickerSheetHeight = 216.0f; - public const float _kPickerItemHeight = 32.0f; - } - - class CupertinoPickerDemo : StatefulWidget { - public const string routeName = "/cupertino/picker"; - - public override State createState() { - return new _CupertinoPickerDemoState(); - } - } - - class _CupertinoPickerDemoState : State { - int _selectedColorIndex = 0; - TimeSpan timer = new TimeSpan(); - - // Value that is shown in the date picker in date mode. - DateTime date = DateTime.Now; - - // Value that is shown in the date picker in time mode. - DateTime time = DateTime.Now; - - // Value that is shown in the date picker in dateAndTime mode. - DateTime dateTime = DateTime.Now; - - Widget _buildMenu(List children) { - return new Container( - decoration: new BoxDecoration( - color: CupertinoTheme.of(this.context).scaffoldBackgroundColor, - border: new Border( - top: new BorderSide(color: new Color(0xFFBCBBC1), width: 0.0f), - bottom: new BorderSide(color: new Color(0xFFBCBBC1), width: 0.0f) - ) - ), - height: 44.0f, - child: new Padding( - padding: EdgeInsets.symmetric(horizontal: 16.0f), - child: new SafeArea( - top: false, - bottom: false, - child: new Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: children - ) - ) - ) - ); - } - - Widget _buildBottomPicker(Widget picker) { - return new Container( - height: CupertinoPickerDemoUtils._kPickerSheetHeight, - padding: EdgeInsets.only(top: 6.0f), - color: CupertinoColors.white, - child: new DefaultTextStyle( - style: new TextStyle( - color: CupertinoColors.black, - fontSize: 22.0f - ), - child: new GestureDetector( - // Blocks taps from propagating to the modal sheet and popping. - onTap: () => { }, - child: new SafeArea( - top: false, - child: picker - ) - ) - ) - ); - } - - Widget _buildColorPicker(BuildContext context) { - FixedExtentScrollController scrollController = - new FixedExtentScrollController(initialItem: this._selectedColorIndex); - - List generateList() { - var list = new List(); - foreach (var item in CupertinoNavigationDemoUtils.coolColorNames) { - list.Add(new Center(child: - new Text(item) - )); - } - - return list; - } - - - return new GestureDetector( - onTap: () => { - CupertinoRouteUtils.showCupertinoModalPopup( - context: context, - builder: (BuildContext _context) => { - return this._buildBottomPicker( - new CupertinoPicker( - scrollController: scrollController, - itemExtent: CupertinoPickerDemoUtils._kPickerItemHeight, - backgroundColor: CupertinoColors.white, - onSelectedItemChanged: (int index) => { - this.setState(() => this._selectedColorIndex = index); - }, - children: generateList() - ) - ); - } - ); - }, - child: this._buildMenu(new List { - new Text("Favorite Color"), - new Text( - CupertinoNavigationDemoUtils.coolColorNames[this._selectedColorIndex], - style: new TextStyle( - color: CupertinoColors.inactiveGray - ) - ) - } - ) - ); - } - - Widget _buildCountdownTimerPicker(BuildContext context) { - return new GestureDetector( - onTap: () => { - CupertinoRouteUtils.showCupertinoModalPopup( - context: context, - builder: (BuildContext _context) => { - return this._buildBottomPicker( - new CupertinoTimerPicker( - initialTimerDuration: this.timer, - onTimerDurationChanged: (TimeSpan newTimer) => { - this.setState(() => this.timer = newTimer); - } - ) - ); - } - ); - }, - child: this._buildMenu(new List { - new Text("Countdown Timer"), - new Text( - $"{this.timer.Hours}:" + - $"{(this.timer.Minutes % 60).ToString("00")}:" + - $"{(this.timer.Seconds % 60).ToString("00")}", - style: new TextStyle(color: CupertinoColors.inactiveGray) - ) - } - ) - ); - } - - Widget _buildDatePicker(BuildContext context) { - return new GestureDetector( - onTap: () => { - CupertinoRouteUtils.showCupertinoModalPopup( - context: context, - builder: (BuildContext _context) => { - return this._buildBottomPicker( - new CupertinoDatePicker( - mode: CupertinoDatePickerMode.date, - initialDateTime: this.date, - onDateTimeChanged: (DateTime newDateTime) => { - this.setState(() => this.date = newDateTime); - } - ) - ); - } - ); - }, - child: this._buildMenu(new List { - new Text("Date"), - new Text( - this.date.ToString("MMMM dd, yyyy"), - style: new TextStyle(color: CupertinoColors.inactiveGray) - ) - } - ) - ); - } - - Widget _buildTimePicker(BuildContext context) { - return new GestureDetector( - onTap: () => { - CupertinoRouteUtils.showCupertinoModalPopup( - context: context, - builder: (BuildContext _context) => { - return this._buildBottomPicker( - new CupertinoDatePicker( - mode: CupertinoDatePickerMode.time, - initialDateTime: this.time, - onDateTimeChanged: (DateTime newDateTime) => { - this.setState(() => this.time = newDateTime); - } - ) - ); - } - ); - }, - child: this._buildMenu(new List { - new Text("Time"), - new Text( - this.time.ToString("h:mm tt"), - style: new TextStyle(color: CupertinoColors.inactiveGray) - ) - } - ) - ); - } - - Widget _buildDateAndTimePicker(BuildContext context) { - return new GestureDetector( - onTap: () => { - CupertinoRouteUtils.showCupertinoModalPopup( - context: context, - builder: (BuildContext _context) => { - return this._buildBottomPicker( - new CupertinoDatePicker( - mode: CupertinoDatePickerMode.dateAndTime, - initialDateTime: this.dateTime, - onDateTimeChanged: (DateTime newDateTime) => { - this.setState(() => this.dateTime = newDateTime); - } - ) - ); - } - ); - }, - child: this._buildMenu(new List { - new Text("Date and Time"), - new Text( - this.dateTime.ToString("MMMM dd, yyyy h:mm tt"), - style: new TextStyle(color: CupertinoColors.inactiveGray) - ) - } - ) - ); - } - - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - middle: new Text("Picker"), - // We"re specifying a back label here because the previous page is a - // Material page. CupertinoPageRoutes could auto-populate these back - // labels. - previousPageTitle: "Cupertino", - trailing: new CupertinoDemoDocumentationButton(CupertinoPickerDemo.routeName) - ), - child: new DefaultTextStyle( - style: CupertinoTheme.of(context).textTheme.textStyle, - child: new DecoratedBox( - decoration: new BoxDecoration( - color: CupertinoTheme.of(context).brightness == Brightness.light - ? CupertinoColors.extraLightBackgroundGray - : CupertinoColors.darkBackgroundGray - ), - child: new SafeArea( - child: new ListView( - children: new List { - new Padding(padding: EdgeInsets.only(top: 32.0f)), - this._buildColorPicker(context), - this._buildCountdownTimerPicker(context), - this._buildDatePicker(context), - this._buildTimePicker(context), - this._buildDateAndTimePicker(context) - } - ) - ) - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_picker_demo.cs.meta b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_picker_demo.cs.meta deleted file mode 100644 index 8945bf2d..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_picker_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6cb09763e9a60447490569afa586f063 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_slider_demo.cs b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_slider_demo.cs deleted file mode 100644 index 58cef5f9..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_slider_demo.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class CupertinoSliderDemo : StatefulWidget { - public static string routeName = "/cupertino/slider"; - - public override State createState() { - return new _CupertinoSliderDemoState(); - } - } - - class _CupertinoSliderDemoState : State { - float _value = 25.0f; - float _discreteValue = 20.0f; - - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - middle: new Text("Sliders"), - previousPageTitle: "Cupertino", - trailing: new CupertinoDemoDocumentationButton(CupertinoSliderDemo.routeName) - ), - child: new DefaultTextStyle( - style: CupertinoTheme.of(context).textTheme.textStyle, - child: new SafeArea( - child: new Center( - child: new Column( - mainAxisAlignment: MainAxisAlignment.spaceAround, - children: new List { - new Column( - mainAxisSize: MainAxisSize.min, - children: new List { - new CupertinoSlider( - value: this._value, - min: 0.0f, - max: 100.0f, - onChanged: (float value) => { - this.setState(() => { this._value = value; }); - } - ), - new Text($"Cupertino Continuous: {this._value.ToString("F1")}"), - } - ), - new Column( - mainAxisSize: MainAxisSize.min, - children: new List { - new CupertinoSlider( - value: this._discreteValue, - min: 0.0f, - max: 100.0f, - divisions: 5, - onChanged: (float value) => { - this.setState(() => { this._discreteValue = value; }); - } - ), - new Text($"Cupertino Discrete: {this._discreteValue}"), - } - ), - } - ) - ) - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_slider_demo.cs.meta b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_slider_demo.cs.meta deleted file mode 100644 index 1f758145..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_slider_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 172d1ae6d262e45d4a131a02d85ddf44 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_switch_demo.cs b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_switch_demo.cs deleted file mode 100644 index bbee4682..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_switch_demo.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class CupertinoSwitchDemo : StatefulWidget { - public static string routeName = "/cupertino/switch"; - - public override State createState() => new _CupertinoSwitchDemoState(); - } - - class _CupertinoSwitchDemoState : State { - bool _switchValue = false; - - public override Widget build(BuildContext context) { - return new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - middle: new Text("Switch"), - previousPageTitle: "Cupertino", - trailing: new CupertinoDemoDocumentationButton(CupertinoSwitchDemo.routeName) - ), - child: new DefaultTextStyle( - style: CupertinoTheme.of(context).textTheme.textStyle, - child: new SafeArea( - child: new Center( - child: new Column( - mainAxisAlignment: MainAxisAlignment.spaceAround, - children: new List { - new Column( - children: new List { - new CupertinoSwitch( - value: this._switchValue, - onChanged: (bool value) => { - this.setState(() => { this._switchValue = value; }); - } - ), - new Text( - "Enabled - " + (this._switchValue ? "On" : "Off") - ), - } - ), - new Column( - children: new List { - new CupertinoSwitch( - value: true, - onChanged: null - ), - new Text( - "Disabled - On" - ), - } - ), - new Column( - children: new List { - new CupertinoSwitch( - value: false, - onChanged: null - ), - new Text( - "Disabled - Off" - ), - } - ) - } - ) - ) - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_switch_demo.cs.meta b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_switch_demo.cs.meta deleted file mode 100644 index a374cbd8..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_switch_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6f9a95d09a56a495f8878fd15b5aed4b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_text_field_demo.cs b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_text_field_demo.cs deleted file mode 100644 index 63de00f6..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_text_field_demo.cs +++ /dev/null @@ -1,192 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.service; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class CupertinoTextFieldDemo : StatefulWidget { - public const string routeName = "/cupertino/text_fields"; - - public override State createState() { - return new _CupertinoTextFieldDemoState(); - } - } - - class _CupertinoTextFieldDemoState : State { - TextEditingController _chatTextController; - TextEditingController _locationTextController; - - public override void initState() { - base.initState(); - this._chatTextController = new TextEditingController(); - this._locationTextController = new TextEditingController(text: "Montreal, Canada"); - } - - Widget _buildChatTextField() { - return new CupertinoTextField( - controller: this._chatTextController, - textCapitalization: TextCapitalization.sentences, - placeholder: "Text Message", - decoration: new BoxDecoration( - border: Border.all( - width: 0.0f, - color: CupertinoColors.inactiveGray - ), - borderRadius: BorderRadius.circular(15.0f) - ), - maxLines: null, - keyboardType: TextInputType.multiline, - prefix: new Padding(padding: EdgeInsets.symmetric(horizontal: 4.0f)), - suffix: - new Padding( - padding: EdgeInsets.symmetric(horizontal: 4.0f), - child: new CupertinoButton( - color: CupertinoColors.activeGreen, - minSize: 0.0f, - child: new Icon( - CupertinoIcons.up_arrow, - size: 21.0f, - color: CupertinoColors.white - ), - padding: EdgeInsets.all(2.0f), - borderRadius: - BorderRadius.circular(15.0f), - onPressed: () => this.setState(() => this._chatTextController.clear()) - ) - ), - autofocus: true, - suffixMode: OverlayVisibilityMode.editing, - onSubmitted: (string text) => this.setState(() => this._chatTextController.clear()) - ); - } - - Widget _buildNameField() { - return new CupertinoTextField( - prefix: new Icon( - CupertinoIcons.person_solid, - color: CupertinoColors.lightBackgroundGray, - size: 28.0f - ), - padding: EdgeInsets.symmetric(horizontal: 6.0f, vertical: 12.0f), - clearButtonMode: OverlayVisibilityMode.editing, - textCapitalization: TextCapitalization.words, - autocorrect: false, - decoration: new BoxDecoration( - border: new Border(bottom: new BorderSide(width: 0.0f, color: CupertinoColors.inactiveGray)) - ), - placeholder: "Name" - ); - } - - Widget _buildEmailField() { - return new CupertinoTextField( - prefix: new Icon( - CupertinoIcons.mail_solid, - color: CupertinoColors.lightBackgroundGray, - size: 28.0f - ), - padding: EdgeInsets.symmetric(horizontal: 6.0f, vertical: 12.0f), - clearButtonMode: OverlayVisibilityMode.editing, - keyboardType: TextInputType.emailAddress, - autocorrect: false, - decoration: new BoxDecoration( - border: new Border(bottom: new BorderSide(width: 0.0f, color: CupertinoColors.inactiveGray)) - ), - placeholder: "Email" - ); - } - - Widget _buildLocationField() { - return new CupertinoTextField( - controller: this._locationTextController, - prefix: new Icon( - CupertinoIcons.location_solid, - color: CupertinoColors.lightBackgroundGray, - size: 28.0f - ), - padding: EdgeInsets.symmetric(horizontal: 6.0f, vertical: 12.0f), - clearButtonMode: OverlayVisibilityMode.editing, - textCapitalization: TextCapitalization.words, - decoration: new BoxDecoration( - border: new Border(bottom: new BorderSide(width: 0.0f, color: CupertinoColors.inactiveGray)) - ), - placeholder: "Location" - ); - } - - Widget _buildPinField() { - return new CupertinoTextField( - prefix: new Icon( - CupertinoIcons.padlock_solid, - color: CupertinoColors.lightBackgroundGray, - size: 28.0f - ), - padding: EdgeInsets.symmetric(horizontal: 6.0f, vertical: 12.0f), - clearButtonMode: OverlayVisibilityMode.editing, - keyboardType: TextInputType.number, - autocorrect: false, - obscureText: true, - decoration: new BoxDecoration( - border: new Border(bottom: new BorderSide(width: 0.0f, color: CupertinoColors.inactiveGray)) - ), - placeholder: "Create a PIN" - ); - } - - Widget _buildTagsField() { - return new CupertinoTextField( - controller: new TextEditingController(text: "colleague, reading club"), - prefix: new Icon( - CupertinoIcons.tags_solid, - color: CupertinoColors.lightBackgroundGray, - size: 28.0f - ), - enabled: false, - padding: EdgeInsets.symmetric(horizontal: 6.0f, vertical: 12.0f), - decoration: new BoxDecoration( - border: new Border(bottom: new BorderSide(width: 0.0f, color: CupertinoColors.inactiveGray)) - ) - ); - } - - public override Widget build(BuildContext context) { - return new DefaultTextStyle( - style: new TextStyle( - fontFamily: ".SF Pro Text", // ".SF UI Text", - inherit: false, - fontSize: 17.0f, - color: CupertinoColors.black - ), - child: new CupertinoPageScaffold( - navigationBar: new CupertinoNavigationBar( - previousPageTitle: "Cupertino", - middle: new Text("Text Fields") - ), - child: new SafeArea( - child: new ListView( - children: new List { - new Padding( - padding: EdgeInsets.symmetric(vertical: 32.0f, horizontal: 16.0f), - child: new Column( - children: new List { - this._buildNameField(), - this._buildEmailField(), - this._buildLocationField(), - this._buildPinField(), - this._buildTagsField(), - } - ) - ), - new Padding( - padding: EdgeInsets.symmetric(vertical: 32.0f, horizontal: 16.0f), - child: this._buildChatTextField() - ), - } - ) - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_text_field_demo.cs.meta b/Samples/UIWidgetsGallery/demo/cupertino/cupertino_text_field_demo.cs.meta deleted file mode 100644 index 6bcbe358..00000000 --- a/Samples/UIWidgetsGallery/demo/cupertino/cupertino_text_field_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 38c40bf70348345f5bc7e93853e451fd -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/material.meta b/Samples/UIWidgetsGallery/demo/material.meta deleted file mode 100644 index 739884d9..00000000 --- a/Samples/UIWidgetsGallery/demo/material.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: edc3bae86553f44c2b7e7fddbf6cb497 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/material/backdrop_demo.cs b/Samples/UIWidgetsGallery/demo/material/backdrop_demo.cs deleted file mode 100644 index edb21e26..00000000 --- a/Samples/UIWidgetsGallery/demo/material/backdrop_demo.cs +++ /dev/null @@ -1,423 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Image = Unity.UIWidgets.widgets.Image; -using Material = Unity.UIWidgets.material.Material; - -namespace UIWidgetsGallery.gallery { - class BackdropDemoConstants { - public static readonly List allCategories = new List { - new Category( - title: "Accessories", - assets: new List { - "products/belt", - "products/earrings", - "products/backpack", - "products/hat", - "products/scarf", - "products/sunnies" - } - ), - new Category( - title: "Blue", - assets: new List { - "products/backpack", - "products/cup", - "products/napkins", - "products/top" - } - ), - new Category( - title: "Cold Weather", - assets: new List { - "products/jacket", - "products/jumper", - "products/scarf", - "products/sweater", - "products/sweats" - } - ), - new Category( - title: "Home", - assets: new List { - "products/cup", - "products/napkins", - "products/planters", - "products/table", - "products/teaset" - } - ), - new Category( - title: "Tops", - assets: new List { - "products/jumper", - "products/shirt", - "products/sweater", - "products/top" - } - ), - new Category( - title: "Everything", - assets: new List { - "products/backpack", - "products/belt", - "products/cup", - "products/dress", - "products/earrings", - "products/flatwear", - "products/hat", - "products/jacket", - "products/jumper", - "products/napkins", - "products/planters", - "products/scarf", - "products/shirt", - "products/sunnies", - "products/sweater", - "products/sweats", - "products/table", - "products/teaset", - "products/top" - } - ), - }; - } - - public class Category { - public Category(string title = null, List assets = null) { - this.title = title; - this.assets = assets; - } - - public readonly string title; - public readonly List assets; - - public override string ToString() { - return $"{this.GetType()}('{this.title}')"; - } - } - - - public class CategoryView : StatelessWidget { - public CategoryView(Key key = null, Category category = null) : base(key: key) { - this.category = category; - } - - public readonly Category category; - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - return new ListView( - key: new PageStorageKey(this.category), - padding: EdgeInsets.symmetric( - vertical: 16.0f, - horizontal: 64.0f - ), - children: this.category.assets.Select((string asset) => { - return new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: new List { - new Card( - child: new Container( - width: 144.0f, - alignment: Alignment.center, - child: new Column( - children: new List { - Image.asset( - asset, - fit: BoxFit.contain - ), - new Container( - padding: EdgeInsets.only(bottom: 16.0f), - alignment: Alignment.center, - child: new Text( - asset, - style: theme.textTheme.caption - ) - ), - } - ) - ) - ), - new SizedBox(height: 24.0f) - } - ); - }).ToList() - ); - } - } - - public class BackdropPanel : StatelessWidget { - public BackdropPanel( - Key key = null, - VoidCallback onTap = null, - GestureDragUpdateCallback onVerticalDragUpdate = null, - GestureDragEndCallback onVerticalDragEnd = null, - Widget title = null, - Widget child = null - ) : base(key: key) { - this.onTap = onTap; - this.onVerticalDragUpdate = onVerticalDragUpdate; - this.onVerticalDragEnd = onVerticalDragEnd; - this.title = title; - this.child = child; - } - - public readonly VoidCallback onTap; - public readonly GestureDragUpdateCallback onVerticalDragUpdate; - public readonly GestureDragEndCallback onVerticalDragEnd; - public readonly Widget title; - public readonly Widget child; - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - return new Material( - elevation: 2.0f, - borderRadius: BorderRadius.only( - topLeft: Radius.circular(16.0f), - topRight: Radius.circular(16.0f) - ), - child: new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: new List { - new GestureDetector( - behavior: HitTestBehavior.opaque, - onVerticalDragUpdate: this.onVerticalDragUpdate, - onVerticalDragEnd: this.onVerticalDragEnd, - onTap: this.onTap != null ? (GestureTapCallback) (() => { this.onTap(); }) : null, - child: new Container( - height: 48.0f, - padding: EdgeInsets.only(left: 16.0f), - alignment: Alignment.centerLeft, - child: new DefaultTextStyle( - style: theme.textTheme.subhead, - child: new Tooltip( - message: "Tap to dismiss", - child: this.title - ) - ) - ) - ), - new Divider(height: 1.0f), - new Expanded(child: this.child) - } - ) - ); - } - } - - public class BackdropTitle : AnimatedWidget { - public BackdropTitle( - Key key = null, - Listenable listenable = null - ) : base(key: key, listenable: listenable) { - } - - protected override Widget build(BuildContext context) { - Animation animation = (Animation) this.listenable; - return new DefaultTextStyle( - style: Theme.of(context).primaryTextTheme.title, - softWrap: false, - overflow: TextOverflow.ellipsis, - child: new Stack( - children: new List { - new Opacity( - opacity: new CurvedAnimation( - parent: new ReverseAnimation(animation), - curve: new Interval(0.5f, 1.0f) - ).value, - child: new Text("Select a Category") - ), - new Opacity( - opacity: new CurvedAnimation( - parent: animation, - curve: new Interval(0.5f, 1.0f) - ).value, - child: new Text("Asset Viewer") - ), - } - ) - ); - } - } - - public class BackdropDemo : StatefulWidget { - public const string routeName = "/material/backdrop"; - - public override State createState() { - return new _BackdropDemoState(); - } - } - - class _BackdropDemoState : SingleTickerProviderStateMixin { - GlobalKey _backdropKey = GlobalKey.key(debugLabel: "Backdrop"); - AnimationController _controller; - Category _category = BackdropDemoConstants.allCategories[0]; - - public override void initState() { - base.initState(); - this._controller = new AnimationController( - duration: new TimeSpan(0, 0, 0, 0, 300), - value: 1.0f, - vsync: this - ); - } - - public override void dispose() { - this._controller.dispose(); - base.dispose(); - } - - void _changeCategory(Category category) { - this.setState(() => { - this._category = category; - this._controller.fling(velocity: 2.0f); - }); - } - - bool _backdropPanelVisible { - get { - AnimationStatus status = this._controller.status; - return status == AnimationStatus.completed || status == AnimationStatus.forward; - } - } - - void _toggleBackdropPanelVisibility() { - this._controller.fling(velocity: this._backdropPanelVisible ? -2.0f : 2.0f); - } - - float? _backdropHeight { - get { - RenderBox renderBox = (RenderBox) this._backdropKey.currentContext.findRenderObject(); - return renderBox.size.height; - } - } - - - void _handleDragUpdate(DragUpdateDetails details) { - if (this._controller.isAnimating || this._controller.status == AnimationStatus.completed) { - return; - } - - this._controller.setValue(this._controller.value - - details.primaryDelta / (this._backdropHeight ?? details.primaryDelta) ?? 0.0f); - } - - void _handleDragEnd(DragEndDetails details) { - if (this._controller.isAnimating || this._controller.status == AnimationStatus.completed) { - return; - } - - float? flingVelocity = details.velocity.pixelsPerSecond.dy / this._backdropHeight; - if (flingVelocity < 0.0f) { - this._controller.fling(velocity: Mathf.Max(2.0f, -flingVelocity ?? 0.0f)); - } - else if (flingVelocity > 0.0f) { - this._controller.fling(velocity: Mathf.Min(-2.0f, -flingVelocity ?? 0.0f)); - } - else { - this._controller.fling(velocity: this._controller.value < 0.5f ? -2.0f : 2.0f); - } - } - - Widget _buildStack(BuildContext context, BoxConstraints constraints) { - const float panelTitleHeight = 48.0f; - Size panelSize = constraints.biggest; - float panelTop = panelSize.height - panelTitleHeight; - - Animation panelAnimation = this._controller.drive( - new RelativeRectTween( - begin: RelativeRect.fromLTRB( - 0.0f, - panelTop - MediaQuery.of(context).padding.bottom, - 0.0f, - panelTop - panelSize.height - ), - end: RelativeRect.fromLTRB(0.0f, 0.0f, 0.0f, 0.0f) - ) - ); - - ThemeData theme = Theme.of(context); - List backdropItems = BackdropDemoConstants.allCategories.Select( - (Category category) => { - bool selected = category == this._category; - return new Material( - shape: new RoundedRectangleBorder( - borderRadius: BorderRadius.all(Radius.circular(4.0f)) - ), - color: selected - ? Colors.white.withOpacity(0.25f) - : Colors.transparent, - child: new ListTile( - title: new Text(category.title), - selected: selected, - onTap: () => { this._changeCategory(category); } - ) - ); - }).ToList(); - - return new Container( - key: this._backdropKey, - color: theme.primaryColor, - child: new Stack( - children: new List { - new ListTileTheme( - iconColor: theme.primaryIconTheme.color, - textColor: theme.primaryTextTheme.title.color.withOpacity(0.6f), - selectedColor: theme.primaryTextTheme.title.color, - child: new Padding( - padding: EdgeInsets.symmetric(horizontal: 16.0f), - child: new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: backdropItems - ) - ) - ), - new PositionedTransition( - rect: panelAnimation, - child: new BackdropPanel( - onTap: this._toggleBackdropPanelVisibility, - onVerticalDragUpdate: this._handleDragUpdate, - onVerticalDragEnd: this._handleDragEnd, - title: new Text(this._category.title), - child: new CategoryView(category: this._category) - ) - ), - } - ) - ); - } - - public override Widget build(BuildContext context) { - return new Scaffold( - appBar: new AppBar( - elevation: 0.0f, - title: new BackdropTitle( - listenable: this._controller.view - ), - actions: new List { - new IconButton( - onPressed: this._toggleBackdropPanelVisibility, - icon: new AnimatedIcon( - icon: AnimatedIcons.close_menu, - progress: this._controller.view - ) - ) - } - ), - body: new LayoutBuilder( - builder: this._buildStack - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/backdrop_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/backdrop_demo.cs.meta deleted file mode 100644 index 94a1441d..00000000 --- a/Samples/UIWidgetsGallery/demo/material/backdrop_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 98bee0a7e51f4f2d9c8670daf147a15f -timeCreated: 1553145970 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/bottom_app_bar_demo.cs b/Samples/UIWidgetsGallery/demo/material/bottom_app_bar_demo.cs deleted file mode 100644 index b6fc5819..00000000 --- a/Samples/UIWidgetsGallery/demo/material/bottom_app_bar_demo.cs +++ /dev/null @@ -1,523 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Canvas = Unity.UIWidgets.ui.Canvas; -using Color = Unity.UIWidgets.ui.Color; -using Material = Unity.UIWidgets.material.Material; -using Rect = Unity.UIWidgets.ui.Rect; - -namespace UIWidgetsGallery.gallery { - public class BottomAppBarDemo : StatefulWidget { - public const string routeName = "/material/bottom_app_bar"; - - public override State createState() { - return new _BottomAppBarDemoState(); - } - } - - - class _BottomAppBarDemoState : State { - static readonly GlobalKey _scaffoldKey = GlobalKey.key(); - - - static readonly _ChoiceValue kNoFab = new _ChoiceValue( - title: "None", - label: "do not show a floating action button", - value: null - ); - - static readonly _ChoiceValue kCircularFab = new _ChoiceValue( - title: "Circular", - label: "circular floating action button", - value: new FloatingActionButton( - onPressed: _showSnackbar, - child: new Icon(Icons.add), - backgroundColor: Colors.orange - ) - ); - - static readonly _ChoiceValue kDiamondFab = new _ChoiceValue( - title: "Diamond", - label: "diamond shape floating action button", - value: new _DiamondFab( - onPressed: _showSnackbar, - child: new Icon(Icons.add) - ) - ); - - - static readonly _ChoiceValue kShowNotchTrue = new _ChoiceValue( - title: "On", - label: "show bottom appbar notch", - value: true - ); - - static readonly _ChoiceValue kShowNotchFalse = new _ChoiceValue( - title: "Off", - label: "do not show bottom appbar notch", - value: false - ); - - - static readonly _ChoiceValue kFabEndDocked = - new _ChoiceValue( - title: "Attached - End", - label: "floating action button is docked at the end of the bottom app bar", - value: FloatingActionButtonLocation.endDocked - ); - - static readonly _ChoiceValue kFabCenterDocked = - new _ChoiceValue( - title: "Attached - Center", - label: "floating action button is docked at the center of the bottom app bar", - value: FloatingActionButtonLocation.centerDocked - ); - - static readonly _ChoiceValue kFabEndFloat = - new _ChoiceValue( - title: "Free - End", - label: "floating action button floats above the end of the bottom app bar", - value: FloatingActionButtonLocation.endFloat - ); - - static readonly _ChoiceValue kFabCenterFloat = - new _ChoiceValue( - title: "Free - Center", - label: "floating action button is floats above the center of the bottom app bar", - value: FloatingActionButtonLocation.centerFloat - ); - - static void _showSnackbar() { - const string text = - "When the Scaffold's floating action button location changes, " + - "the floating action button animates to its new position." + - "The BottomAppBar adapts its shape appropriately."; - _scaffoldKey.currentState.showSnackBar( - new SnackBar(content: new Text(text)) - ); - } - - - static readonly List<_NamedColor> kBabColors = new List<_NamedColor> { - new _NamedColor(null, "Clear"), - new _NamedColor(new Color(0xFFFFC100), "Orange"), - new _NamedColor(new Color(0xFF91FAFF), "Light Blue"), - new _NamedColor(new Color(0xFF00D1FF), "Cyan"), - new _NamedColor(new Color(0xFF00BCFF), "Cerulean"), - new _NamedColor(new Color(0xFF009BEE), "Blue") - }; - - _ChoiceValue _fabShape = kCircularFab; - _ChoiceValue _showNotch = kShowNotchTrue; - _ChoiceValue _fabLocation = kFabEndDocked; - Color _babColor = kBabColors.First().color; - - void _onShowNotchChanged(_ChoiceValue value) { - this.setState(() => { this._showNotch = value; }); - } - - void _onFabShapeChanged(_ChoiceValue value) { - this.setState(() => { this._fabShape = value; }); - } - - void _onFabLocationChanged(_ChoiceValue value) { - this.setState(() => { this._fabLocation = value; }); - } - - void _onBabColorChanged(Color value) { - this.setState(() => { this._babColor = value; }); - } - - public override Widget build(BuildContext context) { - return new Scaffold( - key: _scaffoldKey, - appBar: new AppBar( - title: new Text("Bottom app bar"), - elevation: 0.0f, - actions: new List { - new MaterialDemoDocumentationButton(BottomAppBarDemo.routeName), - new IconButton( - icon: new Icon(Icons.sentiment_very_satisfied), - onPressed: () => { - this.setState(() => { - this._fabShape = this._fabShape == kCircularFab ? kDiamondFab : kCircularFab; - }); - } - ) - } - ), - body: new ListView( - padding: EdgeInsets.only(bottom: 88.0f), - children: new List { - new _AppBarDemoHeading("FAB Shape"), - - new _RadioItem(kCircularFab, this._fabShape, this._onFabShapeChanged), - new _RadioItem(kDiamondFab, this._fabShape, this._onFabShapeChanged), - new _RadioItem(kNoFab, this._fabShape, this._onFabShapeChanged), - - new Divider(), - new _AppBarDemoHeading("Notch"), - - new _RadioItem(kShowNotchTrue, this._showNotch, this._onShowNotchChanged), - new _RadioItem(kShowNotchFalse, this._showNotch, this._onShowNotchChanged), - - new Divider(), - new _AppBarDemoHeading("FAB Position"), - - new _RadioItem(kFabEndDocked, this._fabLocation, - this._onFabLocationChanged), - new _RadioItem(kFabCenterDocked, this._fabLocation, - this._onFabLocationChanged), - new _RadioItem(kFabEndFloat, this._fabLocation, - this._onFabLocationChanged), - new _RadioItem(kFabCenterFloat, this._fabLocation, - this._onFabLocationChanged), - - new Divider(), - new _AppBarDemoHeading("App bar color"), - - new _ColorsItem(kBabColors, this._babColor, this._onBabColorChanged) - } - ), - floatingActionButton: - this._fabShape.value, - floatingActionButtonLocation: - this._fabLocation.value, - bottomNavigationBar: new _DemoBottomAppBar( - color: this._babColor, - fabLocation: this._fabLocation.value, - shape: this._selectNotch() - ) - ); - } - - NotchedShape _selectNotch() { - if (!this._showNotch.value) { - return null; - } - - if (this._fabShape == kCircularFab) { - return new CircularNotchedRectangle(); - } - - if (this._fabShape == kDiamondFab) { - return new _DiamondNotchedRectangle(); - } - - return null; - } - } - - class _ChoiceValue { - public _ChoiceValue(T value, string title, string label) { - this.value = value; - this.title = title; - this.label = label; - } - - public readonly T value; - public readonly string title; - string label; // For the Semantics widget that contains title - - public override string ToString() { - return $"{this.GetType()}('{this.title}')"; - } - } - - class _RadioItem : StatelessWidget { - public _RadioItem(_ChoiceValue value, _ChoiceValue groupValue, ValueChanged<_ChoiceValue> onChanged) { - this.value = value; - this.groupValue = groupValue; - this.onChanged = onChanged; - } - - _ChoiceValue value; - _ChoiceValue groupValue; - ValueChanged<_ChoiceValue> onChanged; - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - return new Container( - height: 56.0f, - padding: EdgeInsets.only(left: 16.0f), - alignment: Alignment.centerLeft, - child: new Row( - children: new List { - new Radio<_ChoiceValue>( - value: this.value, - groupValue: this.groupValue, - onChanged: this.onChanged - ), - new Expanded( - child: new GestureDetector( - behavior: HitTestBehavior.opaque, - onTap: () => { this.onChanged(this.value); }, - child: new Text(this.value.title, - style: theme.textTheme.subhead - ) - ) - ) - } - ) - ); - } - } - - class _NamedColor { - public _NamedColor(Color color, string name) { - this.color = color; - this.name = name; - } - - public readonly Color color; - public readonly string name; - } - - class _ColorsItem : StatelessWidget { - public _ColorsItem(List<_NamedColor> colors, Color selectedColor, ValueChanged onChanged) { - this.colors = colors; - this.selectedColor = selectedColor; - this.onChanged = onChanged; - } - - List<_NamedColor> colors; - public readonly Color selectedColor; - ValueChanged onChanged; - - public override Widget build(BuildContext context) { - return new Row( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: this.colors.Select<_NamedColor, Widget>((_NamedColor namedColor) => { - return new RawMaterialButton( - onPressed: () => { this.onChanged(namedColor.color); }, - constraints: BoxConstraints.tightFor( - width: 32.0f, - height: 32.0f - ), - fillColor: namedColor.color, - shape: new CircleBorder( - side: new BorderSide( - color: namedColor.color == this.selectedColor ? Colors.black : new Color(0xFFD5D7DA), - width: 2.0f - ) - ) - ); - }).ToList() - ); - } - } - - class _AppBarDemoHeading : StatelessWidget { - public _AppBarDemoHeading(string text) { - this.text = text; - } - - public readonly string text; - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - return new Container( - height: 48.0f, - padding: EdgeInsets.only(left: 56.0f), - alignment: Alignment.centerLeft, - child: new Text(this.text, - style: theme.textTheme.body1.copyWith( - color: theme.primaryColor - ) - ) - ); - } - } - - class _DemoBottomAppBar : StatelessWidget { - public _DemoBottomAppBar( - Color color = null, - FloatingActionButtonLocation fabLocation = null, - NotchedShape shape = null - ) { - this.color = color; - this.fabLocation = fabLocation; - this.shape = shape; - } - - public readonly Color color; - public readonly FloatingActionButtonLocation fabLocation; - public readonly NotchedShape shape; - - static readonly List kCenterLocations = new List { - FloatingActionButtonLocation.centerDocked, - FloatingActionButtonLocation.centerFloat - }; - - public override Widget build(BuildContext context) { - List rowContents = new List { - new IconButton( - icon: new Icon(Icons.menu), - onPressed: () => { - BottomSheetUtils.showModalBottomSheet( - context: context, - builder: (BuildContext _context) => new _DemoDrawer() - ); - } - ) - }; - - if (kCenterLocations.Contains(this.fabLocation)) { - rowContents.Add( - new Expanded(child: new SizedBox()) - ); - } - - rowContents.AddRange(new List { - new IconButton( - icon: new Icon(Icons.search), - onPressed: () => { - Scaffold.of(context).showSnackBar( - new SnackBar(content: new Text("This is a dummy search action.")) - ); - } - ), - new IconButton( - icon: new Icon( - Theme.of(context).platform == RuntimePlatform.Android - ? Icons.more_vert - : Icons.more_horiz - ), - onPressed: () => { - Scaffold.of(context).showSnackBar( - new SnackBar(content: new Text("This is a dummy menu action.")) - ); - } - ) - }); - - return new BottomAppBar( - color: this.color, - child: new Row(children: rowContents), - shape: this.shape - ); - } - } - - class _DemoDrawer : StatelessWidget { - public _DemoDrawer() { - } - - public override Widget build(BuildContext context) { - return new Drawer( - child: new Column( - children: new List { - new ListTile( - leading: new Icon(Icons.search), - title: new Text("Search") - ), - new ListTile( - leading: new Icon(Icons.threed_rotation), - title: new Text("3D") - ) - } - ) - ); - } - } - - class _DiamondFab : StatelessWidget { - public _DiamondFab( - Widget child, - VoidCallback onPressed - ) { - this.child = child; - this.onPressed = onPressed; - } - - public readonly Widget child; - public readonly VoidCallback onPressed; - - public override Widget build(BuildContext context) { - return new Material( - shape: new _DiamondBorder(), - color: Colors.orange, - child: new InkWell( - onTap: this.onPressed == null ? (GestureTapCallback) null : () => { this.onPressed(); }, - child: new Container( - width: 56.0f, - height: 56.0f, - child: IconTheme.merge( - data: new IconThemeData(color: Theme.of(context).accentIconTheme.color), - child: this.child - ) - ) - ), - elevation: 6.0f - ); - } - } - - class _DiamondNotchedRectangle : NotchedShape { - public _DiamondNotchedRectangle() { - } - - public override Path getOuterPath(Rect host, Rect guest) { - if (guest == null || !host.overlaps(guest)) { - Path path = new Path(); - path.addRect(host); - return path; - } - - D.assert(guest.width > 0.0f); - - Rect intersection = guest.intersect(host); - float notchToCenter = - intersection.height * (guest.height / 2.0f) - / (guest.width / 2.0f); - - Path ret = new Path(); - ret.moveTo(host.left, host.top); - ret.lineTo(guest.center.dx - notchToCenter, host.top); - ret.lineTo(guest.left + guest.width / 2.0f, guest.bottom); - ret.lineTo(guest.center.dx + notchToCenter, host.top); - ret.lineTo(host.right, host.top); - ret.lineTo(host.right, host.bottom); - ret.lineTo(host.left, host.bottom); - ret.close(); - return ret; - } - } - - class _DiamondBorder : ShapeBorder { - public _DiamondBorder() { - } - - public override EdgeInsets dimensions { - get { return EdgeInsets.only(); } - } - - public override Path getInnerPath(Rect rect) { - return this.getOuterPath(rect); - } - - public override Path getOuterPath(Rect rect) { - Path path = new Path(); - path.moveTo(rect.left + rect.width / 2.0f, rect.top); - path.lineTo(rect.right, rect.top + rect.height / 2.0f); - path.lineTo(rect.left + rect.width / 2.0f, rect.bottom); - path.lineTo(rect.left, rect.top + rect.height / 2.0f); - path.close(); - return path; - } - - public override void paint(Canvas canvas, Rect rect) { - } - - public override ShapeBorder scale(float t) { - return null; - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/bottom_app_bar_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/bottom_app_bar_demo.cs.meta deleted file mode 100644 index 3eaa1125..00000000 --- a/Samples/UIWidgetsGallery/demo/material/bottom_app_bar_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 7c1d20efeafe42699212e2147c0828af -timeCreated: 1553149093 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/bottom_navigation_demo.cs b/Samples/UIWidgetsGallery/demo/material/bottom_navigation_demo.cs deleted file mode 100644 index 6193137b..00000000 --- a/Samples/UIWidgetsGallery/demo/material/bottom_navigation_demo.cs +++ /dev/null @@ -1,228 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.scheduler; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - public class NavigationIconView { - public NavigationIconView( - Widget icon = null, - Widget activeIcon = null, - string title = null, - Color color = null, - TickerProvider vsync = null - ) { - this._icon = icon; - this._color = color; - this._title = title; - this.item = new BottomNavigationBarItem( - icon: icon, - activeIcon: activeIcon, - title: new Text(title), - backgroundColor: color - ); - this.controller = new AnimationController( - duration: ThemeUtils.kThemeAnimationDuration, - vsync: vsync - ); - this._animation = this.controller.drive(new CurveTween( - curve: new Interval(0.5f, 1.0f, curve: Curves.fastOutSlowIn) - )); - } - - readonly Widget _icon; - readonly Color _color; - readonly string _title; - public readonly BottomNavigationBarItem item; - public readonly AnimationController controller; - Animation _animation; - - public FadeTransition transition(BottomNavigationBarType type, BuildContext context) { - Color iconColor; - if (type == BottomNavigationBarType.shifting) { - iconColor = this._color; - } - else { - ThemeData themeData = Theme.of(context); - iconColor = themeData.brightness == Brightness.light - ? themeData.primaryColor - : themeData.accentColor; - } - - return new FadeTransition( - opacity: this._animation, - child: new SlideTransition( - position: this._animation.drive( - new OffsetTween( - begin: new Offset(0.0f, 0.02f), // Slightly down. - end: Offset.zero - ) - ), - child: new IconTheme( - data: new IconThemeData( - color: iconColor, - size: 120.0f - ), - child: this._icon - ) - ) - ); - } - } - - public class CustomIcon : StatelessWidget { - public override Widget build(BuildContext context) { - IconThemeData iconTheme = IconTheme.of(context); - return new Container( - margin: EdgeInsets.all(4.0f), - width: iconTheme.size - 8.0f, - height: iconTheme.size - 8.0f, - color: iconTheme.color - ); - } - } - - public class CustomInactiveIcon : StatelessWidget { - public override Widget build(BuildContext context) { - IconThemeData iconTheme = IconTheme.of(context); - return new Container( - margin: EdgeInsets.all(4.0f), - width: iconTheme.size - 8.0f, - height: iconTheme.size - 8.0f, - decoration: new BoxDecoration( - border: Border.all(color: iconTheme.color, width: 2.0f) - ) - ); - } - } - - public class BottomNavigationDemo : StatefulWidget { - public const string routeName = "/material/bottom_navigation"; - - public override State createState() { - return new _BottomNavigationDemoState(); - } - } - - class _BottomNavigationDemoState : TickerProviderStateMixin { - int _currentIndex = 0; - BottomNavigationBarType _type = BottomNavigationBarType.shifting; - List _navigationViews; - - public override void initState() { - base.initState(); - this._navigationViews = new List { - new NavigationIconView( - icon: new Icon(Icons.access_alarm), - title: "Alarm", - color: Colors.deepPurple, - vsync: this - ), - new NavigationIconView( - activeIcon: new CustomIcon(), - icon: new CustomInactiveIcon(), - title: "Box", - color: Colors.deepOrange, - vsync: this - ), - new NavigationIconView( - activeIcon: new Icon(Icons.cloud), - icon: new Icon(Icons.cloud_queue), - title: "Cloud", - color: Colors.teal, - vsync: this - ), - new NavigationIconView( - activeIcon: new Icon(Icons.favorite), - icon: new Icon(Icons.favorite_border), - title: "Favorites", - color: Colors.indigo, - vsync: this - ), - new NavigationIconView( - icon: new Icon(Icons.event_available), - title: "Event", - color: Colors.pink, - vsync: this - ) - }; - - this._navigationViews[this._currentIndex].controller.setValue(1.0f); - } - - public override void dispose() { - foreach (NavigationIconView view in this._navigationViews) { - view.controller.dispose(); - } - - base.dispose(); - } - - Widget _buildTransitionsStack() { - List transitions = new List { }; - - foreach (NavigationIconView view in this._navigationViews) { - transitions.Add(view.transition(this._type, this.context)); - } - - transitions.Sort((FadeTransition a, FadeTransition b) => { - Animation aAnimation = a.opacity; - Animation bAnimation = b.opacity; - float aValue = aAnimation.value; - float bValue = bAnimation.value; - return aValue.CompareTo(bValue); - }); - - return new Stack(children: transitions.Select(w => w).ToList()); - } - - public override Widget build(BuildContext context) { - BottomNavigationBar botNavBar = new BottomNavigationBar( - items: this._navigationViews.Select((NavigationIconView navigationView) => navigationView.item) - .ToList(), - currentIndex: this._currentIndex, - type: this._type, - onTap: (int index) => { - this.setState(() => { - this._navigationViews[this._currentIndex].controller.reverse(); - this._currentIndex = index; - this._navigationViews[this._currentIndex].controller.forward(); - }); - } - ); - - return new Scaffold( - appBar: new AppBar( - title: new Text("Bottom navigation"), - actions: new List { - new MaterialDemoDocumentationButton(BottomNavigationDemo.routeName), - new PopupMenuButton( - onSelected: (BottomNavigationBarType value) => { - this.setState(() => { this._type = value; }); - }, - itemBuilder: (BuildContext _context) => new List> { - new PopupMenuItem( - value: BottomNavigationBarType.fix, - child: new Text("Fixed") - ), - new PopupMenuItem( - value: BottomNavigationBarType.shifting, - child: new Text("Shifting") - ) - } - ) - } - ), - body: new Center( - child: this._buildTransitionsStack() - ), - bottomNavigationBar: botNavBar - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/bottom_navigation_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/bottom_navigation_demo.cs.meta deleted file mode 100644 index ec110510..00000000 --- a/Samples/UIWidgetsGallery/demo/material/bottom_navigation_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: d279028b09c04c2b8ab3fba122868004 -timeCreated: 1553221768 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/buttons_demo.cs b/Samples/UIWidgetsGallery/demo/material/buttons_demo.cs deleted file mode 100644 index b26991a2..00000000 --- a/Samples/UIWidgetsGallery/demo/material/buttons_demo.cs +++ /dev/null @@ -1,382 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class ButtonsDemo : StatefulWidget { - public const string routeName = "/material/buttons"; - - public ButtonsDemo(Key key = null) : base(key: key) { - } - - public override State createState() { - return new _ButtonsDemoState(); - } - } - - class _ButtonsDemoState : State { - const string _raisedText = - "Raised buttons add dimension to mostly flat layouts. They emphasize " + - "functions on busy or wide spaces."; - - const string _raisedCode = "buttons_raised"; - - const string _flatText = "A flat button displays an ink splash on press " + - "but does not lift. Use flat buttons on toolbars, in dialogs and " + - "inline with padding"; - - const string _flatCode = "buttons_flat"; - - const string _outlineText = - "Outline buttons become opaque and elevate when pressed. They are often " + - "paired with raised buttons to indicate an alternative, secondary action."; - - const string _outlineCode = "buttons_outline"; - - const string _dropdownText = - "A dropdown button displays a menu that's used to select a value from a " + - "small set of values. The button displays the current value and a down " + - "arrow."; - - const string _dropdownCode = "buttons_dropdown"; - - const string _iconText = - "IconButtons are appropriate for toggle buttons that allow a single choice " + - "to be selected or deselected, such as adding or removing an item's star."; - - const string _iconCode = "buttons_icon"; - - const string _actionText = - "Floating action buttons are used for a promoted action. They are " + - "distinguished by a circled icon floating above the UI and can have motion " + - "behaviors that include morphing, launching, and a transferring anchor " + - "point."; - - const string _actionCode = "buttons_action"; - - ShapeBorder _buttonShape; - - public _ButtonsDemoState() { - } - - public override Widget build(BuildContext context) { - ButtonThemeData buttonTheme = ButtonTheme.of(context).copyWith( - shape: this._buttonShape - ); - - List demos = new List { - new ComponentDemoTabData( - tabName: "RAISED", - description: _raisedText, - demoWidget: ButtonTheme.fromButtonThemeData( - data: buttonTheme, - child: this.buildRaisedButton() - ), - exampleCodeTag: _raisedCode, - documentationUrl: "https://docs.flutter.io/flutter/material/RaisedButton-class.html" - ), - new ComponentDemoTabData( - tabName: "FLAT", - description: _flatText, - demoWidget: ButtonTheme.fromButtonThemeData( - data: buttonTheme, - child: this.buildFlatButton() - ), - exampleCodeTag: _flatCode, - documentationUrl: "https://docs.flutter.io/flutter/material/FlatButton-class.html" - ), - new ComponentDemoTabData( - tabName: "OUTLINE", - description: _outlineText, - demoWidget: ButtonTheme.fromButtonThemeData( - data: buttonTheme, - child: this.buildOutlineButton() - ), - exampleCodeTag: _outlineCode, - documentationUrl: "https://docs.flutter.io/flutter/material/OutlineButton-class.html" - ), - new ComponentDemoTabData( - tabName: "DROPDOWN", - description: _dropdownText, - demoWidget: this.buildDropdownButton(), - exampleCodeTag: _dropdownCode, - documentationUrl: "https://docs.flutter.io/flutter/material/DropdownButton-class.html" - ), - new ComponentDemoTabData( - tabName: "ICON", - description: _iconText, - demoWidget: this.buildIconButton(), - exampleCodeTag: _iconCode, - documentationUrl: "https://docs.flutter.io/flutter/material/IconButton-class.html" - ), - new ComponentDemoTabData( - tabName: "ACTION", - description: _actionText, - demoWidget: this.buildActionButton(), - exampleCodeTag: _actionCode, - documentationUrl: "https://docs.flutter.io/flutter/material/FloatingActionButton-class.html" - ) - }; - - return new TabbedComponentDemoScaffold( - title: "Buttons", - demos: demos, - actions: new List { - new IconButton( - icon: new Icon(Icons.sentiment_very_satisfied), - onPressed: () => { - this.setState(() => { - this._buttonShape = this._buttonShape == null ? new StadiumBorder() : null; - }); - } - ) - } - ); - } - - public Widget buildRaisedButton() { - return new Align( - alignment: new Alignment(0.0f, -0.2f), - child: new Column( - mainAxisSize: MainAxisSize.min, - children: new List { - new ButtonBar( - mainAxisSize: MainAxisSize.min, - children: new List { - new RaisedButton( - child: new Text("RAISED BUTTON"), - onPressed: () => { - // Perform some action - } - ), - new RaisedButton( - child: new Text("DISABLED"), - onPressed: null - ) - } - ), - new ButtonBar( - mainAxisSize: MainAxisSize.min, - children: new List { - RaisedButton.icon( - icon: new Icon(Icons.add, size: 18.0f), - label: new Text("RAISED BUTTON"), - onPressed: () => { - // Perform some action - } - ), - RaisedButton.icon( - icon: new Icon(Icons.add, size: 18.0f), - label: new Text("DISABLED"), - onPressed: null - ) - } - ) - } - ) - ); - } - - public Widget buildFlatButton() { - return new Align( - alignment: new Alignment(0.0f, -0.2f), - child: new Column( - mainAxisSize: MainAxisSize.min, - children: new List { - new ButtonBar( - mainAxisSize: MainAxisSize.min, - children: new List { - new FlatButton( - child: new Text("FLAT BUTTON"), - onPressed: () => { - // Perform some action - } - ), - new FlatButton( - child: new Text("DISABLED"), - onPressed: null - ) - } - ), - new ButtonBar( - mainAxisSize: MainAxisSize.min, - children: new List { - FlatButton.icon( - icon: new Icon(Icons.add_circle_outline, size: 18.0f), - label: new Text("FLAT BUTTON"), - onPressed: () => { - // Perform some action - } - ), - FlatButton.icon( - icon: new Icon(Icons.add_circle_outline, size: 18.0f), - label: new Text("DISABLED"), - onPressed: null - ), - } - ) - } - ) - ); - } - - Widget buildOutlineButton() { - return new Align( - alignment: new Alignment(0.0f, -0.2f), - child: new Column( - mainAxisSize: MainAxisSize.min, - children: new List { - new ButtonBar( - mainAxisSize: MainAxisSize.min, - children: new List { - new OutlineButton( - child: new Text("OUTLINE BUTTON"), - onPressed: () => { - // Perform some action - } - ), - - new OutlineButton( - child: new Text("DISABLED"), - onPressed: null - ) - } - ), - new ButtonBar( - mainAxisSize: MainAxisSize.min, - children: new List { - OutlineButton.icon( - icon: new Icon(Icons.add, size: 18.0f), - label: new Text("OUTLINE BUTTON"), - onPressed: () => { - // Perform some action - } - ), - OutlineButton.icon( - icon: new Icon(Icons.add, size: 18.0f), - label: new Text("DISABLED"), - onPressed: null - ) - } - ) - } - ) - ); - } - - // https://en.wikipedia.org/wiki/Free_Four - string dropdown1Value = "Free"; - string dropdown2Value; - string dropdown3Value = "Four"; - - public Widget buildDropdownButton() { - return new Padding( - padding: EdgeInsets.all(24.0f), - child: new Column( - mainAxisAlignment: MainAxisAlignment.start, - children: new List { - new ListTile( - title: new Text("Simple dropdown:"), - trailing: new DropdownButton( - value: this.dropdown1Value, - onChanged: (string newValue) => { - this.setState(() => { this.dropdown1Value = newValue; }); - }, - items: new List {"One", "Two", "Free", "Four"}.Select((string value) => { - return new DropdownMenuItem( - value: value, - child: new Text(value) - ); - }).ToList() - ) - ), - new SizedBox( - height: 24.0f - ), - new ListTile( - title: new Text("Dropdown with a hint:"), - trailing: new DropdownButton( - value: this.dropdown2Value, - hint: new Text("Choose"), - onChanged: (string newValue) => { - this.setState(() => { this.dropdown2Value = newValue; }); - }, - items: new List {"One", "Two", "Free", "Four"}.Select((string value) => { - return new DropdownMenuItem( - value: value, - child: new Text(value) - ); - }).ToList() - ) - ), - new SizedBox( - height: 24.0f - ), - new ListTile( - title: new Text("Scrollable dropdown:"), - trailing: new DropdownButton( - value: this.dropdown3Value, - onChanged: (string newValue) => { - this.setState(() => { this.dropdown3Value = newValue; }); - }, - items: new List { - "One", "Two", "Free", "Four", "Can", "I", "Have", "A", "Little", - "Bit", "More", "Five", "Six", "Seven", "Eight", "Nine", "Ten" - }.Select>(value => { - return new DropdownMenuItem( - value: value, - child: new Text(value) - ); - }).ToList() - ) - ) - } - ) - ); - } - - bool iconButtonToggle = false; - - public Widget buildIconButton() { - return new Align( - alignment: new Alignment(0.0f, -0.2f), - child: new Row( - mainAxisSize: MainAxisSize.min, - children: new List { - new IconButton( - icon: new Icon( - Icons.thumb_up - ), - onPressed: () => { this.setState(() => this.iconButtonToggle = !this.iconButtonToggle); }, - color: this.iconButtonToggle ? Theme.of(this.context).primaryColor : null - ), - new IconButton( - icon: new Icon( - Icons.thumb_up - ), - onPressed: null - ) - }.Select( - (Widget button) => new SizedBox(width: 64.0f, height: 64.0f, child: button)).ToList() - ) - ); - } - - public Widget buildActionButton() { - return new Align( - alignment: new Alignment(0.0f, -0.2f), - child: new FloatingActionButton( - child: new Icon(Icons.add), - onPressed: () => { - // Perform some action - }, - tooltip: "floating action button" - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/buttons_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/buttons_demo.cs.meta deleted file mode 100644 index 8934bcca..00000000 --- a/Samples/UIWidgetsGallery/demo/material/buttons_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bf7a009b9ad594f1887c1178cd01160b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/material/cards_demo.cs b/Samples/UIWidgetsGallery/demo/material/cards_demo.cs deleted file mode 100644 index 8e4b7fbc..00000000 --- a/Samples/UIWidgetsGallery/demo/material/cards_demo.cs +++ /dev/null @@ -1,217 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using Image = Unity.UIWidgets.widgets.Image; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsGallery.gallery { - class CardsDemoConstants { - public static readonly List destinations = new List { - new TravelDestination( - assetName: "india_thanjavur_market", - title: "Top 10 Cities to Visit in Tamil Nadu", - description: new List { - "Number 10", - "Thanjavur", - "Thanjavur, Tamil Nadu" - } - ), - new TravelDestination( - assetName: "india_chettinad_silk_maker", - title: "Artisans of Southern India", - description: new List { - "Silk Spinners", - "Chettinad", - "Sivaganga, Tamil Nadu" - } - ) - }; - } - - public class TravelDestination { - public TravelDestination( - string assetName = null, - string title = null, - List description = null - ) { - this.assetName = assetName; - this.title = title; - this.description = description; - } - - public readonly string assetName; - public readonly string title; - public readonly List description; - - public bool isValid { - get { return this.assetName != null && this.title != null && this.description?.Count == 3; } - } - } - - - public class TravelDestinationItem : StatelessWidget { - public TravelDestinationItem(Key key = null, TravelDestination destination = null, ShapeBorder shape = null) - : base(key: key) { - D.assert(destination != null && destination.isValid); - this.destination = destination; - this.shape = shape; - } - - public const float height = 366.0f; - public readonly TravelDestination destination; - public readonly ShapeBorder shape; - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - TextStyle titleStyle = theme.textTheme.headline.copyWith(color: Colors.white); - TextStyle descriptionStyle = theme.textTheme.subhead; - - return new SafeArea( - top: false, - bottom: false, - child: new Container( - padding: EdgeInsets.all(8.0f), - height: height, - child: new Card( - shape: this.shape, - child: new Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: new List { - new SizedBox( - height: 184.0f, - child: new Stack( - children: new List { - Positioned.fill( - child: Image.asset(this.destination.assetName, - fit: BoxFit.cover - ) - ), - new Positioned( - bottom: 16.0f, - left: 16.0f, - right: 16.0f, - child: new FittedBox( - fit: BoxFit.scaleDown, - alignment: Alignment.centerLeft, - child: new Text(this.destination.title, - style: titleStyle - ) - ) - ) - } - ) - ), - new Expanded( - child: new Padding( - padding: EdgeInsets.fromLTRB(16.0f, 16.0f, 16.0f, 0.0f), - child: new DefaultTextStyle( - softWrap: false, - overflow: TextOverflow.ellipsis, - style: descriptionStyle, - child: new Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: new List { - new Padding( - padding: EdgeInsets.only(bottom: 8.0f), - child: new Text(this.destination.description[0], - style: descriptionStyle.copyWith(color: Colors.black54) - ) - ), - new Text(this.destination.description[1]), - new Text(this.destination.description[2]) - } - ) - ) - ) - ), - ButtonTheme.bar( - child: new ButtonBar( - alignment: MainAxisAlignment.start, - children: new List { - new FlatButton( - child: new Text("SHARE"), - textColor: Colors.amber.shade500, - onPressed: () => { - /* do nothing */ - } - ), - new FlatButton( - child: new Text("EXPLORE"), - textColor: Colors.amber.shade500, - onPressed: () => { - /* do nothing */ - } - ) - } - ) - ), - } - ) - ) - ) - ); - } - } - - - public class CardsDemo : StatefulWidget { - public const string routeName = "/material/cards"; - - public override State createState() { - return new _CardsDemoState(); - } - } - - class _CardsDemoState : State { - ShapeBorder _shape; - - public override Widget build(BuildContext context) { - return new Scaffold( - appBar: new AppBar( - title: new Text("Travel stream"), - actions: new List { - new MaterialDemoDocumentationButton(CardsDemo.routeName), - new IconButton( - icon: new Icon( - Icons.sentiment_very_satisfied - ), - onPressed: () => { - this.setState(() => { - this._shape = this._shape != null - ? null - : new RoundedRectangleBorder( - borderRadius: BorderRadius.only( - topLeft: Radius.circular(16.0f), - topRight: Radius.circular(16.0f), - bottomLeft: Radius.circular(2.0f), - bottomRight: Radius.circular(2.0f) - ) - ); - }); - } - ) - } - ), - body: new ListView( - itemExtent: TravelDestinationItem.height, - padding: EdgeInsets.only(top: 8.0f, left: 8.0f, right: 8.0f), - children: CardsDemoConstants.destinations.Select( - (TravelDestination destination) => { - return new Container( - margin: EdgeInsets.only(bottom: 8.0f), - child: new TravelDestinationItem( - destination: destination, - shape: this._shape - ) - ); - }).ToList() - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/cards_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/cards_demo.cs.meta deleted file mode 100644 index a599eef9..00000000 --- a/Samples/UIWidgetsGallery/demo/material/cards_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: f199ea32d87544c892f57b8af0fcbb03 -timeCreated: 1553136548 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/chip_demo.cs b/Samples/UIWidgetsGallery/demo/material/chip_demo.cs deleted file mode 100644 index a5f50143..00000000 --- a/Samples/UIWidgetsGallery/demo/material/chip_demo.cs +++ /dev/null @@ -1,322 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class ChipDemoUtils { - public static readonly List _defaultMaterials = new List { - "poker", - "tortilla", - "fish and", - "micro", - "wood" - }; - - public static readonly List _defaultActions = new List { - "flake", - "cut", - "fragment", - "splinter", - "nick", - "fry", - "solder", - "cash in", - "eat" - }; - - public static readonly Dictionary _results = new Dictionary { - {"flake", "flaking"}, - {"cut", "cutting"}, - {"fragment", "fragmenting"}, - {"splinter", "splintering"}, - {"nick", "nicking"}, - {"fry", "frying"}, - {"solder", "soldering"}, - {"cash in", "cashing in"}, - {"eat", "eating"} - }; - - public static readonly List _defaultTools = new List { - "hammer", - "chisel", - "fryer", - "fabricator", - "customer" - }; - - public static readonly Dictionary _avatars = new Dictionary { - {"hammer", "people/square/ali"}, - {"chisel", "people/square/sandra"}, - {"fryer", "people/square/trevor"}, - {"fabricator", "people/square/stella"}, - {"customer", "people/square/peter"} - }; - - public static readonly Dictionary> _toolActions = - new Dictionary> { - {"hammer", new HashSet(new List {"flake", "fragment", "splinter"})}, - {"chisel", new HashSet(new List {"flake", "nick", "splinter"})}, - {"fryer", new HashSet(new List {"fry"})}, - {"fabricator", new HashSet(new List {"solder"})}, - {"customer", new HashSet(new List {"cash in", "eat"})} - }; - - public static readonly Dictionary> _materialActions = - new Dictionary> { - {"poker", new HashSet(new List {"cash in"})}, - {"tortilla", new HashSet(new List {"fry", "eat"})}, - {"fish and", new HashSet(new List {"fry", "eat"})}, - {"micro", new HashSet(new List {"solder", "fragment"})}, - {"wood", new HashSet(new List {"flake", "cut", "splinter", "nick"})} - }; - } - - - class _ChipsTile : StatelessWidget { - public _ChipsTile( - Key key = null, - string label = null, - List children = null - ) : base(key: key) { - this.label = label; - this.children = children; - } - - public readonly string label; - public readonly List children; - - public override Widget build(BuildContext context) { - List cardChildren = new List { - new Container( - padding: EdgeInsets.only(top: 16.0f, bottom: 4.0f), - alignment: Alignment.center, - child: new Text(this.label, textAlign: TextAlign.left) - ) - }; - if (this.children.isNotEmpty()) { - cardChildren.Add(new Wrap( - children: this.children.Select((Widget chip) => { - return new Padding( - padding: EdgeInsets.all(2.0f), - child: chip - ); - }).ToList())); - } - else { - TextStyle textStyle = Theme.of(context).textTheme.caption.copyWith(fontStyle: FontStyle.italic); - cardChildren.Add( - new Container( - alignment: Alignment.center, - constraints: new BoxConstraints(minWidth: 48.0f, minHeight: 48.0f), - padding: EdgeInsets.all(8.0f), - child: new Text("None", style: textStyle) - ) - ); - } - - return new Card( - child: new Column( - mainAxisSize: MainAxisSize.min, - children: cardChildren - ) - ); - } - } - - public class ChipDemo : StatefulWidget { - public const string routeName = "/material/chip"; - - public override State createState() { - return new _ChipDemoState(); - } - } - - class _ChipDemoState : State { - public _ChipDemoState() { - this._reset(); - } - - HashSet _materials = new HashSet(new List { }); - string _selectedMaterial = ""; - string _selectedAction = ""; - HashSet _tools = new HashSet(new List { }); - HashSet _selectedTools = new HashSet(new List { }); - HashSet _actions = new HashSet(new List { }); - bool _showShapeBorder = false; - - void _reset() { - this._materials.Clear(); - this._materials.UnionWith(ChipDemoUtils._defaultMaterials); - this._actions.Clear(); - this._actions.UnionWith(ChipDemoUtils._defaultActions); - this._tools.Clear(); - this._tools.UnionWith(ChipDemoUtils._defaultTools); - this._selectedMaterial = ""; - this._selectedAction = ""; - this._selectedTools.Clear(); - } - - void _removeMaterial(string name) { - this._materials.Remove(name); - if (this._selectedMaterial == name) { - this._selectedMaterial = ""; - } - } - - void _removeTool(string name) { - this._tools.Remove(name); - this._selectedTools.Remove(name); - } - - string _capitalize(string name) { - D.assert(name != null && name.isNotEmpty()); - return name.Substring(0, 1).ToUpper() + name.Substring(1); - } - - Color _nameToColor(string name) { - D.assert(name.Length > 1); - int hash = name.GetHashCode() & 0xffff; - float hue = (360.0f * hash / (1 << 15)) % 360.0f; - return HSVColor.fromAHSV(1.0f, hue, 0.4f, 0.90f).toColor(); - } - - AssetImage _nameToAvatar(string name) { - D.assert(ChipDemoUtils._avatars.ContainsKey(name)); - return new AssetImage( - ChipDemoUtils._avatars[name] - ); - } - - string _createResult() { - if (this._selectedAction.isEmpty()) { - return ""; - } - - return this._capitalize(ChipDemoUtils._results[this._selectedAction]) + "!"; - } - - public override Widget build(BuildContext context) { - List chips = this._materials.Select((string name) => { - return new Chip( - key: Key.key(name), - backgroundColor: this._nameToColor(name), - label: new Text(this._capitalize(name)), - onDeleted: () => { this.setState(() => { this._removeMaterial(name); }); } - ); - }).ToList(); - - List inputChips = this._tools.Select((string name) => { - return new InputChip( - key: ValueKey.key(name), - avatar: new CircleAvatar( - backgroundImage: this._nameToAvatar(name) - ), - label: new Text(this._capitalize(name)), - onDeleted: () => { this.setState(() => { this._removeTool(name); }); }); - }).ToList(); - - List choiceChips = this._materials.Select((string name) => { - return new ChoiceChip( - key: ValueKey.key(name), - backgroundColor: this._nameToColor(name), - label: new Text(this._capitalize(name)), - selected: this._selectedMaterial == name, - onSelected: (bool value) => { - this.setState(() => { this._selectedMaterial = value ? name : ""; }); - } - ); - }).ToList(); - - List filterChips = ChipDemoUtils._defaultTools.Select((string name) => { - return new FilterChip( - key: ValueKey.key(name), - label: new Text(this._capitalize(name)), - selected: this._tools.Contains(name) ? this._selectedTools.Contains(name) : false, - onSelected: !this._tools.Contains(name) - ? (ValueChanged) null - : (bool value) => { - this.setState(() => { - if (!value) { - this._selectedTools.Remove(name); - } - else { - this._selectedTools.Add(name); - } - }); - } - ); - }).ToList(); - - HashSet allowedActions = new HashSet(new List { }); - if (this._selectedMaterial != null && this._selectedMaterial.isNotEmpty()) { - foreach (string tool in this._selectedTools) { - allowedActions.UnionWith(ChipDemoUtils._toolActions[tool]); - } - - allowedActions = - new HashSet( - allowedActions.Intersect(ChipDemoUtils._materialActions[this._selectedMaterial])); - } - - List actionChips = allowedActions.Select((string name) => { - return new ActionChip( - label: new Text(this._capitalize(name)), - onPressed: () => { this.setState(() => { this._selectedAction = name; }); } - ); - }).ToList(); - - ThemeData theme = Theme.of(context); - List tiles = new List { - new SizedBox(height: 8.0f, width: 0.0f), - new _ChipsTile(label: "Available Materials (Chip)", children: chips), - new _ChipsTile(label: "Available Tools (InputChip)", children: inputChips), - new _ChipsTile(label: "Choose a Material (ChoiceChip)", children: choiceChips), - new _ChipsTile(label: "Choose Tools (FilterChip)", children: filterChips), - new _ChipsTile(label: "Perform Allowed Action (ActionChip)", children: actionChips), - new Divider(), - new Padding( - padding: EdgeInsets.all(8.0f), - child: new Center( - child: new Text(this._createResult(), - style: theme.textTheme.title - ) - ) - ) - }; - - return new Scaffold( - appBar: new AppBar( - title: new Text("Chips"), - actions: new List { - new MaterialDemoDocumentationButton(ChipDemo.routeName), - new IconButton( - onPressed: () => { - this.setState(() => { this._showShapeBorder = !this._showShapeBorder; }); - }, - icon: new Icon(Icons.vignette) - ) - } - ), - body: new ChipTheme( - data: this._showShapeBorder - ? theme.chipTheme.copyWith( - shape: new BeveledRectangleBorder( - side: new BorderSide(width: 0.66f, style: BorderStyle.solid, color: Colors.grey), - borderRadius: BorderRadius.circular(10.0f) - )) - : theme.chipTheme, - child: new ListView(children: tiles) - ), - floatingActionButton: new FloatingActionButton( - onPressed: () => this.setState(this._reset), - child: new Icon(Icons.refresh) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/chip_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/chip_demo.cs.meta deleted file mode 100644 index 0467f59f..00000000 --- a/Samples/UIWidgetsGallery/demo/material/chip_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: c65920c8c4b64c709b62586d0bde9579 -timeCreated: 1555411023 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/date_and_time_picker_demo.cs b/Samples/UIWidgetsGallery/demo/material/date_and_time_picker_demo.cs deleted file mode 100644 index 7edb5cb0..00000000 --- a/Samples/UIWidgetsGallery/demo/material/date_and_time_picker_demo.cs +++ /dev/null @@ -1,227 +0,0 @@ -using System; -using System.Collections.Generic; -using RSG; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class _InputDropdown : StatelessWidget { - public _InputDropdown( - Key key = null, - string labelText = null, - string valueText = null, - TextStyle valueStyle = null, - VoidCallback onPressed = null, - Widget child = null - ) : base(key: key) { - this.labelText = labelText; - this.valueText = valueText; - this.valueStyle = valueStyle; - this.onPressed = onPressed; - this.child = child; - } - - public readonly string labelText; - public readonly string valueText; - public readonly TextStyle valueStyle; - public readonly VoidCallback onPressed; - public readonly Widget child; - - public override Widget build(BuildContext context) { - return new InkWell( - onTap: () => this.onPressed(), - child: new InputDecorator( - decoration: new InputDecoration( - labelText: this.labelText - ), - baseStyle: this.valueStyle, - child: new Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - mainAxisSize: MainAxisSize.min, - children: new List { - new Text(this.valueText, style: this.valueStyle), - new Icon(Icons.arrow_drop_down, - color: Theme.of(context).brightness == Brightness.light - ? Colors.grey.shade700 - : Colors.white70 - ) - } - ) - ) - ); - } - } - - class _DateTimePicker : StatelessWidget { - public _DateTimePicker( - DateTime selectedDate, - Key key = null, - string labelText = null, - TimeOfDay selectedTime = null, - ValueChanged selectDate = null, - ValueChanged selectTime = null - ) : base(key: key) { - this.labelText = labelText; - this.selectedDate = selectedDate; - this.selectedTime = selectedTime; - this.selectDate = selectDate; - this.selectTime = selectTime; - } - - public readonly string labelText; - public readonly DateTime selectedDate; - public readonly TimeOfDay selectedTime; - public readonly ValueChanged selectDate; - public readonly ValueChanged selectTime; - - IPromise _selectDate(BuildContext context) { - return DatePickerUtils.showDatePicker( - context: context, - initialDate: this.selectedDate, - firstDate: new DateTime(2015, 8, 1), - lastDate: new DateTime(2101, 1, 1) - ).Then((date) => { - if (date == null) { - return; - } - - DateTime picked = (DateTime) date; - if (picked != null && picked != this.selectedDate) { - this.selectDate(picked); - } - }); - } - - // Future _selectTime(BuildContext context) async { - // final TimeOfDay picked = await showTimePicker( - // context: context, - // initialTime: selectedTime, - // ); - // if (picked != null && picked != selectedTime) - // selectTime(picked); - // } - - public override Widget build(BuildContext context) { - TextStyle valueStyle = Theme.of(context).textTheme.title; - return new Row( - crossAxisAlignment: CrossAxisAlignment.end, - children: new List { - new Expanded( - flex: 4, - child: new _InputDropdown( - labelText: this.labelText, - valueText: this.selectedDate.ToString("MM/dd/yyyy"), - valueStyle: valueStyle, - onPressed: () => { this._selectDate(context); } - ) - ), - new SizedBox(width: 12.0f), - // new Expanded( - // flex: 3, - // child: new _InputDropdown( - // valueText: this.selectedTime.format(context), - // valueStyle: valueStyle, - // onPressed: () => { this._selectTime(context); } - // ) - // ) - } - ); - } - } - - public class DateAndTimePickerDemo : StatefulWidget { - public const string routeName = "/material/date-and-time-pickers"; - - public override State createState() { - return new _DateAndTimePickerDemoState(); - } - } - - class _DateAndTimePickerDemoState : State { - DateTime _fromDate = DateTime.Now; - TimeOfDay _fromTime = new TimeOfDay(hour: 7, minute: 28); - DateTime _toDate = DateTime.Now; - TimeOfDay _toTime = new TimeOfDay(hour: 7, minute: 28); - readonly List _allActivities = new List {"hiking", "swimming", "boating", "fishing"}; - string _activity = "fishing"; - - public override Widget build(BuildContext context) { - var allActiviesList = new List>(); - foreach (var item in this._allActivities) { - allActiviesList.Add( - new DropdownMenuItem( - value: item, - child: new Text(item) - ) - ); - } - - return new Scaffold( - appBar: new AppBar( - title: new Text("Date and time pickers"), - actions: new List {new MaterialDemoDocumentationButton(DateAndTimePickerDemo.routeName)} - ), - body: new DropdownButtonHideUnderline( - child: new SafeArea( - top: false, - bottom: false, - child: new ListView( - padding: EdgeInsets.all(16.0f), - children: new List { - new TextField( - enabled: true, - decoration: new InputDecoration( - labelText: "Event name", - border: new OutlineInputBorder() - ), - style: Theme.of(context).textTheme.display1 - ), - new TextField( - decoration: new InputDecoration( - labelText: "Location" - ), - style: Theme.of(context).textTheme.display1.copyWith(fontSize: 20.0f) - ), - new _DateTimePicker( - labelText: "From", - selectedDate: this._fromDate, - selectedTime: this._fromTime, - selectDate: (DateTime date) => { this.setState(() => { this._fromDate = date; }); }, - selectTime: (TimeOfDay time) => { this.setState(() => { this._fromTime = time; }); } - ), - new _DateTimePicker( - labelText: "To", - selectedDate: this._toDate, - selectedTime: this._toTime, - selectDate: (DateTime date) => { this.setState(() => { this._toDate = date; }); }, - selectTime: (TimeOfDay time) => { this.setState(() => { this._toTime = time; }); } - ), - new SizedBox(height: 8.0f), - new InputDecorator( - decoration: new InputDecoration( - labelText: "Activity", - hintText: "Choose an activity", - contentPadding: EdgeInsets.zero - ), - isEmpty: this._activity == null, - child: new DropdownButton( - value: this._activity, - onChanged: (string newValue) => { - this.setState(() => { this._activity = newValue; }); - }, - items: allActiviesList - ) - ) - } - ) - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/date_and_time_picker_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/date_and_time_picker_demo.cs.meta deleted file mode 100644 index ece80314..00000000 --- a/Samples/UIWidgetsGallery/demo/material/date_and_time_picker_demo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d8fcf06db4da2449885ccc1f225b4808 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/material/modal_bottom_sheet_demo.cs b/Samples/UIWidgetsGallery/demo/material/modal_bottom_sheet_demo.cs deleted file mode 100644 index 93139b54..00000000 --- a/Samples/UIWidgetsGallery/demo/material/modal_bottom_sheet_demo.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - public class ModalBottomSheetDemo : StatelessWidget { - public const string routeName = "/material/modal-bottom-sheet"; - - public override Widget build(BuildContext context) { - return new Scaffold( - appBar: new AppBar( - title: new Text("Modal bottom sheet"), - actions: new List {new MaterialDemoDocumentationButton(routeName)} - ), - body: new Center( - child: new RaisedButton( - child: new Text("SHOW BOTTOM SHEET"), - onPressed: () => { - BottomSheetUtils.showModalBottomSheet(context: context, - builder: (BuildContext _context) => { - return new Container( - child: new Padding( - padding: EdgeInsets.all(32.0f), - child: new Text("This is the modal bottom sheet. Tap anywhere to dismiss.", - textAlign: TextAlign.center, - style: new TextStyle( - color: Theme.of(_context).accentColor, - fontSize: 24.0f - ) - ) - ) - ); - }); - } - ) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/modal_bottom_sheet_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/modal_bottom_sheet_demo.cs.meta deleted file mode 100644 index 85074c75..00000000 --- a/Samples/UIWidgetsGallery/demo/material/modal_bottom_sheet_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 3c47b9e1a46e47858145acbe84590d05 -timeCreated: 1555059325 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/persistent_bottom_sheet_demo.cs b/Samples/UIWidgetsGallery/demo/material/persistent_bottom_sheet_demo.cs deleted file mode 100644 index 081078be..00000000 --- a/Samples/UIWidgetsGallery/demo/material/persistent_bottom_sheet_demo.cs +++ /dev/null @@ -1,102 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using DialogUtils = Unity.UIWidgets.material.DialogUtils; - -namespace UIWidgetsGallery.gallery { - public class PersistentBottomSheetDemo : StatefulWidget { - public const string routeName = "/material/persistent-bottom-sheet"; - - public override State createState() { - return new _PersistentBottomSheetDemoState(); - } - } - - class _PersistentBottomSheetDemoState : State { - GlobalKey _scaffoldKey = GlobalKey.key(); - - VoidCallback _showBottomSheetCallback; - - public override void initState() { - base.initState(); - this._showBottomSheetCallback = this._showBottomSheet; - } - - void _showBottomSheet() { - this.setState(() => { - // disable the button - this._showBottomSheetCallback = null; - }); - this._scaffoldKey.currentState.showBottomSheet((BuildContext context) => { - ThemeData themeData = Theme.of(this.context); - return new Container( - decoration: new BoxDecoration( - border: new Border(top: new BorderSide(color: themeData.disabledColor)) - ), - child: new Padding( - padding: EdgeInsets.all(32.0f), - child: new Text("This is a Material persistent bottom sheet. Drag downwards to dismiss it.", - textAlign: TextAlign.center, - style: new TextStyle( - color: themeData.accentColor, - fontSize: 24.0f - ) - ) - ) - ); - }) - .closed.Then((value) => { - if (this.mounted) { - this.setState(() => { - // re-enable the button - this._showBottomSheetCallback = this._showBottomSheet; - }); - } - }); - } - - void _showMessage() { - DialogUtils.showDialog( - context: this.context, - builder: (BuildContext context) => { - return new AlertDialog( - content: new Text("You tapped the floating action button."), - actions: new List { - new FlatButton( - onPressed: () => { Navigator.pop(context); }, - child: new Text("OK") - ) - } - ); - } - ); - } - - public override Widget build(BuildContext context) { - return new Scaffold( - key: this._scaffoldKey, - appBar: new AppBar( - title: new Text("Persistent bottom sheet"), - actions: new List { - new MaterialDemoDocumentationButton(PersistentBottomSheetDemo.routeName) - } - ), - floatingActionButton: new FloatingActionButton( - onPressed: this._showMessage, - backgroundColor: Colors.redAccent, - child: new Icon( - Icons.add - ) - ), - body: new Center( - child: new RaisedButton( - onPressed: this._showBottomSheetCallback, - child: new Text("SHOW BOTTOM SHEET") - ) - ) - ); - } - } -} diff --git a/Samples/UIWidgetsGallery/demo/material/persistent_bottom_sheet_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/persistent_bottom_sheet_demo.cs.meta deleted file mode 100644 index 9fcbb089..00000000 --- a/Samples/UIWidgetsGallery/demo/material/persistent_bottom_sheet_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: afb410d95c524a18b8761713f1335427 -timeCreated: 1555059936 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/tabs_fab_demo.cs b/Samples/UIWidgetsGallery/demo/material/tabs_fab_demo.cs deleted file mode 100644 index 5eacfb4c..00000000 --- a/Samples/UIWidgetsGallery/demo/material/tabs_fab_demo.cs +++ /dev/null @@ -1,184 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class TabsFabDemoUtils { - public const string _explanatoryText = - "When the Scaffold's floating action button changes, the new button fades and " + - "turns into view. In this demo, changing tabs can cause the app to be rebuilt " + - "with a FloatingActionButton that the Scaffold distinguishes from the others " + - "by its key."; - - public static readonly List<_Page> _allPages = new List<_Page> { - new _Page(label: "Blue", colors: Colors.indigo, icon: Icons.add), - new _Page(label: "Eco", colors: Colors.green, icon: Icons.create), - new _Page(label: "No"), - new _Page(label: "Teal", colors: Colors.teal, icon: Icons.add), - new _Page(label: "Red", colors: Colors.red, icon: Icons.create) - }; - } - - class _Page { - public _Page( - string label, - MaterialColor colors = null, - IconData icon = null - ) { - this.label = label; - this.colors = colors; - this.icon = icon; - } - - public readonly string label; - public readonly MaterialColor colors; - public readonly IconData icon; - - public Color labelColor { - get { return this.colors != null ? this.colors.shade300 : Colors.grey.shade300; } - } - - public bool fabDefined { - get { return this.colors != null && this.icon != null; } - } - - public Color fabColor { - get { return this.colors.shade400; } - } - - public Icon fabIcon { - get { return new Icon(this.icon); } - } - - public Key fabKey { - get { return new ValueKey(this.fabColor); } - } - } - - - public class TabsFabDemo : StatefulWidget { - public const string routeName = "/material/tabs-fab"; - - public override State createState() { - return new _TabsFabDemoState(); - } - } - - class _TabsFabDemoState : SingleTickerProviderStateMixin { - GlobalKey _scaffoldKey = GlobalKey.key(); - - TabController _controller; - _Page _selectedPage; - bool _extendedButtons = false; - - public override void initState() { - base.initState(); - this._controller = new TabController(vsync: this, length: TabsFabDemoUtils._allPages.Count); - this._controller.addListener(this._handleTabSelection); - this._selectedPage = TabsFabDemoUtils._allPages[0]; - } - - public override void dispose() { - this._controller.dispose(); - base.dispose(); - } - - void _handleTabSelection() { - this.setState(() => { this._selectedPage = TabsFabDemoUtils._allPages[this._controller.index]; }); - } - - void _showExplanatoryText() { - this._scaffoldKey.currentState.showBottomSheet((BuildContext context) => { - return new Container( - decoration: new BoxDecoration( - border: new Border(top: new BorderSide(color: Theme.of(this.context).dividerColor)) - ), - child: new Padding( - padding: EdgeInsets.all(32.0f), - child: new Text(TabsFabDemoUtils._explanatoryText, - style: Theme.of(this.context).textTheme.subhead) - ) - ); - }); - } - - Widget buildTabView(_Page page) { - return new Builder( - builder: (BuildContext context) => { - return new Container( - key: new ValueKey(page.label), - padding: EdgeInsets.fromLTRB(48.0f, 48.0f, 48.0f, 96.0f), - child: new Card( - child: new Center( - child: new Text(page.label, - style: new TextStyle( - color: page.labelColor, - fontSize: 32.0f - ), - textAlign: TextAlign.center - ) - ) - ) - ); - } - ); - } - - Widget buildFloatingActionButton(_Page page) { - if (!page.fabDefined) { - return null; - } - - if (this._extendedButtons) { - return FloatingActionButton.extended( - key: new ValueKey(page.fabKey), - tooltip: "Show explanation", - backgroundColor: page.fabColor, - icon: page.fabIcon, - label: new Text(page.label.ToUpper()), - onPressed: this._showExplanatoryText - ); - } - - return new FloatingActionButton( - key: page.fabKey, - tooltip: "Show explanation", - backgroundColor: page.fabColor, - child: page.fabIcon, - onPressed: this._showExplanatoryText - ); - } - - public override Widget build(BuildContext context) { - return new Scaffold( - key: this._scaffoldKey, - appBar: new AppBar( - title: new Text("FAB per tab"), - bottom: new TabBar( - controller: this._controller, - tabs: TabsFabDemoUtils._allPages - .Select<_Page, Widget>((_Page page) => new Tab(text: page.label.ToUpper())).ToList() - ), - actions: new List { - new MaterialDemoDocumentationButton(TabsFabDemo.routeName), - new IconButton( - icon: new Icon(Icons.sentiment_very_satisfied), - onPressed: () => { - this.setState(() => { this._extendedButtons = !this._extendedButtons; }); - } - ) - } - ), - floatingActionButton: this.buildFloatingActionButton(this._selectedPage), - body: new TabBarView( - controller: this._controller, - children: TabsFabDemoUtils._allPages.Select<_Page, Widget>(this.buildTabView).ToList() - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/material/tabs_fab_demo.cs.meta b/Samples/UIWidgetsGallery/demo/material/tabs_fab_demo.cs.meta deleted file mode 100644 index 6c2242bf..00000000 --- a/Samples/UIWidgetsGallery/demo/material/tabs_fab_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 7c2dcb794cc84a458f028f3751cf08a7 -timeCreated: 1555060923 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine.meta b/Samples/UIWidgetsGallery/demo/shrine.meta deleted file mode 100644 index d6898547..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2621a6f94ad8a4b5ab7199025967dc90 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_data.cs b/Samples/UIWidgetsGallery/demo/shrine/shrine_data.cs deleted file mode 100644 index 6e208542..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_data.cs +++ /dev/null @@ -1,280 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; - -namespace UIWidgetsGallery.gallery { - class ShrineData { - const string _kGalleryAssetsPackage = "flutter_gallery_assets"; - - static Vendor _ali = new Vendor( - name: "Ali’s shop", - avatarAsset: "people/square/ali", - avatarAssetPackage: _kGalleryAssetsPackage, - description: - "Ali Connor’s makes custom goods for folks of all shapes and sizes " + - "made by hand and sometimes by machine, but always with love and care. " + - "Custom orders are available upon request if you need something extra special." - ); - - static Vendor _peter = new Vendor( - name: "Peter’s shop", - avatarAsset: "people/square/peter", - avatarAssetPackage: _kGalleryAssetsPackage, - description: - "Peter makes great stuff for awesome people like you. Super cool and extra " + - "awesome all of his shop’s goods are handmade with love. Custom orders are " + - "available upon request if you need something extra special." - ); - - static Vendor _sandra = new Vendor( - name: "Sandra’s shop", - avatarAsset: "people/square/sandra", - avatarAssetPackage: _kGalleryAssetsPackage, - description: - "Sandra specializes in furniture, beauty and travel products with a classic vibe. " + - "Custom orders are available if you’re looking for a certain color or material." - ); - - static Vendor _stella = new Vendor( - name: "Stella’s shop", - avatarAsset: "people/square/stella", - avatarAssetPackage: _kGalleryAssetsPackage, - description: - "Stella sells awesome stuff at lovely prices. made by hand and sometimes by " + - "machine, but always with love and care. Custom orders are available upon request " + - "if you need something extra special." - ); - - static Vendor _trevor = new Vendor( - name: "Trevor’s shop", - avatarAsset: "people/square/trevor", - avatarAssetPackage: _kGalleryAssetsPackage, - description: - "Trevor makes great stuff for awesome people like you. Super cool and extra " + - "awesome all of his shop’s goods are handmade with love. Custom orders are " + - "available upon request if you need something extra special." - ); - - static readonly List _allProducts = new List { - new Product( - name: "Vintage Brown Belt", - imageAsset: "products/belt", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"fashion", "latest"}, - price: 300.00f, - vendor: _sandra, - description: - "Isn’t it cool when things look old, but they're not. Looks Old But Not makes " + - "awesome vintage goods that are base smart. This ol’ belt just got an upgrade. " - ), - new Product( - name: "Sunglasses", - imageAsset: "products/sunnies", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"travel", "fashion", "beauty"}, - price: 20.00f, - vendor: _trevor, - description: - "Be an optimist. Carry Sunglasses with you at all times. All Tints and " + - "Shades products come with polarized lenses and base duper UV protection " + - "so you can look at the sun for however long you want. Sunglasses make you " + - "look cool, wear them." - ), - new Product( - name: "Flatwear", - imageAsset: "products/flatwear", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"furniture"}, - price: 30.00f, - vendor: _trevor, - description: - "Leave the tunnel and the rain is fallin amazing things happen when you wait" - ), - new Product( - name: "Salmon Sweater", - imageAsset: "products/sweater", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"fashion"}, - price: 300.00f, - vendor: _stella, - description: - "Looks can be deceiving. This sweater comes in a wide variety of " + - "flavors, including salmon, that pop as soon as they hit your eyes. " + - "Sweaters heat quickly, so savor the warmth." - ), - new Product( - name: "Pine Table", - imageAsset: "products/table", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"furniture"}, - price: 63.00f, - vendor: _stella, - description: - "Leave the tunnel and the rain is fallin amazing things happen when you wait" - ), - new Product( - name: "Green Comfort Jacket", - imageAsset: "products/jacket", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"fashion"}, - price: 36.00f, - vendor: _ali, - description: - "Leave the tunnel and the rain is fallin amazing things happen when you wait" - ), - new Product( - name: "Chambray Top", - imageAsset: "products/top", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"fashion"}, - price: 125.00f, - vendor: _peter, - description: - "Leave the tunnel and the rain is fallin amazing things happen when you wait" - ), - new Product( - name: "Blue Cup", - imageAsset: "products/cup", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"travel", "furniture"}, - price: 75.00f, - vendor: _sandra, - description: - "Drinksy has been making extraordinary mugs for decades. With each " + - "cup purchased Drinksy donates a cup to those in need. Buy yourself a mug, " + - "buy someone else a mug." - ), - new Product( - name: "Tea Set", - imageAsset: "products/teaset", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"furniture", "fashion"}, - price: 70.00f, - vendor: _trevor, - featureTitle: "Beautiful glass teapot", - featureDescription: - "Teapot holds extremely hot liquids and pours them from the spout.", - description: - "Impress your guests with Tea Set by Kitchen Stuff. Teapot holds extremely " + - "hot liquids and pours them from the spout. Use the handle, shown on the right, " + - "so your fingers don’t get burnt while pouring." - ), - new Product( - name: "Blue linen napkins", - imageAsset: "products/napkins", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"furniture", "fashion"}, - price: 89.00f, - vendor: _trevor, - description: - "Blue linen napkins were meant to go with friends, so you may want to pick " + - "up a bunch of these. These things are absorbant." - ), - new Product( - name: "Dipped Earrings", - imageAsset: "products/earrings", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"fashion", "beauty"}, - price: 25.00f, - vendor: _stella, - description: - "WeDipIt does it again. These hand-dipped 4 inch earrings are perfect for " + - "the office or the beach. Just be sure you don’t drop it in a bucket of " + - "red paint, then they won’t look dipped anymore." - ), - new Product( - name: "Perfect Planters", - imageAsset: "products/planters", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"latest", "furniture"}, - price: 30.00f, - vendor: _ali, - description: - "The Perfect Planter Co makes the best vessels for just about anything you " + - "can pot. This set of Perfect Planters holds succulents and cuttings perfectly. " + - "Looks great in any room. Keep out of reach from cats." - ), - new Product( - name: "Cloud-White Dress", - imageAsset: "products/dress", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"fashion"}, - price: 54.00f, - vendor: _sandra, - description: - "Trying to find the perfect outift to match your mood? Try no longer. " + - "This Cloud-White Dress has you covered for those nights when you need " + - "to get out, or even if you’re just headed to work." - ), - new Product( - name: "Backpack", - imageAsset: "products/backpack", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"travel", "fashion"}, - price: 25.00f, - vendor: _peter, - description: - "This backpack by Bags ‘n’ stuff can hold just about anything: a laptop, " + - "a pen, a protractor, notebooks, small animals, plugs for your devices, " + - "sunglasses, gym clothes, shoes, gloves, two kittens, and even lunch!" - ), - new Product( - name: "Charcoal Straw Hat", - imageAsset: "products/hat", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"travel", "fashion", "latest"}, - price: 25.00f, - vendor: _ali, - description: - "This is the helmet for those warm summer days on the road. " + - "Jetset approved, these hats have been rigorously tested. Keep that face " + - "protected from the sun." - ), - new Product( - name: "Ginger Scarf", - imageAsset: "products/scarf", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"latest", "fashion"}, - price: 17.00f, - vendor: _peter, - description: - "Leave the tunnel and the rain is fallin amazing things happen when you wait" - ), - new Product( - name: "Blush Sweats", - imageAsset: "products/sweats", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"travel", "fashion", "latest"}, - price: 25.00f, - vendor: _stella, - description: - "Leave the tunnel and the rain is fallin amazing things happen when you wait" - ), - new Product( - name: "Mint Jumper", - imageAsset: "products/jumper", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"travel", "fashion", "beauty"}, - price: 25.00f, - vendor: _peter, - description: - "Leave the tunnel and the rain is fallin amazing things happen when you wait" - ), - new Product( - name: "Ochre Shirt", - imageAsset: "products/shirt", - imageAssetPackage: _kGalleryAssetsPackage, - categories: new List {"fashion", "latest"}, - price: 120.00f, - vendor: _stella, - description: - "Leave the tunnel and the rain is fallin amazing things happen when you wait" - ) - }; - - public static List allProducts() { - D.assert(_allProducts.All((Product product) => product.isValid())); - return new List(_allProducts); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_data.cs.meta b/Samples/UIWidgetsGallery/demo/shrine/shrine_data.cs.meta deleted file mode 100644 index 21d9cf9a..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_data.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: f29bb63cff3148cbb3ef3be8196d5709 -timeCreated: 1553240837 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_home.cs b/Samples/UIWidgetsGallery/demo/shrine/shrine_home.cs deleted file mode 100644 index b6a4940a..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_home.cs +++ /dev/null @@ -1,410 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using com.unity.uiwidgets.Runtime.rendering; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using Constants = Unity.UIWidgets.material.Constants; -using Image = Unity.UIWidgets.widgets.Image; - -namespace UIWidgetsGallery.gallery { - class ShrineHomeUtils { - public const float unitSize = Constants.kToolbarHeight; - - public static readonly List _products = new List(ShrineData.allProducts()); - public static readonly Dictionary _shoppingCart = new Dictionary(); - - public const int _childrenPerBlock = 8; - public const int _rowsPerBlock = 5; - - public static int _minIndexInRow(int rowIndex) { - int blockIndex = rowIndex / _rowsPerBlock; - return new List {0, 2, 4, 6, 7}[rowIndex % _rowsPerBlock] + blockIndex * _childrenPerBlock; - } - - public static int _maxIndexInRow(int rowIndex) { - int blockIndex = rowIndex / _rowsPerBlock; - return new List {1, 3, 5, 6, 7}[rowIndex % _rowsPerBlock] + blockIndex * _childrenPerBlock; - } - - public static int _rowAtIndex(int index) { - int blockCount = index / _childrenPerBlock; - return new List {0, 0, 1, 1, 2, 2, 3, 4}[index - blockCount * _childrenPerBlock] + - blockCount * _rowsPerBlock; - } - - public static int _columnAtIndex(int index) { - return new List {0, 1, 0, 1, 0, 1, 0, 0}[index % _childrenPerBlock]; - } - - public static int _columnSpanAtIndex(int index) { - return new List {1, 1, 1, 1, 1, 1, 2, 2}[index % _childrenPerBlock]; - } - } - - class _ShrineGridLayout : SliverGridLayout { - public _ShrineGridLayout( - float? rowStride = null, - float? columnStride = null, - float? tileHeight = null, - float? tileWidth = null - ) { - this.rowStride = rowStride; - this.columnStride = columnStride; - this.tileHeight = tileHeight; - this.tileWidth = tileWidth; - } - - public readonly float? rowStride; - public readonly float? columnStride; - public readonly float? tileHeight; - public readonly float? tileWidth; - - public override int getMinChildIndexForScrollOffset(float scrollOffset) { - return ShrineHomeUtils._minIndexInRow((int) (scrollOffset / this.rowStride)); - } - - public override int getMaxChildIndexForScrollOffset(float scrollOffset) { - return ShrineHomeUtils._maxIndexInRow((int) (scrollOffset / this.rowStride)); - } - - public override SliverGridGeometry getGeometryForChildIndex(int index) { - int row = ShrineHomeUtils._rowAtIndex(index); - int column = ShrineHomeUtils._columnAtIndex(index); - int columnSpan = ShrineHomeUtils._columnSpanAtIndex(index); - return new SliverGridGeometry( - scrollOffset: row * this.rowStride, - crossAxisOffset: column * this.columnStride, - mainAxisExtent: this.tileHeight, - crossAxisExtent: this.tileWidth + (columnSpan - 1) * this.columnStride - ); - } - - public override float computeMaxScrollOffset(int childCount) { - if (childCount == 0) { - return 0.0f; - } - - int rowCount = ShrineHomeUtils._rowAtIndex(childCount - 1) + 1; - float? rowSpacing = this.rowStride - this.tileHeight; - return (this.rowStride * rowCount - rowSpacing) ?? 0.0f; - } - } - - class _ShrineGridDelegate : SliverGridDelegate { - const float _spacing = 8.0f; - - public override SliverGridLayout getLayout(SliverConstraints constraints) { - float tileWidth = (constraints.crossAxisExtent - _spacing) / 2.0f; - const float tileHeight = 40.0f + 144.0f + 40.0f; - return new _ShrineGridLayout( - tileWidth: tileWidth, - tileHeight: tileHeight, - rowStride: tileHeight + _spacing, - columnStride: tileWidth + _spacing - ); - } - - public override bool shouldRelayout(SliverGridDelegate oldDelegate) { - return false; - } - } - - class _VendorItem : StatelessWidget { - public _VendorItem(Key key = null, Vendor vendor = null) : base(key: key) { - D.assert(vendor != null); - this.vendor = vendor; - } - - public readonly Vendor vendor; - - public override Widget build(BuildContext context) { - return new SizedBox( - height: 24.0f, - child: new Row( - children: new List { - new SizedBox( - width: 24.0f, - child: new ClipRRect( - borderRadius: BorderRadius.circular(12.0f), - child: Image.asset( - this.vendor.avatarAsset, - fit: BoxFit.cover - ) - ) - ), - new SizedBox(width: 8.0f), - new Expanded( - child: new Text(this.vendor.name, style: ShrineTheme.of(context).vendorItemStyle) - ) - } - ) - ); - } - } - - abstract class _PriceItem : StatelessWidget { - public _PriceItem(Key key = null, Product product = null) - : base(key: key) { - D.assert(product != null); - this.product = product; - } - - public readonly Product product; - - public Widget buildItem(BuildContext context, TextStyle style, EdgeInsets padding) { - BoxDecoration decoration = null; - if (ShrineHomeUtils._shoppingCart.getOrDefault(this.product) != null) { - decoration = new BoxDecoration(color: ShrineTheme.of(context).priceHighlightColor); - } - - return new Container( - padding: padding, - decoration: decoration, - child: new Text(this.product.priceString, style: style) - ); - } - } - - class _ProductPriceItem : _PriceItem { - public _ProductPriceItem(Key key = null, Product product = null) : base(key: key, product: product) { - } - - public override Widget build(BuildContext context) { - return this.buildItem( - context, - ShrineTheme.of(context).priceStyle, - EdgeInsets.symmetric(horizontal: 16.0f, vertical: 8.0f) - ); - } - } - - class _FeaturePriceItem : _PriceItem { - public _FeaturePriceItem(Key key = null, Product product = null) : base(key: key, product: product) { - } - - public override Widget build(BuildContext context) { - return this.buildItem( - context, - ShrineTheme.of(context).featurePriceStyle, - EdgeInsets.symmetric(horizontal: 24.0f, vertical: 16.0f) - ); - } - } - - class _HeadingLayout : MultiChildLayoutDelegate { - public _HeadingLayout() { - } - - public const string price = "price"; - public const string image = "image"; - public const string title = "title"; - public const string description = "description"; - public const string vendor = "vendor"; - - public override void performLayout(Size size) { - Size priceSize = this.layoutChild(price, BoxConstraints.loose(size)); - this.positionChild(price, new Offset(size.width - priceSize.width, 0.0f)); - - float halfWidth = size.width / 2.0f; - float halfHeight = size.height / 2.0f; - const float halfUnit = ShrineHomeUtils.unitSize / 2.0f; - const float margin = 16.0f; - - Size imageSize = this.layoutChild(image, BoxConstraints.loose(size)); - float imageX = imageSize.width < halfWidth - halfUnit - ? halfWidth / 2.0f - imageSize.width / 2.0f - halfUnit - : halfWidth - imageSize.width; - this.positionChild(image, new Offset(imageX, halfHeight - imageSize.height / 2.0f)); - - float maxTitleWidth = halfWidth + ShrineHomeUtils.unitSize - margin; - BoxConstraints titleBoxConstraints = new BoxConstraints(maxWidth: maxTitleWidth); - Size titleSize = this.layoutChild(title, titleBoxConstraints); - float titleX = halfWidth - ShrineHomeUtils.unitSize; - float titleY = halfHeight - titleSize.height; - this.positionChild(title, new Offset(titleX, titleY)); - - Size descriptionSize = this.layoutChild(description, titleBoxConstraints); - float descriptionY = titleY + titleSize.height + margin; - this.positionChild(description, new Offset(titleX, descriptionY)); - - this.layoutChild(vendor, titleBoxConstraints); - float vendorY = descriptionY + descriptionSize.height + margin; - this.positionChild(vendor, new Offset(titleX, vendorY)); - } - - public override bool shouldRelayout(MultiChildLayoutDelegate oldDelegate) { - return false; - } - } - - class _HeadingShrineHome : StatelessWidget { - public _HeadingShrineHome(Key key = null, Product product = null) : base(key: key) { - D.assert(product != null); - D.assert(product.featureTitle != null); - D.assert(product.featureDescription != null); - this.product = product; - } - - public readonly Product product; - - public override Widget build(BuildContext context) { - Size screenSize = MediaQuery.of(context).size; - ShrineTheme theme = ShrineTheme.of(context); - return new SizedBox( - height: screenSize.width > screenSize.height - ? (screenSize.height - Constants.kToolbarHeight) * 0.85f - : (screenSize.height - Constants.kToolbarHeight) * 0.70f, - child: new Container( - decoration: new BoxDecoration( - color: theme.cardBackgroundColor, - border: new Border(bottom: new BorderSide(color: theme.dividerColor)) - ), - child: new CustomMultiChildLayout( - layoutDelegate: new _HeadingLayout(), - children: new List { - new LayoutId( - id: _HeadingLayout.price, - child: new _FeaturePriceItem(product: this.product) - ), - new LayoutId( - id: _HeadingLayout.image, - child: Image.asset( - this.product.imageAsset, - fit: BoxFit.cover - ) - ), - new LayoutId( - id: _HeadingLayout.title, - child: new Text(this.product.featureTitle, style: theme.featureTitleStyle) - ), - new LayoutId( - id: _HeadingLayout.description, - child: new Text(this.product.featureDescription, style: theme.featureStyle) - ), - new LayoutId( - id: _HeadingLayout.vendor, - child: new _VendorItem(vendor: this.product.vendor) - ) - } - ) - ) - ); - } - } - - class _ProductItem : StatelessWidget { - public _ProductItem(Key key = null, Product product = null, VoidCallback onPressed = null) : base(key: key) { - D.assert(product != null); - this.product = product; - this.onPressed = onPressed; - } - - public readonly Product product; - public readonly VoidCallback onPressed; - - public override Widget build(BuildContext context) { - return new Card( - child: new Stack( - children: new List { - new Column( - children: new List { - new Align( - alignment: Alignment.centerRight, - child: new _ProductPriceItem(product: this.product) - ), - new Container( - width: 144.0f, - height: 144.0f, - padding: EdgeInsets.symmetric(horizontal: 8.0f), - child:new Hero( - tag: this.product.tag, - child: Image.asset(this.product.imageAsset, - fit: BoxFit.contain - ) - ) - ), - new Padding( - padding: EdgeInsets.symmetric(horizontal: 8.0f), - child: new _VendorItem(vendor: this.product.vendor) - ) - } - ), - new Material( - type: MaterialType.transparency, - child: new InkWell(onTap: this.onPressed == null - ? (GestureTapCallback) null - : () => { this.onPressed(); }) - ) - } - ) - ); - } - } - - public class ShrineHome : StatefulWidget { - public override State createState() { - return new _ShrineHomeState(); - } - } - - class _ShrineHomeState : State { - public _ShrineHomeState() { - } - - readonly GlobalKey _scaffoldKey = GlobalKey.key(debugLabel: "Shrine Home"); - static readonly _ShrineGridDelegate gridDelegate = new _ShrineGridDelegate(); - - void _showOrderPage(Product product) { - Order order = ShrineHomeUtils._shoppingCart.getOrDefault(product) ?? new Order(product: product); - Navigator.push(this.context, new ShrineOrderRoute( - order: order, - builder: (BuildContext context) => { - return new OrderPage( - order: order, - products: ShrineHomeUtils._products, - shoppingCart: ShrineHomeUtils._shoppingCart - ); - } - )).Then(completedOrder => { - D.assert((completedOrder as Order).product != null); - if ((completedOrder as Order).quantity == 0) { - ShrineHomeUtils._shoppingCart.Remove((completedOrder as Order).product); - } - }); - } - - public override Widget build(BuildContext context) { - Product featured = ShrineHomeUtils._products.First((Product product) => product.featureDescription != null); - return new ShrinePage( - scaffoldKey: this._scaffoldKey, - products: ShrineHomeUtils._products, - shoppingCart: ShrineHomeUtils._shoppingCart, - body: new CustomScrollView( - slivers: new List { - new SliverToBoxAdapter(child: new _HeadingShrineHome(product: featured)), - new SliverSafeArea( - top: false, - minimum: EdgeInsets.all(16.0f), - sliver: new SliverGrid( - gridDelegate: gridDelegate, - layoutDelegate: new SliverChildListDelegate( - ShrineHomeUtils._products.Select((Product product) => { - return new _ProductItem( - product: product, - onPressed: () => { this._showOrderPage(product); } - ); - }).ToList() - ) - ) - ) - } - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_home.cs.meta b/Samples/UIWidgetsGallery/demo/shrine/shrine_home.cs.meta deleted file mode 100644 index d63694f0..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_home.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ec9f3366e13014909b0287e1305641e1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_order.cs b/Samples/UIWidgetsGallery/demo/shrine/shrine_order.cs deleted file mode 100644 index 7794ddd7..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_order.cs +++ /dev/null @@ -1,341 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using com.unity.uiwidgets.Runtime.rendering; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using Image = Unity.UIWidgets.widgets.Image; - -namespace UIWidgetsGallery.gallery { - class _ProductItemShrineOrder : StatelessWidget { - public _ProductItemShrineOrder( - Key key = null, - Product product = null, - int? quantity = null, - ValueChanged onChanged = null - ) : base(key: key) { - D.assert(product != null); - D.assert(quantity != null); - D.assert(onChanged != null); - this.product = product; - this.quantity = quantity; - this.onChanged = onChanged; - } - - public readonly Product product; - public readonly int? quantity; - public readonly ValueChanged onChanged; - - public override Widget build(BuildContext context) { - ShrineTheme theme = ShrineTheme.of(context); - return new Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.stretch, - children: new List { - new Text(this.product.name, style: theme.featureTitleStyle), - new SizedBox(height: 24.0f), - new Text(this.product.description, style: theme.featureStyle), - new SizedBox(height: 16.0f), - new Padding( - padding: EdgeInsets.only(top: 8.0f, bottom: 8.0f, right: 88.0f), - child: new DropdownButtonHideUnderline( - child: new Container( - decoration: new BoxDecoration( - border: Border.all( - color: new Color(0xFFD9D9D9) - ) - ), - child: new DropdownButton( - items: new List {0, 1, 2, 3, 4, 5}.Select>( - (int value) => { - return new DropdownMenuItem( - value: $"{value}", - child: new Padding( - padding: EdgeInsets.only(left: 8.0f), - child: new Text($"Quantity {value}", style: theme.quantityMenuStyle) - ) - ); - }).ToList(), - value: $"{this.quantity}", - onChanged: (value) => { this.onChanged(int.Parse(value)); }) - ) - ) - ) - } - ); - } - } - - class _VendorItemShrineOrder : StatelessWidget { - public _VendorItemShrineOrder(Key key = null, Vendor vendor = null) - : base(key: key) { - D.assert(vendor != null); - this.vendor = vendor; - } - - public readonly Vendor vendor; - - public override Widget build(BuildContext context) { - ShrineTheme theme = ShrineTheme.of(context); - return new Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.stretch, - children: new List { - new SizedBox( - height: 24.0f, - child: new Align( - alignment: Alignment.bottomLeft, - child: new Text(this.vendor.name, style: theme.vendorTitleStyle) - ) - ), - new SizedBox(height: 16.0f), - new Text(this.vendor.description, style: theme.vendorStyle) - } - ); - } - } - - class _HeadingLayoutShrineOrder : MultiChildLayoutDelegate { - public _HeadingLayoutShrineOrder() { - } - - public const string image = "image"; - public const string icon = "icon"; - public const string product = "product"; - public const string vendor = "vendor"; - - public override void performLayout(Size size) { - const float margin = 56.0f; - bool landscape = size.width > size.height; - float imageWidth = (landscape ? size.width / 2.0f : size.width) - margin * 2.0f; - BoxConstraints imageConstraints = new BoxConstraints(maxHeight: 224.0f, maxWidth: imageWidth); - Size imageSize = this.layoutChild(image, imageConstraints); - const float imageY = 0.0f; - this.positionChild(image, new Offset(margin, imageY)); - - float productWidth = landscape ? size.width / 2.0f : size.width - margin; - BoxConstraints productConstraints = new BoxConstraints(maxWidth: productWidth); - Size productSize = this.layoutChild(product, productConstraints); - float productX = landscape ? size.width / 2.0f : margin; - float productY = landscape ? 0.0f : imageY + imageSize.height + 16.0f; - this.positionChild(product, new Offset(productX, productY)); - - Size iconSize = this.layoutChild(icon, BoxConstraints.loose(size)); - this.positionChild(icon, new Offset(productX - iconSize.width - 16.0f, productY + 8.0f)); - - float vendorWidth = landscape ? size.width - margin : productWidth; - this.layoutChild(vendor, new BoxConstraints(maxWidth: vendorWidth)); - float vendorX = landscape ? margin : productX; - float vendorY = productY + productSize.height + 16.0f; - this.positionChild(vendor, new Offset(vendorX, vendorY)); - } - - public override bool shouldRelayout(MultiChildLayoutDelegate oldDelegate) { - return true; - } - } - - class _HeadingShrineOrder : StatelessWidget { - public _HeadingShrineOrder( - Key key = null, - Product product = null, - int? quantity = null, - ValueChanged quantityChanged = null - ) : base(key: key) { - D.assert(product != null); - D.assert(quantity != null && quantity >= 0 && quantity <= 5); - this.product = product; - this.quantity = quantity; - this.quantityChanged = quantityChanged; - } - - public readonly Product product; - public readonly int? quantity; - public readonly ValueChanged quantityChanged; - - public override Widget build(BuildContext context) { - Size screenSize = MediaQuery.of(context).size; - return new SizedBox( - height: (screenSize.height - Constants.kToolbarHeight) * 1.35f, - child: new Material( - type: MaterialType.card, - elevation: 0.0f, - child: new Padding( - padding: EdgeInsets.only(left: 16.0f, top: 18.0f, right: 16.0f, bottom: 24.0f), - child: new CustomMultiChildLayout( - layoutDelegate: new _HeadingLayoutShrineOrder(), - children: new List { - new LayoutId( - id: _HeadingLayoutShrineOrder.image, - child: new Hero( - tag: this.product.tag, - child: Image.asset(this.product.imageAsset, - fit: BoxFit.contain, - alignment: Alignment.center - ) - ) - ), - new LayoutId( - id: _HeadingLayoutShrineOrder.icon, - child: new Icon( - Icons.info_outline, - size: 24.0f, - color: new Color(0xFFFFE0E0) - ) - ), - new LayoutId( - id: _HeadingLayoutShrineOrder.product, - child: new _ProductItemShrineOrder( - product: this.product, - quantity: this.quantity, - onChanged: this.quantityChanged - ) - ), - new LayoutId( - id: _HeadingLayoutShrineOrder.vendor, - child: new _VendorItemShrineOrder(vendor: this.product.vendor) - ) - } - ) - ) - ) - ); - } - } - - public class OrderPage : StatefulWidget { - public OrderPage( - Key key = null, - Order order = null, - List products = null, - Dictionary shoppingCart = null - ) : base(key: key) { - D.assert(order != null); - D.assert(products != null && products.isNotEmpty()); - D.assert(shoppingCart != null); - this.order = order; - this.products = products; - this.shoppingCart = shoppingCart; - } - - public readonly Order order; - public readonly List products; - public readonly Dictionary shoppingCart; - - public override State createState() { - return new _OrderPageState(); - } - } - - class _OrderPageState : State { - GlobalKey scaffoldKey; - - public override void initState() { - base.initState(); - this.scaffoldKey = GlobalKey.key(debugLabel: $"Shrine Order {this.widget.order}"); - } - - public Order currentOrder { - get { return ShrineOrderRoute.of(this.context).order; } - set { ShrineOrderRoute.of(this.context).order = value; } - } - - void updateOrder(int? quantity = null, bool? inCart = null) { - Order newOrder = this.currentOrder.copyWith(quantity: quantity, inCart: inCart); - if (this.currentOrder != newOrder) { - this.setState(() => { - this.widget.shoppingCart[newOrder.product] = newOrder; - this.currentOrder = newOrder; - }); - } - } - - void showSnackBarMessage(string message) { - this.scaffoldKey.currentState.showSnackBar(new SnackBar(content: new Text(message))); - } - - public override Widget build(BuildContext context) { - return new ShrinePage( - scaffoldKey: this.scaffoldKey, - products: this.widget.products, - shoppingCart: this.widget.shoppingCart, - floatingActionButton: new FloatingActionButton( - onPressed: () => { - this.updateOrder(inCart: true); - int n = this.currentOrder.quantity; - string item = this.currentOrder.product.name; - string message = n == 1 ? $"is one {item} item" : $"are {n} {item} items"; - this.showSnackBarMessage( - $"There {message} in the shopping cart." - ); - }, - backgroundColor: new Color(0xFF16F0F0), - tooltip: "Add to cart", - child: new Icon( - Icons.add_shopping_cart, - color: Colors.black - ) - ), - body: new CustomScrollView( - slivers: new List { - new SliverToBoxAdapter( - child: new _HeadingShrineOrder( - product: this.widget.order.product, - quantity: this.currentOrder.quantity, - quantityChanged: (int value) => { this.updateOrder(quantity: value); } - ) - ), - new SliverSafeArea( - top: false, - minimum: EdgeInsets.fromLTRB(8.0f, 32.0f, 8.0f, 8.0f), - sliver: new SliverGrid( - gridDelegate: new SliverGridDelegateWithMaxCrossAxisExtent( - maxCrossAxisExtent: 248.0f, - mainAxisSpacing: 8.0f, - crossAxisSpacing: 8.0f - ), - layoutDelegate: new SliverChildListDelegate( - this.widget.products - .FindAll((Product product) => product != this.widget.order.product) - .Select((Product product) => { - return new Card( - elevation: 1.0f, - child: Image.asset( - product.imageAsset, - fit: BoxFit.contain - ) - ); - }).ToList() - ) - ) - ) - } - ) - ); - } - } - - public class ShrineOrderRoute : ShrinePageRoute { - public ShrineOrderRoute( - Order order = null, - WidgetBuilder builder = null, - RouteSettings settings = null - ) : base(builder: builder, settings: settings) { - D.assert(order != null); - this.order = order; - } - - public Order order; - - public override object currentResult { - get { return this.order; } - } - - public new static ShrineOrderRoute of(BuildContext context) { - return (ShrineOrderRoute) ModalRoute.of(context); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_order.cs.meta b/Samples/UIWidgetsGallery/demo/shrine/shrine_order.cs.meta deleted file mode 100644 index 5ec0c230..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_order.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: b0720924e140457dbc8626755c82f3ba -timeCreated: 1553244438 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_page.cs b/Samples/UIWidgetsGallery/demo/shrine/shrine_page.cs deleted file mode 100644 index d74f2cde..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_page.cs +++ /dev/null @@ -1,156 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.service; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - public enum ShrineAction { - sortByPrice, - sortByProduct, - emptyCart - } - - public class ShrinePage : StatefulWidget { - public ShrinePage( - Key key = null, - GlobalKey scaffoldKey = null, - Widget body = null, - Widget floatingActionButton = null, - List products = null, - Dictionary shoppingCart = null - ) : base(key: key) { - D.assert(body != null); - D.assert(scaffoldKey != null); - this.scaffoldKey = scaffoldKey; - this.body = body; - this.floatingActionButton = floatingActionButton; - this.products = products; - this.shoppingCart = shoppingCart; - } - - public readonly GlobalKey scaffoldKey; - public readonly Widget body; - public readonly Widget floatingActionButton; - public readonly List products; - public readonly Dictionary shoppingCart; - - public override State createState() { - return new ShrinePageState(); - } - } - - public class ShrinePageState : State { - float _appBarElevation = 0.0f; - - bool _handleScrollNotification(ScrollNotification notification) { - float elevation = notification.metrics.extentBefore() <= 0.0f ? 0.0f : 1.0f; - if (elevation != this._appBarElevation) { - this.setState(() => { this._appBarElevation = elevation; }); - } - - return false; - } - - void _showShoppingCart() { - BottomSheetUtils.showModalBottomSheet(context: this.context, builder: (BuildContext context) => { - if (this.widget.shoppingCart.isEmpty()) { - return new Padding( - padding: EdgeInsets.all(24.0f), - child: new Text("The shopping cart is empty") - ); - } - - return new ListView( - padding: Constants.kMaterialListPadding, - children: this.widget.shoppingCart.Values.Select((Order order) => { - return new ListTile( - title: new Text(order.product.name), - leading: new Text($"{order.quantity}"), - subtitle: new Text(order.product.vendor.name) - ); - }).ToList() - ); - }); - } - - void _sortByPrice() { - this.widget.products.Sort((Product a, Product b) => a.price?.CompareTo(b.price) ?? (b == null ? 0 : -1)); - } - - void _sortByProduct() { - this.widget.products.Sort((Product a, Product b) => a.name.CompareTo(b.name)); - } - - void _emptyCart() { - this.widget.shoppingCart.Clear(); - this.widget.scaffoldKey.currentState.showSnackBar( - new SnackBar(content: new Text("Shopping cart is empty"))); - } - - public override Widget build(BuildContext context) { - ShrineTheme theme = ShrineTheme.of(context); - return new Scaffold( - key: this.widget.scaffoldKey, - appBar: new AppBar( - elevation: this._appBarElevation, - backgroundColor: theme.appBarBackgroundColor, - iconTheme: Theme.of(context).iconTheme, - brightness: Brightness.light, - flexibleSpace: new Container( - decoration: new BoxDecoration( - border: new Border( - bottom: new BorderSide(color: theme.dividerColor) - ) - ) - ), - title: new Text("SHRINE", style: ShrineTheme.of(context).appBarTitleStyle), - centerTitle: true, - actions: new List { - new IconButton( - icon: new Icon(Icons.shopping_cart), - tooltip: "Shopping cart", - onPressed: this._showShoppingCart - ), - new PopupMenuButton( - itemBuilder: (BuildContext _) => new List> { - new PopupMenuItem( - value: ShrineAction.sortByPrice, - child: new Text("Sort by price") - ), - new PopupMenuItem( - value: ShrineAction.sortByProduct, - child: new Text("Sort by product") - ), - new PopupMenuItem( - value: ShrineAction.emptyCart, - child: new Text("Empty shopping cart") - ) - }, - onSelected: (ShrineAction action) => { - switch (action) { - case ShrineAction.sortByPrice: - this.setState(this._sortByPrice); - break; - case ShrineAction.sortByProduct: - this.setState(this._sortByProduct); - break; - case ShrineAction.emptyCart: - this.setState(this._emptyCart); - break; - } - } - ) - } - ), - floatingActionButton: this.widget.floatingActionButton, - body: new NotificationListener( - onNotification: this._handleScrollNotification, - child: this.widget.body - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_page.cs.meta b/Samples/UIWidgetsGallery/demo/shrine/shrine_page.cs.meta deleted file mode 100644 index 77517dea..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_page.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 81f9ca5ad3e848f4889059abd3037d17 -timeCreated: 1553246179 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_theme.cs b/Samples/UIWidgetsGallery/demo/shrine/shrine_theme.cs deleted file mode 100644 index 6a811ad6..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_theme.cs +++ /dev/null @@ -1,98 +0,0 @@ -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsGallery.gallery { - public class ShrineStyle : TextStyle { - public ShrineStyle(bool inherit, Color color, float fontSize, FontWeight fontWeight, TextBaseline textBaseline, - string fontFamily = null - ) : base(inherit: inherit, color: color, fontSize: fontSize, fontWeight: fontWeight, fontFamily: fontFamily, - textBaseline: textBaseline) { - } - - public static ShrineStyle roboto(float size, FontWeight weight, Color color) { - return new ShrineStyle(inherit: false, color: color, fontSize: size, fontWeight: weight, - textBaseline: TextBaseline.alphabetic); - } - - public static ShrineStyle abrilFatface(float size, FontWeight weight, Color color) { - return new ShrineStyle(inherit: false, color: color, fontFamily: "AbrilFatface", fontSize: size, - fontWeight: weight, textBaseline: TextBaseline.alphabetic); - } - } - - public class ShrineThemeUtils { - public static TextStyle robotoRegular12(Color color) { - return ShrineStyle.roboto(12.0f, FontWeight.w400, color); - } - - public static TextStyle robotoLight12(Color color) { - return ShrineStyle.roboto(12.0f, FontWeight.w400, color); - } - - public static TextStyle robotoRegular14(Color color) { - return ShrineStyle.roboto(14.0f, FontWeight.w400, color); - } - - public static TextStyle robotoMedium14(Color color) { - return ShrineStyle.roboto(14.0f, FontWeight.w700, color); - } - - public static TextStyle robotoLight14(Color color) { - return ShrineStyle.roboto(14.0f, FontWeight.w400, color); - } - - public static TextStyle robotoRegular16(Color color) { - return ShrineStyle.roboto(16.0f, FontWeight.w400, color); - } - - public static TextStyle robotoRegular20(Color color) { - return ShrineStyle.roboto(20.0f, FontWeight.w400, color); - } - - public static TextStyle abrilFatfaceRegular24(Color color) { - return ShrineStyle.abrilFatface(24.0f, FontWeight.w400, color); - } - - public static TextStyle abrilFatfaceRegular34(Color color) { - return ShrineStyle.abrilFatface(34.0f, FontWeight.w400, color); - } - } - - public class ShrineTheme : InheritedWidget { - public ShrineTheme(Key key = null, Widget child = null) - : base(key: key, child: child) { - D.assert(child != null); - } - - public readonly Color cardBackgroundColor = Colors.white; - public readonly Color appBarBackgroundColor = Colors.white; - public readonly Color dividerColor = new Color(0xFFD9D9D9); - public readonly Color priceHighlightColor = new Color(0xFFFFE0E0); - - public readonly TextStyle appBarTitleStyle = ShrineThemeUtils.robotoRegular20(Colors.black87); - public readonly TextStyle vendorItemStyle = ShrineThemeUtils.robotoRegular12(new Color(0xFF81959D)); - public readonly TextStyle priceStyle = ShrineThemeUtils.robotoRegular14(Colors.black87); - - public readonly TextStyle featureTitleStyle = - ShrineThemeUtils.abrilFatfaceRegular34(new Color(0xFF0A3142)); - - public readonly TextStyle featurePriceStyle = ShrineThemeUtils.robotoRegular16(Colors.black87); - public readonly TextStyle featureStyle = ShrineThemeUtils.robotoLight14(Colors.black54); - public readonly TextStyle orderTitleStyle = ShrineThemeUtils.abrilFatfaceRegular24(Colors.black87); - public readonly TextStyle orderStyle = ShrineThemeUtils.robotoLight14(Colors.black54); - public readonly TextStyle vendorTitleStyle = ShrineThemeUtils.robotoMedium14(Colors.black87); - public readonly TextStyle vendorStyle = ShrineThemeUtils.robotoLight14(Colors.black54); - public readonly TextStyle quantityMenuStyle = ShrineThemeUtils.robotoLight14(Colors.black54); - - public static ShrineTheme of(BuildContext context) { - return (ShrineTheme) context.inheritFromWidgetOfExactType(typeof(ShrineTheme)); - } - - public override bool updateShouldNotify(InheritedWidget oldWidget) { - return false; - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_theme.cs.meta b/Samples/UIWidgetsGallery/demo/shrine/shrine_theme.cs.meta deleted file mode 100644 index 9a6bd34f..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_theme.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 468619e1fd4f4437ba3f0929e269aab4 -timeCreated: 1553241961 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_types.cs b/Samples/UIWidgetsGallery/demo/shrine/shrine_types.cs deleted file mode 100644 index c78e5007..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_types.cs +++ /dev/null @@ -1,165 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.ui; - -namespace UIWidgetsGallery.gallery { - public class Vendor { - public Vendor( - string name, - string description, - string avatarAsset, - string avatarAssetPackage - ) { - this.name = name; - this.description = description; - this.avatarAsset = avatarAsset; - this.avatarAssetPackage = avatarAssetPackage; - } - - public readonly string name; - public readonly string description; - public readonly string avatarAsset; - public readonly string avatarAssetPackage; - - public bool isValid() { - return this.name != null && this.description != null && this.avatarAsset != null; - } - - public override string ToString() { - return $"Vendor({this.name})"; - } - } - - public class Product { - public Product( - string name = null, - string description = null, - string featureTitle = null, - string featureDescription = null, - string imageAsset = null, - string imageAssetPackage = null, - List categories = null, - float? price = null, - Vendor vendor = null - ) { - this.name = name; - this.description = description; - this.featureTitle = featureTitle; - this.featureDescription = featureDescription; - this.imageAsset = imageAsset; - this.imageAssetPackage = imageAssetPackage; - this.categories = categories; - this.price = price; - this.vendor = vendor; - } - - public readonly string name; - public readonly string description; - public readonly string featureTitle; - public readonly string featureDescription; - public readonly string imageAsset; - public readonly string imageAssetPackage; - public readonly List categories; - public readonly float? price; - public readonly Vendor vendor; - - public string tag { - get { return this.name; } - } - - public string priceString { - get { return $"${(this.price ?? 0.0f).floor()}"; } - } - - public bool isValid() { - return this.name != null && this.description != null && this.imageAsset != null && - this.categories != null && this.categories.isNotEmpty() && this.price != null && - this.vendor.isValid(); - } - - public override string ToString() { - return $"Product({this.name})"; - } - } - - public class Order { - public Order(Product product, int quantity = 1, bool inCart = false) { - D.assert(product != null); - D.assert(quantity >= 0); - this.product = product; - this.quantity = quantity; - this.inCart = inCart; - } - - public readonly Product product; - public readonly int quantity; - public readonly bool inCart; - - public Order copyWith(Product product = null, int? quantity = null, bool? inCart = null) { - return new Order( - product: product ?? this.product, - quantity: quantity ?? this.quantity, - inCart: inCart ?? this.inCart - ); - } - - public static bool operator ==(Order left, Order right) { - if (left is null && right is null) { - return true; - } - - if (left is null || right is null) { - return false; - } - - return left.Equals(right); - } - - public static bool operator !=(Order left, Order right) { - if (left is null && right is null) { - return false; - } - - if (left is null || right is null) { - return true; - } - - return !left.Equals(right); - } - - public bool Equals(Order other) { - return this.product == other.product && - this.quantity == other.quantity && - this.inCart == other.inCart; - } - - public override bool Equals(object obj) { - if (ReferenceEquals(null, obj)) { - return false; - } - - if (ReferenceEquals(this, obj)) { - return true; - } - - if (obj.GetType() != this.GetType()) { - return false; - } - - return this.Equals((Order) obj); - } - - public override int GetHashCode() { - unchecked { - var hashCode = (this.product != null ? this.product.GetHashCode() : 0); - hashCode = (hashCode * 397) ^ this.quantity.GetHashCode(); - hashCode = (hashCode * 397) ^ this.inCart.GetHashCode(); - return hashCode; - } - } - - public override string ToString() { - return $"Order({this.product}, quantity={this.quantity}, inCart={this.inCart})"; - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine/shrine_types.cs.meta b/Samples/UIWidgetsGallery/demo/shrine/shrine_types.cs.meta deleted file mode 100644 index 59744c16..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine/shrine_types.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 924c1662fb504687af28a4f05901a20a -timeCreated: 1553240139 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine_demo.cs b/Samples/UIWidgetsGallery/demo/shrine_demo.cs deleted file mode 100644 index dfb0bf86..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine_demo.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Unity.UIWidgets.animation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - class ShrineDemoUtils { - public static Widget buildShrine(BuildContext context, Widget child) { - return new Theme( - data: new ThemeData( - primarySwatch: Colors.grey, - iconTheme: new IconThemeData(color: new Color(0xFF707070)), - platform: Theme.of(context).platform - ), - child: new ShrineTheme(child: child) - ); - } - } - - public class ShrinePageRoute : MaterialPageRoute { - public ShrinePageRoute( - WidgetBuilder builder, - RouteSettings settings - ) : base(builder: builder, settings: settings) { - } - - public override Widget buildPage(BuildContext context, Animation animation, - Animation secondaryAnimation) { - return ShrineDemoUtils.buildShrine(context, base.buildPage(context, animation, secondaryAnimation)); - } - } - - public class ShrineDemo : StatelessWidget { - public const string routeName = "/shrine"; - - public override Widget build(BuildContext context) { - return ShrineDemoUtils.buildShrine(context, new ShrineHome()); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/shrine_demo.cs.meta b/Samples/UIWidgetsGallery/demo/shrine_demo.cs.meta deleted file mode 100644 index a95f0d63..00000000 --- a/Samples/UIWidgetsGallery/demo/shrine_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 5902905cca7447d2aa1fe5ae7f6c5cbc -timeCreated: 1553239620 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/typography_demo.cs b/Samples/UIWidgetsGallery/demo/typography_demo.cs deleted file mode 100644 index e5e2d288..00000000 --- a/Samples/UIWidgetsGallery/demo/typography_demo.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - public class TextStyleItem : StatelessWidget { - public TextStyleItem( - Key key = null, - string name = null, - TextStyle style = null, - string text = null - ) : base(key: key) { - D.assert(name != null); - D.assert(style != null); - D.assert(text != null); - this.name = name; - this.style = style; - this.text = text; - } - - public readonly string name; - public readonly TextStyle style; - public readonly string text; - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - TextStyle nameStyle = theme.textTheme.caption.copyWith(color: theme.textTheme.caption.color); - return new Padding( - padding: EdgeInsets.symmetric(horizontal: 8.0f, vertical: 16.0f), - child: new Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: new List { - new SizedBox( - width: 72.0f, - child: new Text(this.name, style: nameStyle) - ), - new Expanded( - child: new Text(this.text, style: this.style.copyWith(height: 1.0f)) - ) - } - ) - ); - } - } - - public class TypographyDemo : StatelessWidget { - public const string routeName = "/typography"; - - public override Widget build(BuildContext context) { - TextTheme textTheme = Theme.of(context).textTheme; - List styleItems = new List { - new TextStyleItem(name: "Display 3", style: textTheme.display3, text: "Regular 56sp"), - new TextStyleItem(name: "Display 2", style: textTheme.display2, text: "Regular 45sp"), - new TextStyleItem(name: "Display 1", style: textTheme.display1, text: "Regular 34sp"), - new TextStyleItem(name: "Headline", style: textTheme.headline, text: "Regular 24sp"), - new TextStyleItem(name: "Title", style: textTheme.title, text: "Medium 20sp"), - new TextStyleItem(name: "Subheading", style: textTheme.subhead, text: "Regular 16sp"), - new TextStyleItem(name: "Body 2", style: textTheme.body2, text: "Medium 14sp"), - new TextStyleItem(name: "Body 1", style: textTheme.body1, text: "Regular 14sp"), - new TextStyleItem(name: "Caption", style: textTheme.caption, text: "Regular 12sp"), - new TextStyleItem(name: "Button", style: textTheme.button, text: "MEDIUM (ALL CAPS) 14sp") - }; - - if (MediaQuery.of(context).size.width > 500.0f) { - styleItems.Insert(0, new TextStyleItem( - name: "Display 4", - style: textTheme.display4, - text: "Light 112sp" - )); - } - - return new Scaffold( - appBar: new AppBar(title: new Text("Typography")), - body: new SafeArea( - top: false, - bottom: false, - child: new ListView(children: styleItems) - ) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/demo/typography_demo.cs.meta b/Samples/UIWidgetsGallery/demo/typography_demo.cs.meta deleted file mode 100644 index 20fca164..00000000 --- a/Samples/UIWidgetsGallery/demo/typography_demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: ec695ed4b0de477a8f58aebe079b8ac0 -timeCreated: 1553075802 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery.meta b/Samples/UIWidgetsGallery/gallery.meta deleted file mode 100644 index 01002ec1..00000000 --- a/Samples/UIWidgetsGallery/gallery.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 05f67c3cc663543059f6e339e99ce4b8 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/gallery.unity b/Samples/UIWidgetsGallery/gallery.unity deleted file mode 100644 index 18788968..00000000 --- a/Samples/UIWidgetsGallery/gallery.unity +++ /dev/null @@ -1,504 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657892, g: 0.4964127, b: 0.5748172, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &242452675 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 242452676} - - component: {fileID: 242452678} - - component: {fileID: 242452677} - m_Layer: 5 - m_Name: gallery - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &242452676 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 242452675} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1248027221} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &242452677 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 242452675} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9c5c86936ca864ae684720ddcd50d759, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 - antiAliasingOverride: 4 ---- !u!222 &242452678 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 242452675} - m_CullTransparentMesh: 0 ---- !u!1 &1152820164 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1152820167} - - component: {fileID: 1152820166} - - component: {fileID: 1152820165} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1152820165 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1152820164} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &1152820166 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1152820164} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &1152820167 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1152820164} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1248027217 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1248027221} - - component: {fileID: 1248027220} - - component: {fileID: 1248027219} - - component: {fileID: 1248027218} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1248027218 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1248027217} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1248027219 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1248027217} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1248027220 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1248027217} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &1248027221 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1248027217} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 242452676} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!1 &1304413924 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1304413926} - - component: {fileID: 1304413925} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &1304413925 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1304413924} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &1304413926 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1304413924} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &1396321320 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1396321323} - - component: {fileID: 1396321322} - - component: {fileID: 1396321321} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1396321321 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1396321320} - m_Enabled: 1 ---- !u!20 &1396321322 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1396321320} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1396321323 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1396321320} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Samples/UIWidgetsGallery/gallery.unity.meta b/Samples/UIWidgetsGallery/gallery.unity.meta deleted file mode 100644 index e461bb62..00000000 --- a/Samples/UIWidgetsGallery/gallery.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 97d82ba0e79874aee90750ac8d1661bc -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/gallery/app.cs b/Samples/UIWidgetsGallery/gallery/app.cs deleted file mode 100644 index fd5a42f1..00000000 --- a/Samples/UIWidgetsGallery/gallery/app.cs +++ /dev/null @@ -1,141 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using RSG; -using Unity.UIWidgets.async; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.scheduler; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; - -namespace UIWidgetsGallery.gallery { - public delegate IPromise UpdateUrlFetcher(); - - public class GalleryApp : StatefulWidget { - public GalleryApp( - Key key = null, - UpdateUrlFetcher updateUrlFetcher = null, - bool enablePerformanceOverlay = false, - bool enableRasterCacheImagesCheckerboard = false, - bool enableOffscreenLayersCheckerboard = false, - VoidCallback onSendFeedback = null, - bool testMode = false - ) : base(key: key) { - this.updateUrlFetcher = updateUrlFetcher; - this.enablePerformanceOverlay = enablePerformanceOverlay; - this.enableRasterCacheImagesCheckerboard = enableRasterCacheImagesCheckerboard; - this.enableOffscreenLayersCheckerboard = enableOffscreenLayersCheckerboard; - this.onSendFeedback = onSendFeedback; - this.testMode = testMode; - } - - public readonly UpdateUrlFetcher updateUrlFetcher; - - public readonly bool enablePerformanceOverlay; - - public readonly bool enableRasterCacheImagesCheckerboard; - - public readonly bool enableOffscreenLayersCheckerboard; - - public readonly VoidCallback onSendFeedback; - - public readonly bool testMode; - - public override State createState() { - return new _GalleryAppState(); - } - } - - class _GalleryAppState : State { - GalleryOptions _options; - Timer _timeDilationTimer; - - Dictionary _buildRoutes() { - return DemoUtils.kAllGalleryDemos.ToDictionary( - (demo) => $"{demo.routeName}", - (demo) => demo.buildRoute); - } - - public override void initState() { - base.initState(); - this._options = new GalleryOptions( - theme: GalleryTheme.kLightGalleryTheme, - textScaleFactor: GalleryTextScaleValue.kAllGalleryTextScaleValues[0], - timeDilation: SchedulerBinding.instance.timeDilation, - platform: Application.platform, - showPerformanceOverlay: this.widget.enablePerformanceOverlay - ); - } - - public override void dispose() { - this._timeDilationTimer?.cancel(); - this._timeDilationTimer = null; - base.dispose(); - } - - void _handleOptionsChanged(GalleryOptions newOptions) { - this.setState(() => { - if (this._options.timeDilation != newOptions.timeDilation) { - this._timeDilationTimer?.cancel(); - this._timeDilationTimer = null; - if (newOptions.timeDilation > 1.0f) { - this._timeDilationTimer = Window.instance.run(new TimeSpan(0, 0, 0, 0, 150), - () => { SchedulerBinding.instance.timeDilation = newOptions.timeDilation; }); - } else { - SchedulerBinding.instance.timeDilation = newOptions.timeDilation; - } - } - - this._options = newOptions; - }); - } - - Widget _applyTextScaleFactor(Widget child) { - return new Builder( - builder: context => { - return new MediaQuery( - data: MediaQuery.of(context).copyWith( - textScaleFactor: this._options.textScaleFactor.scale - ), - child: child - ); - } - ); - } - - public override Widget build(BuildContext context) { - Widget home = new GalleryHome( - testMode: this.widget.testMode, - optionsPage: new GalleryOptionsPage( - options: this._options, - onOptionsChanged: this._handleOptionsChanged, - onSendFeedback: this.widget.onSendFeedback ?? (() => { - Application.OpenURL("https://github.com/UnityTech/UIWidgets/issues"); - }) - ), - options: this._options - ); - - if (this.widget.updateUrlFetcher != null) { - home = new Updater( - updateUrlFetcher: this.widget.updateUrlFetcher, - child: home - ); - } - - return new MaterialApp( - theme: this._options.theme.data.copyWith(/*platform: this._options.platform*/), - title: "UIWidgets Gallery", - color: Colors.grey, - showPerformanceOverlay: this._options.showPerformanceOverlay, - //checkerboardOffscreenLayers: this._options.showOffscreenLayersCheckerboard, - //checkerboardRasterCacheImages: this._options.showRasterCacheImagesCheckerboard, - routes: this._buildRoutes(), - builder: (BuildContext _, Widget child) => this._applyTextScaleFactor(child), - home: home - ); - } - } -} diff --git a/Samples/UIWidgetsGallery/gallery/app.cs.meta b/Samples/UIWidgetsGallery/gallery/app.cs.meta deleted file mode 100644 index 0d089b06..00000000 --- a/Samples/UIWidgetsGallery/gallery/app.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3fff3cf3a1dd243d088be72945a3d7e9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/gallery/backdrop.cs b/Samples/UIWidgetsGallery/gallery/backdrop.cs deleted file mode 100644 index 629c6870..00000000 --- a/Samples/UIWidgetsGallery/gallery/backdrop.cs +++ /dev/null @@ -1,365 +0,0 @@ -using System; -using System.Collections.Generic; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; - -namespace UIWidgetsGallery.gallery { - class BackdropConstants { - public const float _kFrontHeadingHeight = 32.0f; - public const float _kFrontClosedHeight = 92.0f; - public const float _kBackAppBarHeight = 56.0f; - - public static readonly Animatable _kFrontHeadingBevelRadius = new BorderRadiusTween( - begin: BorderRadius.only( - topLeft: Radius.circular(12.0f), - topRight: Radius.circular(12.0f) - ), - end: BorderRadius.only( - topLeft: Radius.circular(_kFrontHeadingHeight), - topRight: Radius.circular(_kFrontHeadingHeight) - ) - ); - } - - class _TappableWhileStatusIs : StatefulWidget { - public _TappableWhileStatusIs( - AnimationStatus status, - Key key = null, - AnimationController controller = null, - Widget child = null - ) : base(key: key) { - this.controller = controller; - this.status = status; - this.child = child; - } - - public readonly AnimationController controller; - public readonly AnimationStatus status; - public readonly Widget child; - - public override State createState() { - return new _TappableWhileStatusIsState(); - } - } - - class _TappableWhileStatusIsState : State<_TappableWhileStatusIs> { - bool _active; - - public override void initState() { - base.initState(); - this.widget.controller.addStatusListener(this._handleStatusChange); - this._active = this.widget.controller.status == this.widget.status; - } - - public override void dispose() { - this.widget.controller.removeStatusListener(this._handleStatusChange); - base.dispose(); - } - - void _handleStatusChange(AnimationStatus status) { - bool value = this.widget.controller.status == this.widget.status; - if (this._active != value) { - this.setState(() => { this._active = value; }); - } - } - - public override Widget build(BuildContext context) { - return new AbsorbPointer( - absorbing: !this._active, - child: this.widget.child - ); - } - } - - class _CrossFadeTransition : AnimatedWidget { - public _CrossFadeTransition( - Key key = null, - Alignment alignment = null, - Animation progress = null, - Widget child0 = null, - Widget child1 = null - ) : base(key: key, listenable: progress) { - this.alignment = alignment ?? Alignment.center; - this.child0 = child0; - this.child1 = child1; - } - - public readonly Alignment alignment; - public readonly Widget child0; - public readonly Widget child1; - - protected override Widget build(BuildContext context) { - Animation progress = this.listenable as Animation; - - float opacity1 = new CurvedAnimation( - parent: new ReverseAnimation(progress), - curve: new Interval(0.5f, 1.0f) - ).value; - - float opacity2 = new CurvedAnimation( - parent: progress, - curve: new Interval(0.5f, 1.0f) - ).value; - - return new Stack( - alignment: this.alignment, - children: new List { - new Opacity( - opacity: opacity1, - child: this.child1 - ), - new Opacity( - opacity: opacity2, - child: this.child0 - ) - } - ); - } - } - - class _BackAppBar : StatelessWidget { - public _BackAppBar( - Key key = null, - Widget leading = null, - Widget title = null, - Widget trailing = null - ) : base(key: key) { - D.assert(title != null); - this.leading = leading ?? new SizedBox(width: 56.0f); - this.title = title; - this.trailing = trailing; - } - - public readonly Widget leading; - public readonly Widget title; - public readonly Widget trailing; - - public override Widget build(BuildContext context) { - List children = new List { - new Container( - alignment: Alignment.center, - width: 56.0f, - child: this.leading - ), - new Expanded( - child: this.title - ), - }; - - if (this.trailing != null) { - children.Add( - new Container( - alignment: Alignment.center, - width: 56.0f, - child: this.trailing - ) - ); - } - - ThemeData theme = Theme.of(context); - - return IconTheme.merge( - data: theme.primaryIconTheme, - child: new DefaultTextStyle( - style: theme.primaryTextTheme.title, - child: new SizedBox( - height: BackdropConstants._kBackAppBarHeight, - child: new Row(children: children) - ) - ) - ); - } - } - - public class Backdrop : StatefulWidget { - public Backdrop( - Widget frontAction = null, - Widget frontTitle = null, - Widget frontHeading = null, - Widget frontLayer = null, - Widget backTitle = null, - Widget backLayer = null - ) { - this.frontAction = frontAction; - this.frontTitle = frontTitle; - this.frontHeading = frontHeading; - this.frontLayer = frontLayer; - this.backTitle = backTitle; - this.backLayer = backLayer; - } - - public readonly Widget frontAction; - public readonly Widget frontTitle; - public readonly Widget frontLayer; - public readonly Widget frontHeading; - public readonly Widget backTitle; - public readonly Widget backLayer; - - public override State createState() { - return new _BackdropState(); - } - } - - class _BackdropState : SingleTickerProviderStateMixin { - GlobalKey _backdropKey = GlobalKey.key(debugLabel: "Backdrop"); - AnimationController _controller; - Animation _frontOpacity; - - static Animatable _frontOpacityTween = new FloatTween(begin: 0.2f, end: 1.0f) - .chain(new CurveTween(curve: new Interval(0.0f, 0.4f, curve: Curves.easeInOut))); - - public override void initState() { - base.initState(); - this._controller = new AnimationController( - duration: new TimeSpan(0, 0, 0, 0, 300), - value: 1.0f, - vsync: this - ); - this._frontOpacity = this._controller.drive(_frontOpacityTween); - } - - public override void dispose() { - this._controller.dispose(); - base.dispose(); - } - - float? _backdropHeight { - get { - RenderBox renderBox = (RenderBox) this._backdropKey.currentContext.findRenderObject(); - return Mathf.Max(0.0f, - renderBox.size.height - BackdropConstants._kBackAppBarHeight - - BackdropConstants._kFrontClosedHeight); - } - } - - void _handleDragUpdate(DragUpdateDetails details) { - this._controller.setValue(this._controller.value - - details.primaryDelta / (this._backdropHeight ?? details.primaryDelta) ?? 0.0f); - } - - void _handleDragEnd(DragEndDetails details) { - if (this._controller.isAnimating || this._controller.status == AnimationStatus.completed) { - return; - } - - float? flingVelocity = details.velocity.pixelsPerSecond.dy / this._backdropHeight; - if (flingVelocity < 0.0f) { - this._controller.fling(velocity: Mathf.Max(2.0f, -flingVelocity ?? 0.0f)); - } - else if (flingVelocity > 0.0f) { - this._controller.fling(velocity: Mathf.Min(-2.0f, -flingVelocity ?? 0.0f)); - } - else { - this._controller.fling(velocity: this._controller.value < 0.5 ? -2.0f : 2.0f); - } - } - - void _toggleFrontLayer() { - AnimationStatus status = this._controller.status; - bool isOpen = status == AnimationStatus.completed || status == AnimationStatus.forward; - this._controller.fling(velocity: isOpen ? -2.0f : 2.0f); - } - - Widget _buildStack(BuildContext context, BoxConstraints constraints) { - Animation frontRelativeRect = this._controller.drive(new RelativeRectTween( - begin: RelativeRect.fromLTRB(0.0f, constraints.biggest.height - BackdropConstants._kFrontClosedHeight, - 0.0f, 0.0f), - end: RelativeRect.fromLTRB(0.0f, BackdropConstants._kBackAppBarHeight, 0.0f, 0.0f) - )); - - List layers = new List { - new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: new List { - new _BackAppBar( - leading: this.widget.frontAction, - title: new _CrossFadeTransition( - progress: this._controller, - alignment: Alignment.centerLeft, - child0: this.widget.frontTitle, - child1: this.widget.backTitle - ), - trailing: new IconButton( - onPressed: this._toggleFrontLayer, - tooltip: "Toggle options page", - icon: new AnimatedIcon( - icon: AnimatedIcons.close_menu, - progress: this._controller - ) - ) - ), - new Expanded( - child: new Visibility( - child: this.widget.backLayer, - visible: this._controller.status != AnimationStatus.completed, - maintainState: true - ) - ) - } - ), - new PositionedTransition( - rect: frontRelativeRect, - child: new AnimatedBuilder( - animation: this._controller, - builder: (BuildContext _context, Widget child) => { - return new PhysicalShape( - elevation: 12.0f, - color: Theme.of(_context).canvasColor, - clipper: new ShapeBorderClipper( - shape: new BeveledRectangleBorder( - borderRadius: BackdropConstants._kFrontHeadingBevelRadius.evaluate( - this._controller) - ) - ), - clipBehavior: Clip.antiAlias, - child: child - ); - }, - child: new _TappableWhileStatusIs( - AnimationStatus.completed, - controller: this._controller, - child: new FadeTransition( - opacity: this._frontOpacity, - child: this.widget.frontLayer - ) - ) - ) - ) - }; - - if (this.widget.frontHeading != null) { - layers.Add( - new PositionedTransition( - rect: frontRelativeRect, - child: new Container( - alignment: Alignment.topLeft, - child: new GestureDetector( - behavior: HitTestBehavior.opaque, - onTap: this._toggleFrontLayer, - onVerticalDragUpdate: this._handleDragUpdate, - onVerticalDragEnd: this._handleDragEnd, - child: this.widget.frontHeading - ) - ) - ) - ); - } - - return new Stack( - key: this._backdropKey, - children: layers - ); - } - - public override Widget build(BuildContext context) { - return new LayoutBuilder(builder: this._buildStack); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/backdrop.cs.meta b/Samples/UIWidgetsGallery/gallery/backdrop.cs.meta deleted file mode 100644 index dd6437aa..00000000 --- a/Samples/UIWidgetsGallery/gallery/backdrop.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: f3ee24c4986845abb1356402632d8524 -timeCreated: 1552886622 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/demo.cs b/Samples/UIWidgetsGallery/gallery/demo.cs deleted file mode 100644 index aed9fbd5..00000000 --- a/Samples/UIWidgetsGallery/gallery/demo.cs +++ /dev/null @@ -1,277 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.cupertino; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.service; -using Unity.UIWidgets.widgets; -using UnityEngine; - -namespace UIWidgetsGallery.gallery { - public class ComponentDemoTabData { - public ComponentDemoTabData( - Widget demoWidget = null, - string exampleCodeTag = null, - string description = null, - string tabName = null, - string documentationUrl = null - ) { - this.demoWidget = demoWidget; - this.exampleCodeTag = exampleCodeTag; - this.description = description; - this.tabName = tabName; - this.documentationUrl = documentationUrl; - } - - public readonly Widget demoWidget; - public readonly string exampleCodeTag; - public readonly string description; - public readonly string tabName; - public readonly string documentationUrl; - - public static bool operator ==(ComponentDemoTabData left, ComponentDemoTabData right) { - return left.Equals(right); - } - - public static bool operator !=(ComponentDemoTabData left, ComponentDemoTabData right) { - return !left.Equals(right); - } - - public bool Equals(ComponentDemoTabData other) { - return other.tabName == this.tabName - && other.description == this.description - && other.documentationUrl == this.documentationUrl; - } - - public override bool Equals(object obj) { - if (ReferenceEquals(null, obj)) { - return false; - } - - if (ReferenceEquals(this, obj)) { - return true; - } - - if (obj.GetType() != this.GetType()) { - return false; - } - - return this.Equals((ComponentDemoTabData) obj); - } - - public override int GetHashCode() { - unchecked { - var hashCode = this.tabName.GetHashCode(); - hashCode = (hashCode * 397) ^ this.description.GetHashCode(); - hashCode = (hashCode * 397) ^ this.documentationUrl.GetHashCode(); - return hashCode; - } - } - } - - - public class TabbedComponentDemoScaffold : StatelessWidget { - public TabbedComponentDemoScaffold( - string title = null, - List demos = null, - List actions = null - ) { - this.title = title; - this.demos = demos; - this.actions = actions; - } - - public readonly List demos; - public readonly string title; - public readonly List actions; - - void _showExampleCode(BuildContext context) { - string tag = this.demos[DefaultTabController.of(context).index].exampleCodeTag; - if (tag != null) { - Navigator.push(context, new MaterialPageRoute( - builder: (BuildContext _context) => new FullScreenCodeDialog(exampleCodeTag: tag) - )); - } - } - - void _showApiDocumentation(BuildContext context) { - string url = this.demos[DefaultTabController.of(context).index].documentationUrl; - if (url != null) { - Application.OpenURL(url); - } - } - - public override Widget build(BuildContext context) { - List actions = this.actions ?? new List { }; - actions.AddRange( - new List { - new Builder( - builder: (BuildContext _context) => { - return new IconButton( - icon: new Icon(Icons.library_books), - onPressed: () => this._showApiDocumentation(_context) - ); - } - ), - new Builder( - builder: (BuildContext _context) => { - return new IconButton( - icon: new Icon(Icons.code), - tooltip: "Show example code", - onPressed: () => this._showExampleCode(_context) - ); - } - ) - } - ); - return new DefaultTabController( - length: this.demos.Count, - child: new Scaffold( - appBar: new AppBar( - title: new Text(this.title), - actions: actions, - bottom: new TabBar( - isScrollable: true, - tabs: this.demos.Select( - (ComponentDemoTabData data) => new Tab(text: data.tabName)) - .ToList() - ) - ), - body: new TabBarView( - children: this.demos.Select((ComponentDemoTabData demo) => { - return new SafeArea( - top: false, - bottom: false, - child: new Column( - children: new List { - new Padding( - padding: EdgeInsets.all(16.0f), - child: new Text(demo.description, - style: Theme.of(context).textTheme.subhead - ) - ), - new Expanded(child: demo.demoWidget) - } - ) - ); - }).ToList() - ) - ) - ); - } - } - - - public class FullScreenCodeDialog : StatefulWidget { - public FullScreenCodeDialog(Key key = null, string exampleCodeTag = null) : base(key: key) { - this.exampleCodeTag = exampleCodeTag; - } - - public readonly string exampleCodeTag; - - public override State createState() { - return new FullScreenCodeDialogState(); - } - } - - public class FullScreenCodeDialogState : State { - public FullScreenCodeDialogState() { } - - string _exampleCode; - - public override void didChangeDependencies() { - base.didChangeDependencies(); - string code = - new ExampleCodeParser().getExampleCode(this.widget.exampleCodeTag, DefaultAssetBundle.of(this.context)); - if (this.mounted) { - this.setState(() => { this._exampleCode = code; }); - } - } - - public override Widget build(BuildContext context) { - SyntaxHighlighterStyle style = Theme.of(context).brightness == Brightness.dark - ? SyntaxHighlighterStyle.darkThemeStyle() - : SyntaxHighlighterStyle.lightThemeStyle(); - - Widget body; - if (this._exampleCode == null) { - body = new Center( - child: new CircularProgressIndicator() - ); - } - else { - body = new SingleChildScrollView( - child: new Padding( - padding: EdgeInsets.all(16.0f), - child: new RichText( - text: new TextSpan( - style: new TextStyle(fontFamily: "monospace", fontSize: 10.0f), - children: new List { - new DartSyntaxHighlighter(style).format(this._exampleCode) - } - ) - ) - ) - ); - } - - return new Scaffold( - appBar: new AppBar( - leading: new IconButton( - icon: new Icon( - Icons.clear - ), - onPressed: () => { Navigator.pop(context); } - ), - title: new Text("Example code") - ), - body: body - ); - } - } - - class MaterialDemoDocumentationButton : StatelessWidget { - public MaterialDemoDocumentationButton(string routeName, Key key = null) : base(key: key) { - this.documentationUrl = DemoUtils.kDemoDocumentationUrl[routeName]; - D.assert(DemoUtils.kDemoDocumentationUrl[routeName] != null, - () => $"A documentation URL was not specified for demo route {routeName} in kAllGalleryDemos" - ); - } - - - public readonly string documentationUrl; - - public override Widget build(BuildContext context) { - return new IconButton( - icon: new Icon(Icons.library_books), - tooltip: "API documentation", - onPressed: () => Application.OpenURL(this.documentationUrl) - ); - } - } - - class CupertinoDemoDocumentationButton : StatelessWidget { - public CupertinoDemoDocumentationButton( - string routeName, - Key key = null - ) : base(key: key) { - this.documentationUrl = DemoUtils.kDemoDocumentationUrl[routeName]; - - D.assert( - DemoUtils.kDemoDocumentationUrl[routeName] != null, - () => $"A documentation URL was not specified for demo route {routeName} in kAllGalleryDemos" - ); - } - - public readonly string documentationUrl; - - public override Widget build(BuildContext context) { - return new CupertinoButton( - padding: EdgeInsets.zero, - child: new Icon(CupertinoIcons.book), - onPressed: () => Application.OpenURL(this.documentationUrl) - ); - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/demo.cs.meta b/Samples/UIWidgetsGallery/gallery/demo.cs.meta deleted file mode 100644 index 4238ae2e..00000000 --- a/Samples/UIWidgetsGallery/gallery/demo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 3c8404e1b03d43aba2e91d19f124de5e -timeCreated: 1552462303 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/demos.cs b/Samples/UIWidgetsGallery/gallery/demos.cs deleted file mode 100644 index 62e982c0..00000000 --- a/Samples/UIWidgetsGallery/gallery/demos.cs +++ /dev/null @@ -1,614 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - public class GalleryDemoCategory : IEquatable { - public GalleryDemoCategory(string name = null, IconData icon = null) { - D.assert(name != null); - D.assert(icon != null); - - this.name = name; - this.icon = icon; - } - - public readonly string name; - - public readonly IconData icon; - - public bool Equals(GalleryDemoCategory other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return string.Equals(this.name, other.name) && Equals(this.icon, other.icon); - } - - public override bool Equals(object obj) { - if (ReferenceEquals(null, obj)) { - return false; - } - - if (ReferenceEquals(this, obj)) { - return true; - } - - if (obj.GetType() != this.GetType()) { - return false; - } - - return this.Equals((GalleryDemoCategory) obj); - } - - public override int GetHashCode() { - unchecked { - return ((this.name != null ? this.name.GetHashCode() : 0) * 397) ^ - (this.icon != null ? this.icon.GetHashCode() : 0); - } - } - - public static bool operator ==(GalleryDemoCategory left, GalleryDemoCategory right) { - return Equals(left, right); - } - - public static bool operator !=(GalleryDemoCategory left, GalleryDemoCategory right) { - return !Equals(left, right); - } - - public override string ToString() { - return $"{this.GetType()}({this.name})"; - } - } - - public static partial class DemoUtils { - internal static readonly GalleryDemoCategory _kDemos = new GalleryDemoCategory( - name: "Studies", - icon: GalleryIcons.animation - ); - - internal static readonly GalleryDemoCategory _kStyle = new GalleryDemoCategory( - name: "Style", - icon: GalleryIcons.custom_typography - ); - - internal static readonly GalleryDemoCategory _kMaterialComponents = new GalleryDemoCategory( - name: "Material", - icon: GalleryIcons.category_mdc - ); - - internal static readonly GalleryDemoCategory _kCupertinoComponents = new GalleryDemoCategory( - name: "Cupertino", - icon: GalleryIcons.phone_iphone - ); - - internal static readonly GalleryDemoCategory _kMedia = new GalleryDemoCategory( - name: "Media", - icon: GalleryIcons.drive_video - ); - } - - public class GalleryDemo { - public GalleryDemo( - string title = null, - IconData icon = null, - string subtitle = null, - GalleryDemoCategory category = null, - string routeName = null, - string documentationUrl = null, - WidgetBuilder buildRoute = null - ) { - D.assert(title != null); - D.assert(icon != null); - D.assert(category != null); - D.assert(routeName != null); - D.assert(buildRoute != null); - this.title = title; - this.icon = icon; - this.subtitle = subtitle; - this.category = category; - this.routeName = routeName; - this.documentationUrl = documentationUrl; - this.buildRoute = buildRoute; - } - - public readonly string title; - public readonly IconData icon; - public readonly string subtitle; - public readonly GalleryDemoCategory category; - public readonly string routeName; - public readonly string documentationUrl; - public readonly WidgetBuilder buildRoute; - - public override string ToString() { - return $"{this.GetType()}({this.title} {this.routeName})"; - } - } - - public static partial class DemoUtils { - static List _buildGalleryDemos() { - List galleryDemos = new List { - // Demos - new GalleryDemo( - title: "Shrine", - subtitle: "Basic shopping app", - icon: GalleryIcons.shrine, - category: _kDemos, - routeName: ShrineDemo.routeName, - buildRoute: (BuildContext context) => new ShrineDemo() - ), - new GalleryDemo( - title: "Contact profile", - subtitle: "Address book entry with a flexible appbar", - icon: GalleryIcons.account_box, - category: _kDemos, - routeName: ContactsDemo.routeName, - buildRoute: (BuildContext context) => new ContactsDemo() - ), - new GalleryDemo( - title: "Animation", - subtitle: "Section organizer", - icon: GalleryIcons.animation, - category: _kDemos, - routeName: AnimationDemo.routeName, - buildRoute: (BuildContext context) => new AnimationDemo() - ), - - // Style - new GalleryDemo( - title: "Colors", - subtitle: "All of the predefined colors", - icon: GalleryIcons.colors, - category: _kStyle, - routeName: ColorsDemo.routeName, - buildRoute: (BuildContext context) => new ColorsDemo() - ), - new GalleryDemo( - title: "Typography", - subtitle: "All of the predefined text styles", - icon: GalleryIcons.custom_typography, - category: _kStyle, - routeName: TypographyDemo.routeName, - buildRoute: (BuildContext context) => new TypographyDemo() - ), - - // Material Components - new GalleryDemo( - title: "Backdrop", - subtitle: "Select a front layer from back layer", - icon: GalleryIcons.backdrop, - category: _kMaterialComponents, - routeName: BackdropDemo.routeName, - buildRoute: (BuildContext context) => new BackdropDemo() - ), - new GalleryDemo( - title: "Bottom app bar", - subtitle: "Optional floating action button notch", - icon: GalleryIcons.bottom_app_bar, - category: _kMaterialComponents, - routeName: BottomAppBarDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/material/BottomAppBar-class.html", - buildRoute: (BuildContext context) => new BottomAppBarDemo() - ), - new GalleryDemo( - title: "Bottom navigation", - subtitle: "Bottom navigation with cross-fading views", - icon: GalleryIcons.bottom_navigation, - category: _kMaterialComponents, - routeName: BottomNavigationDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/material/BottomNavigationBar-class.html", - buildRoute: (BuildContext context) => new BottomNavigationDemo() - ), - new GalleryDemo( - title: "Bottom sheet: Modal", - subtitle: "A dismissable bottom sheet", - icon: GalleryIcons.bottom_sheets, - category: _kMaterialComponents, - routeName: ModalBottomSheetDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/material/showModalBottomSheet.html", - buildRoute: (BuildContext context) => new ModalBottomSheetDemo() - ), - new GalleryDemo( - title: "Bottom sheet: Persistent", - subtitle: "A bottom sheet that sticks around", - icon: GalleryIcons.bottom_sheet_persistent, - category: _kMaterialComponents, - routeName: PersistentBottomSheetDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/material/ScaffoldState/showBottomSheet.html", - buildRoute: (BuildContext context) => new PersistentBottomSheetDemo() - ), - new GalleryDemo( - title: "Buttons", - subtitle: "Flat, raised, dropdown, and more", - icon: GalleryIcons.generic_buttons, - category: _kMaterialComponents, - routeName: ButtonsDemo.routeName, - buildRoute: (BuildContext context) => new ButtonsDemo() - ), - new GalleryDemo( - title: "Buttons: Floating Action Button", - subtitle: "FAB with transitions", - icon: GalleryIcons.buttons, - category: _kMaterialComponents, - routeName: TabsFabDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/material/FloatingActionButton-class.html", - buildRoute: (BuildContext context) => new TabsFabDemo() - ), - new GalleryDemo( - title: "Cards", - subtitle: "Baseline cards with rounded corners", - icon: GalleryIcons.cards, - category: _kMaterialComponents, - routeName: CardsDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/material/Card-class.html", - buildRoute: (BuildContext context) => new CardsDemo() - ), - new GalleryDemo( - title: "Chips", - subtitle: "Labeled with delete buttons and avatars", - icon: GalleryIcons.chips, - category: _kMaterialComponents, - routeName: ChipDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/material/Chip-class.html", - buildRoute: (BuildContext context) => new ChipDemo() - ), - // new GalleryDemo( - // title: "Data tables", - // subtitle: "Rows and columns", - // icon: GalleryIcons.data_table, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: DataTableDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/PaginatedDataTable-class.html", - // buildRoute: (BuildContext context) => DataTableDemo() - // ), - // new GalleryDemo( - // title: "Dialogs", - // subtitle: "Simple, alert, and fullscreen", - // icon: GalleryIcons.dialogs, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: DialogDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/showDialog.html", - // buildRoute: (BuildContext context) => DialogDemo() - // ), - // new GalleryDemo( - // title: "Elevations", - // subtitle: "Shadow values on cards", - // // TODO(larche): Change to custom icon for elevations when one exists. - // icon: GalleryIcons.cupertino_progress, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: ElevationDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/Material/elevation.html", - // buildRoute: (BuildContext context) => ElevationDemo() - // ), - // new GalleryDemo( - // title: "Expand/collapse list control", - // subtitle: "A list with one sub-list level", - // icon: GalleryIcons.expand_all, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: TwoLevelListDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/ExpansionTile-class.html", - // buildRoute: (BuildContext context) => TwoLevelListDemo() - // ), - // new GalleryDemo( - // title: "Expansion panels", - // subtitle: "List of expanding panels", - // icon: GalleryIcons.expand_all, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: ExpansionPanelsDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/ExpansionPanel-class.html", - // buildRoute: (BuildContext context) => ExpansionPanelsDemo() - // ), - // new GalleryDemo( - // title: "Grid", - // subtitle: "Row and column layout", - // icon: GalleryIcons.grid_on, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: GridListDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/widgets/GridView-class.html", - // buildRoute: (BuildContext context) => new GridListDemo() - // ), - // new GalleryDemo( - // title: "Icons", - // subtitle: "Enabled and disabled icons with opacity", - // icon: GalleryIcons.sentiment_very_satisfied, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: IconsDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/IconButton-class.html", - // buildRoute: (BuildContext context) => IconsDemo() - // ), - // new GalleryDemo( - // title: "Lists", - // subtitle: "Scrolling list layouts", - // icon: GalleryIcons.list_alt, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: ListDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/ListTile-class.html", - // buildRoute: (BuildContext context) => new ListDemo() - // ), - // new GalleryDemo( - // title: "Lists: leave-behind list items", - // subtitle: "List items with hidden actions", - // icon: GalleryIcons.lists_leave_behind, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: LeaveBehindDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/widgets/Dismissible-class.html", - // buildRoute: (BuildContext context) => new LeaveBehindDemo() - // ), - // new GalleryDemo( - // title: "Lists: reorderable", - // subtitle: "Reorderable lists", - // icon: GalleryIcons.list_alt, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: ReorderableListDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/ReorderableListView-class.html", - // buildRoute: (BuildContext context) => new ReorderableListDemo() - // ), - // new GalleryDemo( - // title: "Menus", - // subtitle: "Menu buttons and simple menus", - // icon: GalleryIcons.more_vert, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: MenuDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/PopupMenuButton-class.html", - // buildRoute: (BuildContext context) => new MenuDemo() - // ), - // new GalleryDemo( - // title: "Navigation drawer", - // subtitle: "Navigation drawer with standard header", - // icon: GalleryIcons.menu, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: DrawerDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/Drawer-class.html", - // buildRoute: (BuildContext context) => DrawerDemo() - // ), - // new GalleryDemo( - // title: "Pagination", - // subtitle: "PageView with indicator", - // icon: GalleryIcons.page_control, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: PageSelectorDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/TabBarView-class.html", - // buildRoute: (BuildContext context) => PageSelectorDemo() - // ), - new GalleryDemo( - title: "Pickers", - subtitle: "Date and time selection widgets", - icon: GalleryIcons.@event, - category: _kMaterialComponents, - routeName: DateAndTimePickerDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/material/showDatePicker.html", - buildRoute: (BuildContext context) => new DateAndTimePickerDemo() - ), - // new GalleryDemo( - // title: "Progress indicators", - // subtitle: "Linear, circular, indeterminate", - // icon: GalleryIcons.progress_activity, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: ProgressIndicatorDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/LinearProgressIndicator-class.html", - // buildRoute: (BuildContext context) => ProgressIndicatorDemo() - // ), - // new GalleryDemo( - // title: "Pull to refresh", - // subtitle: "Refresh indicators", - // icon: GalleryIcons.refresh, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: OverscrollDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/RefreshIndicator-class.html", - // buildRoute: (BuildContext context) => OverscrollDemo() - // ), - // new GalleryDemo( - // title: "Search", - // subtitle: "Expandable search", - // icon: Icons.search, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: SearchDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/showSearch.html", - // buildRoute: (BuildContext context) => SearchDemo() - // ), - // new GalleryDemo( - // title: "Selection controls", - // subtitle: "Checkboxes, radio buttons, and switches", - // icon: GalleryIcons.check_box, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: SelectionControlsDemo.routeName, - // buildRoute: (BuildContext context) => SelectionControlsDemo() - // ), - // new GalleryDemo( - // title: "Sliders", - // subtitle: "Widgets for selecting a value by swiping", - // icon: GalleryIcons.sliders, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: SliderDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/Slider-class.html", - // buildRoute: (BuildContext context) => SliderDemo() - // ), - // new GalleryDemo( - // title: "Snackbar", - // subtitle: "Temporary messaging", - // icon: GalleryIcons.snackbar, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: SnackBarDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/ScaffoldState/showSnackBar.html", - // buildRoute: (BuildContext context) => SnackBarDemo() - // ), - // new GalleryDemo( - // title: "Tabs", - // subtitle: "Tabs with independently scrollable views", - // icon: GalleryIcons.tabs, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: TabsDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/TabBarView-class.html", - // buildRoute: (BuildContext context) => TabsDemo() - // ), - // new GalleryDemo( - // title: "Tabs: Scrolling", - // subtitle: "Tab bar that scrolls", - // category: GalleryDemoCategory._kMaterialComponents, - // icon: GalleryIcons.tabs, - // routeName: ScrollableTabsDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/TabBar-class.html", - // buildRoute: (BuildContext context) => ScrollableTabsDemo() - // ), - // new GalleryDemo( - // title: "Text fields", - // subtitle: "Single line of editable text and numbers", - // icon: GalleryIcons.text_fields_alt, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: TextFormFieldDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/TextFormField-class.html", - // buildRoute: (BuildContext context) => const TextFormFieldDemo() - // ), - // new GalleryDemo( - // title: "Tooltips", - // subtitle: "Short message displayed on long-press", - // icon: GalleryIcons.tooltip, - // category: GalleryDemoCategory._kMaterialComponents, - // routeName: TooltipDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/material/Tooltip-class.html", - // buildRoute: (BuildContext context) => TooltipDemo() - // ), - // - // Cupertino Components - // new GalleryDemo( - // title: "Activity Indicator", - // icon: GalleryIcons.cupertino_progress, - // category: _kCupertinoComponents, - // routeName: CupertinoProgressIndicatorDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/cupertino/CupertinoActivityIndicator-class.html", - // buildRoute: (BuildContext context) => CupertinoProgressIndicatorDemo() - // ), - new GalleryDemo( - title: "Alerts", - icon: GalleryIcons.dialogs, - category: _kCupertinoComponents, - routeName: CupertinoAlertDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/cupertino/showCupertinoDialog.html", - buildRoute: (BuildContext context) => new CupertinoAlertDemo() - ), - new GalleryDemo( - title: "Buttons", - icon: GalleryIcons.generic_buttons, - category: _kCupertinoComponents, - routeName: CupertinoButtonsDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/cupertino/CupertinoButton-class.html", - buildRoute: (BuildContext context) => new CupertinoButtonsDemo() - ), - new GalleryDemo( - title: "Navigation", - icon: GalleryIcons.bottom_navigation, - category: _kCupertinoComponents, - routeName: CupertinoNavigationDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/cupertino/CupertinoTabScaffold-class.html", - buildRoute: (BuildContext context) => new CupertinoNavigationDemo() - ), - new GalleryDemo( - title: "Pickers", - icon: GalleryIcons.@event, - category: _kCupertinoComponents, - routeName: CupertinoPickerDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/cupertino/CupertinoPicker-class.html", - buildRoute: (BuildContext context) => new CupertinoPickerDemo() - ), - // new GalleryDemo( - // title: "Pull to refresh", - // icon: GalleryIcons.cupertino_pull_to_refresh, - // category: _kCupertinoComponents, - // routeName: CupertinoRefreshControlDemo.routeName, - // documentationUrl: - // "https://docs.flutter.io/flutter/cupertino/CupertinoSliverRefreshControl-class.html", - // buildRoute: (BuildContext context) => CupertinoRefreshControlDemo() - // ), - // new GalleryDemo( - // title: "Segmented Control", - // icon: GalleryIcons.tabs, - // category: GalleryDemoCategory._kCupertinoComponents, - // routeName: CupertinoSegmentedControlDemo.routeName, - // documentationUrl: "https://docs.flutter.io/flutter/cupertino/CupertinoSegmentedControl-class.html", - // buildRoute: (BuildContext context) => CupertinoSegmentedControlDemo() - // ), - new GalleryDemo( - title: "Sliders", - icon: GalleryIcons.sliders, - category: _kCupertinoComponents, - routeName: CupertinoSliderDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/cupertino/CupertinoSlider-class.html", - buildRoute: (BuildContext context) => new CupertinoSliderDemo() - ), - new GalleryDemo( - title: "Switches", - icon: GalleryIcons.cupertino_switch, - category: _kCupertinoComponents, - routeName: CupertinoSwitchDemo.routeName, - documentationUrl: "https://docs.flutter.io/flutter/cupertino/CupertinoSwitch-class.html", - buildRoute: (BuildContext context) => new CupertinoSwitchDemo() - ), - new GalleryDemo( - title: "Text Fields", - icon: GalleryIcons.text_fields_alt, - category: _kCupertinoComponents, - routeName: CupertinoTextFieldDemo.routeName, - buildRoute: (BuildContext context) => new CupertinoTextFieldDemo() - ), - // - // // Media - // new GalleryDemo( - // title: "Animated images", - // subtitle: "GIF and WebP animations", - // icon: GalleryIcons.animation, - // category: GalleryDemoCategory._kMedia, - // routeName: ImagesDemo.routeName, - // buildRoute: (BuildContext context) => ImagesDemo() - // ), - // new GalleryDemo( - // title: "Video", - // subtitle: "Video playback", - // icon: GalleryIcons.drive_video, - // category: GalleryDemoCategory._kMedia, - // routeName: VideoDemo.routeName, - // buildRoute: (BuildContext context) => new VideoDemo() - // ), - }; - - // Keep Pesto around for its regression test value. It is not included - // in (release builds) the performance tests. - D.assert(() => { - // galleryDemos.Insert(0, - // new GalleryDemo( - // title: "Pesto", - // subtitle: "Simple recipe browser", - // icon: Icons.adjust, - // category: GalleryDemoCategory._kDemos, - // routeName: PestoDemo.routeName, - // buildRoute: (BuildContext context) => new PestoDemo() - // ) - // ); - return true; - }); - - return galleryDemos; - } - - public static readonly List kAllGalleryDemos = _buildGalleryDemos(); - - public static readonly HashSet kAllGalleryDemoCategories = - new HashSet(kAllGalleryDemos.Select(demo => demo.category)); - - public static readonly Dictionary> kGalleryCategoryToDemos = - kAllGalleryDemoCategories.ToDictionary( - category => category, - category => kAllGalleryDemos.Where(demo => demo.category == category).ToList() - ); - - public static readonly Dictionary kDemoDocumentationUrl = - kAllGalleryDemos.Where(demo => demo.documentationUrl != null).ToDictionary( - demo => demo.routeName, - demo => demo.documentationUrl - ); - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/demos.cs.meta b/Samples/UIWidgetsGallery/gallery/demos.cs.meta deleted file mode 100644 index 3c90e06e..00000000 --- a/Samples/UIWidgetsGallery/gallery/demos.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b079397083e3d41bb83262e1423dfa25 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/gallery/example_code_parser.cs b/Samples/UIWidgetsGallery/gallery/example_code_parser.cs deleted file mode 100644 index 035e0bb0..00000000 --- a/Samples/UIWidgetsGallery/gallery/example_code_parser.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using RSG; -using Unity.UIWidgets.foundation; -using UnityEngine; - -namespace UIWidgetsGallery.gallery { - - public class ExampleCodeParser { - const string _kStartTag = "// START "; - const string _kEndTag = "// END"; - - Dictionary _exampleCode; - - public string getExampleCode(string tag, AssetBundle bundle) { - if (this._exampleCode == null) { - this._parseExampleCode(bundle); - } - return this._exampleCode.getOrDefault(tag); - } - - void _parseExampleCode(AssetBundle bundle) { - string code = Resources.Load("example_code.cs")?.text ?? - "// example_code.cs not found\n"; - this._exampleCode = new Dictionary{}; - - List lines = code.Split('\n').ToList(); - - List codeBlock = null; - string codeTag = null; - - foreach (string line in lines) { - if (codeBlock == null) { - if (line.StartsWith(_kStartTag)) { - codeBlock = new List(); - codeTag = line.Substring(_kStartTag.Length).Trim(); - } else { - } - } else { - if (line.StartsWith(_kEndTag)) { - this._exampleCode[codeTag] = string.Join("\n", codeBlock); - codeBlock = null; - codeTag = null; - } else { - codeBlock.Add(line.TrimEnd()); - } - } - } - } - } - -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/example_code_parser.cs.meta b/Samples/UIWidgetsGallery/gallery/example_code_parser.cs.meta deleted file mode 100644 index 495edbb1..00000000 --- a/Samples/UIWidgetsGallery/gallery/example_code_parser.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 57879fd6125746699974c2e0bc8762b8 -timeCreated: 1552468268 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/home.cs b/Samples/UIWidgetsGallery/gallery/home.cs deleted file mode 100644 index 141fc17c..00000000 --- a/Samples/UIWidgetsGallery/gallery/home.cs +++ /dev/null @@ -1,406 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using RSG; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgetsGallery.gallery { - public static class HomeUtils { - internal static readonly Color _kUIWidgetsBlue = new Color(0xFF003D75); - internal const float _kDemoItemHeight = 64.0f; - internal static TimeSpan _kFrontLayerSwitchDuration = new TimeSpan(0, 0, 0, 0, 300); - } - - class _UIWidgetsLogo : StatelessWidget { - public _UIWidgetsLogo(Key key = null, bool isDark = false) : base(key: key) { - this._isDark = isDark; - } - - readonly bool _isDark; - - public override Widget build(BuildContext context) { - return new Center( - child: new Container( - width: 34.0f, - height: 34.0f, - decoration: new BoxDecoration( - image: new DecorationImage( - image: new AssetImage( - this._isDark ? "unity-black" : "unity-white") - ) - ) - ) - ); - } - } - - class _CategoryItem : StatelessWidget { - public _CategoryItem( - Key key = null, - GalleryDemoCategory category = null, - VoidCallback onTap = null - ) : base(key: key) { - this.category = category; - this.onTap = onTap; - } - - public readonly GalleryDemoCategory category; - - public readonly VoidCallback onTap; - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - bool isDark = theme.brightness == Brightness.dark; - - return new RepaintBoundary( - child: new RawMaterialButton( - padding: EdgeInsets.zero, - splashColor: theme.primaryColor.withOpacity(0.12f), - highlightColor: Colors.transparent, - onPressed: this.onTap, - child: new Column( - mainAxisAlignment: MainAxisAlignment.end, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new Padding( - padding: EdgeInsets.all(6.0f), - child: new Icon( - this.category.icon, - size: 60.0f, - color: isDark ? Colors.white : HomeUtils._kUIWidgetsBlue - ) - ), - new SizedBox(height: 10.0f), - new Container( - height: 48.0f, - alignment: Alignment.center, - child: new Text( - this.category.name, - textAlign: TextAlign.center, - style: theme.textTheme.subhead.copyWith( - fontFamily: "GoogleSans", - color: isDark ? Colors.white : HomeUtils._kUIWidgetsBlue - ) - ) - ) - } - ) - ) - ); - } - } - - class _CategoriesPage : StatelessWidget { - public _CategoriesPage( - Key key = null, - IEnumerable categories = null, - ValueChanged onCategoryTap = null - ) : base(key: key) { - this.categories = categories; - this.onCategoryTap = onCategoryTap; - } - - public readonly IEnumerable categories; - - public readonly ValueChanged onCategoryTap; - - public override Widget build(BuildContext context) { - float aspectRatio = 160.0f / 180.0f; - List categoriesList = this.categories.ToList(); - int columnCount = (MediaQuery.of(context).orientation == Orientation.portrait) ? 2 : 3; - - return new SingleChildScrollView( - key: new PageStorageKey("categories"), - child: new LayoutBuilder( - builder: (_, constraints) => { - float columnWidth = constraints.biggest.width / columnCount; - float rowHeight = Mathf.Min(225.0f, columnWidth * aspectRatio); - int rowCount = (categoriesList.Count + columnCount - 1) / columnCount; - - return new RepaintBoundary( - child: new Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.stretch, - children: Enumerable.Range(0, rowCount).Select(rowIndex => { - int columnCountForRow = rowIndex == rowCount - 1 - ? categoriesList.Count - columnCount * Mathf.Max(0, rowCount - 1) - : columnCount; - - return (Widget) new Row( - children: Enumerable.Range(0, columnCountForRow).Select(columnIndex => { - int index = rowIndex * columnCount + columnIndex; - GalleryDemoCategory category = categoriesList[index]; - - return (Widget) new SizedBox( - width: columnWidth, - height: rowHeight, - child: new _CategoryItem( - category: category, - onTap: () => { this.onCategoryTap(category); } - ) - ); - }).ToList() - ); - }).ToList() - ) - ); - } - ) - ); - } - } - - class _DemoItem : StatelessWidget { - public _DemoItem(Key key = null, GalleryDemo demo = null) : base(key: key) { - this.demo = demo; - } - - public readonly GalleryDemo demo; - - void _launchDemo(BuildContext context) { - if (this.demo.routeName != null) { - Navigator.pushNamed(context, this.demo.routeName); - } - } - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - bool isDark = theme.brightness == Brightness.dark; - float textScaleFactor = MediaQuery.textScaleFactorOf(context); - - List titleChildren = new List { - new Text( - this.demo.title, - style: theme.textTheme.subhead.copyWith( - color: isDark ? Colors.white : new Color(0xFF202124) - ) - ), - }; - - if (this.demo.subtitle != null) { - titleChildren.Add( - new Text( - this.demo.subtitle, - style: theme.textTheme.body1.copyWith( - color: isDark ? Colors.white : new Color(0xFF60646B) - ) - ) - ); - } - - return new RawMaterialButton( - padding: EdgeInsets.zero, - splashColor: theme.primaryColor.withOpacity(0.12f), - highlightColor: Colors.transparent, - onPressed: () => { this._launchDemo(context); }, - child: new Container( - constraints: new BoxConstraints(minHeight: HomeUtils._kDemoItemHeight * textScaleFactor), - child: new Row( - children: new List { - new Container( - width: 56.0f, - height: 56.0f, - alignment: Alignment.center, - child: new Icon( - this.demo.icon, - size: 24.0f, - color: isDark ? Colors.white : HomeUtils._kUIWidgetsBlue - ) - ), - new Expanded( - child: new Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.stretch, - children: titleChildren - ) - ), - new SizedBox(width: 44.0f), - } - ) - ) - ); - } - } - - class _DemosPage : StatelessWidget { - public _DemosPage(GalleryDemoCategory category) { - this.category = category; - } - - public readonly GalleryDemoCategory category; - - public override Widget build(BuildContext context) { - float windowBottomPadding = MediaQuery.of(context).padding.bottom; - return new KeyedSubtree( - key: new ValueKey("GalleryDemoList"), - child: new ListView( - key: new PageStorageKey(this.category.name), - padding: EdgeInsets.only(top: 8.0f, bottom: windowBottomPadding), - children: DemoUtils.kGalleryCategoryToDemos[this.category] - .Select(demo => (Widget) new _DemoItem(demo: demo)).ToList() - ) - ); - } - } - - public class GalleryHome : StatefulWidget { - public GalleryHome( - Key key = null, - bool testMode = false, - Widget optionsPage = null, - GalleryOptions options = null - ) : base(key: key) { - this.testMode = testMode; - this.optionsPage = optionsPage; - this.options = options; - } - - public readonly Widget optionsPage; - public readonly bool testMode; - public readonly GalleryOptions options; - - public static bool showPreviewBanner = true; - - public override State createState() { - return new _GalleryHomeState(); - } - } - - class _GalleryHomeState : SingleTickerProviderStateMixin { - readonly GlobalKey _scaffoldKey = GlobalKey.key(); - AnimationController _controller; - GalleryDemoCategory _category; - - static Widget _topHomeLayout(Widget currentChild, List previousChildren) { - List children = previousChildren; - if (currentChild != null) { - children = children.ToList(); - children.Add(currentChild); - } - - return new Stack( - children: children, - alignment: Alignment.topCenter - ); - } - - public static AnimatedSwitcherLayoutBuilder _centerHomeLayout = AnimatedSwitcher.defaultLayoutBuilder; - - public override void initState() { - base.initState(); - this._controller = new AnimationController( - duration: new TimeSpan(0, 0, 0, 0, 600), - debugLabel: "preview banner", - vsync: this - ); - this._controller.forward(); - } - - public override void dispose() { - this._controller.dispose(); - base.dispose(); - } - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - bool isDark = theme.brightness == Brightness.dark; - MediaQueryData media = MediaQuery.of(context); - bool centerHome = media.orientation == Orientation.portrait && media.size.height < 800.0; - - Curve switchOutCurve = new Interval(0.4f, 1.0f, curve: Curves.fastOutSlowIn); - Curve switchInCurve = new Interval(0.4f, 1.0f, curve: Curves.fastOutSlowIn); - - Widget home = new Scaffold( - key: this._scaffoldKey, - backgroundColor: isDark ? HomeUtils._kUIWidgetsBlue : theme.primaryColor, - body: new SafeArea( - bottom: false, - child: new WillPopScope( - onWillPop: () => { - if (this._category != null) { - this.setState(() => this._category = null); - return Promise.Resolved(false); - } - - return Promise.Resolved(true); - }, - child: new Backdrop( - backTitle: new Text("Options"), - backLayer: this.widget.optionsPage, - frontAction: new AnimatedSwitcher( - duration: HomeUtils._kFrontLayerSwitchDuration, - switchOutCurve: switchOutCurve, - switchInCurve: switchInCurve, - child: this._category == null - ? (Widget) new _UIWidgetsLogo(isDark: this.widget.options?.theme == GalleryTheme.kDarkGalleryTheme) - : new IconButton( - icon: new BackButtonIcon(), - tooltip: "Back", - onPressed: () => this.setState(() => this._category = null) - ) - ), - frontTitle: new AnimatedSwitcher( - duration: HomeUtils._kFrontLayerSwitchDuration, - child: this._category == null - ? new Text("UIWidgets gallery") - : new Text(this._category.name) - ), - frontHeading: this.widget.testMode ? null : new Container(height: 24.0f), - frontLayer: new AnimatedSwitcher( - duration: HomeUtils._kFrontLayerSwitchDuration, - switchOutCurve: switchOutCurve, - switchInCurve: switchInCurve, - layoutBuilder: centerHome ? _centerHomeLayout : _topHomeLayout, - child: this._category != null - ? (Widget) new _DemosPage(this._category) - : new _CategoriesPage( - categories: DemoUtils.kAllGalleryDemoCategories, - onCategoryTap: (GalleryDemoCategory category) => { - this.setState(() => this._category = category); - } - ) - ) - ) - ) - ) - ); - - D.assert(() => { - GalleryHome.showPreviewBanner = false; - return true; - }); - - if (GalleryHome.showPreviewBanner) { - home = new Stack( - fit: StackFit.expand, - children: new List { - home, - new FadeTransition( - opacity: new CurvedAnimation(parent: this._controller, curve: Curves.easeInOut), - child: new Banner( - message: "PREVIEW", - location: BannerLocation.topEnd - ) - ) - } - ); - } - - home = new AnnotatedRegion( - child: home, - value: SystemUiOverlayStyle.light - ); - - return home; - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/home.cs.meta b/Samples/UIWidgetsGallery/gallery/home.cs.meta deleted file mode 100644 index 69687799..00000000 --- a/Samples/UIWidgetsGallery/gallery/home.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b6b1570fca0b749e688be67e7bb61a5c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/gallery/icons.cs b/Samples/UIWidgetsGallery/gallery/icons.cs deleted file mode 100644 index 071ae77d..00000000 --- a/Samples/UIWidgetsGallery/gallery/icons.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Unity.UIWidgets.widgets; - -namespace UIWidgetsGallery.gallery { - public static class GalleryIcons { - public static readonly IconData tooltip = new IconData(0xe900, fontFamily: "GalleryIcons"); - public static readonly IconData text_fields_alt = new IconData(0xe901, fontFamily: "GalleryIcons"); - public static readonly IconData tabs = new IconData(0xe902, fontFamily: "GalleryIcons"); - public static readonly IconData switches = new IconData(0xe903, fontFamily: "GalleryIcons"); - public static readonly IconData sliders = new IconData(0xe904, fontFamily: "GalleryIcons"); - public static readonly IconData shrine = new IconData(0xe905, fontFamily: "GalleryIcons"); - public static readonly IconData sentiment_very_satisfied = new IconData(0xe906, fontFamily: "GalleryIcons"); - public static readonly IconData refresh = new IconData(0xe907, fontFamily: "GalleryIcons"); - public static readonly IconData progress_activity = new IconData(0xe908, fontFamily: "GalleryIcons"); - public static readonly IconData phone_iphone = new IconData(0xe909, fontFamily: "GalleryIcons"); - public static readonly IconData page_control = new IconData(0xe90a, fontFamily: "GalleryIcons"); - public static readonly IconData more_vert = new IconData(0xe90b, fontFamily: "GalleryIcons"); - public static readonly IconData menu = new IconData(0xe90c, fontFamily: "GalleryIcons"); - public static readonly IconData list_alt = new IconData(0xe90d, fontFamily: "GalleryIcons"); - public static readonly IconData grid_on = new IconData(0xe90e, fontFamily: "GalleryIcons"); - public static readonly IconData expand_all = new IconData(0xe90f, fontFamily: "GalleryIcons"); - public static readonly IconData @event = new IconData(0xe910, fontFamily: "GalleryIcons"); - public static readonly IconData drive_video = new IconData(0xe911, fontFamily: "GalleryIcons"); - public static readonly IconData dialogs = new IconData(0xe912, fontFamily: "GalleryIcons"); - public static readonly IconData data_table = new IconData(0xe913, fontFamily: "GalleryIcons"); - public static readonly IconData custom_typography = new IconData(0xe914, fontFamily: "GalleryIcons"); - public static readonly IconData colors = new IconData(0xe915, fontFamily: "GalleryIcons"); - public static readonly IconData chips = new IconData(0xe916, fontFamily: "GalleryIcons"); - public static readonly IconData check_box = new IconData(0xe917, fontFamily: "GalleryIcons"); - public static readonly IconData cards = new IconData(0xe918, fontFamily: "GalleryIcons"); - public static readonly IconData buttons = new IconData(0xe919, fontFamily: "GalleryIcons"); - public static readonly IconData bottom_sheets = new IconData(0xe91a, fontFamily: "GalleryIcons"); - public static readonly IconData bottom_navigation = new IconData(0xe91b, fontFamily: "GalleryIcons"); - public static readonly IconData animation = new IconData(0xe91c, fontFamily: "GalleryIcons"); - public static readonly IconData account_box = new IconData(0xe91d, fontFamily: "GalleryIcons"); - public static readonly IconData snackbar = new IconData(0xe91e, fontFamily: "GalleryIcons"); - public static readonly IconData category_mdc = new IconData(0xe91f, fontFamily: "GalleryIcons"); - public static readonly IconData cupertino_progress = new IconData(0xe920, fontFamily: "GalleryIcons"); - public static readonly IconData cupertino_pull_to_refresh = new IconData(0xe921, fontFamily: "GalleryIcons"); - public static readonly IconData cupertino_switch = new IconData(0xe922, fontFamily: "GalleryIcons"); - public static readonly IconData generic_buttons = new IconData(0xe923, fontFamily: "GalleryIcons"); - public static readonly IconData backdrop = new IconData(0xe924, fontFamily: "GalleryIcons"); - public static readonly IconData bottom_app_bar = new IconData(0xe925, fontFamily: "GalleryIcons"); - public static readonly IconData bottom_sheet_persistent = new IconData(0xe926, fontFamily: "GalleryIcons"); - public static readonly IconData lists_leave_behind = new IconData(0xe927, fontFamily: "GalleryIcons"); - } -} diff --git a/Samples/UIWidgetsGallery/gallery/icons.cs.meta b/Samples/UIWidgetsGallery/gallery/icons.cs.meta deleted file mode 100644 index 6fea0324..00000000 --- a/Samples/UIWidgetsGallery/gallery/icons.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7b7592e2675d347bb9036ed6cb4fabe0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/gallery/options.cs b/Samples/UIWidgetsGallery/gallery/options.cs deleted file mode 100644 index a3fe3e31..00000000 --- a/Samples/UIWidgetsGallery/gallery/options.cs +++ /dev/null @@ -1,475 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgetsGallery.gallery { - public class GalleryOptions : IEquatable { - public GalleryOptions( - GalleryTheme theme = null, - GalleryTextScaleValue textScaleFactor = null, - float timeDilation = 1.0f, - RuntimePlatform? platform = null, - bool showOffscreenLayersCheckerboard = false, - bool showRasterCacheImagesCheckerboard = false, - bool showPerformanceOverlay = false - ) { - D.assert(theme != null); - D.assert(textScaleFactor != null); - - this.theme = theme; - this.textScaleFactor = textScaleFactor; - this.timeDilation = timeDilation; - this.platform = platform ?? Application.platform; - this.showOffscreenLayersCheckerboard = showOffscreenLayersCheckerboard; - this.showRasterCacheImagesCheckerboard = showRasterCacheImagesCheckerboard; - this.showPerformanceOverlay = showPerformanceOverlay; - } - - public readonly GalleryTheme theme; - public readonly GalleryTextScaleValue textScaleFactor; - public readonly float timeDilation; - public readonly RuntimePlatform platform; - public readonly bool showPerformanceOverlay; - public readonly bool showRasterCacheImagesCheckerboard; - public readonly bool showOffscreenLayersCheckerboard; - - public GalleryOptions copyWith( - GalleryTheme theme = null, - GalleryTextScaleValue textScaleFactor = null, - float? timeDilation = null, - RuntimePlatform? platform = null, - bool? showPerformanceOverlay = null, - bool? showRasterCacheImagesCheckerboard = null, - bool? showOffscreenLayersCheckerboard = null - ) { - return new GalleryOptions( - theme: theme ?? this.theme, - textScaleFactor: textScaleFactor ?? this.textScaleFactor, - timeDilation: timeDilation ?? this.timeDilation, - platform: platform ?? this.platform, - showPerformanceOverlay: showPerformanceOverlay ?? this.showPerformanceOverlay, - showOffscreenLayersCheckerboard: - showOffscreenLayersCheckerboard ?? this.showOffscreenLayersCheckerboard, - showRasterCacheImagesCheckerboard: showRasterCacheImagesCheckerboard ?? - this.showRasterCacheImagesCheckerboard - ); - } - - public bool Equals(GalleryOptions other) { - if (ReferenceEquals(null, other)) { - return false; - } - if (ReferenceEquals(this, other)) { - return true; - } - return Equals(this.theme, other.theme) && Equals(this.textScaleFactor, other.textScaleFactor) && - this.timeDilation.Equals(other.timeDilation) && this.platform == other.platform && - this.showPerformanceOverlay == other.showPerformanceOverlay && - this.showRasterCacheImagesCheckerboard == other.showRasterCacheImagesCheckerboard && - this.showOffscreenLayersCheckerboard == other.showOffscreenLayersCheckerboard; - } - - public override bool Equals(object obj) { - if (ReferenceEquals(null, obj)) { - return false; - } - if (ReferenceEquals(this, obj)) { - return true; - } - if (obj.GetType() != this.GetType()) { - return false; - } - return this.Equals((GalleryOptions) obj); - } - - public override int GetHashCode() { - unchecked { - var hashCode = (this.theme != null ? this.theme.GetHashCode() : 0); - hashCode = (hashCode * 397) ^ (this.textScaleFactor != null ? this.textScaleFactor.GetHashCode() : 0); - hashCode = (hashCode * 397) ^ this.timeDilation.GetHashCode(); - hashCode = (hashCode * 397) ^ (int) this.platform; - hashCode = (hashCode * 397) ^ this.showPerformanceOverlay.GetHashCode(); - hashCode = (hashCode * 397) ^ this.showRasterCacheImagesCheckerboard.GetHashCode(); - hashCode = (hashCode * 397) ^ this.showOffscreenLayersCheckerboard.GetHashCode(); - return hashCode; - } - } - - public static bool operator ==(GalleryOptions left, GalleryOptions right) { - return Equals(left, right); - } - - public static bool operator !=(GalleryOptions left, GalleryOptions right) { - return !Equals(left, right); - } - - public override string ToString() { - return $"{this.GetType()}({this.theme})"; - } - } - - class _OptionsItem : StatelessWidget { - const float _kItemHeight = 48.0f; - static readonly EdgeInsets _kItemPadding = EdgeInsets.only(left: 56.0f); - - public _OptionsItem(Key key = null, Widget child = null) : base(key: key) { - this.child = child; - } - - public readonly Widget child; - - public override Widget build(BuildContext context) { - float textScaleFactor = MediaQuery.textScaleFactorOf(context); - - return new Container( - constraints: new BoxConstraints(minHeight: _kItemHeight * textScaleFactor), - padding: _kItemPadding, - alignment: Alignment.centerLeft, - child: new DefaultTextStyle( - style: DefaultTextStyle.of(context).style, - maxLines: 2, - overflow: TextOverflow.fade, - child: new IconTheme( - data: Theme.of(context).primaryIconTheme, - child: this.child - ) - ) - ); - } - } - - class _BooleanItem : StatelessWidget { - public _BooleanItem(string title, bool value, ValueChanged onChanged, Key switchKey = null) { - this.title = title; - this.value = value; - this.onChanged = onChanged; - this.switchKey = switchKey; - } - - public readonly string title; - public readonly bool value; - public readonly ValueChanged onChanged; - public readonly Key switchKey; - - public override Widget build(BuildContext context) { - bool isDark = Theme.of(context).brightness == Brightness.dark; - return new _OptionsItem( - child: new Row( - children: new List { - new Expanded(child: new Text(this.title)), - new Switch( - key: this.switchKey, - value: this.value, - onChanged: this.onChanged, - activeColor: new Color(0xFF39CEFD), - activeTrackColor: isDark ? Colors.white30 : Colors.black26 - ) - } - ) - ); - } - } - - class _ActionItem : StatelessWidget { - public _ActionItem(string text, VoidCallback onTap) { - this.text = text; - this.onTap = onTap; - } - - public readonly string text; - public readonly VoidCallback onTap; - - public override Widget build(BuildContext context) { - return new _OptionsItem( - child: new _FlatButton( - onPressed: this.onTap, - child: new Text(this.text) - ) - ); - } - } - - class _FlatButton : StatelessWidget { - public _FlatButton(Key key = null, VoidCallback onPressed = null, Widget child = null) : base(key: key) { - this.onPressed = onPressed; - this.child = child; - } - - public readonly VoidCallback onPressed; - public readonly Widget child; - - public override Widget build(BuildContext context) { - return new FlatButton( - padding: EdgeInsets.zero, - onPressed: this.onPressed, - child: new DefaultTextStyle( - style: Theme.of(context).primaryTextTheme.subhead, - child: this.child - ) - ); - } - } - - class _Heading : StatelessWidget { - public _Heading(string text) { - this.text = text; - } - - public readonly string text; - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - return new _OptionsItem( - child: new DefaultTextStyle( - style: theme.textTheme.body1.copyWith( - fontFamily: "GoogleSans", - color: theme.accentColor - ), - child: new Text(this.text) - ) - ); - } - } - - class _ThemeItem : StatelessWidget { - public _ThemeItem(GalleryOptions options, ValueChanged onOptionsChanged) { - this.options = options; - this.onOptionsChanged = onOptionsChanged; - } - - public readonly GalleryOptions options; - public readonly ValueChanged onOptionsChanged; - - public override Widget build(BuildContext context) { - return new _BooleanItem( - "Dark Theme", - this.options.theme == GalleryTheme.kDarkGalleryTheme, - (bool? value) => { - this.onOptionsChanged( - this.options.copyWith( - theme: value == true ? GalleryTheme.kDarkGalleryTheme : GalleryTheme.kLightGalleryTheme - ) - ); - }, - switchKey: Key.key("dark_theme") - ); - } - } - - class _TextScaleFactorItem : StatelessWidget { - public _TextScaleFactorItem(GalleryOptions options, ValueChanged onOptionsChanged) { - this.options = options; - this.onOptionsChanged = onOptionsChanged; - } - - public readonly GalleryOptions options; - public readonly ValueChanged onOptionsChanged; - - public override Widget build(BuildContext context) { - return new _OptionsItem( - child: new Row( - children: new List { - new Expanded( - child: new Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: new List { - new Text("Text size"), - new Text( - this.options.textScaleFactor.label, - style: Theme.of(context).primaryTextTheme.body1 - ), - } - ) - ), - new PopupMenuButton( - padding: EdgeInsets.only(right: 16.0f), - icon: new Icon(Icons.arrow_drop_down), - itemBuilder: _ => { - return GalleryTextScaleValue.kAllGalleryTextScaleValues.Select(scaleValue => - (PopupMenuEntry) new PopupMenuItem( - value: scaleValue, - child: new Text(scaleValue.label) - )).ToList(); - }, - onSelected: scaleValue => { - this.onOptionsChanged( - this.options.copyWith(textScaleFactor: scaleValue) - ); - } - ), - } - ) - ); - } - } - - - class _TimeDilationItem : StatelessWidget { - public _TimeDilationItem(GalleryOptions options, ValueChanged onOptionsChanged) { - this.options = options; - this.onOptionsChanged = onOptionsChanged; - } - - public readonly GalleryOptions options; - public readonly ValueChanged onOptionsChanged; - - public override Widget build(BuildContext context) { - return new _BooleanItem( - "Slow motion", - this.options.timeDilation != 1.0f, - (bool? value) => { - this.onOptionsChanged( - this.options.copyWith( - timeDilation: value == true ? 20.0f : 1.0f - ) - ); - }, - switchKey: Key.key("slow_motion") - ); - } - } - - class _PlatformItem : StatelessWidget { - public _PlatformItem(GalleryOptions options, ValueChanged onOptionsChanged) { - this.options = options; - this.onOptionsChanged = onOptionsChanged; - } - - public readonly GalleryOptions options; - public readonly ValueChanged onOptionsChanged; - - string _platformLabel(RuntimePlatform platform) { - return platform.ToString(); - } - - public override Widget build(BuildContext context) { - return new _OptionsItem( - child: new Row( - children: new List { - new Expanded( - child: new Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: new List { - new Text("Platform mechanics"), - new Text( - this._platformLabel(this.options.platform), - style: Theme.of(context).primaryTextTheme.body1 - ), - } - ) - ), - new PopupMenuButton( - padding: EdgeInsets.only(right: 16.0f), - icon: new Icon(Icons.arrow_drop_down), - itemBuilder: _ => { - var values = Enum.GetValues(typeof(RuntimePlatform)).Cast(); - return values.Select(platform => - (PopupMenuEntry) new PopupMenuItem( - value: platform, - child: new Text(this._platformLabel(platform)) - )).ToList(); - }, - onSelected: platform => { - this.onOptionsChanged( - this.options.copyWith(platform: platform) - ); - } - ), - } - ) - ); - } - } - - public class GalleryOptionsPage : StatelessWidget { - public GalleryOptionsPage( - Key key = null, - GalleryOptions options = null, - ValueChanged onOptionsChanged = null, - VoidCallback onSendFeedback = null - ) : base(key: key) { - this.options = options; - this.onOptionsChanged = onOptionsChanged; - this.onSendFeedback = onSendFeedback; - } - - public readonly GalleryOptions options; - public readonly ValueChanged onOptionsChanged; - public readonly VoidCallback onSendFeedback; - - List _enabledDiagnosticItems() { - List items = new List { - new Divider(), - new _Heading("Diagnostics"), - }; - - items.Add( - new _BooleanItem( - "Highlight offscreen layers", - this.options.showOffscreenLayersCheckerboard, - (bool? value) => { - this.onOptionsChanged(this.options.copyWith(showOffscreenLayersCheckerboard: value)); - } - ) - ); - items.Add( - new _BooleanItem( - "Highlight raster cache images", - this.options.showRasterCacheImagesCheckerboard, - (bool? value) => { - this.onOptionsChanged(this.options.copyWith(showRasterCacheImagesCheckerboard: value)); - } - ) - ); - items.Add( - new _BooleanItem( - "Show performance overlay", - this.options.showPerformanceOverlay, - (bool? value) => { this.onOptionsChanged(this.options.copyWith(showPerformanceOverlay: value)); } - ) - ); - - return items; - } - - public override Widget build(BuildContext context) { - ThemeData theme = Theme.of(context); - - var children = new List { - new _Heading("Display"), - new _ThemeItem(this.options, this.onOptionsChanged), - new _TextScaleFactorItem(this.options, this.onOptionsChanged), - new _TimeDilationItem(this.options, this.onOptionsChanged), - new Divider(), - new _Heading("Platform mechanics"), - new _PlatformItem(this.options, this.onOptionsChanged) - }; - - children.AddRange(this._enabledDiagnosticItems()); - children.AddRange(new List { - new Divider(), - new _Heading("UIWidgets Gallery"), - new _ActionItem("About UIWidgets Gallery", () => { - /* showGalleryAboutDialog(context); */ - }), - new _ActionItem("Send feedback", this.onSendFeedback), - }); - - return new DefaultTextStyle( - style: theme.primaryTextTheme.subhead, - child: new ListView( - padding: EdgeInsets.only(bottom: 124.0f), - children: children - )); - } - } -} diff --git a/Samples/UIWidgetsGallery/gallery/options.cs.meta b/Samples/UIWidgetsGallery/gallery/options.cs.meta deleted file mode 100644 index 288eab58..00000000 --- a/Samples/UIWidgetsGallery/gallery/options.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9eb439aba25814f79979120cd5966537 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/gallery/scales.cs b/Samples/UIWidgetsGallery/gallery/scales.cs deleted file mode 100644 index 5bb4c906..00000000 --- a/Samples/UIWidgetsGallery/gallery/scales.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace UIWidgetsGallery.gallery { - public class GalleryTextScaleValue : IEquatable { - public GalleryTextScaleValue(float? scale = null, string label = null) { - this.scale = scale; - this.label = label; - } - - public readonly float? scale; - public readonly string label; - - public bool Equals(GalleryTextScaleValue other) { - if (ReferenceEquals(null, other)) { - return false; - } - if (ReferenceEquals(this, other)) { - return true; - } - return this.scale.Equals(other.scale) && string.Equals(this.label, other.label); - } - - public override bool Equals(object obj) { - if (ReferenceEquals(null, obj)) { - return false; - } - if (ReferenceEquals(this, obj)) { - return true; - } - if (obj.GetType() != this.GetType()) { - return false; - } - return this.Equals((GalleryTextScaleValue) obj); - } - - public override int GetHashCode() { - unchecked { - return (this.scale.GetHashCode() * 397) ^ (this.label != null ? this.label.GetHashCode() : 0); - } - } - - public static bool operator ==(GalleryTextScaleValue left, GalleryTextScaleValue right) { - return Equals(left, right); - } - - public static bool operator !=(GalleryTextScaleValue left, GalleryTextScaleValue right) { - return !Equals(left, right); - } - - - public override string ToString() { - return $"{this.GetType()}({this.label})"; - } - - public static readonly List kAllGalleryTextScaleValues = new List { - new GalleryTextScaleValue(null, "System Default"), - new GalleryTextScaleValue(0.8f, "Small"), - new GalleryTextScaleValue(1.0f, "Normal"), - new GalleryTextScaleValue(1.3f, "Large"), - new GalleryTextScaleValue(2.0f, "Huge"), - }; - } -} diff --git a/Samples/UIWidgetsGallery/gallery/scales.cs.meta b/Samples/UIWidgetsGallery/gallery/scales.cs.meta deleted file mode 100644 index 4ec613de..00000000 --- a/Samples/UIWidgetsGallery/gallery/scales.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9bf87177b342d4feba4778ca5a9b20a5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/gallery/syntax_highlighter.cs b/Samples/UIWidgetsGallery/gallery/syntax_highlighter.cs deleted file mode 100644 index 0447b0bb..00000000 --- a/Samples/UIWidgetsGallery/gallery/syntax_highlighter.cs +++ /dev/null @@ -1,427 +0,0 @@ -using System.Collections.Generic; -using System.Text.RegularExpressions; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgetsGallery.gallery { - public class SyntaxHighlighterStyle { - public SyntaxHighlighterStyle( - TextStyle baseStyle = null, - TextStyle numberStyle = null, - TextStyle commentStyle = null, - TextStyle keywordStyle = null, - TextStyle stringStyle = null, - TextStyle punctuationStyle = null, - TextStyle classStyle = null, - TextStyle constantStyle = null - ) { - this.baseStyle = baseStyle; - this.numberStyle = numberStyle; - this.commentStyle = commentStyle; - this.keywordStyle = keywordStyle; - this.stringStyle = stringStyle; - this.punctuationStyle = punctuationStyle; - this.classStyle = classStyle; - this.constantStyle = constantStyle; - } - - public static SyntaxHighlighterStyle lightThemeStyle() { - return new SyntaxHighlighterStyle( - baseStyle: new TextStyle(color: new Color(0xFF000000)), - numberStyle: new TextStyle(color: new Color(0xFF1565C0)), - commentStyle: new TextStyle(color: new Color(0xFF9E9E9E)), - keywordStyle: new TextStyle(color: new Color(0xFF9C27B0)), - stringStyle: new TextStyle(color: new Color(0xFF43A047)), - punctuationStyle: new TextStyle(color: new Color(0xFF000000)), - classStyle: new TextStyle(color: new Color(0xFF512DA8)), - constantStyle: new TextStyle(color: new Color(0xFF795548)) - ); - } - - public static SyntaxHighlighterStyle darkThemeStyle() { - return new SyntaxHighlighterStyle( - baseStyle: new TextStyle(color: new Color(0xFFFFFFFF)), - numberStyle: new TextStyle(color: new Color(0xFF1565C0)), - commentStyle: new TextStyle(color: new Color(0xFF9E9E9E)), - keywordStyle: new TextStyle(color: new Color(0xFF80CBC4)), - stringStyle: new TextStyle(color: new Color(0xFF009688)), - punctuationStyle: new TextStyle(color: new Color(0xFFFFFFFF)), - classStyle: new TextStyle(color: new Color(0xFF009688)), - constantStyle: new TextStyle(color: new Color(0xFF795548)) - ); - } - - public readonly TextStyle baseStyle; - public readonly TextStyle numberStyle; - public readonly TextStyle commentStyle; - public readonly TextStyle keywordStyle; - public readonly TextStyle stringStyle; - public readonly TextStyle punctuationStyle; - public readonly TextStyle classStyle; - public readonly TextStyle constantStyle; - } - - public abstract class SyntaxHighlighter { - // ignore: one_member_abstracts - public abstract TextSpan format(string src); - } - - public class DartSyntaxHighlighter : SyntaxHighlighter { - public DartSyntaxHighlighter(SyntaxHighlighterStyle _style = null) { - this._spans = new List<_HighlightSpan> { }; - this._style = _style ?? SyntaxHighlighterStyle.darkThemeStyle(); - } - - SyntaxHighlighterStyle _style; - - readonly List _keywords = new List { - "abstract", "as", "assert", "async", "await", "break", "case", "catch", - "class", "const", "continue", "default", "deferred", "do", "dynamic", "else", - "enum", "export", "external", "extends", "factory", "false", "final", - "finally", "for", "get", "if", "implements", "import", "in", "is", "library", - "new", "null", "operator", "part", "rethrow", "return", "set", "static", - "super", "switch", "sync", "this", "throw", "true", "try", "typedef", "var", - "void", "while", "with", "yield" - }; - - readonly List _builtInTypes = new List { - "int", "double", "num", "bool" - }; - - string _src; - StringScanner _scanner; - - List<_HighlightSpan> _spans; - - public override TextSpan format(string src) { - this._src = src; - this._scanner = new StringScanner(this._src); - - if (this._generateSpans()) { - List formattedText = new List { }; - int currentPosition = 0; - - foreach (_HighlightSpan span in this._spans) { - if (currentPosition != span.start) { - formattedText.Add(new TextSpan(text: this._src.Substring(currentPosition, span.start))); - } - - formattedText.Add(new TextSpan(style: span.textStyle(this._style), - text: span.textForSpan(this._src))); - - currentPosition = span.end; - } - - if (currentPosition != this._src.Length) { - formattedText.Add(new TextSpan(text: this._src.Substring(currentPosition, this._src.Length))); - } - - return new TextSpan(style: this._style.baseStyle, children: formattedText); - } - else { - return new TextSpan(style: this._style.baseStyle, text: src); - } - } - - bool _generateSpans() { - int lastLoopPosition = this._scanner.position; - - while (!this._scanner.isDone) { - this._scanner.scan(new Regex(@"\s+")); - - // Block comments - if (this._scanner.scan(new Regex(@"/\*(.|\n)*\*/"))) { - this._spans.Add(new _HighlightSpan( - _HighlightType.comment, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // Line comments - if (this._scanner.scan(new Regex(@"//"))) { - int startComment = this._scanner.lastMatch.Index; - - bool eof = false; - int endComment; - if (this._scanner.scan(new Regex(@".*\n"))) { - endComment = this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - 1; - } - else { - eof = true; - endComment = this._src.Length; - } - - this._spans.Add(new _HighlightSpan( - _HighlightType.comment, - startComment, - endComment - )); - - if (eof) { - break; - } - - continue; - } - - // Raw r"String" - if (this._scanner.scan(new Regex(@"r"".*"""))) { - this._spans.Add(new _HighlightSpan( - _HighlightType._string, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // Raw r"String" - if (this._scanner.scan(new Regex(@"r"".*"""))) { - this._spans.Add(new _HighlightSpan( - _HighlightType._string, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // Multiline """String""" - if (this._scanner.scan(new Regex(@"""""""(?:[^""\\]|\\(.|\n))*"""""""))) { - this._spans.Add(new _HighlightSpan( - _HighlightType._string, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // Multiline '''String''' - if (this._scanner.scan(new Regex(@"'''(?:[^""\\]|\\(.|\n))*'''"))) { - this._spans.Add(new _HighlightSpan( - _HighlightType._string, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // "String" - if (this._scanner.scan(new Regex(@"""(?:[^""\\]|\\.)*"""))) { - this._spans.Add(new _HighlightSpan( - _HighlightType._string, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // "String" - if (this._scanner.scan(new Regex(@"""(?:[^""\\]|\\.)*"""))) { - this._spans.Add(new _HighlightSpan( - _HighlightType._string, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // Double - if (this._scanner.scan(new Regex(@"\d+\.\d+"))) { - this._spans.Add(new _HighlightSpan( - _HighlightType.number, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // Integer - if (this._scanner.scan(new Regex(@"\d+"))) { - this._spans.Add(new _HighlightSpan( - _HighlightType.number, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length) - ); - continue; - } - - // Punctuation - if (this._scanner.scan(new Regex(@"[\[\]{}().!=<>&\|\?\+\-\*/%\^~;:,]"))) { - this._spans.Add(new _HighlightSpan( - _HighlightType.punctuation, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // Meta data - if (this._scanner.scan(new Regex(@"@\w+"))) { - this._spans.Add(new _HighlightSpan( - _HighlightType.keyword, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - continue; - } - - // Words - if (this._scanner.scan(new Regex(@"\w+"))) { - _HighlightType? type = null; - - string word = this._scanner.lastMatch.Groups[0].Value; - if (word.StartsWith("_")) { - word = word.Substring(1); - } - - if (this._keywords.Contains(word)) { - type = _HighlightType.keyword; - } - else if (this._builtInTypes.Contains(word)) { - type = _HighlightType.keyword; - } - else if (this._firstLetterIsUpperCase(word)) { - type = _HighlightType.klass; - } - else if (word.Length >= 2 && word.StartsWith("k") && - this._firstLetterIsUpperCase(word.Substring(1))) { - type = _HighlightType.constant; - } - - if (type != null) { - this._spans.Add(new _HighlightSpan( - type, - this._scanner.lastMatch.Index, - this._scanner.lastMatch.Index + this._scanner.lastMatch.Length - )); - } - } - - // Check if this loop did anything - if (lastLoopPosition == this._scanner.position) { - // Failed to parse this file, abort gracefully - return false; - } - - lastLoopPosition = this._scanner.position; - } - - this._simplify(); - return true; - } - - void _simplify() { - for (int i = this._spans.Count - 2; i >= 0; i -= 1) { - if (this._spans[i].type == this._spans[i + 1].type && this._spans[i].end == this._spans[i + 1].start) { - this._spans[i] = new _HighlightSpan( - this._spans[i].type, - this._spans[i].start, - this._spans[i + 1].end - ); - this._spans.RemoveAt(i + 1); - } - } - } - - bool _firstLetterIsUpperCase(string str) { - if (str.isNotEmpty()) { - string first = str.Substring(0, 1); - return first == first.ToUpper(); - } - - return false; - } - } - - enum _HighlightType { - number, - comment, - keyword, - _string, - punctuation, - klass, - constant - } - - class _HighlightSpan { - public _HighlightSpan(_HighlightType? type, int start, int end) { - this.type = type; - this.start = start; - this.end = end; - } - - public readonly _HighlightType? type; - public readonly int start; - public readonly int end; - - public string textForSpan(string src) { - return src.Substring(this.start, this.end); - } - - public TextStyle textStyle(SyntaxHighlighterStyle style) { - if (this.type == _HighlightType.number) { - return style.numberStyle; - } - else if (this.type == _HighlightType.comment) { - return style.commentStyle; - } - else if (this.type == _HighlightType.keyword) { - return style.keywordStyle; - } - else if (this.type == _HighlightType._string) { - return style.stringStyle; - } - else if (this.type == _HighlightType.punctuation) { - return style.punctuationStyle; - } - else if (this.type == _HighlightType.klass) { - return style.classStyle; - } - else if (this.type == _HighlightType.constant) { - return style.constantStyle; - } - else { - return style.baseStyle; - } - } - } - - public class StringScanner { - string _source { get; set; } - public int position { get; set; } - - public Match lastMatch { - get { return this._lastMatch; } - } - Match _lastMatch; - - public StringScanner(string source) { - this._source = source; - this.position = 0; - } - - public override string ToString() { - return this.isDone ? "" : this._source.Substring(this.position); - } - - public bool isDone { - get { return this.position >= this._source.Length; } - } - - public bool scan(Regex regex) { - var match = regex.Match(this.ToString()); - - if (match.Success) { - this.position += match.Length; - this._lastMatch = match; - return true; - } - else { - return false; - } - } - } -} \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/syntax_highlighter.cs.meta b/Samples/UIWidgetsGallery/gallery/syntax_highlighter.cs.meta deleted file mode 100644 index c5541b25..00000000 --- a/Samples/UIWidgetsGallery/gallery/syntax_highlighter.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 205d7446dc624493a18d7118ffeec352 -timeCreated: 1552469338 \ No newline at end of file diff --git a/Samples/UIWidgetsGallery/gallery/themes.cs b/Samples/UIWidgetsGallery/gallery/themes.cs deleted file mode 100644 index bddf0dbd..00000000 --- a/Samples/UIWidgetsGallery/gallery/themes.cs +++ /dev/null @@ -1,83 +0,0 @@ -using Unity.UIWidgets.material; -using Unity.UIWidgets.ui; - -namespace UIWidgetsGallery.gallery { - public class GalleryTheme { - GalleryTheme(string name, ThemeData data) { - this.name = name; - this.data = data; - } - - public readonly string name; - public readonly ThemeData data; - - public static readonly GalleryTheme kDarkGalleryTheme = new GalleryTheme("Dark", _buildDarkTheme()); - - public static readonly GalleryTheme kLightGalleryTheme = new GalleryTheme("Light", _buildLightTheme()); - - static TextTheme _buildTextTheme(TextTheme baseTheme) { - return baseTheme.copyWith( - title: baseTheme.title.copyWith( - fontFamily: "GoogleSans" - ) - ); - } - - static ThemeData _buildDarkTheme() { - Color primaryColor = new Color(0xFF0175c2); - Color secondaryColor = new Color(0xFF13B9FD); - ThemeData baseTheme = ThemeData.dark(); - ColorScheme colorScheme = ColorScheme.dark().copyWith( - primary: primaryColor, - secondary: secondaryColor - ); - return baseTheme.copyWith( - primaryColor: primaryColor, - buttonColor: primaryColor, - indicatorColor: Colors.white, - accentColor: secondaryColor, - canvasColor: new Color(0xFF202124), - scaffoldBackgroundColor: new Color(0xFF202124), - backgroundColor: new Color(0xFF202124), - errorColor: new Color(0xFFB00020), - buttonTheme: new ButtonThemeData( - colorScheme: colorScheme, - textTheme: ButtonTextTheme.primary - ), - textTheme: _buildTextTheme(baseTheme.textTheme), - primaryTextTheme: _buildTextTheme(baseTheme.primaryTextTheme), - accentTextTheme: _buildTextTheme(baseTheme.accentTextTheme) - ); - } - - static ThemeData _buildLightTheme() { - Color primaryColor = new Color(0xFF0175c2); - Color secondaryColor = new Color(0xFF13B9FD); - ColorScheme colorScheme = ColorScheme.light().copyWith( - primary: primaryColor, - secondary: secondaryColor - ); - ThemeData baseTheme = ThemeData.light(); - return baseTheme.copyWith( - colorScheme: colorScheme, - primaryColor: primaryColor, - buttonColor: primaryColor, - indicatorColor: Colors.white, - splashColor: Colors.white24, - splashFactory: InkRipple.splashFactory, - accentColor: secondaryColor, - canvasColor: Colors.white, - scaffoldBackgroundColor: Colors.white, - backgroundColor: Colors.white, - errorColor: new Color(0xFFB00020), - buttonTheme: new ButtonThemeData( - colorScheme: colorScheme, - textTheme: ButtonTextTheme.primary - ), - textTheme: _buildTextTheme(baseTheme.textTheme), - primaryTextTheme: _buildTextTheme(baseTheme.primaryTextTheme), - accentTextTheme: _buildTextTheme(baseTheme.accentTextTheme) - ); - } - } -} diff --git a/Samples/UIWidgetsGallery/gallery/themes.cs.meta b/Samples/UIWidgetsGallery/gallery/themes.cs.meta deleted file mode 100644 index fcaf4306..00000000 --- a/Samples/UIWidgetsGallery/gallery/themes.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7510605485ec34459a4ac9b456cf583f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsGallery/gallery/updater.cs b/Samples/UIWidgetsGallery/gallery/updater.cs deleted file mode 100644 index 82000011..00000000 --- a/Samples/UIWidgetsGallery/gallery/updater.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System; -using System.Collections.Generic; -using RSG; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.widgets; -using UnityEngine; -using DialogUtils = Unity.UIWidgets.material.DialogUtils; - -namespace UIWidgetsGallery.gallery { - public class Updater : StatefulWidget { - public Updater(UpdateUrlFetcher updateUrlFetcher = null, Widget child = null, Key key = null) - : base(key: key) { - D.assert(updateUrlFetcher != null); - this.updateUrlFetcher = updateUrlFetcher; - this.child = child; - } - - public readonly UpdateUrlFetcher updateUrlFetcher; - public readonly Widget child; - - public override State createState() { - return new UpdaterState(); - } - } - - public class UpdaterState : State { - public override void initState() { - base.initState(); - this._checkForUpdates(); - } - - static DateTime? _lastUpdateCheck; - - IPromise _checkForUpdates() { - // Only prompt once a day - if (_lastUpdateCheck != null && - (DateTime.Now - _lastUpdateCheck.Value).TotalDays < 1) { - return Promise.Resolved(); // We already checked for updates recently - } - - _lastUpdateCheck = DateTime.Now; - - return this.widget.updateUrlFetcher().Then(updateUrl => { - if (updateUrl != null) { - return DialogUtils.showDialog(context: this.context, builder: this._buildDialog).Then( - result => { - if (result != null) { - bool wantsUpdate = (bool) result; - if (wantsUpdate) { - Application.OpenURL(updateUrl); - } - } - }); - } - - return Promise.Resolved(); - }); - } - - Widget _buildDialog(BuildContext context) { - ThemeData theme = Theme.of(context); - TextStyle dialogTextStyle = theme.textTheme.subhead.copyWith(color: theme.textTheme.caption.color); - return new AlertDialog( - title: new Text("Update UIWidgets Gallery?"), - content: new Text("A newer version is available.", style: dialogTextStyle), - actions: new List() { - new FlatButton( - child: new Text("NO THANKS"), - onPressed: () => { Navigator.pop(context, false); } - ), - new FlatButton( - child: new Text("UPDATE"), - onPressed: () => { Navigator.pop(context, true); } - ) - } - ); - } - - public override Widget build(BuildContext context) { - return this.widget.child; - } - } -} diff --git a/Samples/UIWidgetsGallery/gallery/updater.cs.meta b/Samples/UIWidgetsGallery/gallery/updater.cs.meta deleted file mode 100644 index 84f68051..00000000 --- a/Samples/UIWidgetsGallery/gallery/updater.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c69f6e2d93b02484fab6f2e2408c7d88 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsSample.asmdef b/Samples/UIWidgetsSample.asmdef deleted file mode 100644 index 08533610..00000000 --- a/Samples/UIWidgetsSample.asmdef +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "UIWidgetsSample", - "references": [ - "Unity.UIWidgets" - ], - "optionalUnityReferences": [], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [] -} \ No newline at end of file diff --git a/Samples/UIWidgetsSample.asmdef.meta b/Samples/UIWidgetsSample.asmdef.meta deleted file mode 100644 index 99ce63ba..00000000 --- a/Samples/UIWidgetsSample.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: a7ca98f66c76743a39c34ff4c984fa65 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsTheatre.meta b/Samples/UIWidgetsTheatre.meta deleted file mode 100644 index 3b35111e..00000000 --- a/Samples/UIWidgetsTheatre.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b54f053c2c5d34691b30237abaf17e14 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.asmdef b/Samples/UIWidgetsTheatre/UIWidgetsTheatre.asmdef deleted file mode 100644 index f6e63745..00000000 --- a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.asmdef +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "UIWidgetsTheatre", - "references": [ - "Unity.UIWidgets", - "UIWidgetsGallery", - "UIWidgetsSample"], - "includePlatforms": [], - "excludePlatforms": [] -} diff --git a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.asmdef.meta b/Samples/UIWidgetsTheatre/UIWidgetsTheatre.asmdef.meta deleted file mode 100644 index b93e1bad..00000000 --- a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ce5674c12e2e24bf6bb350c64744f227 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.cs b/Samples/UIWidgetsTheatre/UIWidgetsTheatre.cs deleted file mode 100644 index c2cceb7e..00000000 --- a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System.Collections.Generic; -using UIWidgetsGallery.gallery; -using UIWidgetsSample; -using Unity.UIWidgets.material; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -#if UNITY_EDITOR -using UnityEditor; -using UnityEditor.UI; -#endif - -using UnityEngine; - - -namespace UIWidgetsTheatre { - - class TheatreEntry { - public string entryName; - public Widget entryWidget; - } - - class UIWidgetsTheatre : UIWidgetsSamplePanel { - static readonly List entries = new List { - new TheatreEntry{entryName = "UIWidget Gallery", entryWidget = new GalleryApp()}, - new TheatreEntry{entryName = "Material App Bar", entryWidget = new MaterialAppBarWidget()}, - new TheatreEntry{entryName = "Material Tab Bar" , entryWidget = new MaterialTabBarWidget()}, - new TheatreEntry{entryName = "Asset Store", entryWidget = new AsScreenSample.AsScreenWidget()}, - new TheatreEntry{entryName = "ToDo App", entryWidget = new ToDoAppSample.ToDoListApp()} - }; - - public static string[] entryKeys { - get { - List ret = new List(); - foreach (var entry in entries) { - ret.Add(entry.entryName); - } - - return ret.ToArray(); - } - } - - [SerializeField] public int testCaseId; - - protected override Widget createWidget() { - return new MaterialApp( - showPerformanceOverlay: false, - home: entries[this.testCaseId].entryWidget); - } - - protected override void OnEnable() { - FontManager.instance.addFont(Resources.Load("MaterialIcons-Regular"), "Material Icons"); - FontManager.instance.addFont(Resources.Load("GalleryIcons"), "GalleryIcons"); - base.OnEnable(); - } - } - - - #if UNITY_EDITOR - [CustomEditor(typeof(UIWidgetsTheatre), true)] - [CanEditMultipleObjects] - public class UIWidgetTheatreEditor : RawImageEditor { - int _choiceIndex; - - public override void OnInspectorGUI() { - var materialSample = this.target as UIWidgetsTheatre; - this._choiceIndex = EditorGUILayout.Popup("Test Case", materialSample.testCaseId, UIWidgetsTheatre.entryKeys); - materialSample.testCaseId = this._choiceIndex; - EditorUtility.SetDirty(this.target); - } - } - #endif -} \ No newline at end of file diff --git a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.cs.meta b/Samples/UIWidgetsTheatre/UIWidgetsTheatre.cs.meta deleted file mode 100644 index 4fbf3a28..00000000 --- a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3ace0d3c7f55946559f1497f0fbf6025 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.unity b/Samples/UIWidgetsTheatre/UIWidgetsTheatre.unity deleted file mode 100644 index 921d788d..00000000 --- a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.unity +++ /dev/null @@ -1,504 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657898, g: 0.49641287, b: 0.5748173, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &314914769 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 314914773} - - component: {fileID: 314914772} - - component: {fileID: 314914771} - - component: {fileID: 314914770} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &314914770 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 314914769} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &314914771 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 314914769} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &314914772 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 314914769} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &314914773 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 314914769} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1344738457} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!1 &1040325770 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1040325773} - - component: {fileID: 1040325772} - - component: {fileID: 1040325771} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1040325771 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1040325770} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &1040325772 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1040325770} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &1040325773 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1040325770} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1125362302 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1125362304} - - component: {fileID: 1125362303} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &1125362303 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1125362302} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &1125362304 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1125362302} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &1344738456 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1344738457} - - component: {fileID: 1344738459} - - component: {fileID: 1344738458} - m_Layer: 5 - m_Name: TheatrePanel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1344738457 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1344738456} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 314914773} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1344738458 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1344738456} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3ace0d3c7f55946559f1497f0fbf6025, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - devicePixelRatioOverride: 0 - testCaseId: 2 ---- !u!222 &1344738459 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1344738456} - m_CullTransparentMesh: 0 ---- !u!1 &1814350050 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1814350053} - - component: {fileID: 1814350052} - - component: {fileID: 1814350051} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1814350051 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1814350050} - m_Enabled: 1 ---- !u!20 &1814350052 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1814350050} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1814350053 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1814350050} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.unity.meta b/Samples/UIWidgetsTheatre/UIWidgetsTheatre.unity.meta deleted file mode 100644 index 0ff4a0bb..00000000 --- a/Samples/UIWidgetsTheatre/UIWidgetsTheatre.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 98c373eb224884f5f9606a9eefe03de7 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/scripts/cmds.meta b/Scripts/cmds.meta similarity index 100% rename from scripts/cmds.meta rename to Scripts/cmds.meta diff --git a/scripts/cmds/codegen.js b/Scripts/cmds/codegen.js similarity index 100% rename from scripts/cmds/codegen.js rename to Scripts/cmds/codegen.js diff --git a/scripts/cmds/codegen.js.meta b/Scripts/cmds/codegen.js.meta similarity index 100% rename from scripts/cmds/codegen.js.meta rename to Scripts/cmds/codegen.js.meta diff --git a/scripts/gitignore b/Scripts/gitignore similarity index 100% rename from scripts/gitignore rename to Scripts/gitignore diff --git a/scripts/gitignore.meta b/Scripts/gitignore.meta similarity index 100% rename from scripts/gitignore.meta rename to Scripts/gitignore.meta diff --git a/scripts/package.json b/Scripts/package.json similarity index 100% rename from scripts/package.json rename to Scripts/package.json diff --git a/scripts/package.json.meta b/Scripts/package.json.meta similarity index 100% rename from scripts/package.json.meta rename to Scripts/package.json.meta diff --git a/scripts/uiwidgets-cli.js b/Scripts/uiwidgets-cli.js similarity index 100% rename from scripts/uiwidgets-cli.js rename to Scripts/uiwidgets-cli.js diff --git a/scripts/uiwidgets-cli.js.meta b/Scripts/uiwidgets-cli.js.meta similarity index 100% rename from scripts/uiwidgets-cli.js.meta rename to Scripts/uiwidgets-cli.js.meta diff --git a/Tests.meta b/Tests.meta deleted file mode 100644 index d2def0b0..00000000 --- a/Tests.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 07e384a2d3b6c4ad6b1c07140c686a33 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/.tests.json b/Tests/.tests.json deleted file mode 100644 index 327abb29..00000000 --- a/Tests/.tests.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "createSeparatePackage": false -} diff --git a/Tests/Editor.meta b/Tests/Editor.meta deleted file mode 100644 index 3d3ec2c6..00000000 --- a/Tests/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 643ff5e7d7c4d44b7b520132441fd8c1 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/CanvasAndLayers.cs b/Tests/Editor/CanvasAndLayers.cs deleted file mode 100644 index a763b000..00000000 --- a/Tests/Editor/CanvasAndLayers.cs +++ /dev/null @@ -1,617 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using RSG; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.ui; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using Gradient = Unity.UIWidgets.ui.Gradient; -using Material = UnityEngine.Material; -using Rect = UnityEngine.Rect; - -namespace UIWidgets.Tests { - public class CanvasAndLayers : EditorWindow { - static Material _guiTextureMat; - - internal static Material _getGUITextureMat() { - if (_guiTextureMat) { - return _guiTextureMat; - } - - var guiTextureShader = Shader.Find("UIWidgets/GUITexture"); - if (guiTextureShader == null) { - throw new Exception("UIWidgets/GUITexture not found"); - } - - _guiTextureMat = new Material(guiTextureShader); - _guiTextureMat.hideFlags = HideFlags.HideAndDontSave; - return _guiTextureMat; - } - - readonly Action[] _options; - - readonly string[] _optionStrings; - - int _selected; - - ImageStream _stream; - - RenderTexture _renderTexture; - - WindowAdapter _windowAdapter; - - MeshPool _meshPool; - - static Texture2D texture6; - - CanvasAndLayers() { - this._options = new Action[] { - this.drawPloygon4, - this.drawRect, - this.drawRectShadow, - this.drawImageRect, - this.drawPicture, - this.clipRect, - this.clipRRect, - this.saveLayer, - this.drawLine, - this.drawParagraph, - }; - this._optionStrings = this._options.Select(x => x.Method.Name).ToArray(); - this._selected = 0; - - this.titleContent = new GUIContent("CanvasAndLayers"); - } - - void OnGUI() { - this._selected = EditorGUILayout.Popup("test case", this._selected, this._optionStrings); - if (this._selected == 3) { - using (this._windowAdapter.getScope()) { - if (GUI.Button(new Rect(20, 50, 100, 20), "Image 1")) { - this.LoadImage( - "http://a.hiphotos.baidu.com/image/h%3D300/sign=10b374237f0e0cf3bff748fb3a47f23d/adaf2edda3cc7cd90df1ede83401213fb80e9127.jpg"); - } - - if (GUI.Button(new Rect(20, 150, 100, 20), "Image 2")) { - this.LoadImage( - "http://a.hiphotos.baidu.com/image/pic/item/cf1b9d16fdfaaf519b4aa960875494eef11f7a47.jpg"); - } - - if (GUI.Button(new Rect(20, 250, 100, 20), "Image 3")) { - this.LoadImage( - "http://a.hiphotos.baidu.com/image/pic/item/2f738bd4b31c8701c1e721dd2a7f9e2f0708ffbc.jpg"); - } - } - } - - this._windowAdapter.OnGUI(); - - if (Event.current.type == EventType.Repaint || Event.current.type == EventType.MouseDown) { - this.createRenderTexture(); - - Window.instance = this._windowAdapter; - - if (Event.current.type == EventType.MouseDown) { - Promise.Delayed(new TimeSpan(0, 0, 5)).Then(() => { Debug.Log("Promise.Delayed: 5s"); }); - } - - this._options[this._selected](); - - Window.instance = null; - - Graphics.DrawTexture(new Rect(0, 0, this.position.width, this.position.height), - this._renderTexture, _getGUITextureMat()); - } - } - - void Update() { - this._windowAdapter.Update(); - } - - void OnEnable() { - this._windowAdapter = new EditorWindowAdapter(this); - this._windowAdapter.OnEnable(); - this._meshPool = new MeshPool(); - - texture6 = Resources.Load("6"); - } - - void OnDisable() { - this._meshPool.Dispose(); - this._meshPool = null; - } - - void createRenderTexture() { - var width = (int) (this.position.width * EditorGUIUtility.pixelsPerPoint); - var height = (int) (this.position.height * EditorGUIUtility.pixelsPerPoint); - if (this._renderTexture == null || - this._renderTexture.width != width || - this._renderTexture.height != height) { - var desc = new RenderTextureDescriptor( - width, - height, - RenderTextureFormat.Default, 24) { - useMipMap = false, - autoGenerateMips = false, - }; - - this._renderTexture = RenderTexture.GetTemporary(desc); - } - } - - void LoadImage(string url) { - Dictionary headers = new Dictionary(); - NetworkImage networkImage = new NetworkImage(url, headers: headers); - ImageConfiguration imageConfig = new ImageConfiguration(); - this._stream = networkImage.resolve(imageConfig); - } - - void drawPloygon4() { - var canvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - - var paint = new Paint { - color = new Color(0xFFFF0000), - shader = Gradient.linear(new Offset(80, 80), new Offset(180, 180), new List() { - Colors.red, Colors.black, Colors.green - }, null, TileMode.clamp) - }; - - var path = new Path(); - path.moveTo(10, 150); - path.lineTo(10, 160); - path.lineTo(140, 120); - path.lineTo(110, 180); - path.winding(PathWinding.clockwise); - path.close(); - path.addRect(Unity.UIWidgets.ui.Rect.fromLTWH(0, 100, 100, 100)); - path.addRect(Unity.UIWidgets.ui.Rect.fromLTWH(200, 0, 100, 100)); - path.addRRect(RRect.fromRectAndRadius(Unity.UIWidgets.ui.Rect.fromLTWH(150, 100, 30, 30), 10)); - path.addOval(Unity.UIWidgets.ui.Rect.fromLTWH(150, 50, 100, 100)); - path.winding(PathWinding.clockwise); - - if (Event.current.type == EventType.MouseDown) { - var pos = new Offset( - Event.current.mousePosition.x, - Event.current.mousePosition.y - ); - - Debug.Log(pos + ": " + path.contains(pos)); - } - - canvas.drawPath(path, paint); - - canvas.rotate(Mathf.PI * 15 / 180); - - canvas.translate(100, 100); - - paint.shader = Gradient.radial(new Offset(80, 80), 100, new List() { - Colors.red, Colors.black, Colors.green - }, null, TileMode.clamp); - canvas.drawPath(path, paint); - - - canvas.translate(100, 100); - paint.shader = Gradient.sweep(new Offset(120, 100), new List() { - Colors.red, Colors.black, Colors.green, Colors.red, - }, null, TileMode.clamp, 10 * Mathf.PI / 180, 135 * Mathf.PI / 180); - canvas.drawPath(path, paint); - - - canvas.translate(100, 100); - //paint.maskFilter = MaskFilter.blur(BlurStyle.normal, 5); - paint.shader = new ImageShader(new Image(texture6, true), TileMode.mirror); - canvas.drawPath(path, paint); - - canvas.flush(); - } - - void drawLine() { - var canvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - - var paint = new Paint { - color = new Color(0xFFFF0000), - style = PaintingStyle.stroke, - strokeWidth = 10, - shader = Gradient.linear(new Offset(10, 10), new Offset(180, 180), new List() { - Colors.red, Colors.green, Colors.yellow - }, null, TileMode.clamp) - }; - - canvas.drawLine( - new Offset(10, 20), - new Offset(50, 20), - paint); - - canvas.drawLine( - new Offset(10, 10), - new Offset(100, 100), - paint); - - canvas.drawLine( - new Offset(10, 10), - new Offset(10, 50), - paint); - - canvas.drawLine( - new Offset(40, 10), - new Offset(90, 10), - paint); - - - canvas.drawArc(Unity.UIWidgets.ui.Rect.fromLTWH(200, 200, 100, 100), Mathf.PI / 4, - -Mathf.PI / 2 + Mathf.PI * 4 - 1, true, paint); - - paint.maskFilter = MaskFilter.blur(BlurStyle.normal, 1); - paint.strokeWidth = 4; - - canvas.drawLine( - new Offset(40, 20), - new Offset(120, 190), - paint); - - canvas.scale(3); - TextBlobBuilder builder = new TextBlobBuilder(); - string text = "This is a text blob"; - builder.setBounds(new Rect(-10, -20, 200, 50)); - builder.setPositionXs(new float[] { - 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, - 110, 120, 130, 140, 150, 160, 170, 180, 190 - }); - builder.allocRunPos(new TextStyle(), text, 0, text.Length); - - var textBlob = builder.make(); - canvas.drawTextBlob(textBlob, new Offset(100, 100), new Paint { - color = Colors.black, - maskFilter = MaskFilter.blur(BlurStyle.normal, 5), - }); - canvas.drawTextBlob(textBlob, new Offset(100, 100), paint); - - canvas.drawLine( - new Offset(10, 30), - new Offset(10, 60), - new Paint() {style = PaintingStyle.stroke, strokeWidth = 0.1f}); - - canvas.drawLine( - new Offset(20, 30), - new Offset(20, 60), - new Paint() {style = PaintingStyle.stroke, strokeWidth = 0.333f}); - - canvas.flush(); - } - - void drawRect() { - var canvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - - var paint = new Paint { - color = new Color(0xFFFF0000), - }; - - canvas.rotate(15 * Mathf.PI / 180); - var rect = Unity.UIWidgets.ui.Rect.fromLTWH(10, 10, 100, 100); - var rrect = RRect.fromRectAndCorners(rect, 0, 4, 8, 16); - - canvas.drawRRect(rrect, paint); - - paint = new Paint { - color = new Color(0xFF00FF00), - }; - - rect = Unity.UIWidgets.ui.Rect.fromLTWH(10, 150, 100, 100); - rrect = RRect.fromRectAndCorners(rect, 0, 4, 8, 16); - canvas.drawRRect(rrect, paint); - - rect = Unity.UIWidgets.ui.Rect.fromLTWH(150, 150, 100, 100); - rrect = RRect.fromRectAndCorners(rect, 10, 12, 14, 16); - var rect1 = Unity.UIWidgets.ui.Rect.fromLTWH(160, 160, 80, 80); - var rrect1 = RRect.fromRectAndCorners(rect1, 5, 6, 7, 8); - - canvas.drawDRRect(rrect, rrect1, paint); - - canvas.flush(); - } - - void drawRectShadow() { - var canvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - - var paint = new Paint { - color = new Color(0xFF00FF00), - maskFilter = MaskFilter.blur(BlurStyle.normal, 3), - }; - - canvas.clipRect(Unity.UIWidgets.ui.Rect.fromLTWH(25, 25, 300, 300)); - - canvas.rotate(-Mathf.PI / 8.0f); - - canvas.drawRect( - Unity.UIWidgets.ui.Rect.fromLTWH(10, 10, 100, 100), - paint); - - paint = new Paint { - color = new Color(0xFFFFFF00), - maskFilter = MaskFilter.blur(BlurStyle.normal, 5), - style = PaintingStyle.stroke, - strokeWidth = 55, - shader = Gradient.linear(new Offset(10, 10), new Offset(180, 180), new List() { - Colors.red, Colors.green, Colors.yellow - }, null, TileMode.clamp) - }; - - canvas.drawRect( - Unity.UIWidgets.ui.Rect.fromLTWH(10, 150, 200, 200), - paint); - - canvas.drawImage(new Image(texture6, true), - new Offset(50, 150), - paint); - - canvas.flush(); - } - - void drawPicture() { - var pictureRecorder = new PictureRecorder(); - var canvas = new RecorderCanvas(pictureRecorder); - - var paint = new Paint { - color = new Color(0xFFFF0000), - }; - - var path = new Path(); - path.moveTo(10, 10); - path.lineTo(10, 110); - path.lineTo(90, 110); - path.lineTo(100, 10); - path.close(); - canvas.drawPath(path, paint); - - paint = new Paint { - color = new Color(0xFFFFFF00), - }; - - var rect = Unity.UIWidgets.ui.Rect.fromLTWH(10, 150, 100, 100); - var rrect = RRect.fromRectAndCorners(rect, 0, 4, 8, 16); - var rect1 = Unity.UIWidgets.ui.Rect.fromLTWH(18, 152, 88, 92); - var rrect1 = RRect.fromRectAndCorners(rect1, 0, 4, 8, 16); - - canvas.drawDRRect(rrect, rrect1, paint); - - canvas.rotate(-45 * Mathf.PI / 180, new Offset(150, 150)); - - paint = new Paint { - color = new Color(0xFF00FFFF), - maskFilter = MaskFilter.blur(BlurStyle.normal, 3), - }; - canvas.drawRect( - Unity.UIWidgets.ui.Rect.fromLTWH(150, 150, 110, 120), - paint); - - var picture = pictureRecorder.endRecording(); - Debug.Log("picture.paintBounds: " + picture.paintBounds); - - var editorCanvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - editorCanvas.drawPicture(picture); - - editorCanvas.rotate(-15 * Mathf.PI / 180); - editorCanvas.translate(100, 100); - editorCanvas.drawPicture(picture); - editorCanvas.flush(); - } - - void drawParagraph() { - var pb = new ParagraphBuilder(new ParagraphStyle{}); - pb.addText("Hello drawParagraph"); - var paragraph = pb.build(); - paragraph.layout(new ParagraphConstraints(width:300)); - var canvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - canvas.drawParagraph(paragraph, new Offset(10f, 100f)); - canvas.flush(); - Unity.UIWidgets.ui.Paragraph.release(ref paragraph); - } - - void drawImageRect() { - if (this._stream == null || this._stream.completer == null || this._stream.completer.currentImage == null) { - return; - } - - var canvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - - var paint = new Paint { - // color = new Color(0x7FFF0000), - shader = Gradient.linear(new Offset(100, 100), new Offset(280, 280), new List() { - Colors.red, Colors.black, Colors.green - }, null, TileMode.clamp) - }; - - canvas.drawImageRect(this._stream.completer.currentImage.image, - Unity.UIWidgets.ui.Rect.fromLTWH(100, 50, 250, 250), - paint - ); - canvas.flush(); - } - - void clipRect() { - var pictureRecorder = new PictureRecorder(); - var canvas = new RecorderCanvas(pictureRecorder); - - var paint = new Paint { - color = new Color(0xFFFF0000), - }; - - var path = new Path(); - path.moveTo(10, 10); - path.lineTo(10, 110); - path.lineTo(90, 110); - path.lineTo(110, 10); - path.close(); - - canvas.drawPath(path, paint); - - paint = new Paint { - color = new Color(0xFFFFFF00), - }; - - var rect = Unity.UIWidgets.ui.Rect.fromLTWH(10, 150, 100, 100); - var rrect = RRect.fromRectAndCorners(rect, 0, 4, 8, 16); - var rect1 = Unity.UIWidgets.ui.Rect.fromLTWH(18, 152, 88, 92); - var rrect1 = RRect.fromRectAndCorners(rect1, 0, 4, 8, 16); - canvas.drawDRRect(rrect, rrect1, paint); - - canvas.rotate(-45 * Mathf.PI / 180.0f, new Offset(150, 150)); - -// paint = new Paint { -// color = new Color(0xFF00FFFF), -// blurSigma = 3, -// }; -// canvas.drawRectShadow( -// Rect.fromLTWH(150, 150, 110, 120), -// paint); - - var picture = pictureRecorder.endRecording(); - Debug.Log("picture.paintBounds: " + picture.paintBounds); - - var editorCanvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - editorCanvas.rotate(-5 * Mathf.PI / 180); - editorCanvas.clipRect(Unity.UIWidgets.ui.Rect.fromLTWH(25, 15, 250, 250)); - editorCanvas.rotate(5 * Mathf.PI / 180); - - editorCanvas.drawPicture(picture); - - editorCanvas.rotate(-15 * Mathf.PI / 180); - editorCanvas.translate(100, 100); - - editorCanvas.drawPicture(picture); - - editorCanvas.flush(); - } - - void clipRRect() { - var pictureRecorder = new PictureRecorder(); - var canvas = new RecorderCanvas(pictureRecorder); - - var paint = new Paint { - color = new Color(0xFFFF0000), - }; - - var path = new Path(); - path.moveTo(10, 10); - path.lineTo(10, 110); - path.lineTo(90, 110); - path.lineTo(110, 10); - path.close(); - - canvas.drawPath(path, paint); - - paint = new Paint { - color = new Color(0xFFFFFF00), - }; - - var rect = Unity.UIWidgets.ui.Rect.fromLTWH(10, 150, 100, 100); - var rrect = RRect.fromRectAndCorners(rect, 0, 4, 8, 16); - var rect1 = Unity.UIWidgets.ui.Rect.fromLTWH(18, 152, 88, 92); - var rrect1 = RRect.fromRectAndCorners(rect1, 0, 4, 8, 16); - canvas.drawDRRect(rrect, rrect1, paint); - - canvas.rotate(-45 * Mathf.PI / 180.0f, new Offset(150, 150)); - -// paint = new Paint { -// color = new Color(0xFF00FFFF), -// blurSigma = 3, -// }; -// canvas.drawRectShadow( -// Rect.fromLTWH(150, 150, 110, 120), -// paint); - - var picture = pictureRecorder.endRecording(); - Debug.Log("picture.paintBounds: " + picture.paintBounds); - - var editorCanvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - editorCanvas.rotate(-5 * Mathf.PI / 180); - editorCanvas.clipRRect(RRect.fromRectAndRadius(Unity.UIWidgets.ui.Rect.fromLTWH(25, 15, 250, 250), 50)); - editorCanvas.rotate(5 * Mathf.PI / 180); - - editorCanvas.drawPicture(picture); - - editorCanvas.rotate(-15 * Mathf.PI / 180); - editorCanvas.translate(100, 100); - - editorCanvas.drawPicture(picture); - - editorCanvas.flush(); - } - - void saveLayer() { - var pictureRecorder = new PictureRecorder(); - var canvas = new RecorderCanvas(pictureRecorder); - var paint1 = new Paint { - color = new Color(0xFFFFFFFF), - }; - - var path1 = new Path(); - path1.moveTo(0, 0); - path1.lineTo(0, 90); - path1.lineTo(90, 90); - path1.lineTo(90, 0); - path1.close(); - canvas.drawPath(path1, paint1); - - - var paint = new Paint { - color = new Color(0xFFFF0000), - }; - - var path = new Path(); - path.moveTo(20, 20); - path.lineTo(20, 70); - path.lineTo(70, 70); - path.lineTo(70, 20); - path.close(); - - canvas.drawPath(path, paint); - - var paint2 = new Paint { - color = new Color(0xFFFFFF00), - }; - - var path2 = new Path(); - path2.moveTo(30, 30); - path2.lineTo(30, 60); - path2.lineTo(60, 60); - path2.lineTo(60, 30); - path2.close(); - - canvas.drawPath(path2, paint2); - - var picture = pictureRecorder.endRecording(); - - var editorCanvas = new CommandBufferCanvas(this._renderTexture, Window.instance.devicePixelRatio, - this._meshPool); - - editorCanvas.saveLayer( - picture.paintBounds, new Paint { - color = new Color(0xFFFFFFFF), - }); - editorCanvas.drawPicture(picture); - editorCanvas.restore(); - - editorCanvas.saveLayer(Unity.UIWidgets.ui.Rect.fromLTWH(45, 45, 90, 90), new Paint { - color = new Color(0xFFFFFFFF), - backdrop = ImageFilter.blur(3f, 3f) - }); - editorCanvas.restore(); - - editorCanvas.flush(); - } - } -} \ No newline at end of file diff --git a/Tests/Editor/CanvasAndLayers.cs.meta b/Tests/Editor/CanvasAndLayers.cs.meta deleted file mode 100644 index a6990b65..00000000 --- a/Tests/Editor/CanvasAndLayers.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 670ec19e3d68342e985db21ef957463c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/EditableTextWiget.cs b/Tests/Editor/EditableTextWiget.cs deleted file mode 100644 index fd911390..00000000 --- a/Tests/Editor/EditableTextWiget.cs +++ /dev/null @@ -1,80 +0,0 @@ -using Unity.UIWidgets.animation; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.widgets; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgets.Tests { - public class EditableTextWiget : EditorWindow { - WindowAdapter windowAdapter; - - Widget root; - - Widget image; - - [MenuItem("UIWidgetsTests/EditableTextWidget")] - public static void renderWidgets() { - GetWindow(typeof(EditableTextWiget)); - } - - string txt = "Hello\n" + - "This is useful when you need to check if a certain key has been pressed - possibly with modifiers. The syntax for the key string\n" + - "asfsd \n" + - "P1:\n" + - "This is useful when you need to check if a certain key has been pressed - possibly with modifiers.The syntax for the key st\n" + - "\n" + - "\n" + - "\n" + - "\n" + - " sfsafd"; - - EditableTextWiget() { - } - - void OnGUI() { - this.windowAdapter.OnGUI(); - } - - void Update() { - this.windowAdapter.Update(); - } - - void OnEnable() { - this.windowAdapter = new EditorWindowAdapter(this); - this.windowAdapter.OnEnable(); - this.root = new Container( - width: 200, - height: 200, - margin: EdgeInsets.all(30.0f), - padding: EdgeInsets.all(15.0f), - color: Color.fromARGB(255, 244, 190, 85), - child: new EditableText( - maxLines: 100, - selectionControls: MaterialUtils.materialTextSelectionControls, - controller: new TextEditingController(this.txt), - focusNode: new FocusNode(), - style: new TextStyle(), - selectionColor: Color.fromARGB(255, 255, 0, 0), - cursorColor: Color.fromARGB(255, 0, 0, 0) - ) - ); - this.windowAdapter.attachRootWidget(() => new WidgetsApp(home: this.root, - pageRouteBuilder: (RouteSettings settings, WidgetBuilder builder) => - new PageRouteBuilder( - settings: settings, - pageBuilder: (BuildContext context, Animation animation, - Animation secondaryAnimation) => builder(context) - ))); - this.titleContent = new GUIContent("EditableTextWidget"); - } - - void OnDisable() { - this.windowAdapter.OnDisable(); - this.windowAdapter = null; - } - } -} \ No newline at end of file diff --git a/Tests/Editor/EditableTextWiget.cs.meta b/Tests/Editor/EditableTextWiget.cs.meta deleted file mode 100644 index db8cdbea..00000000 --- a/Tests/Editor/EditableTextWiget.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 1438fd697c854ab783eb666a6a62115c -timeCreated: 1537236780 \ No newline at end of file diff --git a/Tests/Editor/EditorExampleTest.cs b/Tests/Editor/EditorExampleTest.cs deleted file mode 100644 index e38879e1..00000000 --- a/Tests/Editor/EditorExampleTest.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Collections; -using NUnit.Framework; -using UnityEngine.TestTools; - -class EditorExampleTest { - [Test] - public void EditorSampleTestSimplePasses() { - // Use the Assert class to test conditions. - } - - // A UnityTest behaves like a coroutine in PlayMode - // and allows you to yield null to skip a frame in EditMode - [UnityTest] - public IEnumerator EditorSampleTestWithEnumeratorPasses() { - // Use the Assert class to test conditions. - // yield to skip a frame - yield return null; - } -} \ No newline at end of file diff --git a/Tests/Editor/EditorExampleTest.cs.meta b/Tests/Editor/EditorExampleTest.cs.meta deleted file mode 100644 index 1704d91d..00000000 --- a/Tests/Editor/EditorExampleTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 324dcc98993604886878344a0ea94d18 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/Gestures.cs b/Tests/Editor/Gestures.cs deleted file mode 100644 index 56d05961..00000000 --- a/Tests/Editor/Gestures.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System; -using System.Linq; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgets.Tests { - public class Gestures : EditorWindow { - readonly Func[] _options; - - readonly string[] _optionStrings; - - int _selected; - - Gestures() { - this._options = new Func[] { - this.tap, - }; - this._optionStrings = this._options.Select(x => x.Method.Name).ToArray(); - this._selected = 0; - - this.titleContent = new GUIContent("Gestures"); - } - - WindowAdapter windowAdapter; - - [NonSerialized] bool hasInvoked = false; - - void OnGUI() { - var selected = EditorGUILayout.Popup("test case", this._selected, this._optionStrings); - if (selected != this._selected || !this.hasInvoked) { - this._selected = selected; - this.hasInvoked = true; - - var renderBox = this._options[this._selected](); - if (this.windowAdapter != null) { - this.windowAdapter.attachRootRenderBox(renderBox); - } - } - - this.windowAdapter.OnGUI(); - } - - void Update() { - this.windowAdapter.Update(); - } - - void OnEnable() { - this.windowAdapter = new EditorWindowAdapter(this); - this.windowAdapter.OnEnable(); - - this._tapRecognizer = new TapGestureRecognizer(); - this._tapRecognizer.onTap = () => { Debug.Log("tap"); }; - - this._panRecognizer = new PanGestureRecognizer(); - this._panRecognizer.onUpdate = (details) => { Debug.Log("onUpdate " + details); }; - - this._doubleTapGesture = new DoubleTapGestureRecognizer(); - this._doubleTapGesture.onDoubleTap = (detail) => { Debug.Log("onDoubleTap"); }; - } - - void OnDisable() { - this.windowAdapter.OnDisable(); - this.windowAdapter = null; - } - - TapGestureRecognizer _tapRecognizer; - - PanGestureRecognizer _panRecognizer; - - DoubleTapGestureRecognizer _doubleTapGesture; - - void _handlePointerDown(PointerDownEvent evt) { - this._tapRecognizer.addPointer(evt); - this._panRecognizer.addPointer(evt); - this._doubleTapGesture.addPointer(evt); - } - - RenderBox tap() { - return new RenderPointerListener( - onPointerDown: this._handlePointerDown, - behavior: HitTestBehavior.opaque, - child: new RenderConstrainedBox( - additionalConstraints: BoxConstraints.tight(Size.square(100)), - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFF00FF00) - ) - )) - ); - } - } -} \ No newline at end of file diff --git a/Tests/Editor/Gestures.cs.meta b/Tests/Editor/Gestures.cs.meta deleted file mode 100644 index cc4e9a0c..00000000 --- a/Tests/Editor/Gestures.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: b6e93a3e08aa4ed49ebe367645f04fd9 -timeCreated: 1536304600 \ No newline at end of file diff --git a/Tests/Editor/Menu.cs b/Tests/Editor/Menu.cs deleted file mode 100644 index cb45bbea..00000000 --- a/Tests/Editor/Menu.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEditor; - -namespace UIWidgets.Tests { - public static class Menu { - [MenuItem("UIWidgetsTests/CanvasAndLayers")] - public static void canvasAndLayers() { - EditorWindow.GetWindow(typeof(CanvasAndLayers)); - } - - [MenuItem("UIWidgetsTests/RenderBoxes")] - public static void renderBoxes() { - EditorWindow.GetWindow(typeof(RenderBoxes)); - } - - [MenuItem("UIWidgetsTests/RenderParagraph")] - public static void renderRenderParagraph() { - EditorWindow.GetWindow(typeof(Paragraph)); - } - - [MenuItem("UIWidgetsTests/Gestures")] - public static void gestures() { - EditorWindow.GetWindow(typeof(Gestures)); - } - - [MenuItem("UIWidgetsTests/RenderEditable")] - public static void renderEditable() { - EditorWindow.GetWindow(typeof(RenderEditable)); - } - - [MenuItem("UIWidgetsTests/Widgets")] - public static void renderWidgets() { - EditorWindow.GetWindow(typeof(Widgets)); - } - - //These samples are not available after Unity2019.1 - /* - [MenuItem("UIWidgetsTests/Show SceneViewTests")] - public static void showSceneView() { - SceneViewTests.show(); - } - - [MenuItem("UIWidgetsTests/Hide SceneViewTests")] - public static void hideSceneView() { - SceneViewTests.hide(); - }*/ - } -} \ No newline at end of file diff --git a/Tests/Editor/Menu.cs.meta b/Tests/Editor/Menu.cs.meta deleted file mode 100644 index 6dc65f6f..00000000 --- a/Tests/Editor/Menu.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a00837aa7e8a44daeb1df672601c872c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/MouseHover.cs b/Tests/Editor/MouseHover.cs deleted file mode 100644 index 975071f4..00000000 --- a/Tests/Editor/MouseHover.cs +++ /dev/null @@ -1,96 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgets.Tests { - public class MouseHoverWidget : StatefulWidget { - public MouseHoverWidget(Key key = null) : base(key) { - } - - public override State createState() { - return new _MouseHoverWidgetState(); - } - } - - class _MouseHoverWidgetState : State { - public static Widget createRow(bool canHover = true, bool nest = false) { - Widget result = new Container(width: 200, height: 60, color: Color.fromARGB(255, 255, 0, 255)); - if (canHover) { - result = new HoverTrackWidget(null, - result, "inner"); - } - - //WARNING: nested MouseTracker is not supported by the current implementation that ported from flutter - //refer to this issue https://github.com/flutter/flutter/issues/28407 and wait Google guys fixing it - /* - if (nest) { - result = new Container(child: result, padding: EdgeInsets.all(40), - color: Color.fromARGB(255, 255, 0, 0)); - result = new HoverTrackWidget(null, - result, "outer"); - } - */ - - return result; - } - - public override Widget build(BuildContext context) { - //1 131231 - return new Container( - alignment: Alignment.center, color: Color.fromARGB(255, 0, 255, 0), - child: new Column( - mainAxisAlignment: MainAxisAlignment.spaceAround, - children: new List { - createRow(), - createRow(false), - createRow(), - createRow(true, true), - })); - } - } - - public class HoverTrackWidget : StatefulWidget { - public readonly Widget child; - public readonly string name; - - public HoverTrackWidget(Key key, Widget child, string name) : base(key) { - this.child = child; - this.name = name; - } - - public override State createState() { - return new _HoverTrackWidgetState(); - } - } - - class _HoverTrackWidgetState : State { - bool hover; - - public override Widget build(BuildContext context) { - return new Listener(child: - new Container( - forgroundDecoration: this.hover - ? new BoxDecoration(color: Color.fromARGB(80, 255, 255, 255)) - : null, - child: this.widget.child - ), - onPointerEnter: (evt) => { - if (this.mounted) { - Debug.Log(this.widget.name + " pointer enter"); - this.setState(() => { this.hover = true; }); - } - }, - onPointerExit: (evt) => { - if (this.mounted) { - Debug.Log(this.widget.name + " pointer exit"); - this.setState(() => { this.hover = false; }); - } - } - ); - } - } -} \ No newline at end of file diff --git a/Tests/Editor/MouseHover.cs.meta b/Tests/Editor/MouseHover.cs.meta deleted file mode 100644 index e093b909..00000000 --- a/Tests/Editor/MouseHover.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: ec7305290445466da6da50593cdaa4b7 -timeCreated: 1542181137 \ No newline at end of file diff --git a/Tests/Editor/Paragraph.cs b/Tests/Editor/Paragraph.cs deleted file mode 100644 index f2b0d7d6..00000000 --- a/Tests/Editor/Paragraph.cs +++ /dev/null @@ -1,235 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using FontStyle = Unity.UIWidgets.ui.FontStyle; -using TextStyle = Unity.UIWidgets.painting.TextStyle; - -namespace UIWidgets.Tests { - public class Paragraph : EditorWindow { - readonly Func[] _options; - - readonly string[] _optionStrings; - - int _selected; - - Paragraph() { - this._options = new Func[] { - this.text, - this.textHeight, - this.textOverflow, - this.textAlign, - this.textDecoration, - }; - this._optionStrings = this._options.Select(x => x.Method.Name).ToArray(); - this._selected = 0; - - this.titleContent = new GUIContent("RenderParagraph"); - } - - WindowAdapter windowAdapter; - - [NonSerialized] bool hasInvoked = false; - - void OnGUI() { - var selected = EditorGUILayout.Popup("test case", this._selected, this._optionStrings); - if (selected != this._selected || !this.hasInvoked) { - this._selected = selected; - this.hasInvoked = true; - - var renderBox = this._options[this._selected](); - this.windowAdapter.attachRootRenderBox(renderBox); - } - - this.windowAdapter.OnGUI(); - } - - void Update() { - this.windowAdapter.Update(); - } - - void OnEnable() { - this.windowAdapter = new EditorWindowAdapter(this); - this.windowAdapter.OnEnable(); - } - - void OnDisable() { - this.windowAdapter.OnDisable(); - this.windowAdapter = null; - } - - RenderBox none() { - return null; - } - - RenderBox box(RenderParagraph p, int width = 200, int height = 600) { - return new RenderConstrainedOverflowBox( - minWidth: width, - maxWidth: width, - minHeight: height, - maxHeight: height, - alignment: Alignment.center, - child: p - ); - } - - RenderBox flexItemBox(RenderParagraph p, int width = 200, int height = 150) { - return new RenderConstrainedBox( - additionalConstraints: new BoxConstraints(minWidth: width, maxWidth: width, minHeight: height, - maxHeight: height), - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFFFFFFFF), - borderRadius: BorderRadius.all(3), - border: Border.all(Color.fromARGB(255, 255, 0, 0), 1) - ), - child: new RenderPadding(EdgeInsets.all(10), p - ) - )); - } - - RenderBox text() { - return this.box( - new RenderParagraph(new TextSpan("", children: - new List() { - new TextSpan("Real-time 3D revolutioni淡粉色的方式地方zes the animation pipeline ", null), - new TextSpan(style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0)), - text: "for Disney Television Animation's “Baymax Dreams"), - new TextSpan(" Unity Widgets"), - new TextSpan(" Text"), - new TextSpan("Real-time 3D revolutionizes the animation pipeline "), - new TextSpan(style: new TextStyle(color: Color.fromARGB(125, 255, 0, 0)), - text: "Transparent Red Text\n\n"), - new TextSpan(style: new TextStyle(fontWeight: FontWeight.w700), - text: "Bold Text Test Bold Textfs Test: FontWeight.w70\n\n"), - new TextSpan(style: new TextStyle(fontStyle: FontStyle.italic), - text: "This is FontStyle.italic Text This is FontStyle.italic Text\n\n"), - new TextSpan( - style: new TextStyle(fontStyle: FontStyle.italic, fontWeight: FontWeight.w700), - text: - "This is FontStyle.italic And 发撒放豆腐sad 发生的 Bold Text This is FontStyle.italic And Bold Text\n\n"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "FontSize 18: Get a named matrix value from the shader.\n\n"), - new TextSpan(style: new TextStyle(fontSize: 24), - text: "Emoji \ud83d\ude0a\ud83d\ude0b\ud83d\ude0d\ud83d\ude0e\ud83d\ude00"), - new TextSpan(style: new TextStyle(fontSize: 14), - text: "Emoji \ud83d\ude0a\ud83d\ude0b\ud83d\ude0d\ud83d\ude0e\ud83d\ude00 Emoji"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "Emoji \ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "\ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "\ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "\ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 18), - text: "\ud83d\ude01\ud83d\ude02\ud83d\ude03\ud83d\ude04\ud83d\ude05"), - new TextSpan(style: new TextStyle(fontSize: 24), - text: "Emoji \ud83d\ude06\ud83d\ude1C\ud83d\ude18\ud83d\ude2D\ud83d\ude0C\ud83d\ude1E\n\n"), - new TextSpan(style: new TextStyle(fontSize: 14), - text: "FontSize 14"), - }))); - } - - RenderBox textDecoration() { - return this.box( - new RenderParagraph(new TextSpan(style: new TextStyle(height: 1.2f), text: "", children: - new List() { - new TextSpan(style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0), - decoration: TextDecoration.underline), - text: "Real-time 3D revolution\n"), - new TextSpan(style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0), - decoration: TextDecoration.underline, decorationStyle: TextDecorationStyle.doubleLine), - text: "Double line Real-time 3D revolution\n"), - new TextSpan(style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0), - decoration: TextDecoration.underline, fontSize: 24), - text: "Real-time 3D revolution\n"), - new TextSpan(style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0), - decoration: TextDecoration.overline), - text: "Over line Real-time 3D revolution\n"), - new TextSpan(style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0), - decoration: TextDecoration.overline, decorationStyle: TextDecorationStyle.doubleLine), - text: "Over line Real-time 3D revolution\n"), - new TextSpan(style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0), - decoration: TextDecoration.lineThrough), - text: "Line through Real-time 3D revolution\n"), - new TextSpan(style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0), - decoration: TextDecoration.lineThrough, - decorationColor: Color.fromARGB(255, 0, 255, 0)), - text: "Color Line through Real-time 3D revolution\n"), - })), width: 400); - } - - RenderBox textAlign() { - var flexbox = new RenderFlex( - direction: Axis.vertical, - mainAxisAlignment: MainAxisAlignment.spaceAround, - crossAxisAlignment: CrossAxisAlignment.center); - var height = 120; - - flexbox.add(this.flexItemBox( - new RenderParagraph(new TextSpan(EditorGUIUtility.pixelsPerPoint.ToString() + - "Align To Left\nMaterials define how light reacts with the " + - "surface of a model, and are an essential ingredient in making " + - "believable visuals. When you’ve created a "), - textAlign: TextAlign.left), - height: height - )); - flexbox.add(this.flexItemBox( - new RenderParagraph(new TextSpan(EditorGUIUtility.pixelsPerPoint.ToString() + - "Align To Rgit\nMaterials define how light reacts with the " + - "surface of a model, and are an essential ingredient in making " + - "believable visuals. When you’ve created a "), - textAlign: TextAlign.right), - height: height - )); - flexbox.add(this.flexItemBox( - new RenderParagraph(new TextSpan(EditorGUIUtility.pixelsPerPoint.ToString() + - "Align To Center\nMaterials define how light reacts with the " + - "surface of a model, and are an essential ingredient in making " + - "believable visuals. When you’ve created a "), - textAlign: TextAlign.center), - height: height - )); - flexbox.add(this.flexItemBox( - new RenderParagraph(new TextSpan("Align To Justify\nMaterials define how light reacts with the " + - "surface of a model, and are an essential ingredient in making " + - "believable visuals. When you’ve created a "), - textAlign: TextAlign.justify), - height: height - )); - return flexbox; - } - - RenderBox textOverflow() { - return this.box( - new RenderParagraph(new TextSpan("", children: - new List() { - new TextSpan( - "Real-time 3D revolutionizes:\n the animation pipeline.\n\n\nrevolutionizesn\n\nReal-time 3D revolutionizes the animation pipeline ", - null), - }), maxLines: 3), 200, 80); - } - - RenderBox textHeight() { - var text = - "Hello UIWidgets. Real-time 3D revolutionize \nReal-time 3D revolutionize\nReal-time 3D revolutionize\n\n"; - return this.box( - new RenderParagraph(new TextSpan(text: "", children: - new List() { - new TextSpan(style: new TextStyle(height: 1), - text: "Height 1.0 Text:" + text), - new TextSpan(style: new TextStyle(height: 1.2f), - text: "Height 1.2 Text:" + text), - new TextSpan(style: new TextStyle(height: 1.5f), - text: "Height 1.5 Text:" + text), - })), width: 300, height: 300); - } - } -} \ No newline at end of file diff --git a/Tests/Editor/Paragraph.cs.meta b/Tests/Editor/Paragraph.cs.meta deleted file mode 100644 index 703ef8e8..00000000 --- a/Tests/Editor/Paragraph.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: f4121086094d45de9e29781269270102 -timeCreated: 1535424100 \ No newline at end of file diff --git a/Tests/Editor/RenderBoxes.cs b/Tests/Editor/RenderBoxes.cs deleted file mode 100644 index 8b92677b..00000000 --- a/Tests/Editor/RenderBoxes.cs +++ /dev/null @@ -1,153 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgets.Tests { - public class RenderBoxes : EditorWindow { - readonly Func[] _options; - - readonly string[] _optionStrings; - - int _selected; - - RenderBoxes() { - this._options = new Func[] { - this.decoratedBox, - this.decoratedShape, - this.flex, - }; - this._optionStrings = this._options.Select(x => x.Method.Name).ToArray(); - this._selected = 0; - - this.titleContent = new GUIContent("RenderBoxes"); - } - - WindowAdapter windowAdapter; - - [NonSerialized] bool hasInvoked = false; - - void OnGUI() { - var selected = EditorGUILayout.Popup("test case", this._selected, this._optionStrings); - if (selected != this._selected || !this.hasInvoked) { - this._selected = selected; - this.hasInvoked = true; - - var renderBox = this._options[this._selected](); - this.windowAdapter.attachRootRenderBox(renderBox); - } - - this.windowAdapter.OnGUI(); - } - - void Update() { - this.windowAdapter.Update(); - } - - void OnEnable() { - this.windowAdapter = new EditorWindowAdapter(this); - this.windowAdapter.OnEnable(); - } - - void OnDisable() { - this.windowAdapter.OnDisable(); - this.windowAdapter = null; - } - - RenderBox none() { - return null; - } - - RenderBox decoratedBox() { - return new RenderConstrainedOverflowBox( - minWidth: 100, - maxWidth: 100, - minHeight: 100, - maxHeight: 100, - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFFFF00FF), - borderRadius: BorderRadius.all(15), - boxShadow: new List { - new BoxShadow( - color: new Color(0xFFFF00FF), - offset: new Offset(0, 0), - blurRadius: 3.0f, - spreadRadius: 10 - ) - }, - image: new DecorationImage( - image: new NetworkImage( - url: - "https://sg.fiverrcdn.com/photos/4665137/original/39322-140411095619534.jpg?1424268945" - ), - fit: BoxFit.cover) - ) - ) - ); - } - - RenderBox decoratedShape() { - return new RenderConstrainedOverflowBox( - minWidth: 100, - maxWidth: 100, - minHeight: 100, - maxHeight: 100, - child: new RenderDecoratedBox( - decoration: new ShapeDecoration( - color: new Color(0xFFFF00FF), - shape: new BeveledRectangleBorder( - new BorderSide(width: 5, color: Color.white), - BorderRadius.circular(5)), - image: new DecorationImage( - image: new NetworkImage( - url: - "https://sg.fiverrcdn.com/photos/4665137/original/39322-140411095619534.jpg?1424268945" - ), - fit: BoxFit.cover) - ) - ) - ); - } - - - RenderBox flex() { - var flexbox = new RenderFlex( - direction: Axis.horizontal, - crossAxisAlignment: CrossAxisAlignment.center); - - flexbox.add(new RenderConstrainedBox( - additionalConstraints: new BoxConstraints(minWidth: 300, minHeight: 200), - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFF00FF00) - ) - ))); - - flexbox.add(new RenderConstrainedBox( - additionalConstraints: new BoxConstraints(minWidth: 100, minHeight: 300), - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFF00FFFF) - ) - ))); - - flexbox.add(new RenderConstrainedBox( - additionalConstraints: new BoxConstraints(minWidth: 50, minHeight: 100), - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFF0000FF) - ) - ))); - - - return flexbox; - } - } -} \ No newline at end of file diff --git a/Tests/Editor/RenderBoxes.cs.meta b/Tests/Editor/RenderBoxes.cs.meta deleted file mode 100644 index d33221aa..00000000 --- a/Tests/Editor/RenderBoxes.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: e773b48a6f94416d89e1f690b34c1379 -timeCreated: 1534920245 \ No newline at end of file diff --git a/Tests/Editor/RenderEditable.cs b/Tests/Editor/RenderEditable.cs deleted file mode 100644 index c5b6c13f..00000000 --- a/Tests/Editor/RenderEditable.cs +++ /dev/null @@ -1,197 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using RSG; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.service; -using Unity.UIWidgets.ui; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgets.Tests { - public class RenderEditable : EditorWindow, TextSelectionDelegate { - readonly Func[] _options; - - readonly string[] _optionStrings; - - int _selected; - - class _FixedViewportOffset : ViewportOffset { - internal _FixedViewportOffset(float _pixels) { - this._pixels = _pixels; - } - - internal new static _FixedViewportOffset zero() { - return new _FixedViewportOffset(0.0f); - } - - float _pixels; - - public override float pixels { - get { return this._pixels; } - } - - public override bool applyViewportDimension(float viewportDimension) { - return true; - } - - public override bool applyContentDimensions(float minScrollExtent, float maxScrollExtent) { - return true; - } - - public override void correctBy(float correction) { - this._pixels += correction; - } - - public override void jumpTo(float pixels) { } - - public override IPromise animateTo(float to, TimeSpan duration, Curve curve) { - return Promise.Resolved(); - } - - public override ScrollDirection userScrollDirection { - get { return ScrollDirection.idle; } - } - - public override bool allowImplicitScrolling { - get { return false; } - } - } - - RenderEditable() { - this._options = new Func[] { - this.textEditable, - }; - this._optionStrings = this._options.Select(x => x.Method.Name).ToArray(); - this._selected = 0; - this.titleContent = new GUIContent("RenderEditable"); - } - - WindowAdapter windowAdapter; - - [NonSerialized] bool hasInvoked = false; - - void OnGUI() { - var selected = EditorGUILayout.Popup("test case", this._selected, this._optionStrings); - if (selected != this._selected || !this.hasInvoked) { - this._selected = selected; - this.hasInvoked = true; - - var renderBox = this._options[this._selected](); - this.windowAdapter.attachRootRenderBox(renderBox); - } - - this.windowAdapter.OnGUI(); - } - - void Update() { - this.windowAdapter.Update(); - } - - void OnEnable() { - this.windowAdapter = new EditorWindowAdapter(this); - this.windowAdapter.OnEnable(); - } - - void OnDisable() { - this.windowAdapter.OnDisable(); - this.windowAdapter = null; - } - - RenderBox box(RenderBox p, int width = 400, int height = 400) { - return new RenderConstrainedOverflowBox( - minWidth: width, - maxWidth: width, - minHeight: height, - maxHeight: height, - alignment: Alignment.center, - child: p - ) - ; - } - - RenderBox flexItemBox(RenderBox p, int width = 200, int height = 100) { - return new RenderConstrainedBox( - additionalConstraints: new BoxConstraints(minWidth: width, maxWidth: width, minHeight: height, - maxHeight: height), - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFFFFFFFF), - borderRadius: BorderRadius.all(3), - border: Border.all(Color.fromARGB(255, 255, 0, 0), 1) - ), - child: new RenderPadding(EdgeInsets.all(10), p - ) - )); - } - - RenderBox textEditable() { - var span = new TextSpan("", children: - new List { - new TextSpan( - "Word Wrap:The ascent of the font is the distance from the baseline to the top line of the font, as defined in the font's original data file.", - null), - }, style: new TextStyle(height: 1.0f)); - - var flexbox = new RenderFlex( - direction: Axis.vertical, - mainAxisAlignment: MainAxisAlignment.spaceAround, - crossAxisAlignment: CrossAxisAlignment.center); - - flexbox.add(this.flexItemBox( - new Unity.UIWidgets.rendering.RenderEditable(span, TextDirection.ltr, - offset: new _FixedViewportOffset(0.0f), showCursor: new ValueNotifier(true), - onSelectionChanged: this.selectionChanged, cursorColor: Color.fromARGB(255, 0, 0, 0), - maxLines: 100, - selectionColor: Color.fromARGB(255, 255, 0, 0), - textSelectionDelegate: this) - )); - - span = new TextSpan("", children: - new List { - new TextSpan( - "Hard Break:The ascent of the font is the distance\nfrom the baseline to the top \nline of the font,\nas defined in", - null), - }, style: new TextStyle(height: 1.0f)); - flexbox.add(this.flexItemBox( - new Unity.UIWidgets.rendering.RenderEditable(span, TextDirection.ltr, - offset: new _FixedViewportOffset(0.0f), showCursor: new ValueNotifier(true), - onSelectionChanged: this.selectionChanged, cursorColor: Color.fromARGB(255, 0, 0, 0), - maxLines: 100, - selectionColor: Color.fromARGB(255, 255, 0, 0), - textSelectionDelegate: this) - )); - - span = new TextSpan("", children: - new List { - new TextSpan("Single Line:How to create mixin", null), - }, style: new TextStyle(height: 1.0f)); - flexbox.add(this.flexItemBox( - new Unity.UIWidgets.rendering.RenderEditable(span, TextDirection.ltr, - offset: new _FixedViewportOffset(0.0f), showCursor: new ValueNotifier(true), - onSelectionChanged: this.selectionChanged, cursorColor: Color.fromARGB(255, 0, 0, 0), - selectionColor: Color.fromARGB(255, 255, 0, 0), - textSelectionDelegate: this) - , width: 300)); - return flexbox; - } - - - void selectionChanged(TextSelection selection, Unity.UIWidgets.rendering.RenderEditable renderObject, - SelectionChangedCause cause) { - Debug.Log($"selection {selection}"); - renderObject.selection = selection; - } - - public TextEditingValue textEditingValue { get; set; } - - public void hideToolbar() { } - - public void bringIntoView(TextPosition textPosition) { } - } -} \ No newline at end of file diff --git a/Tests/Editor/RenderEditable.cs.meta b/Tests/Editor/RenderEditable.cs.meta deleted file mode 100644 index 720a1d10..00000000 --- a/Tests/Editor/RenderEditable.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 3133671f82dc4c0e93d4dbeb9e50b55d -timeCreated: 1536660300 \ No newline at end of file diff --git a/Tests/Editor/SceneViewTests.cs b/Tests/Editor/SceneViewTests.cs deleted file mode 100644 index 03396e2c..00000000 --- a/Tests/Editor/SceneViewTests.cs +++ /dev/null @@ -1,165 +0,0 @@ -using System; -using System.Linq; -using System.Reflection; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.widgets; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgets.Tests { - public class SceneViewTests { - public static void show() { - onPreSceneGUIDelegate += OnPreSceneGUI; -#pragma warning disable 0618 - SceneView.onSceneGUIDelegate += OnSceneGUI; -#pragma warning restore 0618 - EditorApplication.update += Update; - - SceneView.RepaintAll(); - - _options = new Func[] { - none, - listView, - eventsPage, - }; - _optionStrings = _options.Select(x => x.Method.Name).ToArray(); - _selected = 0; - } - - public static void hide() { - onPreSceneGUIDelegate -= OnPreSceneGUI; -#pragma warning disable 0618 - SceneView.onSceneGUIDelegate -= OnSceneGUI; -#pragma warning restore 0618 - EditorApplication.update -= Update; - SceneView.RepaintAll(); - } - -#pragma warning disable 0618 - public static SceneView.OnSceneFunc onPreSceneGUIDelegate { - get { - var field = typeof(SceneView).GetField("onPreSceneGUIDelegate", - BindingFlags.Static | BindingFlags.NonPublic); - - return (SceneView.OnSceneFunc) field.GetValue(null); - } - - set { - var field = typeof(SceneView).GetField("onPreSceneGUIDelegate", - BindingFlags.Static | BindingFlags.NonPublic); - - field.SetValue(null, value); - } - } -#pragma warning restore 0618 - - static Func[] _options; - - static string[] _optionStrings; - - static int _selected; - - [NonSerialized] static bool hasInvoked = false; - - static EventType _lastEventType; - - static void OnPreSceneGUI(SceneView sceneView) { - _lastEventType = Event.current.rawType; - } - - static void OnSceneGUI(SceneView sceneView) { - //HandleUtility.AddDefaultControl(GUIUtility.GetControlID(FocusType.Passive)); - Handles.BeginGUI(); - - if (windowAdapter == null) { - windowAdapter = new EditorWindowAdapter(sceneView); - } - else if (windowAdapter != null && windowAdapter.editorWindow != sceneView) { - windowAdapter = new EditorWindowAdapter(sceneView); - } - - var selected = EditorGUILayout.Popup("test case", _selected, _optionStrings); - if (selected != _selected || !hasInvoked) { - _selected = selected; - hasInvoked = true; - - var widget = _options[_selected](); - windowAdapter.attachRootWidget(widget); - } - - if (Event.current.type == EventType.Used) { - Event.current.type = _lastEventType; - windowAdapter.OnGUI(); - Event.current.type = EventType.Used; - } - else { - windowAdapter.OnGUI(); - } - - Handles.EndGUI(); - } - - static void Update() { - if (windowAdapter != null) { - windowAdapter.Update(); - } - } - - static EditorWindowAdapter windowAdapter; - - public static Widget none() { - return null; - } - - public static Widget listView() { - return ListView.builder( - itemExtent: 20.0f, - itemBuilder: (context, index) => { - return new Container( - color: Color.fromARGB(255, (index * 10) % 256, (index * 10) % 256, (index * 10) % 256) - ); - } - ); - } - - public static Widget eventsPage() { - return new EventsWaterfallScreen(); - } - - public static RenderBox flex() { - var flexbox = new RenderFlex( - direction: Axis.horizontal, - crossAxisAlignment: CrossAxisAlignment.center); - - flexbox.add(new RenderConstrainedBox( - additionalConstraints: new BoxConstraints(minWidth: 300, minHeight: 200), - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFF00FF00) - ) - ))); - - flexbox.add(new RenderConstrainedBox( - additionalConstraints: new BoxConstraints(minWidth: 100, minHeight: 300), - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFF00FFFF) - ) - ))); - - flexbox.add(new RenderConstrainedBox( - additionalConstraints: new BoxConstraints(minWidth: 50, minHeight: 100), - child: new RenderDecoratedBox( - decoration: new BoxDecoration( - color: new Color(0xFF0000FF) - ) - ))); - - - return flexbox; - } - } -} \ No newline at end of file diff --git a/Tests/Editor/SceneViewTests.cs.meta b/Tests/Editor/SceneViewTests.cs.meta deleted file mode 100644 index c7b3ff8f..00000000 --- a/Tests/Editor/SceneViewTests.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: fc7ab0f913ef4bde95759153a732dbc0 -timeCreated: 1537936714 \ No newline at end of file diff --git a/Tests/Editor/Unity.UIWidgets.Editor.Tests.asmdef b/Tests/Editor/Unity.UIWidgets.Editor.Tests.asmdef deleted file mode 100644 index b24ca118..00000000 --- a/Tests/Editor/Unity.UIWidgets.Editor.Tests.asmdef +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "Unity.UIWidgets.Editor.Tests", - "references": [ - "Unity.UIWidgets.Editor", - "Unity.UIWidgets" - ], - "optionalUnityReferences": [ - "TestAssemblies" - ], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [] -} diff --git a/Tests/Editor/Unity.UIWidgets.Editor.Tests.asmdef.meta b/Tests/Editor/Unity.UIWidgets.Editor.Tests.asmdef.meta deleted file mode 100644 index 17311a33..00000000 --- a/Tests/Editor/Unity.UIWidgets.Editor.Tests.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ddfee6fb567544c4d81e78d84f47d64c -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/Widgets.cs b/Tests/Editor/Widgets.cs deleted file mode 100644 index 075fc7ac..00000000 --- a/Tests/Editor/Widgets.cs +++ /dev/null @@ -1,919 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using UIWidgets.Tests.demo_charts; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.editor; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.gestures; -using Unity.UIWidgets.material; -using Unity.UIWidgets.painting; -using Unity.UIWidgets.rendering; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEditor; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; -using Image = Unity.UIWidgets.widgets.Image; -using TextStyle = Unity.UIWidgets.painting.TextStyle; -using Transform = Unity.UIWidgets.widgets.Transform; - -namespace UIWidgets.Tests { - public class Widgets : EditorWindow { - WindowAdapter windowAdapter; - - readonly Func[] _options; - - readonly string[] _optionStrings; - - int _selected; - - string localImagePath; - - [NonSerialized] bool hasInvoked = false; - - public Widgets() { - this.wantsMouseEnterLeaveWindow = true; - this.wantsMouseMove = true; - this._options = new Func[] { - this.localImage, - this.container, - this.flexRow, - this.flexColumn, - this.containerSimple, - this.eventsPage, - this.asPage, - this.stack, - this.mouseHover, - this.charts - }; - this._optionStrings = this._options.Select(x => x.Method.Name).ToArray(); - this._selected = 0; - - this.titleContent = new GUIContent("Widgets Test"); - } - - void OnGUI() { - var selected = EditorGUILayout.Popup("test case", this._selected, this._optionStrings); - - // if local image test - if (selected == 0) { - this.localImagePath = EditorGUILayout.TextField(this.localImagePath); - - if (this._selected != selected) { - this._selected = selected; - this._attachRootWidget(new Container()); - } - - if (GUILayout.Button("loadLocal")) { - var rootWidget = this._options[this._selected](); - this._attachRootWidget(rootWidget); - } - - if (GUILayout.Button("loadAsset")) { - var rootWidget = this.loadAsset(); - this._attachRootWidget(rootWidget); - } - - if (GUILayout.Button("UnloadUnusedAssets")) { - Resources.UnloadUnusedAssets(); - } - } - else if (selected != this._selected || !this.hasInvoked) { - this._selected = selected; - this.hasInvoked = true; - - var rootWidget = this._options[this._selected](); - - this._attachRootWidget(rootWidget); - } - - this.windowAdapter.OnGUI(); - } - - void _attachRootWidget(Widget widget) { - this.windowAdapter.attachRootWidget(() => new WidgetsApp( - home: widget, - navigatorKey: GlobalKey.key(), - pageRouteBuilder: (RouteSettings settings, WidgetBuilder builder) => - new PageRouteBuilder( - settings: settings, - pageBuilder: (BuildContext context, Animation animation, - Animation secondaryAnimation) => builder(context) - ))); - } - - void Update() { - this.windowAdapter.Update(); - } - - void OnEnable() { - FontManager.instance.addFont(Resources.Load("MaterialIcons-Regular"), "Material Icons"); - - this.windowAdapter = new EditorWindowAdapter(this); - this.windowAdapter.OnEnable(); - } - - void OnDisable() { - this.windowAdapter.OnDisable(); - this.windowAdapter = null; - } - - Widget stack() { - var image = new Container( - width: 150, - height: 150, - child: Image.network( - "https://tse3.mm.bing.net/th?id=OIP.XOAIpvR1kh-CzISe_Nj9GgHaHs&pid=Api", - width: 100, - height: 100 - ) - ); - var text = new Container( - width: 150, - height: 150, - child: new Text("TTTTTTTTTTTTTTTTEST") - ); - List rowImages = new List(); - rowImages.Add(image); - rowImages.Add(text); - return new Stack( - children: rowImages, - alignment: Alignment.center - ); - } - - Widget localImage() { - var image = Image.file(this.localImagePath, - filterMode: FilterMode.Bilinear - ); - - return image; - } - - Widget loadAsset() { - var image = Image.asset(this.localImagePath, - filterMode: FilterMode.Bilinear - ); - - return image; - } - - Widget flexRow() { - var image = Image.network( - "https://tse3.mm.bing.net/th?id=OIP.XOAIpvR1kh-CzISe_Nj9GgHaHs&pid=Api", - width: 100, - height: 100 - ); - List rowImages = new List(); - rowImages.Add(image); - rowImages.Add(image); - rowImages.Add(image); - rowImages.Add(image); - - var row = new Row( - textDirection: null, - textBaseline: null, - key: null, - mainAxisAlignment: MainAxisAlignment.start, - mainAxisSize: MainAxisSize.max, - crossAxisAlignment: CrossAxisAlignment.center, - verticalDirection: VerticalDirection.down, - children: rowImages - ); - - return row; - } - - Widget flexColumn() { - var image = Image.network( - "https://tse3.mm.bing.net/th?id=OIP.XOAIpvR1kh-CzISe_Nj9GgHaHs&pid=Api", - width: 100, - height: 100 - ); - List columnImages = new List(); - columnImages.Add(image); - columnImages.Add(image); - columnImages.Add(image); - - var column = new Column( - textDirection: null, - textBaseline: null, - key: null, - mainAxisAlignment: MainAxisAlignment.start, - mainAxisSize: MainAxisSize.max, - crossAxisAlignment: CrossAxisAlignment.center, - verticalDirection: VerticalDirection.down, - children: columnImages - ); - - return column; - } - - Widget container() { - var image = Image.network( - "https://tse3.mm.bing.net/th?id=OIP.XOAIpvR1kh-CzISe_Nj9GgHaHs&pid=Api", - width: 100, - height: 100, - repeat: ImageRepeat.repeatX - ); - var container = new Container( - width: 200, - height: 200, - margin: EdgeInsets.all(30.0f), - padding: EdgeInsets.all(15.0f), - child: image, - decoration: new BoxDecoration( - color: CLColors.white, - borderRadius: BorderRadius.all(30), - gradient: new LinearGradient(colors: new List {CLColors.blue, CLColors.red, CLColors.green}) - ) - ); - - return container; - } - - Widget containerSimple() { - var container = new Container( - alignment: Alignment.centerRight, - color: Color.fromARGB(255, 244, 190, 85), - child: new Container( - width: 120, - height: 120, - color: Color.fromARGB(255, 255, 0, 85) - ) - ); - - return container; - } - - Widget eventsPage() { - return new EventsWaterfallScreen(); - } - - Widget asPage() { - return new AsScreen(); - } - - Widget mouseHover() { - return new MouseHoverWidget(); - } - - Widget charts() { - return new ChartPage(); - } - } - - - public class AsScreen : StatefulWidget { - public AsScreen(Key key = null) : base(key) { - } - - public override State createState() { - return new _AsScreenState(); - } - } - - class _AsScreenState : State { - const float headerHeight = 50.0f; - - Widget _buildHeader(BuildContext context) { - var container = new Container( - padding: EdgeInsets.only(left: 16.0f, right: 8.0f), - height: headerHeight, - color: CLColors.header, - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - children: new List { - new Container( - child: new Text( - "All Assets", - style: new TextStyle( - fontSize: 16, - color: Color.fromARGB(100, 255, 255, 0) - ) - ) - ), - new CustomButton( - padding: EdgeInsets.only(0.0f, 0.0f, 16.0f, 0.0f), - child: new Icon( - Icons.keyboard_arrow_down, - size: 18.0f, - color: CLColors.icon2 - ) - ), - new Container( - decoration: new BoxDecoration( - color: CLColors.white, - borderRadius: BorderRadius.all(3) - ), - width: 320, - height: 36, - padding: EdgeInsets.all(10.0f), - margin: EdgeInsets.only(right: 4), - child: new EditableText( - maxLines: 1, - selectionControls: MaterialUtils.materialTextSelectionControls, - controller: new TextEditingController("Type here to search assets"), - focusNode: new FocusNode(), - style: new TextStyle( - fontSize: 16 - ), - selectionColor: Color.fromARGB(255, 255, 0, 0), - cursorColor: Color.fromARGB(255, 0, 0, 0) - ) - ), - new Container( - decoration: new BoxDecoration( - color: CLColors.background4, - borderRadius: BorderRadius.all(2) - ), - width: 36, - height: 36, - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new CustomButton( - padding: EdgeInsets.only(8.0f, 0.0f, 8.0f, 0.0f), - child: new Icon( - Icons.search, - size: 18.0f, - color: CLColors.white - ) - ) - } - ) - ), - new Container( - margin: EdgeInsets.only(left: 16, right: 16), - child: new Text( - "Learn Game Development", - style: new TextStyle( - fontSize: 12, - color: CLColors.white - ) - ) - ), - new Container( - decoration: new BoxDecoration( - border: Border.all( - color: CLColors.white - ) - ), - margin: EdgeInsets.only(right: 16), - padding: EdgeInsets.all(4), - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new Text( - "Plus/Pro", - style: new TextStyle( - fontSize: 11, - color: CLColors.white - ) - ) - } - ) - ), - new Container( - margin: EdgeInsets.only(right: 16), - child: new Text( - "Impressive New Assets", - style: new TextStyle( - fontSize: 12, - color: CLColors.white - ) - ) - ), - new Container( - child: new Text( - "Shop On Old Store", - style: new TextStyle( - fontSize: 12, - color: CLColors.white - ) - ) - ), - } - ) - ); - - return container; - } - - Widget _buildFooter(BuildContext context) { - return new Container( - color: CLColors.header, - margin: EdgeInsets.only(top: 50), - height: 90, - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - children: new List { - new Container( - margin: EdgeInsets.only(right: 10), - child: new Text( - "Copyright © 2018 Unity Technologies", - style: new TextStyle( - fontSize: 12, - color: CLColors.text9 - ) - ) - ), - new Container( - margin: EdgeInsets.only(right: 10), - child: new Text( - "All prices are exclusive of tax", - style: new TextStyle( - fontSize: 12, - color: CLColors.text9 - ) - ) - ), - new Container( - margin: EdgeInsets.only(right: 10), - child: new Text( - "Terms of Service and EULA", - style: new TextStyle( - fontSize: 12, - color: CLColors.text10 - ) - ) - ), - new Container( - child: new Text( - "Cookies", - style: new TextStyle( - fontSize: 12, - color: CLColors.text10 - ) - ) - ), - } - ) - ); - } - - Widget _buildBanner(BuildContext context) { - return new Container( - height: 450, - color: CLColors.white, - child: Image.network( - "https://assetstorev1-prd-cdn.unity3d.com/banner/9716cc07-748c-43cc-8809-10113119c97a.jpg", - fit: BoxFit.cover, - filterMode: FilterMode.Bilinear - ) - ); - } - - Widget _buildTopAssetsRow(BuildContext context, string title) { - var testCard = new AssetCard( - "AI Template", - "INVECTOR", - 45.0f, - 36.0f, - true, - "https://assetstorev1-prd-cdn.unity3d.com/key-image/76a549ae-de17-4536-bd96-4231ed20dece.jpg" - ); - return new Container( - margin: EdgeInsets.only(left: 98), - child: new Column( - children: new List { - new Container( - child: new Container( - margin: EdgeInsets.only(top: 50, bottom: 20), - child: new Row( - crossAxisAlignment: CrossAxisAlignment.baseline, - children: new List { - new Container( - child: new Text( - title, - style: new TextStyle( - fontSize: 24, - color: CLColors.black - ) - ) - ), - new Container( - margin: EdgeInsets.only(left: 15), - child: - new Text( - "See More", - style: new TextStyle( - fontSize: 16, - color: CLColors.text4 - ) - ) - ) - }) - ) - ), - new Row( - children: new List { - testCard, - testCard, - testCard, - testCard, - testCard, - testCard - } - ) - } - )); - } - - bool _onNotification(ScrollNotification notification, BuildContext context) { - return true; - } - - Widget _buildContentList(BuildContext context) { - return new NotificationListener( - onNotification: (ScrollNotification notification) => { - this._onNotification(notification, context); - return true; - }, - child: new Flexible( - child: new ListView( - physics: new AlwaysScrollableScrollPhysics(), - children: new List { - this._buildBanner(context), - this._buildTopAssetsRow(context, "Recommanded For You"), - this._buildTopAssetsRow(context, "Beach Day"), - this._buildTopAssetsRow(context, "Top Free Packages"), - this._buildTopAssetsRow(context, "Top Paid Packages"), - this._buildFooter(context) - } - ) - ) - ); - } - - public override Widget build(BuildContext context) { - var mediaQueryData = MediaQuery.of(context); - var px = mediaQueryData.size.width / 2; - var py = mediaQueryData.size.width / 2; - - var container = new Container( - color: CLColors.background3, - child: new Container( - color: CLColors.background3, - child: new Transform( - transform: Matrix3.makeRotate(Mathf.PI / 180 * 5, px, py), - child: - new Column( - children: new List { - this._buildHeader(context), - this._buildContentList(context), - } - ) - ) - ) - ); - - var stack = new Stack( - children: new List { - container, - new Positioned( - top: 50, - right: 50, - child: new BackdropFilter( - filter: ImageFilter.blur(10, 10), - child: new Container( - width: 300, height: 300, - decoration: new BoxDecoration( - color: Colors.transparent - ) - ) - ) - ) - } - ); - - return stack; - } - } - - public class AssetCard : StatelessWidget { - public AssetCard( - string name, - string category, - float price, - float priceDiscount, - bool showBadge, - string imageSrc - ) { - this.name = name; - this.category = category; - this.price = price; - this.priceDiscount = priceDiscount; - this.showBadge = showBadge; - this.imageSrc = imageSrc; - } - - public readonly string name; - public readonly string category; - public readonly float price; - public readonly float priceDiscount; - public readonly bool showBadge; - public readonly string imageSrc; - - public override Widget build(BuildContext context) { - var card = new Container( - margin: EdgeInsets.only(right: 45), - child: new Container( - child: new Column( - children: new List { - new Container( - decoration: new BoxDecoration( - color: CLColors.white, - borderRadius: BorderRadius.only(topLeft: 3, topRight: 3) - ), - width: 200, - height: 124, - child: Image.network( - this.imageSrc, - fit: BoxFit.fill - ) - ), - new Container( - color: CLColors.white, - width: 200, - height: 86, - padding: EdgeInsets.fromLTRB(14, 12, 14, 8), - child: new Column( - crossAxisAlignment: CrossAxisAlignment.baseline, - children: new List { - new Container( - height: 18, - padding: EdgeInsets.only(top: 3), - child: - new Text(this.category, - style: new TextStyle( - fontSize: 11, - color: CLColors.text5 - ) - ) - ), - new Container( - height: 20, - padding: EdgeInsets.only(top: 2), - child: - new Text(this.name, - style: new TextStyle( - fontSize: 14, - color: CLColors.text6 - ) - ) - ), - new Container( - height: 22, - padding: EdgeInsets.only(top: 4), - child: new Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: new List { - new Container( - child: new Row( - children: new List { - new Container( - margin: EdgeInsets.only(right: 10), - child: new Text( - "$" + this.price, - style: new TextStyle( - fontSize: 14, - color: CLColors.text7, - decoration: TextDecoration.lineThrough - ) - ) - ), - new Container( - child: new Text( - "$" + this.priceDiscount, - style: new TextStyle( - fontSize: 14, - color: CLColors.text8 - ) - ) - ) - }) - ), - this.showBadge - ? new Container( - width: 80, - height: 18, - color: CLColors.black, - child: new Row( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: new List { - new Text( - "Plus/Pro", - style: new TextStyle( - fontSize: 11, - color: CLColors.white - ) - ) - } - ) - ) - : new Container() - } - ) - ) - } - ) - ) - } - ) - ) - ); - return card; - } - } - - public class EventsWaterfallScreen : StatefulWidget { - public EventsWaterfallScreen(Key key = null) : base(key: key) { - } - - public override State createState() { - return new _EventsWaterfallScreenState(); - } - } - - class _EventsWaterfallScreenState : State { - const float headerHeight = 80.0f; - - float _offsetY = 0.0f; -#pragma warning disable 0414 - int _index = -1; -#pragma warning restore 0414 - - Widget _buildHeader(BuildContext context) { - return new Container( - padding: EdgeInsets.only(left: 16.0f, right: 8.0f), - // color: CLColors.blue, - height: headerHeight - this._offsetY, - child: new Row( - children: new List { - new Flexible( - flex: 1, - fit: FlexFit.tight, - child: new Text( - "Today", - style: new TextStyle( - fontSize: (34.0f / headerHeight) * - (headerHeight - this._offsetY), - color: CLColors.white - ) - )), - new CustomButton( - padding: EdgeInsets.only(8.0f, 0.0f, 8.0f, 0.0f), - child: new Icon( - Icons.notifications, - size: 18.0f, - color: CLColors.icon2 - ) - ), - new CustomButton( - padding: EdgeInsets.only(8.0f, 0.0f, 16.0f, 0.0f), - child: new Icon( - Icons.account_circle, - size: 18.0f, - color: CLColors.icon2 - ) - ) - } - ) - ); - } - - bool _onNotification(ScrollNotification notification, BuildContext context) { - float pixels = notification.metrics.pixels; - if (pixels >= 0.0) { - if (pixels <= headerHeight) { - this.setState(() => { this._offsetY = pixels / 2.0f; }); - } - } - else { - if (this._offsetY != 0.0) { - this.setState(() => { this._offsetY = 0.0f; }); - } - } - - return true; - } - - - Widget _buildContentList(BuildContext context) { - return new NotificationListener( - onNotification: (ScrollNotification notification) => { - this._onNotification(notification, context); - return true; - }, - child: new Flexible( - child: new Container( - // color: CLColors.green, - child: ListView.builder( - itemCount: 20, - itemExtent: 100, - physics: new AlwaysScrollableScrollPhysics(), - itemBuilder: (BuildContext context1, int index) => { - return new Container( - color: Color.fromARGB(255, (index * 10) % 256, (index * 20) % 256, - (index * 30) % 256) - ); - } - ) - ) - ) - ); - } - - public override Widget build(BuildContext context) { - var container = new Container( - // color: CLColors.background1, - child: new Container( - // color: CLColors.background1, - child: new Column( - children: new List { - this._buildHeader(context), - this._buildContentList(context) - } - ) - ) - ); - return container; - } - } - - public class CustomButton : StatelessWidget { - public CustomButton( - Key key = null, - GestureTapCallback onPressed = null, - EdgeInsets padding = null, - Color backgroundColor = null, - Widget child = null - ) : base(key: key) { - this.onPressed = onPressed; - this.padding = padding ?? EdgeInsets.all(8.0f); - this.backgroundColor = backgroundColor ?? CLColors.transparent; - this.child = child; - } - - public readonly GestureTapCallback onPressed; - public readonly EdgeInsets padding; - public readonly Widget child; - public readonly Color backgroundColor; - - public override Widget build(BuildContext context) { - return new GestureDetector( - onTap: this.onPressed, - child: new Container( - padding: this.padding, - color: this.backgroundColor, - child: this.child - ) - ); - } - } - - public static class Icons { - public static readonly IconData notifications = new IconData(0xe7f4, fontFamily: "Material Icons"); - public static readonly IconData account_circle = new IconData(0xe853, fontFamily: "Material Icons"); - public static readonly IconData search = new IconData(0xe8b6, fontFamily: "Material Icons"); - public static readonly IconData keyboard_arrow_down = new IconData(0xe313, fontFamily: "Material Icons"); - } - - public static class CLColors { - public static readonly Color primary = new Color(0xFFE91E63); - public static readonly Color secondary1 = new Color(0xFF00BCD4); - public static readonly Color secondary2 = new Color(0xFFF0513C); - public static readonly Color background1 = new Color(0xFF292929); - public static readonly Color background2 = new Color(0xFF383838); - public static readonly Color background3 = new Color(0xFFF5F5F5); - public static readonly Color background4 = new Color(0xFF00BCD4); - public static readonly Color icon1 = new Color(0xFFFFFFFF); - public static readonly Color icon2 = new Color(0xFFA4A4A4); - public static readonly Color text1 = new Color(0xFFFFFFFF); - public static readonly Color text2 = new Color(0xFFD8D8D8); - public static readonly Color text3 = new Color(0xFF959595); - public static readonly Color text4 = new Color(0xFF002835); - public static readonly Color text5 = new Color(0xFF9E9E9E); - public static readonly Color text6 = new Color(0xFF002835); - public static readonly Color text7 = new Color(0xFF5A5A5B); - public static readonly Color text8 = new Color(0xFF239988); - public static readonly Color text9 = new Color(0xFFB3B5B6); - public static readonly Color text10 = new Color(0xFF00BCD4); - public static readonly Color dividingLine1 = new Color(0xFF666666); - public static readonly Color dividingLine2 = new Color(0xFF404040); - - public static readonly Color transparent = new Color(0x00000000); - public static readonly Color white = new Color(0xFFFFFFFF); - public static readonly Color black = new Color(0xFF000000); - public static readonly Color red = new Color(0xFFFF0000); - public static readonly Color green = new Color(0xFF00FF00); - public static readonly Color blue = new Color(0xFF0000FF); - - public static readonly Color header = new Color(0xFF060B0C); - } -} \ No newline at end of file diff --git a/Tests/Editor/Widgets.cs.meta b/Tests/Editor/Widgets.cs.meta deleted file mode 100644 index 6a0d1569..00000000 --- a/Tests/Editor/Widgets.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 1d2e1850f336481aa984d96b28c513b2 -timeCreated: 1536916429 \ No newline at end of file diff --git a/Tests/Editor/demo_charts.meta b/Tests/Editor/demo_charts.meta deleted file mode 100644 index 58d1031a..00000000 --- a/Tests/Editor/demo_charts.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 16325b3157a5144c789848b8ecc53311 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/demo_charts/bar.cs b/Tests/Editor/demo_charts/bar.cs deleted file mode 100644 index d3816044..00000000 --- a/Tests/Editor/demo_charts/bar.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; -using UnityEngine; -using Canvas = Unity.UIWidgets.ui.Canvas; -using Color = Unity.UIWidgets.ui.Color; -using Rect = Unity.UIWidgets.ui.Rect; - -namespace UIWidgets.Tests.demo_charts { - public class BarChart { - public BarChart(List bars) { - this.bars = bars; - } - - public static BarChart empty() { - return new BarChart(new List()); - } - - public static BarChart random(Size size) { - var barWidthFraction = 0.75f; - var ranks = selectRanks(ColorPalette.primary.length); - var barCount = ranks.Count; - var barDistance = size.width / (1 + barCount); - var barWidth = barDistance * barWidthFraction; - var startX = barDistance - barWidth / 2; - var bars = Enumerable.Range(0, barCount).Select(i => new Bar( - ranks[i], - startX + i * barDistance, - barWidth, - Random.value * size.height, - ColorPalette.primary[ranks[i]] - )).ToList(); - return new BarChart(bars); - } - - static List selectRanks(int cap) { - var ranks = new List(); - var rank = 0; - while (true) { - if (Random.value < 0.2f) { - rank++; - } - if (cap <= rank) { - break; - } - ranks.Add(rank); - rank++; - } - return ranks; - } - - public readonly List bars; - } - - public class BarChartTween : Tween { - readonly MergeTween _barsTween; - - public BarChartTween(BarChart begin, BarChart end) : base(begin: begin, end: end) { - this._barsTween = new MergeTween(begin.bars, end.bars); - } - - public override BarChart lerp(float t) { - return new BarChart(this._barsTween.lerp(t)); - } - } - - public class Bar : MergeTweenable { - public Bar(int rank, float x, float width, float height, Color color) { - this.rank = rank; - this.x = x; - this.width = width; - this.height = height; - this.color = color; - } - - public readonly int rank; - public readonly float x; - public readonly float width; - public readonly float height; - public readonly Color color; - - public Bar empty { - get { return new Bar(this.rank, this.x, 0.0f, 0.0f, this.color); } - } - - public bool less(Bar other) { - return this.rank < other.rank; - } - - public Tween tweenTo(Bar other) { - return new BarTween(this, other); - } - - public static Bar lerp(Bar begin, Bar end, float t) { - D.assert(begin.rank == end.rank); - return new Bar( - begin.rank, - MathUtils.lerpFloat(begin.x, end.x, t), - MathUtils.lerpFloat(begin.width, end.width, t), - MathUtils.lerpFloat(begin.height, end.height, t), - Color.lerp(begin.color, end.color, t) - ); - } - } - - public class BarTween : Tween { - public BarTween(Bar begin, Bar end) : base(begin: begin, end: end) { - D.assert(begin.rank == end.rank); - } - - public override Bar lerp(float t) { - return Bar.lerp(this.begin, this.end, t); - } - } - - public class BarChartPainter : AbstractCustomPainter { - public BarChartPainter(Animation animation) - : base(repaint: animation) { - this.animation = animation; - } - - public readonly Animation animation; - - public override void paint(Canvas canvas, Size size) { - var paint = new Paint(); - paint.style = PaintingStyle.fill; - var chart = this.animation.value; - foreach (var bar in chart.bars) { - paint.color = bar.color; - canvas.drawRect( - Rect.fromLTWH( - bar.x, - size.height - bar.height, - bar.width, - bar.height - ), - paint - ); - } - } - - public override bool shouldRepaint(CustomPainter old) { - return false; - } - } -} diff --git a/Tests/Editor/demo_charts/bar.cs.meta b/Tests/Editor/demo_charts/bar.cs.meta deleted file mode 100644 index 1bf83dd4..00000000 --- a/Tests/Editor/demo_charts/bar.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 20c43f616dd7640279364f93d965f4c0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/demo_charts/color_palette.cs b/Tests/Editor/demo_charts/color_palette.cs deleted file mode 100644 index c094d6b9..00000000 --- a/Tests/Editor/demo_charts/color_palette.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Collections.Generic; -using Unity.UIWidgets.foundation; -using Unity.UIWidgets.material; -using UnityEngine; -using Color = Unity.UIWidgets.ui.Color; - -namespace UIWidgets.Tests.demo_charts { - public class ColorPalette { - public static readonly ColorPalette primary = new ColorPalette(new List { - Colors.blue[400], - Colors.red[400], - Colors.green[400], - Colors.yellow[400], - Colors.purple[400], - Colors.orange[400], - Colors.teal[400] - }); - - public ColorPalette(List colors) { - D.assert(colors.isNotEmpty); - this._colors = colors; - } - - readonly List _colors; - - public Color this[int index] { - get { return this._colors[index % this.length]; } - } - - public int length { - get { return this._colors.Count; } - } - - public Color random() { - return this[Random.Range(0, this.length - 1)]; - } - } -} diff --git a/Tests/Editor/demo_charts/color_palette.cs.meta b/Tests/Editor/demo_charts/color_palette.cs.meta deleted file mode 100644 index 29d155f8..00000000 --- a/Tests/Editor/demo_charts/color_palette.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f9e9e9f9c5ecd474b8ef6a194f2d9fc7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/demo_charts/main.cs b/Tests/Editor/demo_charts/main.cs deleted file mode 100644 index 7dcfc5a1..00000000 --- a/Tests/Editor/demo_charts/main.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using Unity.UIWidgets.animation; -using Unity.UIWidgets.material; -using Unity.UIWidgets.ui; -using Unity.UIWidgets.widgets; - -namespace UIWidgets.Tests.demo_charts { - /*** - * from https://github.com/mravn/charts - */ - public class ChartPage : StatefulWidget { - public override State createState() { - return new ChartPageState(); - } - } - - public class ChartPageState : TickerProviderStateMixin { - public static readonly Size size = new Size(200.0f, 100.0f); - - AnimationController _animation; - BarChartTween _tween; - - public override - void initState() { - base.initState(); - this._animation = new AnimationController( - duration: new TimeSpan(0, 0, 0, 0, 300), - vsync: this - ); - this._tween = new BarChartTween( - BarChart.empty(), - BarChart.random(size) - ); - this._animation.forward(); - } - - public override void dispose() { - this._animation.dispose(); - base.dispose(); - } - - void changeData() { - this.setState(() => { - this._tween = new BarChartTween( - this._tween.evaluate(this._animation), - BarChart.random(size) - ); - this._animation.forward(from: 0.0f); - }); - } - - public override Widget build(BuildContext context) { - return new Scaffold( - body: new Center( - child: new CustomPaint( - size: size, - painter: new BarChartPainter(this._tween.animate(this._animation)) - ) - ), - floatingActionButton: new FloatingActionButton( - child: new Icon(Unity.UIWidgets.material.Icons.refresh), - onPressed: this.changeData - ) - ); - } - } -} diff --git a/Tests/Editor/demo_charts/main.cs.meta b/Tests/Editor/demo_charts/main.cs.meta deleted file mode 100644 index d5b30190..00000000 --- a/Tests/Editor/demo_charts/main.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 905d6da1ea7b947be937556edda2b664 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/demo_charts/tween.cs b/Tests/Editor/demo_charts/tween.cs deleted file mode 100644 index d6ce62fe..00000000 --- a/Tests/Editor/demo_charts/tween.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Unity.UIWidgets.animation; - -namespace UIWidgets.Tests.demo_charts { - public interface MergeTweenable { - T empty { get; } - - Tween tweenTo(T other); - - bool less(T other); - } - - public class MergeTween : Tween> where T : MergeTweenable { - public MergeTween(List begin, List end) : base(begin: begin, end: end) { - int bMax = begin.Count; - int eMax = end.Count; - var b = 0; - var e = 0; - while (b + e < bMax + eMax) { - if (b < bMax && (e == eMax || begin[b].less(end[e]))) { - this._tweens.Add(begin[b].tweenTo(begin[b].empty)); - b++; - } else if (e < eMax && (b == bMax || end[e].less(begin[b]))) { - this._tweens.Add(end[e].empty.tweenTo(end[e])); - e++; - } else { - this._tweens.Add(begin[b].tweenTo(end[e])); - b++; - e++; - } - } - } - - readonly List> _tweens = new List>(); - - public override List lerp(float t) { - return Enumerable.Range(0, this._tweens.Count).Select(i => this._tweens[i].lerp(t)).ToList(); - } - } -} diff --git a/Tests/Editor/demo_charts/tween.cs.meta b/Tests/Editor/demo_charts/tween.cs.meta deleted file mode 100644 index ea889f25..00000000 --- a/Tests/Editor/demo_charts/tween.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ae95c92eb6d8346f3bbc89a91d9e191d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources.meta b/Tests/Resources.meta deleted file mode 100644 index b49964eb..00000000 --- a/Tests/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a4bf4806dd96141b189111637bb1f450 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/6.png b/Tests/Resources/6.png deleted file mode 100644 index a83dfc4e..00000000 Binary files a/Tests/Resources/6.png and /dev/null differ diff --git a/Tests/Resources/6.png.meta b/Tests/Resources/6.png.meta deleted file mode 100644 index 800b8e3b..00000000 --- a/Tests/Resources/6.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: d8fa175306ac44f8ea120cf256fd21d9 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 7 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/Emoji.png.meta b/Tests/Resources/Emoji.png.meta deleted file mode 100644 index 7a2d2c14..00000000 --- a/Tests/Resources/Emoji.png.meta +++ /dev/null @@ -1,134 +0,0 @@ -fileFormatVersion: 2 -guid: 7a63b2e6e2c2045edb6a0be310ef2472 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 10 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 8192 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: Standalone - maxTextureSize: 8192 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: iPhone - maxTextureSize: 8192 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: Android - maxTextureSize: 8192 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: WebGL - maxTextureSize: 8192 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/ali_landscape.png b/Tests/Resources/ali_landscape.png deleted file mode 100644 index 8ac86a5d..00000000 Binary files a/Tests/Resources/ali_landscape.png and /dev/null differ diff --git a/Tests/Resources/india_chettinad_silk_maker.png b/Tests/Resources/india_chettinad_silk_maker.png deleted file mode 100644 index ea4ff6b1..00000000 Binary files a/Tests/Resources/india_chettinad_silk_maker.png and /dev/null differ diff --git a/Tests/Resources/india_chettinad_silk_maker.png.meta b/Tests/Resources/india_chettinad_silk_maker.png.meta deleted file mode 100644 index e2255d03..00000000 --- a/Tests/Resources/india_chettinad_silk_maker.png.meta +++ /dev/null @@ -1,134 +0,0 @@ -fileFormatVersion: 2 -guid: 759295bbc368246a0877963ba053ed5d -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 10 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: iPhone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: Android - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/india_thanjavur_market.png b/Tests/Resources/india_thanjavur_market.png deleted file mode 100644 index 5d808ac8..00000000 Binary files a/Tests/Resources/india_thanjavur_market.png and /dev/null differ diff --git a/Tests/Resources/india_thanjavur_market.png.meta b/Tests/Resources/india_thanjavur_market.png.meta deleted file mode 100644 index 6fcb9d07..00000000 --- a/Tests/Resources/india_thanjavur_market.png.meta +++ /dev/null @@ -1,134 +0,0 @@ -fileFormatVersion: 2 -guid: 69711c649948f4cb1ad20b82f1926a29 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 10 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: iPhone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: Android - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - serializedVersion: 2 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/people.meta b/Tests/Resources/people.meta deleted file mode 100644 index 8be17793..00000000 --- a/Tests/Resources/people.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8988da6435b0e414da67d5bb45802754 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/people/ali_landscape.png b/Tests/Resources/people/ali_landscape.png deleted file mode 100644 index 8ac86a5d..00000000 Binary files a/Tests/Resources/people/ali_landscape.png and /dev/null differ diff --git a/Tests/Resources/people/ali_landscape.png.meta b/Tests/Resources/people/ali_landscape.png.meta deleted file mode 100644 index 9536bb18..00000000 --- a/Tests/Resources/people/ali_landscape.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 0842a5ed1d4784702990d69f6c5d348d -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/people/square.meta b/Tests/Resources/people/square.meta deleted file mode 100644 index f38af9e0..00000000 --- a/Tests/Resources/people/square.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 321c11a98ef1c452ba9bf4fad8ac67fe -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/people/square/ali.png b/Tests/Resources/people/square/ali.png deleted file mode 100644 index 177a60de..00000000 Binary files a/Tests/Resources/people/square/ali.png and /dev/null differ diff --git a/Tests/Resources/people/square/ali.png.meta b/Tests/Resources/people/square/ali.png.meta deleted file mode 100644 index a2ddd8f0..00000000 --- a/Tests/Resources/people/square/ali.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: f644f877472c942209cc4ff5beaf452a -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/people/square/peter.png b/Tests/Resources/people/square/peter.png deleted file mode 100644 index 98d89879..00000000 Binary files a/Tests/Resources/people/square/peter.png and /dev/null differ diff --git a/Tests/Resources/people/square/peter.png.meta b/Tests/Resources/people/square/peter.png.meta deleted file mode 100644 index 4ab76134..00000000 --- a/Tests/Resources/people/square/peter.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 739817fca86d74ffda90f9a891db4c99 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/people/square/sandra.png b/Tests/Resources/people/square/sandra.png deleted file mode 100644 index 96e4c3fb..00000000 Binary files a/Tests/Resources/people/square/sandra.png and /dev/null differ diff --git a/Tests/Resources/people/square/sandra.png.meta b/Tests/Resources/people/square/sandra.png.meta deleted file mode 100644 index f2feba8d..00000000 --- a/Tests/Resources/people/square/sandra.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 61c32ad851b0c4c90a05f5857c8bf810 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/people/square/stella.png b/Tests/Resources/people/square/stella.png deleted file mode 100644 index 1a98808e..00000000 Binary files a/Tests/Resources/people/square/stella.png and /dev/null differ diff --git a/Tests/Resources/people/square/stella.png.meta b/Tests/Resources/people/square/stella.png.meta deleted file mode 100644 index 0c402c1d..00000000 --- a/Tests/Resources/people/square/stella.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 89e334df4c00c47258db57d508fcb3d0 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/people/square/trevor.png b/Tests/Resources/people/square/trevor.png deleted file mode 100644 index 9fbd09ec..00000000 Binary files a/Tests/Resources/people/square/trevor.png and /dev/null differ diff --git a/Tests/Resources/people/square/trevor.png.meta b/Tests/Resources/people/square/trevor.png.meta deleted file mode 100644 index dba47155..00000000 --- a/Tests/Resources/people/square/trevor.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 88e5367b95d2f462693ad5524593ab14 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products.meta b/Tests/Resources/products.meta deleted file mode 100644 index 30c07a1e..00000000 --- a/Tests/Resources/products.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2edd4d858895b44ff89047544e685c54 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/backpack.png b/Tests/Resources/products/backpack.png deleted file mode 100644 index 3ed4c43d..00000000 Binary files a/Tests/Resources/products/backpack.png and /dev/null differ diff --git a/Tests/Resources/products/backpack.png.meta b/Tests/Resources/products/backpack.png.meta deleted file mode 100644 index c6416fb8..00000000 --- a/Tests/Resources/products/backpack.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 674a904c9f4234b9ba9f78eb37f237fe -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/belt.png b/Tests/Resources/products/belt.png deleted file mode 100644 index c47993a2..00000000 Binary files a/Tests/Resources/products/belt.png and /dev/null differ diff --git a/Tests/Resources/products/belt.png.meta b/Tests/Resources/products/belt.png.meta deleted file mode 100644 index 2a51b87a..00000000 --- a/Tests/Resources/products/belt.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 8a6d8f5795ade4d2abc66cd64533f8ac -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/cup.png b/Tests/Resources/products/cup.png deleted file mode 100644 index e294a568..00000000 Binary files a/Tests/Resources/products/cup.png and /dev/null differ diff --git a/Tests/Resources/products/cup.png.meta b/Tests/Resources/products/cup.png.meta deleted file mode 100644 index e34cb2a7..00000000 --- a/Tests/Resources/products/cup.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 7443ec2c33a954d6ea65634db88ec9de -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/deskset.png b/Tests/Resources/products/deskset.png deleted file mode 100644 index e45b3d0d..00000000 Binary files a/Tests/Resources/products/deskset.png and /dev/null differ diff --git a/Tests/Resources/products/deskset.png.meta b/Tests/Resources/products/deskset.png.meta deleted file mode 100644 index 162ff2fc..00000000 --- a/Tests/Resources/products/deskset.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 9181044e6c0c4467b933708e3834f35e -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/dress.png b/Tests/Resources/products/dress.png deleted file mode 100644 index e508339e..00000000 Binary files a/Tests/Resources/products/dress.png and /dev/null differ diff --git a/Tests/Resources/products/dress.png.meta b/Tests/Resources/products/dress.png.meta deleted file mode 100644 index 7ec924f6..00000000 --- a/Tests/Resources/products/dress.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 452e42b2f60134df48d45ab49a21d8ec -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/earrings.png b/Tests/Resources/products/earrings.png deleted file mode 100644 index 603b9fe5..00000000 Binary files a/Tests/Resources/products/earrings.png and /dev/null differ diff --git a/Tests/Resources/products/earrings.png.meta b/Tests/Resources/products/earrings.png.meta deleted file mode 100644 index 1cdf6794..00000000 --- a/Tests/Resources/products/earrings.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 7619ea1564ba546ab91b5f0ab38a9f6b -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/flatwear.png b/Tests/Resources/products/flatwear.png deleted file mode 100644 index 23d30816..00000000 Binary files a/Tests/Resources/products/flatwear.png and /dev/null differ diff --git a/Tests/Resources/products/flatwear.png.meta b/Tests/Resources/products/flatwear.png.meta deleted file mode 100644 index af372dc8..00000000 --- a/Tests/Resources/products/flatwear.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 2a94339103e7e40219169f13b5ce7013 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/hat.png b/Tests/Resources/products/hat.png deleted file mode 100644 index 8b9e115c..00000000 Binary files a/Tests/Resources/products/hat.png and /dev/null differ diff --git a/Tests/Resources/products/hat.png.meta b/Tests/Resources/products/hat.png.meta deleted file mode 100644 index af7c768f..00000000 --- a/Tests/Resources/products/hat.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 1c9bf8d4be2ec4909968b137cca6a5a5 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/jacket.png b/Tests/Resources/products/jacket.png deleted file mode 100644 index 595b545a..00000000 Binary files a/Tests/Resources/products/jacket.png and /dev/null differ diff --git a/Tests/Resources/products/jacket.png.meta b/Tests/Resources/products/jacket.png.meta deleted file mode 100644 index 5f35151e..00000000 --- a/Tests/Resources/products/jacket.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 39dfc9119bacf4b85b0d265fae8a101f -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/jumper.png b/Tests/Resources/products/jumper.png deleted file mode 100644 index d113cf82..00000000 Binary files a/Tests/Resources/products/jumper.png and /dev/null differ diff --git a/Tests/Resources/products/jumper.png.meta b/Tests/Resources/products/jumper.png.meta deleted file mode 100644 index 759dfb9e..00000000 --- a/Tests/Resources/products/jumper.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 4de6e7bd13cc942acaf79ea01980376e -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/kitchen_quattro.png b/Tests/Resources/products/kitchen_quattro.png deleted file mode 100644 index 5806a675..00000000 Binary files a/Tests/Resources/products/kitchen_quattro.png and /dev/null differ diff --git a/Tests/Resources/products/kitchen_quattro.png.meta b/Tests/Resources/products/kitchen_quattro.png.meta deleted file mode 100644 index 09787ad3..00000000 --- a/Tests/Resources/products/kitchen_quattro.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: d02d7a685bb6643ab841d43ee08037a1 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/napkins.png b/Tests/Resources/products/napkins.png deleted file mode 100644 index f96359b4..00000000 Binary files a/Tests/Resources/products/napkins.png and /dev/null differ diff --git a/Tests/Resources/products/napkins.png.meta b/Tests/Resources/products/napkins.png.meta deleted file mode 100644 index 664671fa..00000000 --- a/Tests/Resources/products/napkins.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 2cfec1ff4da1c4180a77badc07700991 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/planters.png b/Tests/Resources/products/planters.png deleted file mode 100644 index a78ef21f..00000000 Binary files a/Tests/Resources/products/planters.png and /dev/null differ diff --git a/Tests/Resources/products/planters.png.meta b/Tests/Resources/products/planters.png.meta deleted file mode 100644 index a1d964e4..00000000 --- a/Tests/Resources/products/planters.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: d6cfe1d64e50b4921b6127378911cf72 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/platter.png b/Tests/Resources/products/platter.png deleted file mode 100644 index 3986e51d..00000000 Binary files a/Tests/Resources/products/platter.png and /dev/null differ diff --git a/Tests/Resources/products/platter.png.meta b/Tests/Resources/products/platter.png.meta deleted file mode 100644 index 846266f0..00000000 --- a/Tests/Resources/products/platter.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 5670aeff677b64088bebe4eca1226f4d -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/scarf.png b/Tests/Resources/products/scarf.png deleted file mode 100644 index dfb7cc24..00000000 Binary files a/Tests/Resources/products/scarf.png and /dev/null differ diff --git a/Tests/Resources/products/scarf.png.meta b/Tests/Resources/products/scarf.png.meta deleted file mode 100644 index 1cee6ae0..00000000 --- a/Tests/Resources/products/scarf.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: cbceefcfd006d450c82769c232fc553e -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/shirt.png b/Tests/Resources/products/shirt.png deleted file mode 100644 index cf58066f..00000000 Binary files a/Tests/Resources/products/shirt.png and /dev/null differ diff --git a/Tests/Resources/products/shirt.png.meta b/Tests/Resources/products/shirt.png.meta deleted file mode 100644 index 510f2be6..00000000 --- a/Tests/Resources/products/shirt.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 62306f72bb1ce45babf84b36b72a517c -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/sunnies.png b/Tests/Resources/products/sunnies.png deleted file mode 100644 index 2b2d0545..00000000 Binary files a/Tests/Resources/products/sunnies.png and /dev/null differ diff --git a/Tests/Resources/products/sunnies.png.meta b/Tests/Resources/products/sunnies.png.meta deleted file mode 100644 index 93d9c9d6..00000000 --- a/Tests/Resources/products/sunnies.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 86fa61eb0c5b14c9380cc7996cc0eb05 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/sweater.png b/Tests/Resources/products/sweater.png deleted file mode 100644 index 53d4f7e2..00000000 Binary files a/Tests/Resources/products/sweater.png and /dev/null differ diff --git a/Tests/Resources/products/sweater.png.meta b/Tests/Resources/products/sweater.png.meta deleted file mode 100644 index 66ded2af..00000000 --- a/Tests/Resources/products/sweater.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 62ba7ebbec25c471daaf40bb55f357ad -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/sweats.png b/Tests/Resources/products/sweats.png deleted file mode 100644 index 03051077..00000000 Binary files a/Tests/Resources/products/sweats.png and /dev/null differ diff --git a/Tests/Resources/products/sweats.png.meta b/Tests/Resources/products/sweats.png.meta deleted file mode 100644 index bbba053d..00000000 --- a/Tests/Resources/products/sweats.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 2c1f449cb818546b6aac2487bf16ea91 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/table.png b/Tests/Resources/products/table.png deleted file mode 100644 index f537bf8e..00000000 Binary files a/Tests/Resources/products/table.png and /dev/null differ diff --git a/Tests/Resources/products/table.png.meta b/Tests/Resources/products/table.png.meta deleted file mode 100644 index f96eb7c7..00000000 --- a/Tests/Resources/products/table.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 63d5bc443792b4135ada2687a51c6524 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/teaset.png b/Tests/Resources/products/teaset.png deleted file mode 100644 index 0d681650..00000000 Binary files a/Tests/Resources/products/teaset.png and /dev/null differ diff --git a/Tests/Resources/products/teaset.png.meta b/Tests/Resources/products/teaset.png.meta deleted file mode 100644 index 5283772b..00000000 --- a/Tests/Resources/products/teaset.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 1ea4cd0db6dd649858a8d4ae1d8e1b0c -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/products/top.png b/Tests/Resources/products/top.png deleted file mode 100644 index 30ff7546..00000000 Binary files a/Tests/Resources/products/top.png and /dev/null differ diff --git a/Tests/Resources/products/top.png.meta b/Tests/Resources/products/top.png.meta deleted file mode 100644 index 1baf6467..00000000 --- a/Tests/Resources/products/top.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 28c554c1d07094c75bf3336f43b55c85 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/unity-black.png b/Tests/Resources/unity-black.png deleted file mode 100644 index 8f5a1911..00000000 Binary files a/Tests/Resources/unity-black.png and /dev/null differ diff --git a/Tests/Resources/unity-black.png.meta b/Tests/Resources/unity-black.png.meta deleted file mode 100644 index 13f57a70..00000000 --- a/Tests/Resources/unity-black.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: b09b9022b548f4a788de5d6d2b47aeac -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Resources/unity-white.png b/Tests/Resources/unity-white.png deleted file mode 100644 index fe54b23d..00000000 Binary files a/Tests/Resources/unity-white.png and /dev/null differ diff --git a/Tests/Resources/unity-white.png.meta b/Tests/Resources/unity-white.png.meta deleted file mode 100644 index a7e6acba..00000000 --- a/Tests/Resources/unity-white.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 18b226d86a5e74dd392f35201ac60139 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Runtime.meta b/Tests/Runtime.meta deleted file mode 100644 index 0445a5cd..00000000 --- a/Tests/Runtime.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c2d6e16ea80ac4c7c83c21d2d0d9a4ee -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Runtime/RuntimeExampleTest.cs b/Tests/Runtime/RuntimeExampleTest.cs deleted file mode 100644 index 0e59fb52..00000000 --- a/Tests/Runtime/RuntimeExampleTest.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Collections; -using NUnit.Framework; -using UnityEngine.TestTools; - -class RuntimeExampleTest { - [Test] - public void PlayModeSampleTestSimplePasses() { - // Use the Assert class to test conditions. - } - - // A UnityTest behaves like a coroutine in PlayMode - // and allows you to yield null to skip a frame in EditMode - [UnityTest] - public IEnumerator PlayModeSampleTestWithEnumeratorPasses() { - // Use the Assert class to test conditions. - // yield to skip a frame - yield return null; - } -} \ No newline at end of file diff --git a/Tests/Runtime/RuntimeExampleTest.cs.meta b/Tests/Runtime/RuntimeExampleTest.cs.meta deleted file mode 100644 index 3f8d5818..00000000 --- a/Tests/Runtime/RuntimeExampleTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 59b1c9d60b19a408898d5495008de48e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Runtime/Unity.UIWidgets.Tests.asmdef b/Tests/Runtime/Unity.UIWidgets.Tests.asmdef deleted file mode 100644 index 511c4bda..00000000 --- a/Tests/Runtime/Unity.UIWidgets.Tests.asmdef +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "Unity.UIWidgets.Tests", - "references": [ - "Unity.UIWidgets" - ], - "optionalUnityReferences": [ - "TestAssemblies" - ], - "includePlatforms": [], - "excludePlatforms": [] -} diff --git a/Tests/Runtime/Unity.UIWidgets.Tests.asmdef.meta b/Tests/Runtime/Unity.UIWidgets.Tests.asmdef.meta deleted file mode 100644 index 60095e36..00000000 --- a/Tests/Runtime/Unity.UIWidgets.Tests.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 14a815924271b4a9f9efdffaba3f607b -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/package.json b/package.json index e349e2ad..5fd9bb09 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "com.unity.uiwidgets", "displayName":"UIWidgets", - "version": "1.0.0-preview", - "unity": "2018.1", + "version": "1.5.4-preview.1", + "unity": "2018.4", "description": "UIWidgets allows you to build beautiful cross-platform apps through Unity", "dependencies": { }