Skip to content

Commit 0e8f675

Browse files
committed
up render
1 parent 165e230 commit 0e8f675

File tree

6 files changed

+16
-21
lines changed

6 files changed

+16
-21
lines changed

src/ColorMC.Gui/Resource/Language/gui_zh-cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@
874874
"SkinWindow.Text6": "显示披风",
875875
"SkinWindow.Text7": "行走动画",
876876
"SkinWindow.Text8": "重置动作",
877-
"SkinWindow.Text9": "MSAA x4抗锯齿",
877+
"SkinWindow.Text9": "抗锯齿",
878878
"SkinWindow.Text10": "菜单",
879879
"SkinWindow.Text11": "没有皮肤文件",
880880
"SkinWindow.Info1": "你不能选择该类型",

src/ColorMC.Gui/UI/Controls/HeadControl.axaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ public HeadControl()
235235
StackPanel1.Children.Add(_buttonMax);
236236
StackPanel1.Children.Add(_buttonClose);
237237

238-
//Win32Properties.SetNonClientHitTestResult(_buttonMax, Win32Properties.Win32HitTestValue.MaxButton);
239-
//Win32Properties.SetNonClientHitTestResult(_buttonMin, Win32Properties.Win32HitTestValue.MinButton);
240-
//Win32Properties.SetNonClientHitTestResult(_buttonClose, Win32Properties.Win32HitTestValue.Close);
238+
Win32Properties.SetNonClientHitTestResult(_buttonMax, Win32Properties.Win32HitTestValue.MaxButton);
239+
Win32Properties.SetNonClientHitTestResult(_buttonMin, Win32Properties.Win32HitTestValue.MinButton);
240+
Win32Properties.SetNonClientHitTestResult(_buttonClose, Win32Properties.Win32HitTestValue.Close);
241241
}
242242

243243
_buttonMin.Click += ButtonMin_Click;

src/ColorMC.Gui/UI/Controls/Skin/OpenGL/SkinRender.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ private void Model_PropertyChanged(object? sender, PropertyChangedEventArgs e)
5555
{
5656
skin.EnableTop = model.EnableTop;
5757
}
58-
else if (e.PropertyName == nameof(SkinModel.EnableMSAA))
58+
else if (e.PropertyName == nameof(SkinModel.EnableFXAA))
5959
{
60-
//skin.SetMSAA(model.EnableMSAA);
60+
skin.RenderType = model.EnableFXAA ? SkinRenderType.FXAA : SkinRenderType.Normal;
6161
}
6262
else if (e.PropertyName == SkinModel.RotateName)
6363
{

src/ColorMC.Gui/UI/Controls/Skin/SkinSideControl.axaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
d:DesignWidth="800"
1111
x:DataType="model:SkinModel"
1212
mc:Ignorable="d">
13-
<ScrollViewer Margin="15">
13+
<ScrollViewer Width="150" Margin="15">
1414
<StackPanel>
1515
<UniformGrid>
1616
<Button
@@ -20,8 +20,7 @@
2020
Classes="top"
2121
Command="{Binding Load}"
2222
Content="{setting:Localize Button.Refash}"
23-
ToolTip.Tip="{setting:Localize ToolTip.Text14}"
24-
/>
23+
ToolTip.Tip="{setting:Localize ToolTip.Text14}" />
2524
<Button
2625
Height="35"
2726
Margin="0,0,-2,0"
@@ -30,17 +29,15 @@
3029
Command="{Binding ResetPos}"
3130
Content="{setting:Localize SkinWindow.Text1}"
3231
IsEnabled="{Binding HaveSkin}"
33-
ToolTip.Tip="{setting:Localize ToolTip.Text15}"
34-
/>
32+
ToolTip.Tip="{setting:Localize ToolTip.Text15}" />
3533
<Button
3634
Height="35"
3735
Margin="-2,0,0,0"
3836
HorizontalAlignment="Stretch"
3937
Classes="top"
4038
Command="{Binding Edit}"
4139
Content="{setting:Localize SkinWindow.Text3}"
42-
ToolTip.Tip="{setting:Localize ToolTip.Text16}"
43-
/>
40+
ToolTip.Tip="{setting:Localize ToolTip.Text16}" />
4441
<Button
4542
Height="35"
4643
Margin="0,0,-2,0"
@@ -49,8 +46,7 @@
4946
Command="{Binding Save}"
5047
Content="{setting:Localize SkinWindow.Text4}"
5148
IsEnabled="{Binding HaveSkin}"
52-
ToolTip.Tip="{setting:Localize ToolTip.Text17}"
53-
/>
49+
ToolTip.Tip="{setting:Localize ToolTip.Text17}" />
5450
</UniformGrid>
5551
<StackPanel IsEnabled="{Binding HaveSkin}">
5652
<ComboBox
@@ -75,7 +71,7 @@
7571
OnContent="{setting:Localize SkinWindow.Text7}" />
7672
<ToggleSwitch
7773
Margin="0,0,0,-5"
78-
IsChecked="{Binding EnableMSAA}"
74+
IsChecked="{Binding EnableFXAA}"
7975
OffContent="{setting:Localize SkinWindow.Text9}"
8076
OnContent="{setting:Localize SkinWindow.Text9}" />
8177
<StackPanel IsEnabled="{Binding !EnableAnimation}">
@@ -107,8 +103,7 @@
107103
Classes="top"
108104
Command="{Binding Reset}"
109105
Content="{setting:Localize SkinWindow.Text8}"
110-
ToolTip.Tip="{setting:Localize ToolTip.Text18}"
111-
/>
106+
ToolTip.Tip="{setting:Localize ToolTip.Text18}" />
112107
</StackPanel>
113108
</StackPanel>
114109
</StackPanel>

src/ColorMC.Gui/UI/Model/Skin/SkinModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ public partial class SkinModel(BaseModel model) : TopModel(model)
7979
[ObservableProperty]
8080
private bool _enableZ;
8181
/// <summary>
82-
/// 是否启用MSAA
82+
/// 是否启用FXAA
8383
/// </summary>
8484
[ObservableProperty]
85-
private bool _enableMSAA = false;
85+
private bool _enableFXAA = false;
8686

8787
/// <summary>
8888
/// 皮肤类型

0 commit comments

Comments
 (0)