This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
[RequireComponent(typeof(UIDocument))] | |
public class TestScript : MonoBehaviour | |
{ | |
private VisualElement _parent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sandbox; | |
using Sandbox.UI; | |
internal class RadialFill : Panel | |
{ | |
public float BorderWidth { get; set; } = 20; | |
public float EdgeGap { get; set; } = 2; | |
public int Points { get; set; } = 64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sandbox; | |
using System; | |
// ported from https://github.com/ProtoTurtle/UnityBitmapDrawing/blob/d73a977ad918ef1c6b3fa820432291dbed388e54/src/BitmapDrawing.cs | |
public class TextureDrawer | |
{ | |
private readonly Texture Texture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sandbox; | |
using System; | |
// ported from https://github.com/ProtoTurtle/UnityBitmapDrawing/blob/d73a977ad918ef1c6b3fa820432291dbed388e54/src/BitmapDrawing.cs | |
/** | |
The MIT License (MIT) | |
Copyright (c) 2014 Lauri Hosio | |
Permission is hereby granted, free of charge, to any person obtaining a copy |