mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix Godot 3.0 compatibility.
This commit is contained in:
@@ -510,7 +510,10 @@ namespace SS14.Client.Graphics.Drawing
|
||||
|
||||
public Texture Texture
|
||||
{
|
||||
get => _texture ?? (GameController.OnGodot ? new GodotTextureSource(gdStyleBox.Texture) : null);
|
||||
// In Godot 3.0, StyleBoxTexture.Texture is a plain resource.
|
||||
// So we need this cast.
|
||||
// ReSharper disable once RedundantCast
|
||||
get => _texture ?? (GameController.OnGodot ? new GodotTextureSource((Godot.Texture)gdStyleBox.Texture) : null);
|
||||
// Woo implicit casts.
|
||||
set
|
||||
{
|
||||
|
||||
@@ -14,7 +14,9 @@ namespace SS14.Client.UserInterface.Controls
|
||||
{
|
||||
}
|
||||
|
||||
internal Container(Godot.Container sceneControl) : base(sceneControl)
|
||||
// So for SOME REASON Godot.TabContainer wasn't a Container until 3.1.
|
||||
// ???
|
||||
internal Container(Godot.Control sceneControl) : base(sceneControl)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user