Trace
Trace
CC#
Created by Trace on 8/26/2024 in #help
Issues with SKImageFilter
I failed to state this in the first message here, but not having SKShaderTileMode.Repeat causes blurred black borders around the final image due to how the blurring works, and I really don't want those borders
2 replies
CC#
Created by Trace on 5/25/2023 in #help
❔ avalonia cross platform issue
app.axaml.cs
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;

namespace installer
{
public class App : Application
{
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
}

public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
desktop.MainWindow = new MainWindow();
base.OnFrameworkInitializationCompleted();
}
}
}
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;

namespace installer
{
public class App : Application
{
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
}

public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
desktop.MainWindow = new MainWindow();
base.OnFrameworkInitializationCompleted();
}
}
}
11 replies
CC#
Created by Trace on 5/25/2023 in #help
❔ avalonia cross platform issue
app.axaml
<Application
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="CTGP7InstallerSharp.App">
<Application.Styles>
<FluentTheme />
</Application.Styles>
</Application>
<Application
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="CTGP7InstallerSharp.App">
<Application.Styles>
<FluentTheme />
</Application.Styles>
</Application>
11 replies
CC#
Created by Trace on 5/25/2023 in #help
❔ avalonia cross platform issue
11 replies
CC#
Created by Trace on 5/25/2023 in #help
❔ avalonia cross platform issue
main csproj
11 replies
CC#
Created by Trace on 5/25/2023 in #help
❔ avalonia cross platform issue
csproj.android:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>26</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ApplicationId>com.TraceEntertains.installer</ApplicationId>
<ApplicationVersion>1</ApplicationVersion>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<AndroidPackageFormat>apk</AndroidPackageFormat>
<AndroidEnableProfiledAot>False</AndroidEnableProfiledAot>
</PropertyGroup>

<ItemGroup>
<AndroidResource Include="..\installer\Assets\window_icon.png">
<Link>Resources\drawable\Icon.png</Link>
</AndroidResource>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Avalonia.Android" Version="11.0.0-preview8" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.0-preview8" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\installer\installer.csproj" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>26</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ApplicationId>com.TraceEntertains.installer</ApplicationId>
<ApplicationVersion>1</ApplicationVersion>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<AndroidPackageFormat>apk</AndroidPackageFormat>
<AndroidEnableProfiledAot>False</AndroidEnableProfiledAot>
</PropertyGroup>

<ItemGroup>
<AndroidResource Include="..\installer\Assets\window_icon.png">
<Link>Resources\drawable\Icon.png</Link>
</AndroidResource>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Avalonia.Android" Version="11.0.0-preview8" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.0-preview8" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\installer\installer.csproj" />
</ItemGroup>
</Project>
11 replies
CC#
Created by Lemur2591 on 2/14/2023 in #help
❔ everything returns errors
my tips are: be patient, and learn the way it works for you
57 replies
CC#
Created by Lemur2591 on 2/14/2023 in #help
❔ everything returns errors
heck, i would probably still be coding in batch and powershell
57 replies
CC#
Created by Lemur2591 on 2/14/2023 in #help
❔ everything returns errors
without the c# discord server, i probably wouldnt be coding in c# today
57 replies
CC#
Created by Lemur2591 on 2/14/2023 in #help
❔ everything returns errors
i also helped someone make a simple text-based game in c# i added: saving leveling abstract enemy and item classes and more
57 replies
CC#
Created by Lemur2591 on 2/14/2023 in #help
❔ everything returns errors
then i wanted to code something myself, and learn web requests, so i made a tool to easily download different versions of applications from the PaperMC api using WinForms and System.Text.Json
57 replies
CC#
Created by Lemur2591 on 2/14/2023 in #help
❔ everything returns errors
i learned c# mostly by starting with porting mods for tmodloader (a terraria modloader) from 1.3 to 1.4 (biggest update, but relatively simple stuff, mostly regex and asking for help in the server, this was before the automated tModPorter tool released)
57 replies
CC#
Created by Lemur2591 on 2/14/2023 in #help
❔ everything returns errors
for me programming books never worked (but thats just me)
57 replies
CC#
Created by Lemur2591 on 2/14/2023 in #help
❔ everything returns errors
from what i can tell, the ui for the game they are trying to scale the ui for is made for 1920x1080, so they want to divide the current resolution by the default resolution so instead of looking pretty bad in any resolution other than 1080p it looks good enough
57 replies
CC#
Created by c_ccc on 2/15/2023 in #help
❔ I cant get jumping to work
or #game-dev maybe
4 replies
CC#
Created by c_ccc on 2/15/2023 in #help
❔ I cant get jumping to work
probably best for unity discord
4 replies