text: // SPDX-License-Identifier: MIT
  // SPDX-FileCopyrightText: 2016 Hotride
  
  #pragma once
  
  #include "Gump.h"
  #include "../Platform.h"
  
  class CGumpGeneric : public CGump
  {
  public:
      uint32_t MasterGump = 0;
  
      CGumpGeneric(uint32_t serial, short x, short y, uint32_t id);
      virtual ~CGumpGeneric();
  
      void AddText(
          int index,
          const wstr_t &text,
          CBaseGUI *start = nullptr,
          bool backbroundCanBeColored = false);
  
      void SendGumpResponse(int index);
  
      virtual void InitToolTip() override;
  
      GUMP_BUTTON_EVENT_H override;
      GUMP_DIRECT_HTML_LINK_EVENT_H override;
  
      virtual bool OnLeftMouseButtonDoubleClick() override;
      virtual void OnTextInput(const TextEvent &ev) override;
      virtual void OnKeyDown(const KeyEvent &ev) override;
  };
  