You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be neat if users could choose to colour blocknames on nodes the exact same way as custom tint but for colouring the name of the block:
Is your feature request related to a problem? Please describe.
Since you're able to set block colour, I think it makes sense to be able to have full control over the colour of the blockname as well. The code that colours text white or black based on brightness is a little unreliable, Color.magenta for example doesnt get coloured black, and with white text it's quite hard to read, here I'd suggest replacing the following:
I also have a bunch of custom error checking features I added to Fungus on my end that checks for broken/missing references, null characters/targetblocks and so on, which modifies the custom tint colour of blocks in which it found problems, and being able to colour text too is really useful for me.
Describe the solution you'd like
Normally I'd make a PR for this as I have written the functionality I desire, but I'm very pressed for time. I'll leave my notes and code here for either myself in the future or someone else to make a proper PR later:
SerializedPropertyuseCustomTextColorProp;SerializedPropertytextTintProp;//----------------------------//in DrawBlockGUI under the "EditorGUILayout.EndHorizontal();" below Custom Tint:useCustomTextColorProp=serializedObject.FindProperty("useCustomTextColor");textTintProp=serializedObject.FindProperty("textTint");EditorGUILayout.BeginHorizontal();useCustomTextColorProp.boolValue=GUILayout.Toggle(useCustomTextColorProp.boolValue," Custom Text Tint");if(useCustomTextColorProp.boolValue){EditorGUILayout.PropertyField(textTintProp,GUIContent.none);}EditorGUILayout.EndHorizontal();
FlowchartWindow.cs:
add "textColor" to BLockGraphics:
Then insert between graphics.tint = (block.UseCustomTint ? block.Tint : defaultTint) * FungusEditorPreferences.flowchartBlockTint; and return graphics; inside GetBlockGraphics(Block block):
floatvalue;Color.RGBToHSV(graphics.tint,out_,out_,outvalue);ColordefaultTextTint=value>=0.45?Color.black:Color.white;graphics.textColor=(block.UseCustomTextColor?block.TextTint:defaultTextTint);//if locked, grey blocks (makes it easier to notice the flowchart's lockedif(flowchart.locked){graphics.tint.a=0.75f;}
It'd be neat if users could choose to colour blocknames on nodes the exact same way as custom tint but for colouring the name of the block:
Is your feature request related to a problem? Please describe.
Since you're able to set block colour, I think it makes sense to be able to have full control over the colour of the blockname as well. The code that colours text white or black based on brightness is a little unreliable, Color.magenta for example doesnt get coloured black, and with white text it's quite hard to read, here I'd suggest replacing the following:
I also have a bunch of custom error checking features I added to Fungus on my end that checks for broken/missing references, null characters/targetblocks and so on, which modifies the custom tint colour of blocks in which it found problems, and being able to colour text too is really useful for me.
Describe the solution you'd like
Normally I'd make a PR for this as I have written the functionality I desire, but I'm very pressed for time. I'll leave my notes and code here for either myself in the future or someone else to make a proper PR later:
Node.cs added:
BlockEditor.cs:
FlowchartWindow.cs:
add "textColor" to BLockGraphics:
Then insert between
graphics.tint = (block.UseCustomTint ? block.Tint : defaultTint) * FungusEditorPreferences.flowchartBlockTint;
andreturn graphics;
insideGetBlockGraphics(Block block)
:FungusConstants.cs:
The text was updated successfully, but these errors were encountered: