-
-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed string allocations for shader parameter sets, fixed various fon…
…t colours not applying (#5002) * Switched common shader parameter sets to use StringName that is stored * Fixed entity label colours not applying * Improved icon alignment with text * Fixed chemical equation display * Partially fixed modifier info label colour * Removed some default values from a tscn * Mostly fixed the modifier info values in editor tooltips * Tweaked toxin cloud visuals to be a lot closer than earlier
- Loading branch information
1 parent
e22da85
commit 29ae0ca
Showing
34 changed files
with
382 additions
and
173 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Godot; | ||
|
||
public static class LabelSettingsUtils | ||
{ | ||
/// <summary> | ||
/// Duplicates label settings but with a different colour | ||
/// </summary> | ||
/// <param name="settings">Settings to duplicate</param> | ||
/// <param name="newColour">New colour for the font</param> | ||
/// <returns>The duplicated font</returns> | ||
public static LabelSettings CloneWithDifferentColour(this LabelSettings settings, Color newColour) | ||
{ | ||
return new LabelSettings | ||
{ | ||
Font = settings.Font, | ||
FontSize = settings.FontSize, | ||
FontColor = newColour, | ||
OutlineSize = 0, | ||
ShadowColor = settings.ShadowColor, | ||
ShadowSize = settings.ShadowSize, | ||
ShadowOffset = settings.ShadowOffset, | ||
}; | ||
} | ||
} |
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
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
Oops, something went wrong.