Skip to content
View in the app

A better way to browse. Learn more.

Learn more

wardrobe-ballot/addons/amxmodx/scripting/include/olds_wardrobe_core.inc

olds_wardrobe_core.inc
46 lines · 1.3 KB · Pawn include
Raw
/*
 * The wardrobe core API that Wardrobe Ballot (olds_wardrobe) uses. A wardrobe
 * core, or a bridge plugin in front of one, provides these natives under the
 * library name "wardrobe_core".
 * Copyright (C) 2026 daemon (olds.ro)
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
#if defined _olds_wardrobe_core_included
    #endinput
#endif
#define _olds_wardrobe_core_included

#pragma reqlib wardrobe_core
#if !defined AMXMODX_NOAUTOLOAD
    #pragma loadlib wardrobe_core
#endif

/* Theme index for the core's own default look. */
#define WARDROBE_DEFAULT -1

/**
 * @return  how many themes the registry holds (indexes 0 .. count-1)
 */
native wardrobe_theme_count();

/**
 * A theme's name, and whether every file of it is present and precached.
 *
 * @param theme         registry index
 * @param name          receives the theme's display name
 * @param missing       receives the path of the first missing or not precached file, if any
 * @return              1 if the theme is complete and permitted, 0 if not
 */
native wardrobe_theme_check(theme, name[], nameLen, missing[], missingLen);

/**
 * Shows the player a preview of the theme (the core decides how).
 */
native wardrobe_preview(id, theme);

/**
 * Dresses the player in the theme, or in the core's default with WARDROBE_DEFAULT.
 *
 * @return  1 if applied
 */
native wardrobe_apply(id, theme);

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.