mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-30 01:41:40 +00:00
Each player gets the activity close button; it asks to confirm leaving, and yes takes the button away and sends the player to their last zone that is not an instance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
752 B
C++
14 lines
752 B
C++
#pragma once
|
|
#include "CppScripts.h"
|
|
|
|
// L_ZONE_FIRE_TEMPLE_SERVER.lua: the Fire Temple instance's zone script. Each player gets the activity close button;
|
|
// using it asks to confirm leaving (UI_EULA_CONFIRM_EXIT_LINE2), and yes takes the button away and sends the player
|
|
// to the last zone that is not an instance.
|
|
class ZoneFireTempleServer : public CppScripts::Script {
|
|
public:
|
|
void OnZoneLoadedInfo(Entity* self, const GameMessages::ZoneLoadedInfo& info) override;
|
|
void OnPlayerLoaded(Entity* self, Entity* player) override;
|
|
void OnMessageBoxResponse(Entity* self, Entity* sender, int32_t button, const std::u16string& identifier, const std::u16string& userData) override;
|
|
static void ToggleActivityCloseButton(Entity* player, bool show);
|
|
};
|