crazy games integrations (#2675)

## Description:

Integrate with crazy games SDK

## Please complete the following:

- [ ] I have added screenshots for all UI updates
- [ ] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [ ] I have added relevant tests to the test directory
- [ ] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
This commit is contained in:
Evan
2025-12-23 09:11:00 -08:00
committed by GitHub
parent 29d6cee4e1
commit a810e0ad34
7 changed files with 261 additions and 15 deletions
@@ -8,6 +8,7 @@ export class OModal extends LitElement {
@property({ type: String }) title = "";
@property({ type: String }) translationKey = "";
@property({ type: Boolean }) alwaysMaximized = false;
@property({ type: Function }) onClose?: () => void;
static styles = css`
.c-modal {
@@ -75,10 +76,10 @@ export class OModal extends LitElement {
this.isModalOpen = true;
}
public close() {
this.isModalOpen = false;
this.dispatchEvent(
new CustomEvent("modal-close", { bubbles: true, composed: true }),
);
if (this.isModalOpen) {
this.isModalOpen = false;
this.onClose?.();
}
}
render() {