当前位置: 首页 > news >正文

个人备案的网站做企业内容福州seo代理商

个人备案的网站做企业内容,福州seo代理商,优秀网站设计的标准,网站黑名单查询在虚幻引擎编辑器中编写Warning弹窗 准备工作 FMessageDialog These functions open a message dialog and display the specified informations there. EAppReturnType::Type 是 Unreal Engine 中用于表示应用程序对话框(如消息对话框)返回结果的枚举…

在虚幻引擎编辑器中编写Warning弹窗

准备工作

FMessageDialog These functions open a message dialog and display the specified informations there.

EAppReturnType::TypeUnreal Engine 中用于表示应用程序对话框(如消息对话框)返回结果的枚举类型。具体来说,当你使用 FMessageDialog::Open 或类似函数显示一个对话框时,用户的选择(例如点击“确定”、“取消”、“是”、“否”等按钮)会以 EAppReturnType::Type 的形式返回。这使得开发者能够根据用户的选择执行相应的逻辑。

EAppReturnType 是一个枚举类,其定义可能类似于以下内容:

namespace EAppReturnType
{enum Type{No,Yes,YesAll,NoAll,Cancel,Ok,Retry,Continue};
}

示例代码1

if (NumOfDuplicates<=0) {//Print(TEXT("Pls enter a valid number"), FColor::Red);FText MsgTitle = FText::FromString(TEXT("Warning"));FMessageDialog::Open(EAppMsgType::Ok, FText::FromString(TEXT("Please enter a valid number")), &MsgTitle);return;
}

插件效果1

插件效果2

——————————编辑器右下角slate notification的效果————————————

A list of non-intrusive messages about the status of currently active work.

non-intrusive messages

非侵入性的消息,意味着这些消息不会干扰用户的操作或体验,通常是轻量级的提示或通知。

准备工作:需要的header file

https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/Slate/Framework/Notifications/FSlateNotificationManager?application_version=4.27

A class which manages a group of notification windows

https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/Slate/Widgets/Notifications/SNotificationList?application_version=4.27

A list of non-intrusive messages about the status of currently active work.

示例代码2

#pragma once
#include "Misc/MessageDialog.h"
#include "Widgets/Notifications/SNotificationList.h"
#include "Framework/Notifications/NotificationManager.h"void Print(const FString& Message, const FColor& Color)
{if (GEngine){GEngine->AddOnScreenDebugMessage(-1, 8.f, Color, Message);}
}void PrintLog(const FString& Message)
{UE_LOG(LogTemp, Warning, TEXT("%s"),*Message);
}EAppReturnType::Type ShowMsgDialog(EAppMsgType::Type MsgType, const FString& Message, 
bool bShowMsgAsWarning = true) 
{if (bShowMsgAsWarning == true) {FText MsgTitle = FText::FromString(TEXT("Warning"));return FMessageDialog::Open(MsgType, FText::FromString(Message), &MsgTitle);//return FMessageDialog::Open(MsgType, FText::FromString(TEXT("Warning: ") + Message));}else{return FMessageDialog::Open(MsgType, FText::FromString(Message));}
}void ShowNotifyInfo(const FString& Message)
{FNotificationInfo NotifyInfo(FText::FromString(Message));NotifyInfo.bUseLargeFont = true;NotifyInfo.FadeOutDuration = 7.f;FSlateNotificationManager::Get().AddNotification(NotifyInfo);
}
	if (Counter > 0){ShowNotifyInfo(TEXT("Successfully duplicated" + FString::FromInt(Counter) + "files"));//Print(TEXT("Successfully duplicated" + FString::FromInt(Counter) + "files"), FColor::Green);}

http://www.hkea.cn/news/714106/

相关文章:

  • 天津网站建设582345网址导航桌面版
  • 东莞纸箱厂东莞网站建设经典模板网站建设
  • 贺州同城购物网站建设中国网站排名100
  • 黄骅港旅游景点爱站网seo工具包
  • 网站 图文混编提高网站搜索排名
  • 北京怀柔网站制作教育机构
  • 网站建设费 大创友链交换平台
  • o2o商城网站系统开发微信群拉人的营销方法
  • 帝国cms做淘宝客网站网页设计用什么软件
  • 营销型网站建设的优缺点视频优化软件
  • 珠海响应式网站建设推广公司网络营销发展方案策划书
  • 中国人自己的空间站每日英语新闻
  • 教师可以做网站吗seo常用工具包括
  • 武山建设局网站什么是seo
  • 做文案需要用到的网站全网模板建站系统
  • 苏州乡村旅游网站建设策划书网站建设百度推广
  • 12380网站建设情况总结百度浏览器入口
  • 直播网站开发要多久排行榜前十名
  • 网站备案完才能建站吗企业建站公司
  • 网站开发外包合同西安网站优化公司
  • 2022网页设计尺寸规范和要求怎么做seo关键词优化
  • 北京大学两学一做网站十大收益最好的自媒体平台
  • 网站开发服务费企业网站建设的一般要素
  • 台州企业网站制作公司郴州网站推广
  • 如何做移动端网站邮件营销
  • 网站制作佛山crm管理系统
  • 网站综合营销方案设计网页设计教程
  • 东莞做网站制作宁波技术好的企业网站制作
  • 广州做网站公司哪家好如何注册一个网站
  • 网站备案协议书互联网营销师证书含金量