#pragma once #pragma region CPL License /* Nuclex Unreal Module Copyright (C) 2014-2021 Nuclex Development Labs This library is free software; you can redistribute it and/or modify it under the terms of the IBM Common Public License as published by the IBM Corporation; either version 1.0 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the IBM Common Public License for more details. You should have received a copy of the IBM Common Public License along with this library */ #pragma endregion // CPL License #include #include #include "../UI/ButtonControllableDialog.h" #include "ButtonControllableParagraph.generated.h" // --------------------------------------------------------------------------------------------- // // This class does not need to be modified. UINTERFACE(MinimalAPI, BlueprintType) class UButtonControllableParagraph : public UButtonControllableDialog { GENERATED_BODY() }; // --------------------------------------------------------------------------------------------- // /// Implemented by visual novel dialogue or narration boxes that support button input class NUCLEX_API IButtonControllableParagraph : public IButtonControllableDialog { GENERATED_BODY() /// Directly accepts a choice made by the player /// @param choiceIndex Index of the choice the player has made /// @remarks /// The choice index must be -1 for a paragraph without choices. Otherwise /// it must be the zero-based index of a choice being offered to the player. public: UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category="Visual Novel") void AcceptChoice(int32 choiceIndex); /// Skips over the current paragraph unless it asks for a choice from the player public: UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category="Viusal Novel") void Skip(); }; // --------------------------------------------------------------------------------------------- //