Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
/ supv_dialog Public archive

First script to test ChakraUI with React on TypeScript for supv_core

Notifications You must be signed in to change notification settings

supv-cfx/supv_dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supv_dialog

First script to test ChakraUI with React on TypeScript for supv_core

🇫🇷

Télécharger code source ou la release

Release :

  • Regardez a droite sur github vous pouvez voir la section release, télécharger le .zip directement ici avoir juste a ensure la ressource dans votre .cfg

Source Code :

  • Si vous voulez télécharger le code source vous aurez besoin de le build (requis: NodeJs > 17.0.0)
  • Allez dans le dossier web de la ressource, et ouvrez votre cmd a partir d'ici (il faut que dans votre cmd l'adresse de commande soi .../supv_dialog/web)
  • Ensuite vous pouvez installer les modules via nodejs en tapant dans votre cmd : npm i
  • Vous pouvez à présent éditer le code de l'interface, pour le rendu final pour le jeu vous devrez taper dans votre cmd : npm run build
  • Fini

Comment l'utiliser?

  • Utiliser l'export ainsi dans n'importe quelle de vos ressources
---CreateInteractDialog
---@param title string
---@param desrcription string
---@return boolean
local dialog = exports.supv_dialog:CreateInteractDialog('My title here', 'My description here')
if dialog then
    print('success', dialog)
else
    print('failed', dialog)
end

🇬🇧

Download source-code or release?

Release :

  • Look right of github and release download .zip for script is ready with ensure only in your server.cfg

Source Code :

  • If you want doawnload source code you need to build ui yourself (required: NodeJS > 17.0.0)
  • Go in web folder of this resource and open cmd here (for your path is ...supv_dialog/web)
  • Write in your cmd when path is okay : npm i
  • You can edit code, now for build it write in cmd : npm run build
  • Finish

How to use?

  • Use this export like it :
---CreateInteractDialog
---@param title string
---@param desrcription string
---@return boolean
local dialog = exports.supv_dialog:CreateInteractDialog('My title here', 'My description here')
if dialog then
    print('success', dialog)
else
    print('failed', dialog)
end

About

First script to test ChakraUI with React on TypeScript for supv_core

Resources

Stars

Watchers

Forks

Packages

No packages published