This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function createUser(username) { | |
| username = username.trim() | |
| let actor = await Actor.implementation.create({ | |
| name: username, | |
| type: 'character', | |
| }) | |
| let user = await User.create({ name: username, role: 2, character: actor }) | |
| let id = user.id | |
| let permissions = actor.data.permission | |
| permissions[id] = 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace enumExample | |
| { | |
| public class Program | |
| { | |
| // Prumer znamek | |
| enum GradeSystem | |
| { | |
| A = 100, | |
| B = 90, | |
| C = 80, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .trait-2e, .trait-2e-size, .trait-2e-uncommon, trait-2e-unique, .trait-2e-rare, .trait-2e-alignment { border-color: #d8c483; border-style: double; border-width: 2px; color: white; font-style: normal; font-variant: small-caps; font-weight: bold; padding-right: 5px; padding-left: 5px; text-align: left; text-indent: 0.00em; display: inline-block; margin: 0; } | |
| .trait-2e { background-color: #522e2c; } | |
| .trait-2e-uncommon { background-color: #c45500; } | |
| .trait-2e-unique { background-color: #800080; } | |
| .trait-2e-size { background-color: #478c42; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function escapeHtml(html) { | |
| const text = document.createTextNode(html); | |
| const p = document.createElement('p'); | |
| p.appendChild(text); | |
| return p.innerHTML; | |
| } | |
| function capitalize(s) { | |
| return s.charAt(0).toUpperCase() + s.slice(1); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let dialogEditor = new Dialog({ | |
| title: `LightPicker`, | |
| buttons: { | |
| none: { | |
| label: `None`, | |
| callback: () => { | |
| token.document.update({light:{ dim: 0, bright: 0, color: "#000000", alpha: 0, angle: 360, animation:{ type: "none", speed: 5, intensity: 5}}}); | |
| dialogEditor.render(true); | |
| } | |
| }, |