GameCode Docs
CTRL K

Launcher · Funções nativas

FunçõesEssenciais
As funções que o tema do launcher chama para conversar com o núcleo.

As funções marcadas como essencial qualquer tema precisa.

Início e janela

ThemeReady()essencial

Avisa que o tema carregou. Sem isto a janela aparece cortada. Chame no fim do carregamento.

// Avisa que o tema carregou (chame no fim)
ThemeReady();
Start(param, main)essencial

Inicia o jogo. Passe main vazio para usar o exe do launcher.json.

// Inicia o jogo (main vazio = usa o launcher.json)
Start('connect', '');
Minimizer() · Closed()essencial

Minimiza e fecha a janela.

Minimizer();  // minimiza
Closed();     // fecha

Navegação e avisos

Url(endereco)

Abre um link no navegador padrão.

Url('https://seusite.com/ranking');
Alert(tipo, titulo, msg)

Caixa de diálogo. tipo: info, warning, error.

Alert('info', 'Aviso', 'Manutenção às 20h.');

Ler/gravar config do jogo? Veja Leitura e atualização.

Launcher · Native functions

FunçõesEssentials
The functions the launcher theme calls to talk to the core.

The functions marked essential every theme needs.

Start and window

ThemeReady()essential

Signals the theme loaded. Without it the window shows cropped. Call at the end of loading.

// Avisa que o tema carregou (chame no fim)
ThemeReady();
Start(param, main)essential

Starts the game. Pass main empty to use the exe from launcher.json.

// Inicia o jogo (main vazio = usa o launcher.json)
Start('connect', '');
Minimizer() · Closed()essential

Minimizes and closes the window.

Minimizer();  // minimiza
Closed();     // fecha

Navigation and alerts

Url(address)

Opens a link in the default browser.

Url('https://seusite.com/ranking');
Alert(type, title, msg)

Dialog box. type: info, warning, error.

Alert('info', 'Aviso', 'Manutenção às 20h.');

Read/write game settings? See Read & write.

Launcher · Funciones nativas

FunçõesEsenciales
Las funciones que el tema del launcher llama para hablar con el núcleo.

Las funciones marcadas como esencial todo tema las necesita.

Inicio y ventana

ThemeReady()esencial

Avisa que el tema cargó. Sin esto la ventana aparece cortada. Llama al final de la carga.

// Avisa que o tema carregou (chame no fim)
ThemeReady();
Start(param, main)esencial

Inicia el juego. Pasa main vacío para usar el exe del launcher.json.

// Inicia o jogo (main vazio = usa o launcher.json)
Start('connect', '');
Minimizer() · Closed()esencial

Minimiza y cierra la ventana.

Minimizer();  // minimiza
Closed();     // fecha

Navegación y avisos

Url(direccion)

Abre un enlace en el navegador predeterminado.

Url('https://seusite.com/ranking');
Alert(tipo, titulo, msg)

Cuadro de diálogo. tipo: info, warning, error.

Alert('info', 'Aviso', 'Manutenção às 20h.');

¿Leer/escribir config del juego? Mira Lectura y escritura.