初始提交: UE5.3项目基础框架
This commit is contained in:
@ -0,0 +1,50 @@
|
||||
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Widgets/SCompoundWidget.h"
|
||||
|
||||
class FArguments;
|
||||
class UCesiumIonServer;
|
||||
class IonQuickAddPanel;
|
||||
|
||||
class CesiumPanel : public SCompoundWidget {
|
||||
SLATE_BEGIN_ARGS(CesiumPanel) {}
|
||||
SLATE_END_ARGS()
|
||||
|
||||
CesiumPanel();
|
||||
virtual ~CesiumPanel();
|
||||
void Construct(const FArguments& InArgs);
|
||||
|
||||
virtual void Tick(
|
||||
const FGeometry& AllottedGeometry,
|
||||
const double InCurrentTime,
|
||||
const float InDeltaTime) override;
|
||||
|
||||
void Refresh();
|
||||
|
||||
void Subscribe(UCesiumIonServer* pNewServer);
|
||||
void OnServerChanged();
|
||||
|
||||
private:
|
||||
TSharedRef<SWidget> Toolbar();
|
||||
TSharedRef<SWidget> LoginPanel();
|
||||
TSharedRef<SWidget> MainIonQuickAddPanel();
|
||||
TSharedRef<SWidget> BasicQuickAddPanel();
|
||||
TSharedRef<SWidget> Version();
|
||||
|
||||
void OnConnectionUpdated();
|
||||
void OnDefaultsUpdated();
|
||||
|
||||
void addFromIon();
|
||||
void uploadToIon();
|
||||
void visitIon();
|
||||
void signOut();
|
||||
void openDocumentation();
|
||||
void openSupport();
|
||||
void openTokenSelector();
|
||||
|
||||
TSharedPtr<IonQuickAddPanel> _pQuickAddPanel;
|
||||
TObjectPtr<UCesiumIonServer> _pLastServer;
|
||||
FDelegateHandle _serverChangedDelegateHandle;
|
||||
};
|
||||
Reference in New Issue
Block a user