Kagano
Kagano
CC#
Created by Kagano on 9/8/2024 in #help
how to get undefinied type in a <>
here a example what i want like to do:
Type type = ...;
SyncedVariable<typeof(type)> s = new SyncedVariable<typeof(type)>();
Type type = ...;
SyncedVariable<typeof(type)> s = new SyncedVariable<typeof(type)>();
18 replies
CC#
Created by Kagano on 6/7/2024 in #help
How can i ref in a lambda
I want that the you can overgive a float value in this method which by running the action will overwrite it
public Tween SetProperty(ref float value, float time, float delay, float start, float end)
{

Action<float> lerp = (past) =>
{
value = Raymath.Lerp(start, end, past);
};
}
public Tween SetProperty(ref float value, float time, float delay, float start, float end)
{

Action<float> lerp = (past) =>
{
value = Raymath.Lerp(start, end, past);
};
}
28 replies
CC#
Created by Kagano on 2/26/2024 in #help
✅ Avalonia UI button doesn't color by hover!
alls works great, but i doesnt change the color by Button:pointerover i have no plan why,
<UserControl.Styles>
<Style Selector="Button:pointerover">

<Setter Property="Width" Value="300"></Setter>
<Setter Property="Background" Value="Red"></Setter>
</Style>
<Style Selector="Button">

<Setter Property="Background" Value="Green"></Setter>
</Style>


<Button Content="Test"></Button>
</UserControl.Styles>
<UserControl.Styles>
<Style Selector="Button:pointerover">

<Setter Property="Width" Value="300"></Setter>
<Setter Property="Background" Value="Red"></Setter>
</Style>
<Style Selector="Button">

<Setter Property="Background" Value="Green"></Setter>
</Style>


<Button Content="Test"></Button>
</UserControl.Styles>
4 replies