-
Notifications
You must be signed in to change notification settings - Fork 0
/
PanelSelect.composer.cs
120 lines (97 loc) · 3.54 KB
/
PanelSelect.composer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// AUTOMATICALLY GENERATED CODE
using System;
using System.Collections.Generic;
using Sce.PlayStation.Core;
using Sce.PlayStation.Core.Imaging;
using Sce.PlayStation.Core.Environment;
using Sce.PlayStation.HighLevel.UI;
namespace ShootingApp
{
partial class PanelSelect
{
PagePanel PagePanel_1;
Button Button_1;
private void InitializeWidget()
{
InitializeWidget(LayoutOrientation.Horizontal);
}
private void InitializeWidget(LayoutOrientation orientation)
{
PagePanel_1 = new PagePanel();
PagePanel_1.Name = "PagePanel_1";
Button_1 = new Button();
Button_1.Name = "Button_1";
// PagePanel_1
PagePanel_1.AddPage(new PanelStage(Global.StageID.Stage1));
PagePanel_1.AddPage(new PanelStage(Global.StageID.Stage2));
PagePanel_1.AddPage(new PanelStage(Global.StageID.Stage3));
// Button_1
Button_1.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
Button_1.TextFont = new UIFont(FontAlias.System, 25, FontStyle.Regular);
Button_1.BackgroundFilterColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
// PanelSelect
this.BackgroundColor = new UIColor(153f / 255f, 153f / 255f, 153f / 255f, 255f / 255f);
this.Clip = true;
this.AddChildLast(PagePanel_1);
this.AddChildLast(Button_1);
SetWidgetLayout(orientation);
UpdateLanguage();
}
private LayoutOrientation _currentLayoutOrientation;
public void SetWidgetLayout(LayoutOrientation orientation)
{
switch (orientation)
{
case LayoutOrientation.Vertical:
this.SetSize(544, 960);
this.Anchors = Anchors.None;
PagePanel_1.SetPosition(656, 226);
PagePanel_1.SetSize(100, 50);
PagePanel_1.Anchors = Anchors.None;
PagePanel_1.Visible = true;
Button_1.SetPosition(-39, 37);
Button_1.SetSize(214, 56);
Button_1.Anchors = Anchors.None;
Button_1.Visible = true;
break;
default:
this.SetSize(960, 544);
this.Anchors = Anchors.None;
PagePanel_1.SetPosition(0, 0);
PagePanel_1.SetSize(960, 544);
PagePanel_1.Anchors = Anchors.None;
PagePanel_1.Visible = true;
Button_1.SetPosition(18, 20);
Button_1.SetSize(84, 54);
Button_1.Anchors = Anchors.None;
Button_1.Visible = true;
break;
}
_currentLayoutOrientation = orientation;
}
public void UpdateLanguage()
{
Button_1.Text = "戻る";
}
public void InitializeDefaultEffect()
{
switch (_currentLayoutOrientation)
{
case LayoutOrientation.Vertical:
break;
default:
break;
}
}
public void StartDefaultEffect()
{
switch (_currentLayoutOrientation)
{
case LayoutOrientation.Vertical:
break;
default:
break;
}
}
}
}