29 lines
543 B
C#
29 lines
543 B
C#
|
|
using Godot;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Rokojori
|
|
{
|
|
[Tool]
|
|
[GlobalClass,Icon("res://addons/rokojori_action_library/Icons/AppSetting.svg")]
|
|
public abstract partial class AppSetting:Resource
|
|
{
|
|
[Export]
|
|
public LocalizedString title;
|
|
|
|
[Export]
|
|
public LocalizedString info;
|
|
|
|
[Export]
|
|
public string id = "";
|
|
|
|
public abstract string GetDefaultValue();
|
|
public abstract void ApplyValue( App app );
|
|
|
|
public string GetValue( App app )
|
|
{
|
|
return app.GetSetting( id );
|
|
}
|
|
|
|
}
|
|
} |