光界,一个用来打GJ的Godot框架
命名规范,函数方法名均以Yumihoshi开头
public static void Print<T>(string funcType, string message)
打印 Info 信息到 Godot Console
T
: 当前调用该方法时的脚本类名,方便定位调用位置,funcType
: 功能模块名称,可随便输,message
: 日志信息
输出示例
[初始化] InventoryUi 2025-02-13 15:53:20.783
>>> 设置列数为4列
Error<T>
和Warn<T>
与上类似
public static void SwitchFullScreen(bool isFullScreen, int windowId = 0)
转换全屏/窗口状态
isFullScreen
: 要转换为全屏/窗口,全屏为True
,窗口为False
windowId
: 窗口id,默认为0
,即当前窗口和DisplayServer.WindowSetMode
中的windowId
相同
public static void SwitchFullScreenAuto(int windowId = 0)
转换全屏/窗口状态,与上不同的是,如果当前是全屏,则切换为窗口,反之亦然
Important
本项目遵循MIT License