Giter Club home page Giter Club logo

cst_notif's Introduction

cst_notif

Système de notification en html/css/js/lua
Preview : https://streamable.com/2gz6vc

server_side :

TriggerClientEvent("cst:Notification", source, "txt", time, "color", "logo", {"font","fontSize"}, {"AnimIn","AnimeOut"}, "border", "padding")

client_side :

exports["cst_notif"]:cstNotification("Mon texte", 2500, "rgba(255,255,255,0.5)", "monLogo", {"votrePolice", "TaillePolice"}, {"AnimIn seconde", "AnimeOut seconde"}, "30px", "auto")

[EN]

  • if text/value(msec)/color/logo are undefined then data = [config.js]

[FR] <<<<<<< main

  • Si vous ne paramètrer pas les paramêtre dans l'export ou l'event alors les paramètres non définit seront ceux du fichier
  • Pour importer une police il suffit juste de la déclarer dans le css et de la mettre sous format .ttf
@font-face {
    font-family: votrePolice;
    src: url('fonts/votrePolice.ttf');
}
/* Ainsi quand vous utilisez la notification dans le paramètre notif : "votrePolice" */

/* Ou via import : */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");

[config.js]

  • Pour utilisez les images personnalisé il vous suffit de mettre des images en .png dans le fichier [img] et des le paramètre logo mettre le nom de celle-ci sous forme d'un string "supv" sans le .png

//Liste des animations :

anim animremove

rotatein rotateout

shorten

scalein scaleout

fadein fadeout

insert-left insert-top insert-bottom insert-right =======

  • Si vous ne paramètrer pas les paramêtre dans l'export ou l'event alors les paramètres non définit seront ceux du fichier [config.js]
  • Pour utilisez les images personnalisé il vous suffit de mettre des images en .png dans le fichier [img] et des le paramètre logo mettre le nom de celle-ci sous forme d'un string "supv" sans le .png

main

cst_notif's People

Contributors

cossart-fr avatar sup2ak avatar

Stargazers

 avatar  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.