Git Product home page Git Product logo

playcanvas-ui-components's Introduction

Playcanvas-UI-Components

This repository provides scripts for UI components, that can be used in forms.

This components is basically helps you to build forms on your Playcanvas script, without dealing HTML styling. You can simply drag&drop input script to an element and use it's functionality without dealing some style properties, such as font, positioning and visibility.

There are 4 different input types that can be used in script.

  • Text input
  • Select input
  • Checkbox
  • Slider

Since I use these components in my games, there are some other functions that is useful in games. Like store value option. That function simply keeps value in text element, even after page reload. I was using that functionality on settings, or guest username.

You can simply reach the input's value with getValue function in the script. If you use input element, you can use entity.script.input.getValue(); to get it. setValue function also can be used.

The scripts are very easy. You can write your own script in a short time. But I wrote these components once and thought it can be good to share with people. I always use them on my projects.

Anyway, here is the demo link : https://playcanv.as/p/54XFJtDK/

Here is the project link : https://playcanvas.com/project/644577/overview/uicomponents

Here is the github repository : https://github.com/devcem/Playcanvas-UI-Components

And here is the youtube video, in case you need assist : https://www.youtube.com/watch?v=YYoOtq_Spio&feature=youtu.be

Video for template system :

Timer.js

Timer.js is a script to show count backs in game. For example you want to show a countdown from 10 to zero. Put a text, set 10 it's text and put timer.js on it. It will automatically count down from that time.

You can use timer.js at the end of the game, for vote timer or game start events.

Features

  • storeValue : This option basically stores the input value after change. It can be useful for settings and username.
  • focusEntity : It simply shows or hides an entity on playcanvas while input active.

Changelog

  • Timeline.js now can play same animation again if autoplay is enabled on state change.
  • Container.js bugs fixed.

playcanvas-ui-components's People

Contributors

devcem avatar

Stargazers

 avatar  avatar Cassim Ahmed Attia avatar Knight Captain avatar Stephon avatar Minh Tran avatar Markshawn avatar TanglingTreats avatar chenkaiC4 avatar LKK avatar Meta avatar Tran Truong Vu avatar Isaac Manning Dart avatar David P avatar Sujoy Ghosh avatar My-khael Pierce avatar Marcin Kawelski avatar Goktug Yilmaz avatar  avatar Steven Yau avatar  avatar Yunus Emre Özdiyar avatar Eser avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

playcanvas-ui-components's Issues

License information

Hey @devcem,

thank you for the ui scripts in this repository. I cannot find any license information, could you add one?

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.