mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-02-07 21:21:32 -05:00
* Added ability to bake envmap textures * Added Scene.Editor.GetSceneFolder() - allows saving baked resources for scene * Envmaps are represented with a shiny sphere now instead of a handle * Fixed Enum Dropdown being the wrong color * Added [EnumButtonGroup] * Added GroupButtonControlWidget * Added Editor.EditorSystem (accessible via Application.Editor) * Can place [Menu] attributes in game code (was previously in tools only) * Added "Scene/Bake Envmaps" option
21 lines
507 B
C#
21 lines
507 B
C#
namespace Editor;
|
|
|
|
[AttributeUsage( AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = true )]
|
|
public class MenuAttribute : Attribute
|
|
{
|
|
public string Target { get; set; }
|
|
public string Path { get; set; }
|
|
public string Icon { get; set; }
|
|
public int Priority { get; set; }
|
|
|
|
[Obsolete( "Use [Shortcut] attribute" )]
|
|
public string Shortcut { get; set; }
|
|
|
|
public MenuAttribute( string target, string path, string icon = null )
|
|
{
|
|
Target = target;
|
|
Path = path;
|
|
Icon = icon;
|
|
}
|
|
}
|