Coherent UI for Unreal Engine 4  2.5.5.0
A modern user interface library for games
 All Classes Functions Variables Pages
CoherentUIGameHUD.h
1 /*
2 This file is part of Coherent UI, modern user interface library for
3 games.
4 
5 Copyright (c) 2012-2015 Coherent Labs AD and/or its licensors. All
6 rights reserved in all media.
7 
8 The coded instructions, statements, computer programs, and/or related
9 material (collectively the "Data") in these files contain confidential
10 and unpublished information proprietary Coherent Labs and/or its
11 licensors, which is protected by United States of America federal
12 copyright law and by international treaties.
13 
14 This software or source code is supplied under the terms of a license
15 agreement and nondisclosure agreement with Coherent Labs Limited and may
16 not be copied, disclosed, or exploited except in accordance with the
17 terms of that agreement. The Data may not be disclosed or distributed to
18 third parties, in whole or in part, without the prior written consent of
19 Coherent Labs Limited.
20 
21 COHERENT LABS MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS
22 SOURCE CODE FOR ANY PURPOSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
23 HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
24 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25 MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE
26 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER, ITS AFFILIATES,
27 PARENT COMPANIES, LICENSORS, SUPPLIERS, OR CONTRIBUTORS BE LIABLE FOR
28 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33 ANY WAY OUT OF THE USE OR PERFORMANCE OF THIS SOFTWARE OR SOURCE CODE,
34 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 */
36 #pragma once
37 
38 #include "Coherent/UI/ViewInfo.h"
39 
40 #include "CoherentUIGameHUD.generated.h"
41 
42 class UCoherentUIHUD;
43 
44 UCLASS(MinimalAPI)
45 class ACoherentUIGameHUD : public AHUD
46 {
47  GENERATED_UCLASS_BODY()
48 
49 public:
51  COHERENTUIPLUGIN_API virtual void DrawHUD() override;
52 
54  COHERENTUIPLUGIN_API class UCoherentUIHUD* GetCoherentUIHUD() const;
55 
56  UFUNCTION(BlueprintCallable, Category = CoherentUI)
57  COHERENTUIPLUGIN_API void SetupUIView(const FString& PageUrl,
58  bool bUsesSharedMemory = false,
59  bool bSupportClickThrough = true,
60  float ClickThroughAlphaThreshold = 0.0f,
61  bool bIsTransparent = true,
62  int32 TargetFrameRate = 30,
63  bool bForceSoftwareRendering = false);
64 protected:
65 
66  UPROPERTY(BlueprintReadOnly, Category = HUD)
67  UCoherentUIHUD* CoherentUIHUD;
68 
69 private:
70  Coherent::UI::ViewInfo Info;
71  FString URL;
72 };
73 
FString URL
Definition: CoherentBaseComponent.h:82
Definition: CoherentUIHUD.h:55