Code Monkey home page Code Monkey logo

uiframwork's Introduction

使用方法:
1.在UIPanel文件夹里的UIPanelType写入UI的名字
2.在Resources文件夹里的UIPanelType的Json文件写入UI窗口的预制体名和预制体所在的路径
3.让每个UI窗口预制体继承自BasePanel。
4.在每个窗口中,如果要显示下一个要打开的窗口就调用UIManager.Instance.PushPanel(UIPanelType.要打开的窗口名);
5.在每个窗口中,如果要关闭本窗口就调用 UIManager.Instance.PopPanel();
6.每个窗口中,可以根据需求重写下面方法:OnExit(本页面关闭的操作),OnEnter(本页面初显示时的操作),OnResume(上一个页面退出后本页面的操作),OnPause(下一个页面弹出时本页面的操作)。这些操作一般是设置本页面不能交互,或者设置界面隐藏和显示等。

uiframwork's People

Contributors

zhongweiyue avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.