Repository: fairygui/FairyGUI-egret Branch: master Commit: 6dbd7e1926ae Files: 392 Total size: 6.2 MB Directory structure: gitextract_qo9pgmn9/ ├── .gitignore ├── FairyGUI-egret.code-workspace ├── LICENSE ├── README.md ├── demo/ │ ├── .vscode/ │ │ └── tasks.json │ ├── .wing/ │ │ ├── launch.json │ │ └── tasks.json │ ├── UIProject/ │ │ ├── FairyGUI-egret-demo.fairy │ │ ├── assets/ │ │ │ ├── Bag/ │ │ │ │ ├── BagButton.xml │ │ │ │ ├── BagGridSub.xml │ │ │ │ ├── BagWin.xml │ │ │ │ ├── CloseButton.xml │ │ │ │ ├── Main.xml │ │ │ │ ├── WindowFrame.xml │ │ │ │ ├── dot.xml │ │ │ │ ├── images/ │ │ │ │ │ └── quan.jta │ │ │ │ └── package.xml │ │ │ ├── Basics/ │ │ │ │ ├── CircleProgress.xml │ │ │ │ ├── Demo_Button.xml │ │ │ │ ├── Demo_Clip&Scroll.xml │ │ │ │ ├── Demo_ComboBox.xml │ │ │ │ ├── Demo_Component.xml │ │ │ │ ├── Demo_Controller.xml │ │ │ │ ├── Demo_Depth.xml │ │ │ │ ├── Demo_Drag&Drop.xml │ │ │ │ ├── Demo_Graph.xml │ │ │ │ ├── Demo_Grid.xml │ │ │ │ ├── Demo_Image.xml │ │ │ │ ├── Demo_Label.xml │ │ │ │ ├── Demo_List.xml │ │ │ │ ├── Demo_Loader.xml │ │ │ │ ├── Demo_MovieClip.xml │ │ │ │ ├── Demo_Popup.xml │ │ │ │ ├── Demo_ProgressBar.xml │ │ │ │ ├── Demo_Relation.xml │ │ │ │ ├── Demo_Slider.xml │ │ │ │ ├── Demo_Text.xml │ │ │ │ ├── Demo_Window.xml │ │ │ │ ├── Main.xml │ │ │ │ ├── WindowA.xml │ │ │ │ ├── WindowB.xml │ │ │ │ ├── components/ │ │ │ │ │ ├── BagGridSub.xml │ │ │ │ │ ├── BagGridSub2.xml │ │ │ │ │ ├── Button.xml │ │ │ │ │ ├── Button1.xml │ │ │ │ │ ├── Button10.xml │ │ │ │ │ ├── Button13.xml │ │ │ │ │ ├── Button14.xml │ │ │ │ │ ├── Button15.xml │ │ │ │ │ ├── Button16.xml │ │ │ │ │ ├── Button2.xml │ │ │ │ │ ├── Button3.xml │ │ │ │ │ ├── Button4.xml │ │ │ │ │ ├── Button5.xml │ │ │ │ │ ├── Button52.xml │ │ │ │ │ ├── Button6.xml │ │ │ │ │ ├── Button7.xml │ │ │ │ │ ├── Button8.xml │ │ │ │ │ ├── Button82.xml │ │ │ │ │ ├── Button9.xml │ │ │ │ │ ├── Checkbox.xml │ │ │ │ │ ├── CloseButton.xml │ │ │ │ │ ├── ComboBox.xml │ │ │ │ │ ├── ComboBoxItem.xml │ │ │ │ │ ├── ComboBoxPopup.xml │ │ │ │ │ ├── Component1.xml │ │ │ │ │ ├── Component10.xml │ │ │ │ │ ├── Component11.xml │ │ │ │ │ ├── Component12.xml │ │ │ │ │ ├── Component13.xml │ │ │ │ │ ├── Component14.xml │ │ │ │ │ ├── Component2.xml │ │ │ │ │ ├── Component3.xml │ │ │ │ │ ├── Component4.xml │ │ │ │ │ ├── Component5.xml │ │ │ │ │ ├── Component6.xml │ │ │ │ │ ├── Component7.xml │ │ │ │ │ ├── Component8.xml │ │ │ │ │ ├── Component9.xml │ │ │ │ │ ├── Dropdown.xml │ │ │ │ │ ├── Dropdown2.xml │ │ │ │ │ ├── GridItem.xml │ │ │ │ │ ├── GridItem2.xml │ │ │ │ │ ├── OnOffButton.xml │ │ │ │ │ ├── ProgressBar.xml │ │ │ │ │ ├── ProgressBar1.xml │ │ │ │ │ ├── ProgressBar2.xml │ │ │ │ │ ├── ProgressBar3.xml │ │ │ │ │ ├── ProgressBar4.xml │ │ │ │ │ ├── ProgressBar5.xml │ │ │ │ │ ├── ProgressBar6.xml │ │ │ │ │ ├── RadioButton.xml │ │ │ │ │ ├── Slider1.xml │ │ │ │ │ ├── Slider2.xml │ │ │ │ │ ├── Slider2_grip.xml │ │ │ │ │ ├── SliderArrow_HZ.xml │ │ │ │ │ ├── SliderArrow_VT.xml │ │ │ │ │ ├── Slider_HZ.xml │ │ │ │ │ ├── Slider_VT.xml │ │ │ │ │ ├── WindowCloseButton.xml │ │ │ │ │ ├── WindowFrame.xml │ │ │ │ │ └── WindowFrameB.xml │ │ │ │ ├── font/ │ │ │ │ │ ├── BMFontTest.fnt │ │ │ │ │ └── HitNumber.fnt │ │ │ │ ├── images/ │ │ │ │ │ ├── gz.jta │ │ │ │ │ ├── nlge1k.jta │ │ │ │ │ ├── pet.jta │ │ │ │ │ └── qtm01d.swf │ │ │ │ ├── package.xml │ │ │ │ ├── popupmenu/ │ │ │ │ │ ├── PopupMenu.xml │ │ │ │ │ └── PopupMenuItem.xml │ │ │ │ └── scrollbars/ │ │ │ │ ├── GripButton_HZ.xml │ │ │ │ ├── GripButton_VT.xml │ │ │ │ ├── ScrollBar_HZ.xml │ │ │ │ ├── ScrollBar_VT.xml │ │ │ │ ├── ScrollDownButton.xml │ │ │ │ └── ScrollUpButton.xml │ │ │ ├── Chat/ │ │ │ │ ├── Button.xml │ │ │ │ ├── Button2.xml │ │ │ │ ├── EmojiSelectUI.xml │ │ │ │ ├── Main.xml │ │ │ │ ├── ScrollBar_VT.xml │ │ │ │ ├── chatLeft.xml │ │ │ │ ├── chatRight.xml │ │ │ │ ├── emoji/ │ │ │ │ │ ├── 88.jta │ │ │ │ │ ├── am.jta │ │ │ │ │ ├── bs.jta │ │ │ │ │ ├── bz.jta │ │ │ │ │ ├── ch.jta │ │ │ │ │ ├── cool.jta │ │ │ │ │ ├── dhq.jta │ │ │ │ │ ├── dn.jta │ │ │ │ │ ├── fd.jta │ │ │ │ │ ├── gz.jta │ │ │ │ │ ├── han.jta │ │ │ │ │ ├── hx.jta │ │ │ │ │ ├── hxiao.jta │ │ │ │ │ └── hxiu.jta │ │ │ │ ├── faceSub.xml │ │ │ │ └── package.xml │ │ │ ├── Cooldown/ │ │ │ │ ├── Button1.xml │ │ │ │ ├── Button2.xml │ │ │ │ ├── Main.xml │ │ │ │ ├── cdtime.fnt │ │ │ │ └── package.xml │ │ │ ├── Guide/ │ │ │ │ ├── BagButton.xml │ │ │ │ ├── Button1.xml │ │ │ │ ├── GuideLayer.xml │ │ │ │ ├── Main.xml │ │ │ │ ├── package.xml │ │ │ │ ├── quan.jta │ │ │ │ └── rswcfhd.jta │ │ │ ├── HitTest/ │ │ │ │ ├── Main.xml │ │ │ │ ├── button1.xml │ │ │ │ ├── button2.xml │ │ │ │ ├── button3.xml │ │ │ │ ├── button4.xml │ │ │ │ ├── component1.xml │ │ │ │ └── package.xml │ │ │ ├── Joystick/ │ │ │ │ ├── Main.xml │ │ │ │ ├── circle.xml │ │ │ │ └── package.xml │ │ │ ├── ListEffect/ │ │ │ │ ├── Main.xml │ │ │ │ ├── mailItem.xml │ │ │ │ └── package.xml │ │ │ ├── LoopList/ │ │ │ │ ├── Main.xml │ │ │ │ ├── item.xml │ │ │ │ └── package.xml │ │ │ ├── MainMenu/ │ │ │ │ ├── Button.xml │ │ │ │ ├── CloseButton.xml │ │ │ │ ├── Main.xml │ │ │ │ └── package.xml │ │ │ ├── ModalWaiting/ │ │ │ │ ├── Button1.xml │ │ │ │ ├── CloseButton.xml │ │ │ │ ├── GlobalModalWaiting.xml │ │ │ │ ├── Main.xml │ │ │ │ ├── TestWin.xml │ │ │ │ ├── WindowFrame.xml │ │ │ │ ├── WindowModalWaiting.xml │ │ │ │ ├── package.xml │ │ │ │ └── qtm011.jta │ │ │ ├── PullToRefresh/ │ │ │ │ ├── Footer.xml │ │ │ │ ├── Header.xml │ │ │ │ ├── Main.xml │ │ │ │ ├── item.xml │ │ │ │ └── package.xml │ │ │ ├── ScrollPane/ │ │ │ │ ├── Box.xml │ │ │ │ ├── Button1.xml │ │ │ │ ├── Button2.xml │ │ │ │ ├── Main.xml │ │ │ │ ├── item.xml │ │ │ │ └── package.xml │ │ │ ├── Transition/ │ │ │ │ ├── BOSS.xml │ │ │ │ ├── BOSS_SKILL.xml │ │ │ │ ├── Button1.xml │ │ │ │ ├── GoodHit.xml │ │ │ │ ├── Main.xml │ │ │ │ ├── PathDemo.xml │ │ │ │ ├── PowerUp.xml │ │ │ │ ├── TRAP.xml │ │ │ │ ├── images/ │ │ │ │ │ └── U1UIT17.jta │ │ │ │ ├── number1.fnt │ │ │ │ ├── number2.fnt │ │ │ │ ├── number3.fnt │ │ │ │ └── package.xml │ │ │ ├── TreeView/ │ │ │ │ ├── Icons/ │ │ │ │ │ └── heart.jta │ │ │ │ ├── Main.xml │ │ │ │ ├── TreeExpandButton.xml │ │ │ │ ├── TreeItem.xml │ │ │ │ └── package.xml │ │ │ └── VirtualList/ │ │ │ ├── Button1.xml │ │ │ ├── Main.xml │ │ │ ├── mailItem.xml │ │ │ └── package.xml │ │ └── settings/ │ │ ├── Adaptation.json │ │ ├── Common.json │ │ ├── CustomProperties.json │ │ ├── Publish.json │ │ └── i18n.json │ ├── egretProperties.json │ ├── index.html │ ├── libs/ │ │ ├── fairygui/ │ │ │ ├── fairygui.d.ts │ │ │ └── fairygui.js │ │ ├── modules/ │ │ │ ├── assetsmanager/ │ │ │ │ ├── assetsmanager.d.ts │ │ │ │ └── assetsmanager.js │ │ │ ├── egret/ │ │ │ │ ├── egret.d.ts │ │ │ │ ├── egret.js │ │ │ │ └── egret.web.js │ │ │ ├── game/ │ │ │ │ ├── game.d.ts │ │ │ │ └── game.js │ │ │ ├── promise/ │ │ │ │ └── promise.js │ │ │ └── tween/ │ │ │ ├── tween.d.ts │ │ │ └── tween.js │ │ └── rawinflate/ │ │ ├── rawinflate.d.ts │ │ └── rawinflate.js │ ├── manifest.json │ ├── resource/ │ │ ├── assets/ │ │ │ └── UI/ │ │ │ ├── Bag.fui │ │ │ ├── Basics.fui │ │ │ ├── Chat.fui │ │ │ ├── Cooldown.fui │ │ │ ├── Guide.fui │ │ │ ├── HitTest.fui │ │ │ ├── Joystick.fui │ │ │ ├── ListEffect.fui │ │ │ ├── LoopList.fui │ │ │ ├── MainMenu.fui │ │ │ ├── ModalWaiting.fui │ │ │ ├── PullToRefresh.fui │ │ │ ├── ScrollPane.fui │ │ │ ├── Transition.fui │ │ │ ├── TreeView.fui │ │ │ └── VirtualList.fui │ │ ├── config/ │ │ │ └── description.json │ │ └── default.res.json │ ├── scripts/ │ │ ├── api.d.ts │ │ ├── baidugame/ │ │ │ └── baidugame.ts │ │ ├── bricks/ │ │ │ └── bricks.ts │ │ ├── config.android.ts │ │ ├── config.baidugame.ts │ │ ├── config.bricks.ts │ │ ├── config.ios.ts │ │ ├── config.oppogame.ts │ │ ├── config.qgame.ts │ │ ├── config.qqgame.ts │ │ ├── config.ts │ │ ├── config.vivogame.ts │ │ ├── config.wxgame.ts │ │ ├── myplugin.ts │ │ ├── node.d.ts │ │ ├── oppogame/ │ │ │ └── oppogame.ts │ │ ├── qgame/ │ │ │ └── qgame.ts │ │ ├── qqgame/ │ │ │ └── qqgame.ts │ │ ├── tsconfig.json │ │ ├── vivogame/ │ │ │ └── vivogame.ts │ │ └── wxgame/ │ │ └── wxgame.ts │ ├── src/ │ │ ├── LoadingUI.ts │ │ ├── Main.ts │ │ ├── Platform.ts │ │ └── demo/ │ │ ├── BagDemo.ts │ │ ├── BasicsDemo.ts │ │ ├── ChatDemo.ts │ │ ├── CooldownDemo.ts │ │ ├── DemoEntry.ts │ │ ├── EmojiParser.ts │ │ ├── GuideDemo.ts │ │ ├── HitTestDemo.ts │ │ ├── JoystickDemo.ts │ │ ├── JoystickModule.ts │ │ ├── ListEffectDemo.ts │ │ ├── LoopListDemo.ts │ │ ├── MailItem.ts │ │ ├── MainMenu.ts │ │ ├── ModalWaitingDemo.ts │ │ ├── PullToRefreshDemo.ts │ │ ├── ScrollPaneDemo.ts │ │ ├── ScrollPaneHeader.ts │ │ ├── TestWin.ts │ │ ├── TransitionDemo.ts │ │ ├── TreeViewDemo.ts │ │ └── VirtualListDemo.ts │ ├── template/ │ │ ├── runtime/ │ │ │ ├── native_loader.js │ │ │ ├── native_require.js │ │ │ └── runtime_loader.js │ │ └── web/ │ │ └── index.html │ ├── tsconfig.json │ └── wingProperties.json └── source/ ├── .vscode/ │ └── tasks.json ├── bin/ │ ├── fairygui.d.ts │ └── fairygui.js ├── gulpfile.js ├── lib/ │ ├── assetsmanager.d.ts │ ├── dragonBones.d.ts │ ├── egret.d.ts │ └── rawinflate.d.ts ├── package.json ├── src/ │ ├── AsyncOperation.ts │ ├── Controller.ts │ ├── DragDropManager.ts │ ├── FieldTypes.ts │ ├── GButton.ts │ ├── GComboBox.ts │ ├── GComponent.ts │ ├── GGraph.ts │ ├── GGroup.ts │ ├── GImage.ts │ ├── GLabel.ts │ ├── GList.ts │ ├── GLoader.ts │ ├── GLoader3D.ts │ ├── GMovieClip.ts │ ├── GObject.ts │ ├── GObjectPool.ts │ ├── GProgressBar.ts │ ├── GRichTextField.ts │ ├── GRoot.ts │ ├── GScrollBar.ts │ ├── GSlider.ts │ ├── GTextField.ts │ ├── GTextInput.ts │ ├── GTree.ts │ ├── GTreeNode.ts │ ├── IUISource.ts │ ├── Margin.ts │ ├── PackageItem.ts │ ├── PopupMenu.ts │ ├── RelationItem.ts │ ├── Relations.ts │ ├── ScrollPane.ts │ ├── Transition.ts │ ├── TranslationHelper.ts │ ├── UIConfig.ts │ ├── UIObjectFactory.ts │ ├── UIPackage.ts │ ├── Window.ts │ ├── action/ │ │ ├── ChangePageAction.ts │ │ ├── ControllerAction.ts │ │ └── PlayTransitionAction.ts │ ├── display/ │ │ ├── BitmapFont.ts │ │ ├── FillUtils.ts │ │ ├── Image.ts │ │ ├── MovieClip.ts │ │ └── UIContainer.ts │ ├── event/ │ │ ├── DragEvent.ts │ │ ├── DropEvent.ts │ │ ├── ItemEvent.ts │ │ └── StateChangeEvent.ts │ ├── gears/ │ │ ├── GearAnimation.ts │ │ ├── GearBase.ts │ │ ├── GearColor.ts │ │ ├── GearDisplay.ts │ │ ├── GearDisplay2.ts │ │ ├── GearFontSize.ts │ │ ├── GearIcon.ts │ │ ├── GearLook.ts │ │ ├── GearSize.ts │ │ ├── GearText.ts │ │ └── GearXY.ts │ ├── tween/ │ │ ├── EaseManager.ts │ │ ├── EaseType.ts │ │ ├── GPath.ts │ │ ├── GPathPoint.ts │ │ ├── GTween.ts │ │ ├── GTweener.ts │ │ ├── TweenManager.ts │ │ └── TweenValue.ts │ └── utils/ │ ├── ByteBuffer.ts │ ├── ColorMatrix.ts │ ├── GTimers.ts │ ├── PixelHitTest.ts │ ├── ToolSet.ts │ └── UBBParser.ts └── tsconfig.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ node_modules .DS_Store .objs bin-debug bin-release ================================================ FILE: FairyGUI-egret.code-workspace ================================================ { "folders": [ { "path": "source" }, { "path": "demo" } ], "settings": {} } ================================================ FILE: LICENSE ================================================ The MIT License (MIT) Copyright (c) 2015 fairygui.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ FairyGUI-egret ==== A flexible UI framework for Egret Engine, working with the FREE professional Game UI Editor: FairyGUI Editor. Official website: [www.fairygui.com](http://www.fairygui.com) # 目录结构 * source fairygui的源码 * test 例子工程,可用Egret Wing直接打开 * UIProject UI 工程,可以FairyGUI编辑器打开 # 获取fairygui库 如果你只是想添加或者更新fairygui库到你的项目,那么下载以下文件即可: * source/bin/fairygui.js * source/bin/fairygui.min.js * source/bin/fairygui.d.ts # 编译源码 使用VSC打开source目录,执行gulp build任务. # License MIT ================================================ FILE: demo/.vscode/tasks.json ================================================ { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "Egret Run", "type": "shell", "command": "egret run -a", "problemMatcher": [] } ] } ================================================ FILE: demo/.wing/launch.json ================================================ { "version": "0.2.0", "configurations": [ { "name": "Wing 内置播放器调试", "type": "chrome", "request": "launch", "file": "index.html", //"url": "http://mysite.com/index.html", "runtimeExecutable": "${execPath}", "sourceMaps": true, "webRoot": "${workspaceRoot}", "preLaunchTask":"build", "port":5925 }, { "name": "使用本机 Chrome 调试", "type": "chrome", "request": "launch", "file": "index.html", //"url": "http://mysite.com/index.html", "runtimeExecutable": "", "sourceMaps": true, "webRoot": "${workspaceRoot}", "preLaunchTask":"build", "userDataDir":"${tmpdir}", "port":5925 } ] } ================================================ FILE: demo/.wing/tasks.json ================================================ { "version": "0.1.0", "command": "egret", "isShellCommand": true, "tasks": [ { "taskName": "build", "showOutput": "always", "args": [ "build", "-sourcemap" ], "problemMatcher": "$tsc" }, { "taskName": "clean", "showOutput": "always", "args": [ "build", "-e" ], "problemMatcher": "$tsc" }, { "taskName": "publish", "showOutput": "always", "args": [ "publish" ], "problemMatcher": "$tsc" } ] } ================================================ FILE: demo/UIProject/FairyGUI-egret-demo.fairy ================================================ ================================================ FILE: demo/UIProject/assets/Bag/BagButton.xml ================================================