This commit is contained in:
2026-06-12 12:58:31 +08:00
commit c7e5de8f1b
2364 changed files with 371718 additions and 0 deletions

8
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

111
.idea/editor.xml generated Normal file
View File

@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="BackendCodeEditorSettings">
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Windows_0020Form_0020Designer_0020generated_0020code/@EntryIndexedValue" value="Windows Form Designer generated code" type="string" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Windows_0020Form_0020Designer_0020generated_0020code/@EntryIndexRemoved" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Component_0020Designer_0020generated_0020code/@EntryIndexedValue" value="Component Designer generated code" type="string" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Component_0020Designer_0020generated_0020code/@EntryIndexRemoved" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Designer_0020generated_0020code/@EntryIndexedValue" value="Designer generated code" type="string" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Designer_0020generated_0020code/@EntryIndexRemoved" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Web_0020Form_0020Designer_0020generated_0020code/@EntryIndexedValue" value="Web Form Designer generated code" type="string" />
<option name="/Default/CodeInspection/GeneratedCode/GeneratedCodeRegions/=Web_0020Form_0020Designer_0020generated_0020code/@EntryIndexRemoved" />
<option name="/Default/Housekeeping/GlobalSettingsUpgraded/IsUpgraded/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppClangFormat/EnableClangFormatSupport/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/EditorConfig/EnableClangFormatSupport/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_BINARY_EXPRESSIONS_CHAIN/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_EXPRESSION/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_FOR_STMT/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTIPLE_DECLARATION/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_TERNARY/@EntryValue" value="ALIGN_ALL" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_CLASS_DEFINITION/@EntryValue" value="1" type="int" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/KEEP_BLANK_LINES_IN_DECLARATIONS/@EntryValue" value="2" type="int" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/KEEP_BLANK_LINES_IN_CODE/@EntryValue" value="2" type="int" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/KEEP_USER_LINEBREAKS/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_CASE_FROM_SWITCH/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_COMMENT/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INT_ALIGN_EQ/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SIMPLE_BLOCK_STYLE/@EntryValue" value="DO_NOT_CHANGE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_COMMA_IN_TEMPLATE_ARGS/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_COMMA_IN_TEMPLATE_PARAMS/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_FOR_SEMICOLON/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_FOR_SEMICOLON/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_UNARY_OPERATOR/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_ARRAY_ACCESS_BRACKETS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_CAST_EXPRESSION_PARENTHESES/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_INITIALIZER_BRACES/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_METHOD_PARENTHESES/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_INITIALIZER_BRACES/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPECIAL_ELSE_IF_TREATMENT/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_CAST_EXPRESSION_PARENTHESES/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_AFTER_BINARY_OPSIGN/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_TERNARY_OPSIGNS/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/TYPE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/OTHER_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/CASE_BLOCK_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_FUNCTION_DECLARATION/@EntryValue" value="1" type="int" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_FUNCTION_DEFINITION/@EntryValue" value="1" type="int" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_WHILE_ON_NEW_LINE/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_ELSE_ON_NEW_LINE/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_CATCH_ON_NEW_LINE/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/NAMESPACE_INDENTATION/@EntryValue" value="All" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_ARGUMENT/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_EXTENDS_LIST/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_PARAMETER/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_TYPE_ARGUMENT/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_TYPE_PARAMETER/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_DECLARATIONS/@EntryValue" value="0" type="int" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_ACCESS_SPECIFIERS_FROM_CLASS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_CLASS_MEMBERS_FROM_ACCESS_SPECIFIERS/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/LINE_BREAK_AFTER_COLON_IN_MEMBER_INITIALIZER_LISTS/@EntryValue" value="ON_SINGLE_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/MEMBER_INITIALIZER_LIST_STYLE/@EntryValue" value="DO_NOT_CHANGE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_NAMESPACE_DEFINITIONS_ON_SAME_LINE/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_COLON_IN_BITFIELD_DECLARATOR/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_COLON_IN_BITFIELD_DECLARATOR/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_EXTENDS_COLON/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_EXTENDS_COLON/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_FOR_COLON/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_FOR_COLON/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_DATA_MEMBER/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_DATA_MEMBERS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_METHOD/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_NESTED_DECLARATOR/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_DATA_MEMBER/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_DATA_MEMBERS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_METHOD/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_ABSTRACT_DECL/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_DATA_MEMBER/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_DATA_MEMBERS/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_METHOD/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_ABSTRACT_DECL/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_DATA_MEMBER/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_DATA_MEMBERS/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_METHOD/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_TEMPLATE_ARGS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_TEMPLATE_PARAMS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BETWEEN_CLOSING_ANGLE_BRACKETS_IN_TEMPLATE_ARGS/@EntryValue" value="true" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_TEMPLATE_PARAMS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_TEMPLATE_ARGS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_TEMPLATE_PARAMS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_DECLARATION_PARENTHESES/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_BLOCKS/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_INVOCATION_LPAR/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_AFTER_INVOCATION_LPAR/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_INVOCATION_RPAR/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_DECLARATION_LPAR/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_AFTER_DECLARATION_LPAR/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_DECLARATION_RPAR/@EntryValue" value="false" type="bool" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_ARGUMENTS_STYLE/@EntryValue" value="WRAP_IF_LONG" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_PARAMETERS_STYLE/@EntryValue" value="WRAP_IF_LONG" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BREAK_TEMPLATE_DECLARATION/@EntryValue" value="LINE_BREAK" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/NAMESPACE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/FREE_BLOCK_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INVOCABLE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ANONYMOUS_METHOD_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INITIALIZER_BRACES/@EntryValue" value="END_OF_LINE_NO_SPACE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_STYLE/@EntryValue" value="Space" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_SIZE/@EntryValue" value="4" type="int" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/CONTINUOUS_LINE_INDENT/@EntryValue" value="Double" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/TAB_WIDTH/@EntryValue" value="4" type="int" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/sdgb155.iml" filepath="$PROJECT_DIR$/.idea/sdgb155.iml" />
</modules>
</component>
</project>

8
.idea/sdgb155.iml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="CPP_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

34
Assembly-CSharp.sln Normal file
View File

@@ -0,0 +1,34 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp\Assembly-CSharp.csproj", "{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|Any CPU.ActiveCfg = Debug|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|Any CPU.Build.0 = Debug|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|Mixed Platforms.ActiveCfg = Debug|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|Mixed Platforms.Build.0 = Debug|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|x64.ActiveCfg = Debug|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|x64.Build.0 = Debug|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|Any CPU.ActiveCfg = Release|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|Any CPU.Build.0 = Release|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|Mixed Platforms.ActiveCfg = Release|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|Mixed Platforms.Build.0 = Release|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|x64.ActiveCfg = Release|x64
{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using UnityEngine;
// Token: 0x02000025 RID: 37
[CreateAssetMenu(menuName = "Mai2Data/AchieveNumTable", fileName = "ParameterTable")]
public class AchieveNumSheet : ScriptableObject
{
// Token: 0x1700001D RID: 29
// (get) Token: 0x060000C4 RID: 196 RVA: 0x00004C68 File Offset: 0x00003E68
public List<SpriteSheet> AchieveIntSprites
{
get
{
return this._achieveIntSprite;
}
}
// Token: 0x1700001E RID: 30
// (get) Token: 0x060000C5 RID: 197 RVA: 0x00004C70 File Offset: 0x00003E70
public List<SpriteSheet> AchieveDecimalSprites
{
get
{
return this._achieveDecimalSprite;
}
}
// Token: 0x04000075 RID: 117
public const int AchieveImageIndex = 14;
// Token: 0x04000076 RID: 118
public const int AchievePattern = 3;
// Token: 0x04000077 RID: 119
[SerializeField]
[Header("達成率整数画像")]
private List<SpriteSheet> _achieveIntSprite = new List<SpriteSheet>(3);
// Token: 0x04000078 RID: 120
[SerializeField]
[Header("達成率画少数像")]
private List<SpriteSheet> _achieveDecimalSprite = new List<SpriteSheet>(3);
}

View File

@@ -0,0 +1,43 @@
using System;
using Manager;
using UI;
using UnityEngine;
// Token: 0x0200004C RID: 76
public class AddFriendButtonController : ButtonControllerBase
{
// Token: 0x06000257 RID: 599 RVA: 0x0000831C File Offset: 0x0000751C
public override void Initialize(int monitorIndex)
{
base.Initialize(monitorIndex);
this.CommonButtons = new CommonButtonObject[this._positions.Length];
this.CommonButtons[3] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._positions[3]);
this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).LedColor);
this.CommonButtons[3].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Image, false);
this.CommonButtons[3].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Cue);
this.CommonButtons[4] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._positions[4]);
this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).LedColor);
this.CommonButtons[4].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Image, false);
this.CommonButtons[4].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Cue);
}
// Token: 0x06000258 RID: 600 RVA: 0x00008418 File Offset: 0x00007618
public void ChangeFlatButtonSymbol(int index, ButtonControllerBase.FlatButtonType buttonType)
{
if (this.CommonButtons[index] != null)
{
this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam(buttonType).Image, false);
this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam(buttonType).LedColor, true);
this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam(buttonType).Cue);
}
}
// Token: 0x0200095F RID: 2399
public enum ButtonId
{
// Token: 0x04005F5D RID: 24413
Yes,
// Token: 0x04005F5E RID: 24414
No
}
}

View File

@@ -0,0 +1,70 @@
using System;
using Manager;
using Manager.UserDatas;
using Process;
using TMPro;
using UI;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x0200004D RID: 77
public class AddFriendUserDataUI : MonoBehaviour
{
// Token: 0x0600025A RID: 602 RVA: 0x00008488 File Offset: 0x00007688
public void Initialize(Texture2D userIcon, UserDetail userData, int playerIndex, bool isMyMonitor)
{
UdemaeID classRank = (UdemaeID)userData.ClassRank;
uint courseRank = userData.CourseRank;
this._playerIcon.texture = userIcon;
this._playerName.SetText(userData.UserName);
this._playerRating.ChangeText(userData.Rating.ToString().PadLeft(5));
this._playerRatingBase.sprite = Resources.Load<Sprite>("Common/Sprites/DXRating/UI_CMN_DXRating_S_" + ResultProcess.GetRatePlate(userData.Rating));
this._playerClass.sprite = Resources.Load<Sprite>(string.Format("Common/Sprites/Class/UI_CMN_Class_S_{0:00}", classRank.GetEnumValue()));
this._playerUdemae.sprite = Resources.Load<Sprite>("Process/Course/Sprites/DaniPlate/UI_DNM_DaniPlate_" + courseRank.ToString("00"));
this._playerImage.ChangeSprite(playerIndex);
this._playerImage.gameObject.SetActive(isMyMonitor);
this._playerBaseImage.ChangeSprite(playerIndex);
}
// Token: 0x0600025B RID: 603 RVA: 0x00008579 File Offset: 0x00007779
public void SetActiveDecideObject(int playerIndex, bool isActive)
{
this._decideObject[playerIndex].SetActive(isActive);
}
// Token: 0x04000182 RID: 386
[SerializeField]
private RawImage _playerIcon;
// Token: 0x04000183 RID: 387
[SerializeField]
private TextMeshProUGUI _playerName;
// Token: 0x04000184 RID: 388
[SerializeField]
private Image _playerRatingBase;
// Token: 0x04000185 RID: 389
[SerializeField]
private SpriteCounter _playerRating;
// Token: 0x04000186 RID: 390
[SerializeField]
private Image _playerClass;
// Token: 0x04000187 RID: 391
[SerializeField]
private Image _playerUdemae;
// Token: 0x04000188 RID: 392
[SerializeField]
private MultipleImage _playerBaseImage;
// Token: 0x04000189 RID: 393
[SerializeField]
private MultipleImage _playerImage;
// Token: 0x0400018A RID: 394
[SerializeField]
private GameObject[] _decideObject;
}

View File

@@ -0,0 +1,53 @@
using System;
using Mai2.Mai2Cue;
using Manager;
using UI;
using UnityEngine;
// Token: 0x0200012C RID: 300
public class AdjustButtonController : ButtonControllerBase
{
// Token: 0x060009F4 RID: 2548 RVA: 0x0002A074 File Offset: 0x00029274
public override void Initialize(int monitorIndex)
{
base.Initialize(monitorIndex);
this.CommonButtons = new CommonButtonObject[this._frameAdjustButtons.Length];
for (int i = 0; i < this.CommonButtons.Length; i++)
{
if (this._frameAdjustButtons[i] != null)
{
this.CommonButtons[i] = this._frameAdjustButtons[i];
this.CommonButtons[i].Initialize(monitorIndex, (InputManager.ButtonSetting)i, CommonButtonObject.LedColors.None);
this.CommonButtons[i].SetSE(Cue.SE_SYS_CURSOR);
}
}
}
// Token: 0x060009F5 RID: 2549 RVA: 0x0002A0F0 File Offset: 0x000292F0
public void SetTopImage(bool isNormal, params int[] ids)
{
for (int i = 0; i < ids.Length; i++)
{
if (this.CommonButtons[ids[i]] is FrameAdjustButton)
{
((FrameAdjustButton)this.CommonButtons[ids[i]]).SetTopSprite(isNormal);
}
}
}
// Token: 0x060009F6 RID: 2550 RVA: 0x0002A134 File Offset: 0x00029334
public void SetLoopButton()
{
foreach (CommonButtonObject commonButtonObject in this.CommonButtons)
{
if (commonButtonObject != null && commonButtonObject is FrameAdjustButton && commonButtonObject.gameObject.activeSelf && commonButtonObject.gameObject.activeInHierarchy)
{
commonButtonObject.SetLoop();
}
}
}
// Token: 0x0400082E RID: 2094
[SerializeField]
private FrameAdjustButton[] _frameAdjustButtons;
}

View File

@@ -0,0 +1,39 @@
using System;
using UI;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x0200004E RID: 78
public class AdvRankingParts : MonoBehaviour
{
// Token: 0x0600025D RID: 605 RVA: 0x00008589 File Offset: 0x00007789
public void SetMusic(Texture2D tex, string musicName, int rank, bool isNew)
{
this._ranking.ChangeSprite(rank);
this._jacket.texture = tex;
this._musicTitle.SetData(musicName);
this._new.SetActive(isNew);
}
// Token: 0x0600025E RID: 606 RVA: 0x000085BC File Offset: 0x000077BC
public void ViewUpdate()
{
this._musicTitle.ViewUpdate();
}
// Token: 0x0400018B RID: 395
[SerializeField]
private MultipleImage _ranking;
// Token: 0x0400018C RID: 396
[SerializeField]
private CustomTextScroll _musicTitle;
// Token: 0x0400018D RID: 397
[SerializeField]
private RawImage _jacket;
// Token: 0x0400018E RID: 398
[SerializeField]
private GameObject _new;
}

View File

@@ -0,0 +1,85 @@
using System;
using UnityEngine;
// Token: 0x0200010B RID: 267
public class AnimationParts : MonoBehaviour
{
// Token: 0x0600085F RID: 2143 RVA: 0x000205F7 File Offset: 0x0001F7F7
private void Awake()
{
if (this._animator != null)
{
this._controller = this._animator.GetBehaviour<StateAnimController>();
}
}
// Token: 0x06000860 RID: 2144 RVA: 0x00020618 File Offset: 0x0001F818
public bool isNull()
{
bool flag;
if (this._controller != null)
{
if (this._controller != null)
{
flag = true;
}
else
{
flag = false;
this._controller = null;
}
}
else
{
flag = this._controller != null;
}
return !flag;
}
// Token: 0x06000861 RID: 2145 RVA: 0x00020664 File Offset: 0x0001F864
public void Play(string animName, Action next, bool isSameState = false)
{
if (this.isNull())
{
this._controller = this._animator.GetBehaviour<StateAnimController>();
}
if (this._animator != null)
{
this._animator.Play(animName, 0, 0f);
}
if (next == null)
{
return;
}
int num = Animator.StringToHash("Base Layer." + animName);
if (!this.isNull())
{
this._controller.SetExitParts(next, num, isSameState);
}
}
// Token: 0x06000862 RID: 2146 RVA: 0x000206D5 File Offset: 0x0001F8D5
public void Play(string animName)
{
if (this._animator != null)
{
this._animator.Play(animName, 0, 0f);
}
}
// Token: 0x06000863 RID: 2147 RVA: 0x000206F7 File Offset: 0x0001F8F7
public void ResetExitParts()
{
if (!this.isNull())
{
this._controller.ResetExitParts();
}
}
// Token: 0x040006AC RID: 1708
[SerializeField]
private Animator _animator;
// Token: 0x040006AD RID: 1709
private StateAnimController _controller;
}

View File

@@ -0,0 +1,27 @@
using System;
using UnityEngine;
// Token: 0x0200018F RID: 399
public static class AnimatorExtensions
{
// Token: 0x06000E15 RID: 3605 RVA: 0x00042F8C File Offset: 0x0004218C
public static void PlayendAction(this Animator animator, int layer, int fullPathHash, Action playend)
{
AnimatorStateInfo currentAnimatorStateInfo = animator.GetCurrentAnimatorStateInfo(layer);
if (currentAnimatorStateInfo.fullPathHash != fullPathHash)
{
return;
}
if (currentAnimatorStateInfo.normalizedTime < 1f)
{
return;
}
playend();
}
// Token: 0x06000E16 RID: 3606 RVA: 0x00042FC1 File Offset: 0x000421C1
public static void PlayendAction(this Animator animator, int layer, string fullPath, Action playend)
{
animator.PlayendAction(layer, Animator.StringToHash(fullPath), playend);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,151 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using MAI2.Util;
using Manager;
using UnityEngine;
// Token: 0x0200001D RID: 29
[ProjectPrefs("AssetBundleRootDirectory", "アセットバンドルの対象となるルートディレクトリへのPath", "AssetBundle", typeof(string))]
public class AssetBundleManager
{
// Token: 0x06000091 RID: 145 RVA: 0x00003E38 File Offset: 0x00003038
public AssetBundleManager(string assetbundleDirectoryPath, MonoBehaviour coroutineObject)
{
this.coroutineObject = coroutineObject;
this.cacheAssetBundleDic = new Dictionary<string, AssetBundle>();
string assetBundlePath = Singleton<OptionDataManager>.Instance.GetAssetBundlePath("AssetBundleImages");
if (File.Exists(assetBundlePath))
{
AssetBundle assetBundle = AssetBundle.LoadFromFile(assetBundlePath);
this.manifest = assetBundle.LoadAsset<AssetBundleManifest>("assetbundlemanifest");
}
}
// Token: 0x06000092 RID: 146 RVA: 0x00003E8D File Offset: 0x0000308D
public float GetLoadProgress()
{
return this.progress;
}
// Token: 0x06000093 RID: 147 RVA: 0x00003E95 File Offset: 0x00003095
public string[] GetAllAssetBundlePathNames()
{
if (this.manifest != null)
{
return this.manifest.GetAllAssetBundles();
}
return null;
}
// Token: 0x06000094 RID: 148 RVA: 0x00003EB4 File Offset: 0x000030B4
public void LoadAllAssetBundle()
{
if (this.manifest != null)
{
this.queue = new Queue<string>(this.manifest.GetAllAssetBundles());
this.totalNumber = this.queue.Count;
for (int i = 0; i < 16; i++)
{
this.coroutineObject.StartCoroutine(this.LoadAssetBundleAsync(this.queue, new Action<string, AssetBundle>(this.OnSucess)));
}
this.coroutineObject.StartCoroutine(this.CheckAllLoadEnded(this.queue));
return;
}
throw new Exception("Manifestが存在していません");
}
// Token: 0x06000095 RID: 149 RVA: 0x00003F4A File Offset: 0x0000314A
private IEnumerator CheckAllLoadEnded(Queue<string> queue)
{
yield return new WaitWhile(delegate
{
this.progress = 1f - (float)queue.Count / (float)this.totalNumber;
return queue.Count > 0;
});
this.isDone = true;
yield break;
}
// Token: 0x06000096 RID: 150 RVA: 0x00003F60 File Offset: 0x00003160
private IEnumerator LoadAssetBundleAsync(Queue<string> queue, Action<string, AssetBundle> onSucess)
{
while (queue.Count > 0)
{
AssetBundleManager.<>c__DisplayClass15_0 CS$<>8__locals1 = new AssetBundleManager.<>c__DisplayClass15_0();
string path = queue.Dequeue();
CS$<>8__locals1.requeset = AssetBundle.LoadFromFileAsync(Singleton<OptionDataManager>.Instance.GetAssetBundlePath(path));
yield return new WaitWhile(() => !CS$<>8__locals1.requeset.isDone);
this.OnSucess(path, CS$<>8__locals1.requeset.assetBundle);
CS$<>8__locals1 = null;
path = null;
}
yield break;
}
// Token: 0x06000097 RID: 151 RVA: 0x00003F78 File Offset: 0x00003178
private void OnSucess(string name, AssetBundle loadedAssetBundle)
{
try
{
string text = name.ToLower();
string extension = Path.GetExtension(text);
this.cacheAssetBundleDic.Add(text.Replace(extension, string.Empty), loadedAssetBundle);
}
catch
{
}
}
// Token: 0x06000098 RID: 152 RVA: 0x00003FC0 File Offset: 0x000031C0
public T LoadAsset<T>(string assetPath) where T : Object
{
string text = "Assets/" + ProjectPrefs.GetString("AssetBundleRootDirectory") + assetPath;
string text2 = assetPath.ToLower();
string extension = Path.GetExtension(text2);
text2 = text2.Replace(extension, string.Empty);
if (this.cacheAssetBundleDic.ContainsKey(text2))
{
return this.cacheAssetBundleDic[text2].LoadAsset<T>(text);
}
return default(T);
}
// Token: 0x06000099 RID: 153 RVA: 0x00004028 File Offset: 0x00003228
public AssetBundleRequest LoadAssetAsync<T>(string assetPath) where T : Object
{
string text = "Assets/" + ProjectPrefs.GetString("AssetBundleRootDirectory") + assetPath;
return this.cacheAssetBundleDic[assetPath].LoadAssetAsync<T>(text);
}
// Token: 0x0400004E RID: 78
public const string ASSETBUNDLE_ROOT_DIRECTORY = "AssetBundleRootDirectory";
// Token: 0x0400004F RID: 79
private const int threadCount = 16;
// Token: 0x04000050 RID: 80
public bool isDone;
// Token: 0x04000051 RID: 81
private MonoBehaviour coroutineObject;
// Token: 0x04000052 RID: 82
private Dictionary<string, AssetBundle> cacheAssetBundleDic;
// Token: 0x04000053 RID: 83
private AssetBundleManifest manifest;
// Token: 0x04000054 RID: 84
private Queue<string> queue;
// Token: 0x04000055 RID: 85
private string directoryPath;
// Token: 0x04000056 RID: 86
private int totalNumber;
// Token: 0x04000057 RID: 87
private float progress;
}

View File

@@ -0,0 +1,664 @@
using System;
using System.IO;
using MAI2.Util;
using Manager;
using UnityEngine;
using Util;
// Token: 0x0200003B RID: 59
public class AssetManager
{
// Token: 0x06000188 RID: 392 RVA: 0x000063C9 File Offset: 0x000055C9
public static void SetInstance(AssetManager asset)
{
AssetManager._instance = asset;
}
// Token: 0x06000189 RID: 393 RVA: 0x000063D1 File Offset: 0x000055D1
public static AssetManager Instance()
{
return AssetManager._instance;
}
// Token: 0x0600018A RID: 394 RVA: 0x000063D8 File Offset: 0x000055D8
public AssetManager(MonoBehaviour monoBehaviour)
{
string fullPath = Path.GetFullPath(Path.Combine(Application.streamingAssetsPath, "A000/AssetBundleImages/"));
this.assetBundleManager = new AssetBundleManager(fullPath, monoBehaviour);
}
// Token: 0x0600018B RID: 395 RVA: 0x0000640D File Offset: 0x0000560D
public void Initialize()
{
this.assetBundleManager.LoadAllAssetBundle();
}
// Token: 0x0600018C RID: 396 RVA: 0x0000641A File Offset: 0x0000561A
public bool IsDone()
{
return this.assetBundleManager.isDone;
}
// Token: 0x0600018D RID: 397 RVA: 0x00006427 File Offset: 0x00005627
public float GetProgress()
{
return this.assetBundleManager.GetLoadProgress();
}
// Token: 0x0600018E RID: 398 RVA: 0x00006434 File Offset: 0x00005634
public string[] GetAllAssetBundlePathNames()
{
return this.assetBundleManager.GetAllAssetBundlePathNames();
}
// Token: 0x0600018F RID: 399 RVA: 0x00006441 File Offset: 0x00005641
public T LoadAsset<T>(string dataPath) where T : Object
{
dataPath = dataPath.ToLower();
return this.assetBundleManager.LoadAsset<T>(dataPath);
}
// Token: 0x06000190 RID: 400 RVA: 0x00006457 File Offset: 0x00005657
public AssetBundleRequest LoadAssetAcync<T>(string dataPath) where T : Object
{
dataPath = dataPath.ToLower();
return this.assetBundleManager.LoadAssetAsync<T>(dataPath);
}
// Token: 0x06000191 RID: 401 RVA: 0x0000646D File Offset: 0x0000566D
public Texture2D GetJacketTexture2D(int id)
{
if (Singleton<DataManager>.Instance.GetMusic(id) == null)
{
return this.GetJacketTexture2D("Jacket/UI_Jacket_000000.png");
}
return this.GetJacketTexture2D(Singleton<DataManager>.Instance.GetMusic(id).jacketFile);
}
// Token: 0x06000192 RID: 402 RVA: 0x000064A0 File Offset: 0x000056A0
public Texture2D GetJacketTexture2D(string filename)
{
filename = Singleton<DataManager>.Instance.ReplaceIfDresscode(filename);
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Jacket/UI_Jacket_000000.png");
}
return texture2D;
}
// Token: 0x06000193 RID: 403 RVA: 0x000064D8 File Offset: 0x000056D8
public Texture2D GetJacketThumbTexture2D(int id)
{
if (Singleton<DataManager>.Instance.GetMusic(id) == null)
{
return this.GetJacketThumbTexture2D("Jacket_S/UI_Jacket_000000_S.png");
}
return this.GetJacketThumbTexture2D(Singleton<DataManager>.Instance.GetMusic(id).thumbnailName);
}
// Token: 0x06000194 RID: 404 RVA: 0x0000650C File Offset: 0x0000570C
public Texture2D GetJacketThumbTexture2D(string filename)
{
filename = Singleton<DataManager>.Instance.ReplaceIfDresscode(filename);
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Jacket_S/UI_Jacket_000000_S.png");
}
return texture2D;
}
// Token: 0x06000195 RID: 405 RVA: 0x00006544 File Offset: 0x00005744
public Texture2D GetIconTexture2D(int playerIndex, int id)
{
if (id == 10 && playerIndex < 2 && playerIndex >= 0 && null != GameManager.FaceIconTexture[playerIndex])
{
return GameManager.FaceIconTexture[playerIndex];
}
if (Singleton<DataManager>.Instance.GetIcon(id) != null)
{
return this.GetIconTexture2D(Singleton<DataManager>.Instance.GetIcon(id).fileName);
}
if (!GameCommonSetting.IsRandom(id))
{
return this.GetIconTexture2D("Icon/UI_Icon_000000.png");
}
return this.GetIconTexture2D(string.Format("Icon/UI_Icon_00000{0}.png", id));
}
// Token: 0x06000196 RID: 406 RVA: 0x000065C4 File Offset: 0x000057C4
private Texture2D GetIconTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Icon/UI_Icon_000000.png");
}
return texture2D;
}
// Token: 0x06000197 RID: 407 RVA: 0x000065F0 File Offset: 0x000057F0
public Texture2D GetPlateTexture2D(int id)
{
if (Singleton<DataManager>.Instance.GetPlate(id) != null)
{
return this.GetPlateTexture2D(Singleton<DataManager>.Instance.GetPlate(id).fileName);
}
if (!GameCommonSetting.IsRandom(id))
{
return this.GetPlateTexture2D("NamePlate/UI_Plate_000000.png");
}
return this.GetIconTexture2D(string.Format("NamePlate/UI_Plate_00000{0}.png", id));
}
// Token: 0x06000198 RID: 408 RVA: 0x0000664C File Offset: 0x0000584C
public Texture2D GetPlateTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("NamePlate/UI_Plate_000000.png");
}
return texture2D;
}
// Token: 0x06000199 RID: 409 RVA: 0x00006677 File Offset: 0x00005877
public Texture2D GetPartnerTexture2D(int id)
{
if (Singleton<DataManager>.Instance.GetPartner(id) == null)
{
return this.GetPartnerTexture2D("Partner/UI_PartnerIcon_000000.png");
}
return this.GetPartnerTexture2D(Singleton<DataManager>.Instance.GetPartner(id).fileName);
}
// Token: 0x0600019A RID: 410 RVA: 0x000066A8 File Offset: 0x000058A8
public Texture2D GetPartnerTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Partner/UI_PartnerIcon_000000.png");
}
return texture2D;
}
// Token: 0x0600019B RID: 411 RVA: 0x000066D4 File Offset: 0x000058D4
public Texture2D GetFrameTexture2D(int id)
{
if (Singleton<DataManager>.Instance.GetFrame(id) != null)
{
return this.GetFrameTexture2D(Singleton<DataManager>.Instance.GetFrame(id).fileName);
}
if (!GameCommonSetting.IsRandom(id))
{
return this.GetFrameTexture2D("Frame/UI_Frame_000000.png");
}
return this.GetIconTexture2D(string.Format("Frame/UI_Frame_00000{0}.png", id));
}
// Token: 0x0600019C RID: 412 RVA: 0x00006730 File Offset: 0x00005930
public Texture2D GetFrameTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Frame/UI_Frame_000000.png");
}
return texture2D;
}
// Token: 0x0600019D RID: 413 RVA: 0x0000675B File Offset: 0x0000595B
public Texture2D GetFrameMaskTexture2D(int id)
{
if (Singleton<DataManager>.Instance.GetFrame(id) == null)
{
return this.GetFrameMaskTexture2D("FrameMask/UI_FrameMask_000000.png");
}
return this.GetFrameMaskTexture2D(Singleton<DataManager>.Instance.GetFrame(id).maskName);
}
// Token: 0x0600019E RID: 414 RVA: 0x0000678C File Offset: 0x0000598C
public Texture2D GetFrameMaskTexture2D(string filename)
{
Texture2D texture2D = null;
if (filename.Length > 0)
{
texture2D = this.LoadAsset<Texture2D>(filename);
}
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("FrameMask/UI_FrameMask_000000.png");
}
return texture2D;
}
// Token: 0x0600019F RID: 415 RVA: 0x000067C2 File Offset: 0x000059C2
public Texture2D GetFramePatternTexture2D(int id)
{
if (Singleton<DataManager>.Instance.GetFrame(id) == null)
{
return this.GetFramePatternTexture2D("FramePattern/UI_FramePattern_000000.png");
}
return this.GetFramePatternTexture2D(Singleton<DataManager>.Instance.GetFrame(id).patternName);
}
// Token: 0x060001A0 RID: 416 RVA: 0x000067F4 File Offset: 0x000059F4
public Texture2D GetFramePatternTexture2D(string filename)
{
Texture2D texture2D = null;
if (filename.Length > 0)
{
texture2D = this.LoadAsset<Texture2D>(filename);
}
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("FramePattern/UI_FramePattern_000000.png");
}
return texture2D;
}
// Token: 0x060001A1 RID: 417 RVA: 0x0000682C File Offset: 0x00005A2C
public Texture2D GetFrameThumbTexture2D(int id)
{
if (Singleton<DataManager>.Instance.GetFrame(id) != null)
{
return this.GetFrameThumbTexture2D(Singleton<DataManager>.Instance.GetFrame(id).thumbnailName);
}
if (!GameCommonSetting.IsRandom(id))
{
return this.GetFrameThumbTexture2D("Frame_S/UI_Frame_000000_S.png");
}
return this.GetIconTexture2D(string.Format("Frame_S/UI_Frame_00000{0}_S.png", id));
}
// Token: 0x060001A2 RID: 418 RVA: 0x00006888 File Offset: 0x00005A88
public Texture2D GetFrameThumbTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Frame_S/UI_Frame_000000_S.png");
}
return texture2D;
}
// Token: 0x060001A3 RID: 419 RVA: 0x000068B3 File Offset: 0x00005AB3
public Texture2D GetCharacterTexture2D(int id)
{
if (Singleton<DataManager>.Instance.GetChara(id) == null)
{
return this.GetCharacterTexture2D("Chara/UI_Chara_000000.png");
}
return this.GetCharacterTexture2D(Singleton<DataManager>.Instance.GetChara(id).imageFile);
}
// Token: 0x060001A4 RID: 420 RVA: 0x000068E4 File Offset: 0x00005AE4
public Texture2D GetCharacterTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Chara/UI_Chara_000000.png");
}
return texture2D;
}
// Token: 0x060001A5 RID: 421 RVA: 0x00006910 File Offset: 0x00005B10
public Texture2D GetPartnerResultTexture2D(int id)
{
string text = "Partner/UI_PartnerResult_" + id.ToString("000000") + ".png";
Texture2D texture2D = this.LoadAsset<Texture2D>(text);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Partner/UI_PartnerResult_000001.png");
}
return texture2D;
}
// Token: 0x060001A6 RID: 422 RVA: 0x00006957 File Offset: 0x00005B57
public Texture2D GetPhotoFrameTexture2D(int id)
{
return this.GetPhotoFrameTexture2D(Singleton<DataManager>.Instance.GetPhotoFrame(id).imageFile);
}
// Token: 0x060001A7 RID: 423 RVA: 0x00006970 File Offset: 0x00005B70
public Texture2D GetPhotoFrameTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("PhotoFrame/UI_PhotoFrame_000000.png");
}
return texture2D;
}
// Token: 0x060001A8 RID: 424 RVA: 0x0000699B File Offset: 0x00005B9B
public Texture2D GetRightTexture2D(int id)
{
return this.GetRightTexture2D(Singleton<DataManager>.Instance.GetMusic(id).rightFile);
}
// Token: 0x060001A9 RID: 425 RVA: 0x000069B4 File Offset: 0x00005BB4
public Texture2D GetRightTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Rights/UI_Rights_000000.png");
}
return texture2D;
}
// Token: 0x060001AA RID: 426 RVA: 0x000069DF File Offset: 0x00005BDF
public Texture2D GetSilhouetteTexture2D(int id)
{
return this.GetSilhouetteTexture2D(Singleton<DataManager>.Instance.GetMapSilhouetteData(id).fileName);
}
// Token: 0x060001AB RID: 427 RVA: 0x000069F8 File Offset: 0x00005BF8
public Texture2D GetSilhouetteTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Silhouette/UI_Silhouette_000000.png");
}
return texture2D;
}
// Token: 0x060001AC RID: 428 RVA: 0x00006A23 File Offset: 0x00005C23
public Texture2D GetCardCharaTexture2D(int id)
{
return this.GetCardCharaTexture2D(Singleton<DataManager>.Instance.GetCardChara(id).thumbnailName);
}
// Token: 0x060001AD RID: 429 RVA: 0x00006A3C File Offset: 0x00005C3C
public Texture2D GetCardCharaTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("CardChara_S/UI_CardChara_000000_S.png");
}
return texture2D;
}
// Token: 0x060001AE RID: 430 RVA: 0x00006A68 File Offset: 0x00005C68
public Texture2D GetCardBaseTexture2D(int id, int effectId)
{
string text = "CardBase_S/UI_CardBase_" + string.Format("{0:D7}_", id) + string.Format("{0:D6}", effectId) + "_S.png";
return this.GetCardBaseTexture2D(text);
}
// Token: 0x060001AF RID: 431 RVA: 0x00006AAC File Offset: 0x00005CAC
private Texture2D GetCardBaseTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("CardBase_S/UI_CardBase_0000000_000000_S.png");
}
return texture2D;
}
// Token: 0x060001B0 RID: 432 RVA: 0x00006AD7 File Offset: 0x00005CD7
public Texture2D GetCardFrameTexture2D(int id)
{
return this.GetCardFrameTexture2D(Singleton<DataManager>.Instance.GetCardType(id).frameThumbnailName);
}
// Token: 0x060001B1 RID: 433 RVA: 0x00006AF0 File Offset: 0x00005CF0
public Texture2D GetCardFrameTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("CardFrame_S/UI_CardFrame_0000000_S.png");
}
return texture2D;
}
// Token: 0x060001B2 RID: 434 RVA: 0x00006B1B File Offset: 0x00005D1B
public Texture2D GetScoreRankingTexture2D(int id)
{
return this.GetScoreRankingTexture2D(Singleton<DataManager>.Instance.GetScoreRanking(id).FileName);
}
// Token: 0x060001B3 RID: 435 RVA: 0x00006B34 File Offset: 0x00005D34
public Texture2D GetScoreRankingTexture2D(string filename)
{
Texture2D texture2D = this.LoadAsset<Texture2D>(filename);
if (texture2D == null)
{
texture2D = this.LoadAsset<Texture2D>("Frame_S/UI_Frame_000000_S.png");
}
return texture2D;
}
// Token: 0x060001B4 RID: 436 RVA: 0x00006B60 File Offset: 0x00005D60
public GameObject GetIslandPrefab(int id)
{
string text = "Map/Prefab/Island/UI_" + string.Format("{0:D6}", id) + ".prefab";
GameObject gameObject = this.LoadAsset<GameObject>(text);
if (gameObject == null)
{
id = 1;
text = "Map/Prefab/Island/UI_" + string.Format("{0:D6}", id) + ".prefab";
gameObject = this.LoadAsset<GameObject>(text);
}
return gameObject;
}
// Token: 0x060001B5 RID: 437 RVA: 0x00006BCC File Offset: 0x00005DCC
public GameObject GetIslandPrefab(string _filename)
{
string text = "Map/Prefab/Island/" + _filename + ".prefab";
GameObject gameObject = this.LoadAsset<GameObject>(text);
gameObject == null;
return gameObject;
}
// Token: 0x060001B6 RID: 438 RVA: 0x00006BFC File Offset: 0x00005DFC
public Texture2D GetIslandBgTexture(string filename)
{
string text = "Map/Sprite/BG" + filename + ".png";
Texture2D texture2D = this.LoadAsset<Texture2D>(text);
texture2D == null;
return texture2D;
}
// Token: 0x060001B7 RID: 439 RVA: 0x00006C2C File Offset: 0x00005E2C
public GameObject GetNaviCharaPrefab(int id)
{
string text = "NaviChara/Prefab/UI_Navichara_" + string.Format("{0:D2}", id) + ".prefab";
GameObject gameObject = this.LoadAsset<GameObject>(text);
if (gameObject == null)
{
id = 1;
text = "NaviChara/Prefab/UI_Navichara_" + string.Format("{0:D2}", id) + ".prefab";
gameObject = this.LoadAsset<GameObject>(text);
}
return gameObject;
}
// Token: 0x060001B8 RID: 440 RVA: 0x00006C98 File Offset: 0x00005E98
public Texture2D GetNaviCharaIcon(int id)
{
string text = "NaviChara/Icon/UI_CMN_NaviChara_Icon_" + string.Format("{0:D2}", id) + ".png";
Texture2D texture2D = this.LoadAsset<Texture2D>(text);
if (texture2D == null)
{
id = 1;
text = "NaviChara/Icon/UI_CMN_NaviChara_Icon_" + string.Format("{0:D2}", id) + ".png";
texture2D = this.LoadAsset<Texture2D>(text);
}
return texture2D;
}
// Token: 0x060001B9 RID: 441 RVA: 0x00006D04 File Offset: 0x00005F04
public Sprite GetMapBgSprite(int mapId, string filename)
{
string text = string.Concat(new string[]
{
"Map/Sprite/BG/",
mapId.ToString("000000"),
"/",
filename,
".png"
});
Sprite sprite = this.LoadAsset<Sprite>(text);
if (sprite == null)
{
mapId = (Singleton<MapMaster>.Instance.IsCollaboMap(mapId) ? 990001 : 999999);
text = string.Concat(new string[]
{
"Map/Sprite/BG/",
mapId.ToString("000000"),
"/",
filename,
".png"
});
sprite = this.LoadAsset<Sprite>(text);
}
return sprite;
}
// Token: 0x060001BA RID: 442 RVA: 0x00006DB4 File Offset: 0x00005FB4
public Texture2D GetMapBgTexture2D(int mapId, string filename)
{
string text = string.Concat(new string[]
{
"Map/Sprite/BG/",
mapId.ToString("000000"),
"/",
filename,
".png"
});
Texture2D texture2D = this.LoadAsset<Texture2D>(text);
if (texture2D == null)
{
mapId = 1;
text = string.Concat(new string[]
{
"Map/Sprite/BG/",
mapId.ToString("000000"),
"/",
filename,
".png"
});
texture2D = this.LoadAsset<Texture2D>(text);
}
return texture2D;
}
// Token: 0x060001BB RID: 443 RVA: 0x00006E4C File Offset: 0x0000604C
public Sprite GetTabTitleSprite(string filename)
{
string text = SelectorTab.CategoryTabImagePath + filename;
Sprite sprite = Resources.Load<Sprite>(text);
if (sprite == null)
{
text = "TabTitle/" + filename + ".png";
sprite = this.LoadAsset<Sprite>(text);
sprite == null;
}
return sprite;
}
// Token: 0x060001BC RID: 444 RVA: 0x00006E98 File Offset: 0x00006098
public Texture2D GetTabTitleTexture2D(string filename)
{
string text = SelectorTab.CategoryTabImagePath + filename;
Texture2D texture2D = Resources.Load<Texture2D>(text);
if (texture2D == null)
{
text = "TabTitle/" + filename + ".png";
texture2D = this.LoadAsset<Texture2D>(text);
texture2D == null;
}
return texture2D;
}
// Token: 0x060001BD RID: 445 RVA: 0x00006EE4 File Offset: 0x000060E4
public GameObject GetSpecialEffectPrefab(string _filename)
{
string text = "SpecialEffect/Prefab/" + _filename + ".prefab";
GameObject gameObject = this.LoadAsset<GameObject>(text);
gameObject == null;
return gameObject;
}
// Token: 0x0400010C RID: 268
private AssetBundleManager assetBundleManager;
// Token: 0x0400010D RID: 269
public const string IconDummyName = "Icon/UI_Icon_000000.png";
// Token: 0x0400010E RID: 270
public const string PlateDummyName = "NamePlate/UI_Plate_000000.png";
// Token: 0x0400010F RID: 271
public const string PartnerDummyName = "Partner/UI_PartnerIcon_000000.png";
// Token: 0x04000110 RID: 272
public const string FrameDummyName = "Frame/UI_Frame_000000.png";
// Token: 0x04000111 RID: 273
public const string FrameMaskDummyName = "FrameMask/UI_FrameMask_000000.png";
// Token: 0x04000112 RID: 274
public const string FramePatternDummyName = "FramePattern/UI_FramePattern_000000.png";
// Token: 0x04000113 RID: 275
public const string FrameThumbDummyName = "Frame_S/UI_Frame_000000_S.png";
// Token: 0x04000114 RID: 276
public const string CharaDummyName = "Chara/UI_Chara_000000.png";
// Token: 0x04000115 RID: 277
public const string PartnerResultDummyName = "Partner/UI_PartnerResult_000001.png";
// Token: 0x04000116 RID: 278
public const string JacketDummyName = "Jacket/UI_Jacket_000000.png";
// Token: 0x04000117 RID: 279
public const string JacketThumbDummyName = "Jacket_S/UI_Jacket_000000_S.png";
// Token: 0x04000118 RID: 280
public const string RightDummyName = "Rights/UI_Rights_000000.png";
// Token: 0x04000119 RID: 281
public const string SilhouetDummyName = "Silhouette/UI_Silhouette_000000.png";
// Token: 0x0400011A RID: 282
public const string SilhouetBossName = "Silhouette/UI_Silhouette_000100.png";
// Token: 0x0400011B RID: 283
public const string PhotoFrameDummyName = "PhotoFrame/UI_PhotoFrame_000000.png";
// Token: 0x0400011C RID: 284
public const string CardCharaThumbDummyName = "CardChara_S/UI_CardChara_000000_S.png";
// Token: 0x0400011D RID: 285
public const string CardBaseThumbDummyName = "CardBase_S/UI_CardBase_0000000_000000_S.png";
// Token: 0x0400011E RID: 286
public const string CardFrameThumbDummyName = "CardFrame_S/UI_CardFrame_0000000_S.png";
// Token: 0x0400011F RID: 287
public const string IconRandomFileName = "Icon/UI_Icon_00000{0}.png";
// Token: 0x04000120 RID: 288
public const string PlateRandomFileName = "NamePlate/UI_Plate_00000{0}.png";
// Token: 0x04000121 RID: 289
public const string FrameRandomFileName = "Frame/UI_Frame_00000{0}.png";
// Token: 0x04000122 RID: 290
public const string FrameThumbRandomFileName = "Frame_S/UI_Frame_00000{0}_S.png";
// Token: 0x04000123 RID: 291
private static AssetManager _instance;
}

View File

@@ -0,0 +1,268 @@
using System;
using UI;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x020000EA RID: 234
public class AwakeCenterIcon : MonoBehaviour
{
// Token: 0x0600078D RID: 1933 RVA: 0x0001CBB8 File Offset: 0x0001BDB8
public void Prepare(int awakeNum, float gaugeAmount)
{
if (this._starEffectGenerator != null && this._starEffectAnimator == null)
{
this._starEffectAnimator = this._starEffectGenerator.Instantiate<Animator>();
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null)
{
starEffectAnimator.gameObject.SetActive(false);
}
}
if (this._awakeEffectGenerator != null && this._awakeEffectAnimator == null)
{
this._awakeEffectAnimator = this._awakeEffectGenerator.Instantiate<Animator>();
Animator awakeEffectAnimator = this._awakeEffectAnimator;
if (awakeEffectAnimator != null)
{
awakeEffectAnimator.gameObject.SetActive(false);
}
}
this._baseImage.ChangeSprite(awakeNum);
this.SetGaugeAmount(gaugeAmount);
this.SetVisibleStar(false);
}
// Token: 0x0600078E RID: 1934 RVA: 0x0001CC5B File Offset: 0x0001BE5B
public void ChangeBaseImage(int awakeNum)
{
this._baseImage.ChangeSprite(awakeNum);
}
// Token: 0x0600078F RID: 1935 RVA: 0x0001CC6C File Offset: 0x0001BE6C
public void AwakePrepare(int awakeNum, float gaugeAmount)
{
this._isCharaSelectCenterChain = false;
if (this._starEffectGenerator != null && this._starEffectAnimator == null)
{
this._starEffectAnimator = this._starEffectGenerator.Instantiate<Animator>();
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null)
{
starEffectAnimator.gameObject.SetActive(false);
}
}
if (this._awakeEffectGenerator != null && this._awakeEffectAnimator == null)
{
this._awakeEffectAnimator = this._awakeEffectGenerator.Instantiate<Animator>();
Animator awakeEffectAnimator = this._awakeEffectAnimator;
if (awakeEffectAnimator != null)
{
awakeEffectAnimator.gameObject.SetActive(false);
}
}
this._animator = base.gameObject.GetComponent<Animator>();
this._baseImage.ChangeSprite(awakeNum);
this.SetGaugeAmount(gaugeAmount);
this.SetVisibleStar(false);
this.HideStar();
}
// Token: 0x06000790 RID: 1936 RVA: 0x0001CD2D File Offset: 0x0001BF2D
public void SetGaugeAmount(float currentValue)
{
this._maskImage.fillAmount = currentValue;
}
// Token: 0x06000791 RID: 1937 RVA: 0x0001CD3C File Offset: 0x0001BF3C
public void SetVisibleStar(bool isActive)
{
this._isStarActive = isActive;
this._starObj.gameObject.SetActive(true);
if (this._isCharaSelectCenterChain)
{
this._baseImage.gameObject.SetActive(true);
}
if (!isActive && this._animator != null)
{
this._animator.Play("Idle");
return;
}
this._starObj.gameObject.SetActive(isActive);
if (isActive)
{
if (this._isCharaSelectCenterChain)
{
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf)
{
this._starEffectAnimator.gameObject.SetActive(true);
}
Animator starEffectAnimator2 = this._starEffectAnimator;
if (starEffectAnimator2 == null)
{
return;
}
starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"));
return;
}
}
else
{
Animator starEffectAnimator3 = this._starEffectAnimator;
if (starEffectAnimator3 == null)
{
return;
}
starEffectAnimator3.gameObject.SetActive(false);
}
}
// Token: 0x06000792 RID: 1938 RVA: 0x0001CE16 File Offset: 0x0001C016
public void SetStarType(bool isCounterStop)
{
this._starObj.sprite = (isCounterStop ? this._counterStopStarSprite : this._awakeingStarSprite);
}
// Token: 0x06000793 RID: 1939 RVA: 0x0001CE34 File Offset: 0x0001C034
public void AnimCenterSpark()
{
Animator awakeEffectAnimator = this._awakeEffectAnimator;
if (awakeEffectAnimator != null)
{
awakeEffectAnimator.gameObject.SetActive(true);
}
Animator awakeEffectAnimator2 = this._awakeEffectAnimator;
if (awakeEffectAnimator2 == null)
{
return;
}
awakeEffectAnimator2.Play("SpartkStar_Eff");
}
// Token: 0x06000794 RID: 1940 RVA: 0x0001CE64 File Offset: 0x0001C064
public void OnCenterIn()
{
if (this._isStarActive)
{
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf)
{
this._starEffectAnimator.gameObject.SetActive(true);
}
Animator starEffectAnimator2 = this._starEffectAnimator;
if (starEffectAnimator2 != null)
{
starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"), 0, 0f);
}
if (null != this._animator)
{
Animator animator = this._animator;
if (animator == null)
{
return;
}
animator.Play(Animator.StringToHash("GetStar"), 0, 0f);
}
}
}
// Token: 0x06000795 RID: 1941 RVA: 0x00003598 File Offset: 0x00002798
public void OnCenterOut()
{
}
// Token: 0x06000796 RID: 1942 RVA: 0x0001CEF5 File Offset: 0x0001C0F5
public void HideStar()
{
Image starObj = this._starObj;
if (starObj == null)
{
return;
}
starObj.gameObject.SetActive(false);
}
// Token: 0x06000797 RID: 1943 RVA: 0x0001CF10 File Offset: 0x0001C110
public void AwakeStar()
{
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf)
{
this._starEffectAnimator.gameObject.SetActive(true);
}
Image starObj = this._starObj;
if (starObj != null)
{
starObj.gameObject.SetActive(true);
}
Animator starEffectAnimator2 = this._starEffectAnimator;
if (starEffectAnimator2 != null)
{
starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"), 0, 0f);
}
Animator animator = this._animator;
if (animator == null)
{
return;
}
animator.Play(Animator.StringToHash("GetStar"), 0, 0f);
}
// Token: 0x06000798 RID: 1944 RVA: 0x0001CFA2 File Offset: 0x0001C1A2
public void AwakeStarDisp(float gaugeAmount)
{
this.SetGaugeAmount(gaugeAmount);
}
// Token: 0x040005A7 RID: 1447
[SerializeField]
[Header("Base")]
private MultipleImage _baseImage;
// Token: 0x040005A8 RID: 1448
[SerializeField]
[Header("覚醒ゲージ")]
private Image _maskImage;
// Token: 0x040005A9 RID: 1449
[SerializeField]
[Header("星")]
private Image _starObj;
// Token: 0x040005AA RID: 1450
[SerializeField]
private Animator _animator;
// Token: 0x040005AB RID: 1451
[SerializeField]
[Header("星演出")]
private InstantiateGenerator _starEffectGenerator;
// Token: 0x040005AC RID: 1452
[SerializeField]
[Header("覚醒時演出")]
private InstantiateGenerator _awakeEffectGenerator;
// Token: 0x040005AD RID: 1453
[SerializeField]
private bool _isCharaSelectCenterChain;
// Token: 0x040005AE RID: 1454
[SerializeField]
[Header("覚醒星")]
private Sprite _awakeingStarSprite;
// Token: 0x040005AF RID: 1455
[SerializeField]
[Header("カンスト星")]
private Sprite _counterStopStarSprite;
// Token: 0x040005B0 RID: 1456
private bool _isStarActive;
// Token: 0x040005B1 RID: 1457
private Animator _starEffectAnimator;
// Token: 0x040005B2 RID: 1458
private Animator _awakeEffectAnimator;
}

View File

@@ -0,0 +1,229 @@
using System;
using UI;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x020000EB RID: 235
public class AwakeIcon : MonoBehaviour
{
// Token: 0x0600079A RID: 1946 RVA: 0x0001CFAC File Offset: 0x0001C1AC
public void Prepare(int awakeNum, bool isActive)
{
if (this._starEffectGenerator != null && this._starEffectAnimator == null)
{
this._starEffectAnimator = this._starEffectGenerator.Instantiate<Animator>();
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null)
{
starEffectAnimator.gameObject.SetActive(false);
}
}
Animator starEffectAnimator2 = this._starEffectAnimator;
if (starEffectAnimator2 != null)
{
starEffectAnimator2.gameObject.SetActive(false);
}
this._baseImage.ChangeSprite(awakeNum);
this.SetStarType(false);
this.SetVisible(isActive);
}
// Token: 0x0600079B RID: 1947 RVA: 0x0001D028 File Offset: 0x0001C228
public void ChangeBaseImage(int awakeNum)
{
this._baseImage.ChangeSprite(awakeNum);
}
// Token: 0x0600079C RID: 1948 RVA: 0x0001D038 File Offset: 0x0001C238
public void AwakePrepare(int awakeNum, bool isActive)
{
this._isCharaSelectCenterChain = false;
if (this._starEffectGenerator != null && this._starEffectAnimator == null)
{
this._starEffectAnimator = this._starEffectGenerator.Instantiate<Animator>();
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null)
{
starEffectAnimator.gameObject.SetActive(false);
}
}
this._animator = base.gameObject.GetComponent<Animator>();
Animator starEffectAnimator2 = this._starEffectAnimator;
if (starEffectAnimator2 != null)
{
starEffectAnimator2.gameObject.SetActive(false);
}
this._baseImage.ChangeSprite(awakeNum);
this.SetStarType(false);
this.SetVisible(isActive);
if (!isActive)
{
this.HideStar();
}
}
// Token: 0x0600079D RID: 1949 RVA: 0x0001D0D8 File Offset: 0x0001C2D8
public void SetVisible(bool isActive)
{
this._isStarActive = isActive;
base.gameObject.SetActive(true);
if (this._starObject != null)
{
this._starObject.gameObject.SetActive(true);
}
if (this._isCharaSelectCenterChain)
{
this._baseImage.gameObject.SetActive(true);
}
if (!isActive && this._animator != null)
{
this._animator.Play("Idle");
return;
}
if (!isActive)
{
base.gameObject.SetActive(isActive);
return;
}
if (this._starObject != null)
{
this._starObject.gameObject.SetActive(isActive);
}
if (this._isCharaSelectCenterChain)
{
this._baseImage.gameObject.SetActive(isActive);
}
if (this._isCharaSelectCenterChain)
{
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf)
{
this._starEffectAnimator.gameObject.SetActive(true);
}
Animator starEffectAnimator2 = this._starEffectAnimator;
if (starEffectAnimator2 == null)
{
return;
}
starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"));
}
}
// Token: 0x0600079E RID: 1950 RVA: 0x0001D1E9 File Offset: 0x0001C3E9
public void SetStarType(bool isCounterStop)
{
this._starObject.sprite = (isCounterStop ? this._counterStopStarSprite : this._awakeingStarSprite);
}
// Token: 0x0600079F RID: 1951 RVA: 0x0001D208 File Offset: 0x0001C408
public void OnCenterIn()
{
if (!this._isStarActive)
{
return;
}
if (this._starObject == null || !this._starObject.gameObject.activeSelf)
{
return;
}
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf)
{
this._starEffectAnimator.gameObject.SetActive(true);
}
Animator starEffectAnimator2 = this._starEffectAnimator;
if (starEffectAnimator2 != null)
{
starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"), 0, 0f);
}
if (null != this._animator)
{
Animator animator = this._animator;
if (animator == null)
{
return;
}
animator.Play(Animator.StringToHash("GetStar"), 0, 0f);
}
}
// Token: 0x060007A0 RID: 1952 RVA: 0x00003598 File Offset: 0x00002798
public void OnCenterOut()
{
}
// Token: 0x060007A1 RID: 1953 RVA: 0x0001D2BB File Offset: 0x0001C4BB
public void HideStar()
{
Image starObject = this._starObject;
if (starObject == null)
{
return;
}
starObject.gameObject.SetActive(false);
}
// Token: 0x060007A2 RID: 1954 RVA: 0x0001D2D4 File Offset: 0x0001C4D4
public void AwakeStar()
{
Animator starEffectAnimator = this._starEffectAnimator;
if (starEffectAnimator != null)
{
starEffectAnimator.gameObject.SetActive(true);
}
Animator starEffectAnimator2 = this._starEffectAnimator;
if (starEffectAnimator2 != null)
{
starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"), 0, 0f);
}
Image starObject = this._starObject;
if (starObject != null)
{
starObject.gameObject.SetActive(true);
}
Animator animator = this._animator;
if (animator == null)
{
return;
}
animator.Play(Animator.StringToHash("GetStar"), 0, 0f);
}
// Token: 0x040005B3 RID: 1459
[SerializeField]
private MultipleImage _baseImage;
// Token: 0x040005B4 RID: 1460
[SerializeField]
[Header("星")]
private Image _starObject;
// Token: 0x040005B5 RID: 1461
[SerializeField]
private Animator _animator;
// Token: 0x040005B6 RID: 1462
[SerializeField]
[Header("キャラセット用")]
private InstantiateGenerator _starEffectGenerator;
// Token: 0x040005B7 RID: 1463
[SerializeField]
private bool _isCharaSelectCenterChain;
// Token: 0x040005B8 RID: 1464
[SerializeField]
[Header("覚醒星")]
private Sprite _awakeingStarSprite;
// Token: 0x040005B9 RID: 1465
[SerializeField]
[Header("カンスト星")]
private Sprite _counterStopStarSprite;
// Token: 0x040005BA RID: 1466
private bool _isStarActive;
// Token: 0x040005BB RID: 1467
private Animator _starEffectAnimator;
}

View File

@@ -0,0 +1,131 @@
using System;
using UnityEngine;
// Token: 0x020000EC RID: 236
public class AwakeIconController : MonoBehaviour
{
// Token: 0x060007A4 RID: 1956 RVA: 0x0001D350 File Offset: 0x0001C550
public void Prepare(float gaugeAmount, int awakeNum)
{
for (int i = 0; i < this._awakeIcons.Length; i++)
{
this._awakeIcons[i].Prepare(awakeNum, i < awakeNum);
if (awakeNum >= 5)
{
if (awakeNum >= 6)
{
this._awakeIcons[i].SetStarType(true);
}
else
{
this._awakeIcons[i].SetStarType(false);
}
}
}
this._centerIcon.Prepare(awakeNum, gaugeAmount);
if (awakeNum >= 5)
{
if (awakeNum >= 6)
{
this._centerIcon.SetStarType(true);
}
else
{
this._centerIcon.SetStarType(false);
}
this._centerIcon.SetVisibleStar(true);
return;
}
this._centerIcon.SetStarType(false);
}
// Token: 0x060007A5 RID: 1957 RVA: 0x0001D3F0 File Offset: 0x0001C5F0
public void ChangeBaseImage(int awakeNum)
{
for (int i = 0; i < this._awakeIcons.Length; i++)
{
this._awakeIcons[i].ChangeBaseImage(awakeNum);
}
this._centerIcon.ChangeBaseImage(awakeNum);
}
// Token: 0x060007A6 RID: 1958 RVA: 0x0001D42C File Offset: 0x0001C62C
public void AwakePrepare(float gaugeAmount, int awakeNum)
{
for (int i = 0; i < this._awakeIcons.Length; i++)
{
this._awakeIcons[i].AwakePrepare(awakeNum, i < awakeNum);
}
this._centerIcon.AwakePrepare(awakeNum, gaugeAmount);
if (awakeNum >= 5)
{
if (awakeNum >= 6)
{
this._centerIcon.SetStarType(true);
}
else
{
this._centerIcon.SetStarType(false);
}
this._centerIcon.SetVisibleStar(true);
return;
}
this._centerIcon.SetStarType(false);
}
// Token: 0x060007A7 RID: 1959 RVA: 0x0001D4A8 File Offset: 0x0001C6A8
public void OnCenterIn()
{
AwakeIcon[] awakeIcons = this._awakeIcons;
for (int i = 0; i < awakeIcons.Length; i++)
{
awakeIcons[i].OnCenterIn();
}
this._centerIcon.OnCenterIn();
}
// Token: 0x060007A8 RID: 1960 RVA: 0x0001D4E0 File Offset: 0x0001C6E0
public void OnCenterOut()
{
AwakeIcon[] awakeIcons = this._awakeIcons;
for (int i = 0; i < awakeIcons.Length; i++)
{
awakeIcons[i].OnCenterOut();
}
this._centerIcon.OnCenterOut();
}
// Token: 0x060007A9 RID: 1961 RVA: 0x0001D515 File Offset: 0x0001C715
public void AnimCenterSpark()
{
this._centerIcon.AnimCenterSpark();
}
// Token: 0x060007AA RID: 1962 RVA: 0x0001D522 File Offset: 0x0001C722
public void AnimStarGet(int awakeNum)
{
if (awakeNum >= 4)
{
this._centerIcon.AwakeStar();
return;
}
this._awakeIcons[awakeNum].AwakeStar();
}
// Token: 0x060007AB RID: 1963 RVA: 0x0001D541 File Offset: 0x0001C741
public void PutStar(float gaugeAmount)
{
this._centerIcon.AwakeStarDisp(gaugeAmount);
}
// Token: 0x040005BC RID: 1468
private const int MaxIconNum = 5;
// Token: 0x040005BD RID: 1469
[SerializeField]
private AwakeIcon[] _awakeIcons;
// Token: 0x040005BE RID: 1470
[SerializeField]
private AwakeCenterIcon _centerIcon;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,35 @@
using System;
using TMPro;
using UnityEngine;
// Token: 0x02000120 RID: 288
public class BaloonMessage : MonoBehaviour
{
// Token: 0x0600098B RID: 2443 RVA: 0x00024075 File Offset: 0x00023275
public void SetSerif(string serif)
{
this._serifText.text = serif;
}
// Token: 0x0600098C RID: 2444 RVA: 0x00024084 File Offset: 0x00023284
public void Play(string serif)
{
this.SetSerif(serif);
int num = Animator.StringToHash("Base Layer.Loop");
this._animator.Play(num, 0, 0f);
}
// Token: 0x0600098D RID: 2445 RVA: 0x000240B5 File Offset: 0x000232B5
public void PlayNonActive()
{
this._animator.Play("NonActive");
}
// Token: 0x04000772 RID: 1906
[SerializeField]
private TextMeshProUGUI _serifText;
// Token: 0x04000773 RID: 1907
[SerializeField]
private Animator _animator;
}

View File

@@ -0,0 +1,53 @@
using System;
using Mai2.Mai2Cue;
using Manager;
using UnityEngine;
// Token: 0x02000041 RID: 65
public class BlackOutObject : SpecialEffectObjBase
{
// Token: 0x060001ED RID: 493 RVA: 0x00007687 File Offset: 0x00006887
public void Initialize(Action action, int monitorIndex)
{
this._blackOutStartAction = action;
this.SetMonitorIndex(monitorIndex);
}
// Token: 0x060001EE RID: 494 RVA: 0x00007697 File Offset: 0x00006897
public override void SetActive(bool isActive)
{
this.StartAnimation();
}
// Token: 0x060001EF RID: 495 RVA: 0x0000769F File Offset: 0x0000689F
private void StartAnimation()
{
this._blackOutStartAction();
SoundManager.PlaySE(Cue.SE_KALEID_INTERRUPT_2, base.MonitorIndex);
this._animator.SetTrigger(Animator.StringToHash("In"));
}
// Token: 0x060001F0 RID: 496 RVA: 0x000076D4 File Offset: 0x000068D4
private void Update()
{
if (base.IsEnd)
{
return;
}
AnimatorStateInfo currentAnimatorStateInfo = this._animator.GetCurrentAnimatorStateInfo(0);
if (currentAnimatorStateInfo.shortNameHash == BlackOutObject.hashInout && currentAnimatorStateInfo.normalizedTime >= 1f)
{
this.SetIsEnd(true);
}
}
// Token: 0x04000141 RID: 321
[SerializeField]
private Animator _animator;
// Token: 0x04000142 RID: 322
private static readonly int hashInout = Animator.StringToHash("inout");
// Token: 0x04000143 RID: 323
private Action _blackOutStartAction;
}

View File

@@ -0,0 +1,64 @@
using System;
using UI;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x020000D5 RID: 213
public class BonusCharaObject : BonusObject
{
// Token: 0x06000716 RID: 1814 RVA: 0x0001BA9C File Offset: 0x0001AC9C
public void SetBGImage(int awakeNum)
{
this._multiImageMapBG.ChangeSprite(awakeNum);
}
// Token: 0x06000717 RID: 1815 RVA: 0x0001BAAA File Offset: 0x0001ACAA
public void SetCharaBaseImage(Sprite sprite)
{
if (sprite != null)
{
this._charaBaseImage.sprite = sprite;
}
}
// Token: 0x06000718 RID: 1816 RVA: 0x0001BAC1 File Offset: 0x0001ACC1
public void SetCharaImage(Sprite sprite)
{
if (sprite != null)
{
this._charaImage.sprite = sprite;
}
}
// Token: 0x06000719 RID: 1817 RVA: 0x0001BAD8 File Offset: 0x0001ACD8
public void SetFrameImage(int awakeNum)
{
this._frameImage.ChangeSprite(awakeNum);
}
// Token: 0x0600071A RID: 1818 RVA: 0x0001BAE6 File Offset: 0x0001ACE6
public void SetActiveMask(bool isActive)
{
this._maskObject.SetActive(isActive);
}
// Token: 0x04000541 RID: 1345
[SerializeField]
private MultipleImage _multiImageMapBG;
// Token: 0x04000542 RID: 1346
[SerializeField]
private Image _charaBaseImage;
// Token: 0x04000543 RID: 1347
[SerializeField]
private MultiImage _charaImage;
// Token: 0x04000544 RID: 1348
[SerializeField]
private MultipleImage _frameImage;
// Token: 0x04000545 RID: 1349
[SerializeField]
private GameObject _maskObject;
}

View File

@@ -0,0 +1,20 @@
using System;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x020000D6 RID: 214
public class BonusMedalObject : BonusObject
{
// Token: 0x0600071C RID: 1820 RVA: 0x0001BAFC File Offset: 0x0001ACFC
public void SetMedalImage(Sprite sprite)
{
if (sprite != null)
{
this._medalImage.sprite = sprite;
}
}
// Token: 0x04000546 RID: 1350
[SerializeField]
private Image _medalImage;
}

View File

@@ -0,0 +1,16 @@
using System;
using UnityEngine;
// Token: 0x020000D4 RID: 212
public class BonusObject : MonoBehaviour
{
// Token: 0x06000714 RID: 1812 RVA: 0x0001BA94 File Offset: 0x0001AC94
public GameObject GetNumBonusObject()
{
return this._numBonusObject;
}
// Token: 0x04000540 RID: 1344
[SerializeField]
private GameObject _numBonusObject;
}

View File

@@ -0,0 +1,58 @@
using System;
using System.Collections.Generic;
using UnityEngine;
// Token: 0x020000D7 RID: 215
public class BonusParts : MonoBehaviour
{
// Token: 0x0600071E RID: 1822 RVA: 0x0001BB13 File Offset: 0x0001AD13
public BonusObject GetBonusObject(int index)
{
return this._bonusObjectList[index];
}
// Token: 0x0600071F RID: 1823 RVA: 0x0001BB21 File Offset: 0x0001AD21
public GameObject GetNumBonusObject(int index)
{
return this._bonusObjectList[index].GetNumBonusObject();
}
// Token: 0x06000720 RID: 1824 RVA: 0x0001BB34 File Offset: 0x0001AD34
public void SetActiveBonusObjectChild(bool isActive)
{
for (int i = 0; i < this._bonusObjectList.Count; i++)
{
this._bonusObjectList[i].gameObject.SetActive(isActive);
}
}
// Token: 0x06000721 RID: 1825 RVA: 0x0001BB6E File Offset: 0x0001AD6E
public void SetActiveBonusObject(bool isActive, int index)
{
this._bonusObjectList[index].gameObject.SetActive(isActive);
}
// Token: 0x06000722 RID: 1826 RVA: 0x0001BB87 File Offset: 0x0001AD87
public void SetActiveEffect(bool isActive)
{
this._effectObject.SetActive(isActive);
}
// Token: 0x06000723 RID: 1827 RVA: 0x0001BB95 File Offset: 0x0001AD95
public void PlayBonusParts(string key, int layer, float normalizedTime)
{
this._animator.Play(key, layer, normalizedTime);
}
// Token: 0x04000547 RID: 1351
[SerializeField]
private Animator _animator;
// Token: 0x04000548 RID: 1352
[SerializeField]
private List<BonusObject> _bonusObjectList;
// Token: 0x04000549 RID: 1353
[SerializeField]
private GameObject _effectObject;
}

View File

@@ -0,0 +1,31 @@
using System;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x020000D8 RID: 216
public class BonusTicketObject : BonusObject
{
// Token: 0x06000725 RID: 1829 RVA: 0x0001BBA5 File Offset: 0x0001ADA5
public void SetTicketImage(Sprite sprite)
{
if (sprite != null)
{
this._ticketImage.sprite = sprite;
}
}
// Token: 0x06000726 RID: 1830 RVA: 0x0001BBBC File Offset: 0x0001ADBC
public void SetTextNumBonus(string text)
{
this._numBonusText.text = text;
}
// Token: 0x0400054A RID: 1354
[SerializeField]
private Image _ticketImage;
// Token: 0x0400054B RID: 1355
[SerializeField]
private TextMeshProUGUI _numBonusText;
}

View File

@@ -0,0 +1,27 @@
using System;
using TMPro;
using UnityEngine;
// Token: 0x020000D9 RID: 217
public class BonusTrackObject : BonusObject
{
// Token: 0x06000728 RID: 1832 RVA: 0x0001BBCA File Offset: 0x0001ADCA
public void SetTextNumTrack(string text)
{
this._numTrackText.text = text;
}
// Token: 0x06000729 RID: 1833 RVA: 0x0001BBD8 File Offset: 0x0001ADD8
public void SetTextNumBonus(string text)
{
this._numBonusText.text = text;
}
// Token: 0x0400054C RID: 1356
[SerializeField]
private TextMeshProUGUI _numTrackText;
// Token: 0x0400054D RID: 1357
[SerializeField]
private TextMeshProUGUI _numBonusText;
}

View File

@@ -0,0 +1,69 @@
using System;
using System.Collections.Generic;
using UnityEngine;
// Token: 0x020000DA RID: 218
public class BonusWindow : MonoBehaviour
{
// Token: 0x0600072B RID: 1835 RVA: 0x0001BBE6 File Offset: 0x0001ADE6
public int GetBonusPartsCount()
{
return this._BonusPartsObjList.Count;
}
// Token: 0x0600072C RID: 1836 RVA: 0x0001BBF3 File Offset: 0x0001ADF3
public Animator GetAnimater()
{
return this._Animator;
}
// Token: 0x0600072D RID: 1837 RVA: 0x0001BBFB File Offset: 0x0001ADFB
public BonusObject GetBonusObject(int index, int type)
{
return this._BonusPartsObjList[index].GetBonusObject(type);
}
// Token: 0x0600072E RID: 1838 RVA: 0x0001BC0F File Offset: 0x0001AE0F
public GameObject GetNumBonusObject(int index, int NumBonusObjIndex)
{
return this._BonusPartsObjList[index].GetNumBonusObject(NumBonusObjIndex);
}
// Token: 0x0600072F RID: 1839 RVA: 0x0001BC23 File Offset: 0x0001AE23
public void Play(string key, int layer, float normalizedTime)
{
this._Animator.Play(key, layer, normalizedTime);
}
// Token: 0x06000730 RID: 1840 RVA: 0x0001BC33 File Offset: 0x0001AE33
public void SetActiveBonusObjectChild(bool isActive, int index)
{
this._BonusPartsObjList[index].SetActiveBonusObjectChild(isActive);
}
// Token: 0x06000731 RID: 1841 RVA: 0x0001BC47 File Offset: 0x0001AE47
public void SetActiveBonusObject(bool isActive, int index)
{
this._BonusPartsObjList[index].SetActiveBonusObject(isActive, index);
}
// Token: 0x06000732 RID: 1842 RVA: 0x0001BC5C File Offset: 0x0001AE5C
public void SetActiveEffect(bool isActive, int index)
{
this._BonusPartsObjList[index].SetActiveEffect(isActive);
}
// Token: 0x06000733 RID: 1843 RVA: 0x0001BC70 File Offset: 0x0001AE70
public void PlayAnimationBonusParts(int index, string key, int layer, float normalizedTime)
{
this._BonusPartsObjList[index].PlayBonusParts(key, layer, normalizedTime);
}
// Token: 0x0400054E RID: 1358
[SerializeField]
private Animator _Animator;
// Token: 0x0400054F RID: 1359
[SerializeField]
private List<BonusParts> _BonusPartsObjList;
}

View File

@@ -0,0 +1,442 @@
using System;
using Mai2.Mai2Cue;
using Manager;
using UI;
using UnityEngine;
// Token: 0x02000057 RID: 87
public class ButtonControllerBase : MonoBehaviour
{
// Token: 0x06000281 RID: 641 RVA: 0x000089D7 File Offset: 0x00007BD7
public static ButtonControllerBase.ButtonInformation GetFlatButtonParam(int index)
{
int num = ButtonControllerBase.FlatButtonParam.Length;
return ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)index);
}
// Token: 0x06000282 RID: 642 RVA: 0x000089E9 File Offset: 0x00007BE9
public static ButtonControllerBase.ButtonInformation GetFlatButtonParam(ButtonControllerBase.FlatButtonType type)
{
int num = ButtonControllerBase.FlatButtonParam.Length;
return ButtonControllerBase.FlatButtonParam[(int)type];
}
// Token: 0x06000283 RID: 643 RVA: 0x00008A00 File Offset: 0x00007C00
protected void SetCommonButtons(params CommonButtonObject[] buttons)
{
this.CommonButtons = new CommonButtonObject[buttons.Length];
this.CommonButtons = buttons;
this.SetAnimationActive(true);
}
// Token: 0x06000284 RID: 644 RVA: 0x00008A1E File Offset: 0x00007C1E
public virtual void Initialize(int monitorIndex)
{
this.MonitorIndex = monitorIndex;
this.SetAnimationActive(true);
}
// Token: 0x06000285 RID: 645 RVA: 0x00008A30 File Offset: 0x00007C30
public static void LoadDefaultResources()
{
if (!ButtonControllerBase._isFlatButtonLoaded)
{
for (int i = 0; i < ButtonControllerBase.FlatButtonParam.Length; i++)
{
ButtonControllerBase.FlatButtonParam[i].Image = Resources.Load<Sprite>(ButtonControllerBase.FlatButtonParam[i].FileName);
}
ButtonControllerBase.ArrowSprite = Resources.Load<Sprite>("Common/Sprites/Button/UI_CMN_Arrow");
ButtonControllerBase.ArrowSelectorSprite = Resources.Load<Sprite>("Common/Sprites/Button/UI_MDS_Btn_Arrow");
ButtonControllerBase._isFlatButtonLoaded = true;
}
}
// Token: 0x06000286 RID: 646 RVA: 0x00008A9F File Offset: 0x00007C9F
protected void SetAnimationActive(bool isActive)
{
this.IsActive = isActive;
}
// Token: 0x06000287 RID: 647 RVA: 0x00008AA8 File Offset: 0x00007CA8
public virtual void ViewUpdate(float gameMsecAdd)
{
if (this.IsActive)
{
this.SyncTimer += gameMsecAdd / 1000f;
for (int i = 0; i < this.CommonButtons.Length; i++)
{
if (this.CommonButtons[i] != null)
{
this.CommonButtons[i].ViewUpdate(this.SyncTimer);
}
}
if (this.SyncTimer > 1f)
{
this.SyncTimer = 0f;
}
}
}
// Token: 0x06000288 RID: 648 RVA: 0x00008B20 File Offset: 0x00007D20
public virtual void SetVisible(bool visible, params int[] ids)
{
if (!this.IsActive)
{
return;
}
foreach (int num in ids)
{
CommonButtonObject commonButtonObject = this.CommonButtons[num];
if (commonButtonObject != null)
{
commonButtonObject.SetActiveButton(visible);
}
}
}
// Token: 0x06000289 RID: 649 RVA: 0x00008B60 File Offset: 0x00007D60
public virtual void SetVisibleFlip(bool visible, bool isFlip = false, params int[] ids)
{
if (!this.IsActive)
{
return;
}
foreach (int num in ids)
{
CommonButtonObject commonButtonObject = this.CommonButtons[num];
if (commonButtonObject != null)
{
commonButtonObject.SetActiveButtonFlip(visible, isFlip);
}
}
}
// Token: 0x0600028A RID: 650 RVA: 0x00008BA0 File Offset: 0x00007DA0
public void SetVisible(bool visible, params InputManager.ButtonSetting[] buttons)
{
if (!this.IsActive)
{
return;
}
foreach (int num in buttons)
{
if (this.CommonButtons[num] != null)
{
this.CommonButtons[num].SetActiveButton(visible);
}
}
}
// Token: 0x0600028B RID: 651 RVA: 0x00008BE8 File Offset: 0x00007DE8
public void SetVisibleFlip(bool visible, bool isFlip = false, params InputManager.ButtonSetting[] buttons)
{
if (!this.IsActive)
{
return;
}
foreach (int num in buttons)
{
if (this.CommonButtons[num] != null)
{
this.CommonButtons[num].SetActiveButtonFlip(visible, isFlip);
}
}
}
// Token: 0x0600028C RID: 652 RVA: 0x00008C34 File Offset: 0x00007E34
public void SetVisibleImmediate(bool isVisible, params int[] ids)
{
if (!this.IsActive)
{
return;
}
foreach (int num in ids)
{
if (this.CommonButtons[num] != null)
{
this.CommonButtons[num].SetActiveImmediateButton(isVisible);
}
}
}
// Token: 0x0600028D RID: 653 RVA: 0x00008C7C File Offset: 0x00007E7C
public void SetShow(bool isShow, params int[] ids)
{
if (!this.IsActive)
{
return;
}
foreach (int num in ids)
{
if (this.CommonButtons[num] != null)
{
this.CommonButtons[num].SetNonActive(isShow);
}
}
}
// Token: 0x0600028E RID: 654 RVA: 0x00008CC4 File Offset: 0x00007EC4
public virtual void SetAnimationActive(int index)
{
if (!this.IsActive)
{
return;
}
if (this.CommonButtons[index] != null)
{
this.CommonButtons[index].Pressed();
}
}
// Token: 0x0600028F RID: 655 RVA: 0x00008CEC File Offset: 0x00007EEC
public virtual void SetAnimationActiveFlip(int index, bool isFlip = false)
{
if (!this.IsActive)
{
return;
}
if (this.CommonButtons[index] != null)
{
if (!isFlip)
{
this.CommonButtons[index].Pressed();
return;
}
this.CommonButtons[index].PressedFlip(isFlip);
}
}
// Token: 0x06000290 RID: 656 RVA: 0x00003598 File Offset: 0x00002798
public virtual void ChangeButtonSymbol(InputManager.ButtonSetting button, int index)
{
}
// Token: 0x06000291 RID: 657 RVA: 0x00008D28 File Offset: 0x00007F28
public virtual void SyncButtonViewUpdate(float gameMsecAdd, ButtonControllerBase.SyncButtonType type)
{
if (this.IsActive)
{
this.SyncTimer += gameMsecAdd / 1000f;
switch (type)
{
case ButtonControllerBase.SyncButtonType.BalanceCommon:
{
int num = 5;
if (this.CommonButtons[num] != null)
{
this.CommonButtons[num].ViewUpdate(this.SyncTimer);
}
num = 6;
if (this.CommonButtons[num] != null)
{
this.CommonButtons[num].ViewUpdate(this.SyncTimer);
}
break;
}
}
if (this.SyncTimer > 1f)
{
this.SyncTimer = 0f;
}
}
}
// Token: 0x040001A8 RID: 424
protected const string CommonSpritePath = "Common/Sprites/Button/";
// Token: 0x040001A9 RID: 425
protected const string ArrowSpriteName = "UI_CMN_Arrow";
// Token: 0x040001AA RID: 426
protected const string ArrowSelectorSpriteName = "UI_MDS_Btn_Arrow";
// Token: 0x040001AB RID: 427
protected const Cue ScrollCue = Cue.SE_SYS_CURSOR;
// Token: 0x040001AC RID: 428
protected const Cue TabCue = Cue.SE_SYS_TAB;
// Token: 0x040001AD RID: 429
private static bool _isFlatButtonLoaded = false;
// Token: 0x040001AE RID: 430
protected static readonly ButtonControllerBase.ButtonInformation[] FlatButtonParam = new ButtonControllerBase.ButtonInformation[]
{
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Yes", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_No", Cue.SE_SYS_CANCEL),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_OK", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Cancel", Cue.SE_SYS_CANCEL),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Skip", Cue.SE_SYS_NEXT),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_NameNext", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Back", Cue.SE_SYS_CANCEL),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Green, "UI_CMN_Btn_TimeSkip", Cue.SE_SYS_SKIP),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Accesscode", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Agree", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Disagree", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_ENT_Btn_Freedom", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_GuestPlay", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Purple, "UI_CMN_Btn_Option", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_TrackStart", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_TutorialSkip", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_NameDelete", Cue.SE_SYS_CANCEL),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Orange, "UI_CMN_Btn_Upload", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_VolPlus", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_VolMinus", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Set", Cue.SE_COLLECTION_SET),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Category", Cue.SE_SYS_CANCEL),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_NameDecide", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_camera", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Custom", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Yes", Cue.SE_ENTRY_BUTTON),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Purple, "UI_CMN_Setting_01_Btn", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Purple, "UI_CMN_Setting_02_Btn", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Orange, "UI_CMN_Btn_Emoney", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_GotoOriginalArea", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Green, "UI_CMN_Btn_GotoCollaboArea", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Green, "UI_CMN_Btn_GotoPartnerCard", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_GotoOtherCard", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Present", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Yellow, "UI_CMN_Btn_Mission_01", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Yellow, "UI_CMN_Btn_Mission_02", Cue.SE_SYS_FIX),
new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Exchange", Cue.SE_SYS_FIX)
};
// Token: 0x040001AF RID: 431
protected static Sprite ArrowSprite;
// Token: 0x040001B0 RID: 432
protected static Sprite ArrowSelectorSprite;
// Token: 0x040001B1 RID: 433
[SerializeField]
protected Transform[] _positions;
// Token: 0x040001B2 RID: 434
protected CommonButtonObject[] CommonButtons;
// Token: 0x040001B3 RID: 435
protected bool IsActive;
// Token: 0x040001B4 RID: 436
protected int MonitorIndex;
// Token: 0x040001B5 RID: 437
protected float SyncTimer;
// Token: 0x02000961 RID: 2401
public struct ButtonInformation
{
// Token: 0x06004C6A RID: 19562 RVA: 0x0019A8DD File Offset: 0x00199ADD
public ButtonInformation(CommonButtonObject.LedColors ledColor, string fileName, Cue cue)
{
this.LedColor = ledColor;
this.FileName = "Common/Sprites/Button/" + fileName;
this.Cue = cue;
this.Image = null;
}
// Token: 0x04005F63 RID: 24419
public readonly CommonButtonObject.LedColors LedColor;
// Token: 0x04005F64 RID: 24420
public readonly string FileName;
// Token: 0x04005F65 RID: 24421
public readonly Cue Cue;
// Token: 0x04005F66 RID: 24422
public Sprite Image;
}
// Token: 0x02000962 RID: 2402
public enum FlatButtonType
{
// Token: 0x04005F68 RID: 24424
Yes,
// Token: 0x04005F69 RID: 24425
No,
// Token: 0x04005F6A RID: 24426
Ok,
// Token: 0x04005F6B RID: 24427
Cancel,
// Token: 0x04005F6C RID: 24428
Skip,
// Token: 0x04005F6D RID: 24429
Next,
// Token: 0x04005F6E RID: 24430
Back,
// Token: 0x04005F6F RID: 24431
TimeSkip,
// Token: 0x04005F70 RID: 24432
Accesscode,
// Token: 0x04005F71 RID: 24433
Agree,
// Token: 0x04005F72 RID: 24434
Disagree,
// Token: 0x04005F73 RID: 24435
Freedom,
// Token: 0x04005F74 RID: 24436
GuestPlay,
// Token: 0x04005F75 RID: 24437
DetailOption,
// Token: 0x04005F76 RID: 24438
TrackStart,
// Token: 0x04005F77 RID: 24439
TutorialSkip,
// Token: 0x04005F78 RID: 24440
NameDelete,
// Token: 0x04005F79 RID: 24441
Upload,
// Token: 0x04005F7A RID: 24442
Plus,
// Token: 0x04005F7B RID: 24443
Minus,
// Token: 0x04005F7C RID: 24444
Set,
// Token: 0x04005F7D RID: 24445
Category,
// Token: 0x04005F7E RID: 24446
Decide,
// Token: 0x04005F7F RID: 24447
TakeIcon,
// Token: 0x04005F80 RID: 24448
Custom,
// Token: 0x04005F81 RID: 24449
Entry,
// Token: 0x04005F82 RID: 24450
Setting,
// Token: 0x04005F83 RID: 24451
SettingBack,
// Token: 0x04005F84 RID: 24452
EMoneyChange,
// Token: 0x04005F85 RID: 24453
GotoArea01,
// Token: 0x04005F86 RID: 24454
GotoArea02,
// Token: 0x04005F87 RID: 24455
StampCard01,
// Token: 0x04005F88 RID: 24456
StampCard02,
// Token: 0x04005F89 RID: 24457
GivePresent,
// Token: 0x04005F8A RID: 24458
Mission,
// Token: 0x04005F8B RID: 24459
MissionClose,
// Token: 0x04005F8C RID: 24460
Exchange,
// Token: 0x04005F8D RID: 24461
End
}
// Token: 0x02000963 RID: 2403
public enum SyncButtonType
{
// Token: 0x04005F8F RID: 24463
None,
// Token: 0x04005F90 RID: 24464
BalanceCommon,
// Token: 0x04005F91 RID: 24465
End
}
}

View File

@@ -0,0 +1,167 @@
using System;
using Manager;
using Monitor.MusicSelect.UI;
using UI;
using UnityEngine;
// Token: 0x020000F3 RID: 243
public class ButtonSelectController : ButtonControllerBase
{
// Token: 0x060007CB RID: 1995 RVA: 0x0001DDB0 File Offset: 0x0001CFB0
public void Initialize(int monitorIndex, bool isActive)
{
this.MonitorIndex = monitorIndex;
this.IsActive = isActive;
if (!isActive)
{
return;
}
this.CommonButtons = new CommonButtonObject[this._buttonPositions.Length];
this.CommonButtons[2] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetCirclebuButtonObject(), this._buttonPositions[2]);
this.CommonButtons[2].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button03, CommonButtonObject.LedColors.White);
this.CommonButtons[2].SetSymbolSprite(ButtonControllerBase.ArrowSprite, false);
this.CommonButtons[3] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._buttonPositions[3]);
this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).LedColor);
this.CommonButtons[3].SetSymbolSprite(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).Image, false);
this.CommonButtons[4] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._buttonPositions[4]);
this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Back).LedColor);
this.CommonButtons[4].SetSymbolSprite(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Back).Image, false);
this.CommonButtons[5] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetCirclebuButtonObject(), this._buttonPositions[5]);
this.CommonButtons[5].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button06, CommonButtonObject.LedColors.White);
this.CommonButtons[5].SetSymbolSprite(ButtonControllerBase.ArrowSprite, true);
}
// Token: 0x060007CC RID: 1996 RVA: 0x0001DF0C File Offset: 0x0001D10C
public void InitializeForInfo(int monitorIndex, bool isActive)
{
this.MonitorIndex = monitorIndex;
this.IsActive = isActive;
this.CommonButtons = new CommonButtonObject[this._buttonPositions.Length];
if (!isActive)
{
return;
}
this.CommonButtons[3] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._buttonPositions[3]);
this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).LedColor);
this.CommonButtons[3].SetSymbolSprite(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Image, false);
this.CommonButtons[4] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._buttonPositions[4]);
this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Back).LedColor);
this.CommonButtons[4].SetSymbolSprite(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Image, false);
base.SetVisible(false, new InputManager.ButtonSetting[]
{
InputManager.ButtonSetting.Button04,
InputManager.ButtonSetting.Button05
});
}
// Token: 0x060007CD RID: 1997 RVA: 0x0001DFF8 File Offset: 0x0001D1F8
public void ViewUpdate()
{
if (this.IsActive)
{
this.SyncTimer += (float)GameManager.GetGameMSecAdd() / 1000f;
for (int i = 0; i < this.CommonButtons.Length; i++)
{
if (this.CommonButtons[i] != null)
{
this.CommonButtons[i].ViewUpdate(this.SyncTimer);
}
}
CommonButtonObject plusButton = this._plusButton;
if (plusButton != null)
{
plusButton.ViewUpdate(this.SyncTimer);
}
CommonButtonObject minusButton = this._minusButton;
if (minusButton != null)
{
minusButton.ViewUpdate(this.SyncTimer);
}
if (this.SyncTimer > 1f)
{
this.SyncTimer = 0f;
}
}
}
// Token: 0x060007CE RID: 1998 RVA: 0x0001E0A8 File Offset: 0x0001D2A8
public void Pressed(InputManager.ButtonSetting buttonSetting)
{
if (this.IsActive && this.CommonButtons[(int)buttonSetting] != null)
{
this.CommonButtons[(int)buttonSetting].Pressed();
}
}
// Token: 0x060007CF RID: 1999 RVA: 0x0000C3E8 File Offset: 0x0000B5E8
public bool GetVisible(int id)
{
return this.CommonButtons[id].IsVisible();
}
// Token: 0x060007D0 RID: 2000 RVA: 0x0001E0DC File Offset: 0x0001D2DC
public void ChangeButtonImage(InputManager.ButtonSetting buttonSetting, int index)
{
if (!this.IsActive)
{
return;
}
if (buttonSetting < (InputManager.ButtonSetting)this.CommonButtons.Length && index < ButtonControllerBase.FlatButtonParam.Length)
{
this.CommonButtons[(int)buttonSetting].SetSymbol(ButtonControllerBase.GetFlatButtonParam(index).Image, false);
this.CommonButtons[(int)buttonSetting].ChangeColor(ButtonControllerBase.GetFlatButtonParam(index).LedColor, true);
this.CommonButtons[(int)buttonSetting].SetSE(ButtonControllerBase.GetFlatButtonParam(index).Cue);
}
}
// Token: 0x060007D1 RID: 2001 RVA: 0x0001E153 File Offset: 0x0001D353
public void PressedTouchPanel(InputManager.TouchPanelArea area)
{
if (area == InputManager.TouchPanelArea.B4)
{
this._plusButton.Pressed();
return;
}
if (area != InputManager.TouchPanelArea.B5)
{
return;
}
this._minusButton.Pressed();
}
// Token: 0x060007D2 RID: 2002 RVA: 0x0001E177 File Offset: 0x0001D377
public bool IsButtonActive()
{
return this.IsActive;
}
// Token: 0x040005E6 RID: 1510
[SerializeField]
[Header("固定難易度変更ボタン")]
private DifficultyButtonObject _difficultyButton01;
// Token: 0x040005E7 RID: 1511
[SerializeField]
private DifficultyButtonObject _difficultyButton06;
// Token: 0x040005E8 RID: 1512
[SerializeField]
[Header("カテゴリタブボタン")]
private CategorytabButtonObject _categorytabButton00;
// Token: 0x040005E9 RID: 1513
[SerializeField]
private CategorytabButtonObject _categorytabButton07;
// Token: 0x040005EA RID: 1514
[SerializeField]
private CommonButtonObject _plusButton;
// Token: 0x040005EB RID: 1515
[SerializeField]
private CommonButtonObject _minusButton;
// Token: 0x040005EC RID: 1516
[SerializeField]
private Transform[] _buttonPositions;
}

View File

@@ -0,0 +1,30 @@
using System;
using Manager;
using UI;
using UnityEngine;
// Token: 0x02000052 RID: 82
public class CardMakerInfoButtonController : ButtonControllerBase
{
// Token: 0x06000269 RID: 617 RVA: 0x00008680 File Offset: 0x00007880
public override void Initialize(int monitorIndex)
{
base.Initialize(monitorIndex);
this.CommonButtons = new CommonButtonObject[this._positions.Length];
this.CommonButtons[3] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._positions[3]);
this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Skip).LedColor);
this.CommonButtons[3].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Skip).Image, false);
this.CommonButtons[3].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Skip).Cue);
}
// Token: 0x0600026A RID: 618 RVA: 0x00008714 File Offset: 0x00007914
public void ChangeFlatButtonSymbol(int index, int spriteNum)
{
if (this.CommonButtons[index] != null)
{
this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam(spriteNum).Image, false);
this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam(spriteNum).LedColor, false);
this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam(spriteNum).Cue);
}
}
}

View File

@@ -0,0 +1,195 @@
using System;
using Manager;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x020000F1 RID: 241
public class CategoryTabObject : MonoBehaviour
{
// Token: 0x060007BD RID: 1981 RVA: 0x0001D8F4 File Offset: 0x0001CAF4
public void SetTitle(string title)
{
this._title.fontSize = 19;
if (this._currentPosition == CategoryTabPosition.Center)
{
this._title.fontSize = 26;
}
this._title.text = title;
this._tabnameAnimator.Rebind();
this._tabnameAnimator.Play("Idle");
}
// Token: 0x060007BE RID: 1982 RVA: 0x0001D94B File Offset: 0x0001CB4B
public void SetTitle(string title, string element, bool isObjectActive)
{
this.SetTitle(title);
this.SetElement(element);
this.StartActiveAnimation(isObjectActive);
}
// Token: 0x060007BF RID: 1983 RVA: 0x0001D962 File Offset: 0x0001CB62
public void StartActiveAnimation(bool isObjectActive)
{
if (isObjectActive)
{
this._tabnameAnimator.SetTrigger("ActiveTrigger");
}
}
// Token: 0x060007C0 RID: 1984 RVA: 0x0001D978 File Offset: 0x0001CB78
public void SetData(Sprite background, Color color)
{
this._background.sprite = background;
Shadow tabNameShadow = this._tabNameShadow;
this._tabnameOutline.effectColor = color;
tabNameShadow.effectColor = color;
}
// Token: 0x060007C1 RID: 1985 RVA: 0x00003598 File Offset: 0x00002798
public void SetElement(string element)
{
}
// Token: 0x060007C2 RID: 1986 RVA: 0x0001D9AC File Offset: 0x0001CBAC
public void Left(Action OnChangeSide)
{
this._isAnimation = true;
this._title.fontSize = 19;
switch (this._currentPosition)
{
case CategoryTabPosition.LeftOver:
this._tabAnimator.SetTrigger("LeftOver2RightOver");
this._currentPosition = CategoryTabPosition.RightOver;
OnChangeSide();
break;
case CategoryTabPosition.LeftOut:
this._tabAnimator.SetTrigger("LeftOut2LeftOver");
this._currentPosition = CategoryTabPosition.LeftOver;
break;
case CategoryTabPosition.Left:
this._tabAnimator.SetTrigger("Left2LeftOut");
this._currentPosition = CategoryTabPosition.LeftOut;
break;
case CategoryTabPosition.Center:
this._tabAnimator.SetTrigger("Center2Left");
this._currentPosition = CategoryTabPosition.Left;
break;
case CategoryTabPosition.Right:
this._tabAnimator.SetTrigger("Right2Center");
this._currentPosition = CategoryTabPosition.Center;
this._title.fontSize = 26;
break;
case CategoryTabPosition.RightOut:
this._tabAnimator.SetTrigger("RightOut2Right");
this._currentPosition = CategoryTabPosition.Right;
break;
case CategoryTabPosition.RightOver:
this._tabAnimator.SetTrigger("RightOver2RightOut");
this._currentPosition = CategoryTabPosition.RightOut;
break;
}
this._tabnameAnimator.SetTrigger("NormalTrigger");
}
// Token: 0x060007C3 RID: 1987 RVA: 0x0001DAD4 File Offset: 0x0001CCD4
public void Right(Action OnChangeSide)
{
this._isAnimation = true;
this._title.fontSize = 19;
switch (this._currentPosition)
{
case CategoryTabPosition.LeftOver:
this._tabAnimator.SetTrigger("LeftOver2LeftOut");
this._currentPosition = CategoryTabPosition.LeftOut;
break;
case CategoryTabPosition.LeftOut:
this._tabAnimator.SetTrigger("LeftOut2Left");
this._currentPosition = CategoryTabPosition.Left;
break;
case CategoryTabPosition.Left:
this._tabAnimator.SetTrigger("Left2Center");
this._currentPosition = CategoryTabPosition.Center;
this._title.fontSize = 26;
break;
case CategoryTabPosition.Center:
this._tabAnimator.SetTrigger("Center2Right");
this._currentPosition = CategoryTabPosition.Right;
break;
case CategoryTabPosition.Right:
this._tabAnimator.SetTrigger("Right2RightOut");
this._currentPosition = CategoryTabPosition.RightOut;
break;
case CategoryTabPosition.RightOut:
this._tabAnimator.SetTrigger("RightOut2RightOver");
this._currentPosition = CategoryTabPosition.RightOver;
break;
case CategoryTabPosition.RightOver:
this._tabAnimator.SetTrigger("RightOver2LeftOver");
this._currentPosition = CategoryTabPosition.LeftOver;
OnChangeSide();
break;
}
this._tabnameAnimator.SetTrigger("NormalTrigger");
}
// Token: 0x060007C4 RID: 1988 RVA: 0x0001DBFC File Offset: 0x0001CDFC
public void ViewUpdate()
{
if (this._isAnimation)
{
this._timer += (float)GameManager.GetGameMSecAdd();
if (this._timer >= 150f)
{
this._timer = 0f;
this._tabnameAnimator.SetTrigger("ActiveTrigger");
this._isAnimation = false;
}
}
}
// Token: 0x040005D4 RID: 1492
[SerializeField]
private Animator _tabAnimator;
// Token: 0x040005D5 RID: 1493
[SerializeField]
private Text _title;
// Token: 0x040005D6 RID: 1494
[SerializeField]
private Animator _tabnameAnimator;
// Token: 0x040005D7 RID: 1495
[SerializeField]
private Image _background;
// Token: 0x040005D8 RID: 1496
[SerializeField]
private Shadow _tabNameShadow;
// Token: 0x040005D9 RID: 1497
[SerializeField]
private Outline _tabnameOutline;
// Token: 0x040005DA RID: 1498
[SerializeField]
private Image _rightImage;
// Token: 0x040005DB RID: 1499
[SerializeField]
private Image _lefetImage;
// Token: 0x040005DC RID: 1500
[SerializeField]
private Transform _chainObject;
// Token: 0x040005DD RID: 1501
[SerializeField]
private CategoryTabPosition _currentPosition;
// Token: 0x040005DE RID: 1502
private bool _isAnimation;
// Token: 0x040005DF RID: 1503
private float _timer;
}

View File

@@ -0,0 +1,20 @@
using System;
// Token: 0x020000F0 RID: 240
public enum CategoryTabPosition
{
// Token: 0x040005CD RID: 1485
LeftOver,
// Token: 0x040005CE RID: 1486
LeftOut,
// Token: 0x040005CF RID: 1487
Left,
// Token: 0x040005D0 RID: 1488
Center,
// Token: 0x040005D1 RID: 1489
Right,
// Token: 0x040005D2 RID: 1490
RightOut,
// Token: 0x040005D3 RID: 1491
RightOver
}

View File

@@ -0,0 +1,28 @@
using System;
using TMPro;
using UI;
using UnityEngine;
// Token: 0x020000FD RID: 253
public class CategorytabButtonObject : CommonButtonObject
{
// Token: 0x0600081F RID: 2079 RVA: 0x0001F939 File Offset: 0x0001EB39
public void SetTabName(string tabName, string count)
{
this._tabNameText.text = tabName;
}
// Token: 0x06000820 RID: 2080 RVA: 0x0001F947 File Offset: 0x0001EB47
public void SetTabColor(Color color)
{
this._tabNameText.color = color;
}
// Token: 0x04000675 RID: 1653
[SerializeField]
private TextMeshProUGUI _tabNameText;
// Token: 0x04000676 RID: 1654
[SerializeField]
private TextMeshProUGUI _tabCountText;
}

View File

@@ -0,0 +1,105 @@
using System;
using System.Collections;
using Mai2.Mai2Cue;
using MAI2.Util;
using Manager;
using Manager.MaiStudio;
using Monitor.Game;
using UnityEngine;
// Token: 0x02000042 RID: 66
public class ChangeLifeGauge : SpecialEffectBase
{
// Token: 0x060001F3 RID: 499 RVA: 0x00007734 File Offset: 0x00006934
public override void initialize(SpecialEffectManager.EffectType effectType, GameObject gameObject, int monitorIndex)
{
base.initialize(effectType, monitorIndex);
this._animInHash = Animator.StringToHash("In");
this._isActive = false;
this._gaugeObject[monitorIndex] = gameObject.GetComponent<GameAchiveNum>();
this._gaugeAnimator[monitorIndex] = this._gaugeObject[monitorIndex].GetKaleidxScopeLifeGauge().GetComponent<Animator>();
Singleton<SpecialEffectManager>.Instance.SetEffectSequenceType(SpecialEffectManager.EffectSequenceType.KaleidxLastBoss);
}
// Token: 0x060001F4 RID: 500 RVA: 0x00007794 File Offset: 0x00006994
public override void SetActive(bool isActive)
{
if (isActive && !this._isActive)
{
this._isActive = true;
Singleton<GamePlayManager>.Instance.SetPauseGame(true);
for (int i = 0; i < 2; i++)
{
if (this._gaugeAnimator[i] != null)
{
this._gaugeAnimator[i].SetTrigger(this._animInHash);
}
SoundManager.PlaySE(Cue.SE_KALEID_LIFE_RECOVERY, i);
}
this._coroutine = CoroutineHandler.StartStaticCoroutine(this.WaitAnimatorEnd());
}
}
// Token: 0x060001F5 RID: 501 RVA: 0x0000780A File Offset: 0x00006A0A
private IEnumerator WaitAnimatorEnd()
{
yield return null;
yield return new WaitUntil(() => this.isEndAnim(0.75f));
Singleton<KaleidxScopeManager>.Instance.SetChallengeExLifePhase(true);
KaleidxScopeGateExLifePhaseExData exLifePhase = Singleton<KaleidxScopeManager>.Instance.GetExLifePhase();
for (int i = 0; i < 2; i++)
{
if (!Singleton<KaleidxScopeManager>.Instance.IsLifeGameOver(i) && this._gaugeObject[i] != null)
{
Singleton<KaleidxScopeManager>.Instance.SetLife(i, exLifePhase.life);
this._gaugeObject[i].SetKaleidxScopeLife(exLifePhase.life, exLifePhase.life, i);
this._gaugeObject[i].SetKaleidxScopeLife();
}
}
yield return new WaitUntil(() => this.isEndAnim(1f));
this._isEnd = true;
CoroutineHandler.StopStaticCoroutine(this._coroutine);
yield break;
}
// Token: 0x060001F6 RID: 502 RVA: 0x0000781C File Offset: 0x00006A1C
private bool isEndAnim(float normalizedTime)
{
for (int i = 0; i < 2; i++)
{
if (Singleton<UserDataManager>.Instance.GetUserData((long)i).IsEntry)
{
AnimatorStateInfo currentAnimatorStateInfo = this._gaugeAnimator[i].GetCurrentAnimatorStateInfo(0);
if (currentAnimatorStateInfo.shortNameHash == this._animInHash && currentAnimatorStateInfo.normalizedTime < normalizedTime)
{
return false;
}
}
}
return true;
}
// Token: 0x060001F7 RID: 503 RVA: 0x00007873 File Offset: 0x00006A73
public override bool IsEnd()
{
return this._isEnd;
}
// Token: 0x04000144 RID: 324
private GameAchiveNum[] _gaugeObject = new GameAchiveNum[2];
// Token: 0x04000145 RID: 325
private Animator[] _gaugeAnimator = new Animator[2];
// Token: 0x04000146 RID: 326
private bool _isActive;
// Token: 0x04000147 RID: 327
private bool _isEnd;
// Token: 0x04000148 RID: 328
private int _animInHash;
// Token: 0x04000149 RID: 329
private Coroutine _coroutine;
}

View File

@@ -0,0 +1,135 @@
using System;
using MAI2.Util;
using Manager;
using Manager.MaiStudio;
using UI;
using UnityEngine;
// Token: 0x020000DB RID: 219
public class CharaAwakeWindow : EventWindowBase
{
// Token: 0x06000735 RID: 1845 RVA: 0x0001BC88 File Offset: 0x0001AE88
public void Set(Sprite chara, int id)
{
int id2 = Singleton<DataManager>.Instance.GetChara(id).color.id;
Color24 colorDark = Singleton<DataManager>.Instance.GetMapColorData(id2).ColorDark;
Color color;
color..ctor((float)colorDark.R / 255f, (float)colorDark.G / 255f, (float)colorDark.B / 255f);
this._charaImage.sprite = chara;
this._shadow.Image2 = chara;
this._shadow.color = color;
if (null == this._awakeIconController)
{
this._awakeIconController = Object.Instantiate<GameObject>(this._awakeStarPrefab, this._awakeRoot.transform).GetComponent<AwakeIconController>();
this._awakeIconController.name = this._awakeStarPrefab.name;
this._awakeAnimator = this._awakeIconController.gameObject.GetComponent<Animator>();
}
}
// Token: 0x06000736 RID: 1846 RVA: 0x0001BD69 File Offset: 0x0001AF69
public override void Play(Action onAction)
{
Animator awakeAnimator = this._awakeAnimator;
if (awakeAnimator != null)
{
awakeAnimator.Play(this.HashCodeIn);
}
base.Play(onAction);
}
// Token: 0x06000737 RID: 1847 RVA: 0x0001BD89 File Offset: 0x0001AF89
public void Prepare(int meter, float gaugeAmount, int awakeNum)
{
this._odoMeters.SetDistance(meter);
this._awakeIconController.AwakePrepare(gaugeAmount, awakeNum);
}
// Token: 0x06000738 RID: 1848 RVA: 0x0001BDA4 File Offset: 0x0001AFA4
public void SetMeter(int meter)
{
this._odoMeters.SetDistance(meter);
}
// Token: 0x06000739 RID: 1849 RVA: 0x0001BDB2 File Offset: 0x0001AFB2
public void SetGauge(float gaugeAmount)
{
this._awakeIconController.PutStar(gaugeAmount);
}
// Token: 0x0600073A RID: 1850 RVA: 0x0001BDC0 File Offset: 0x0001AFC0
public void FadeIn()
{
this._animator.Play(this.HashCodeIn);
this.IsCanSkip = true;
}
// Token: 0x0600073B RID: 1851 RVA: 0x0001BDDA File Offset: 0x0001AFDA
public void SparkStar()
{
this._awakeIconController.AnimCenterSpark();
}
// Token: 0x0600073C RID: 1852 RVA: 0x0001BDE7 File Offset: 0x0001AFE7
public void StarGet(int starIndex)
{
this._awakeIconController.AnimStarGet(starIndex);
}
// Token: 0x0600073D RID: 1853 RVA: 0x0001BDF5 File Offset: 0x0001AFF5
public override bool Skip()
{
if (this.IsCanSkip)
{
this._stateController.ResetExitParts();
this._animator.Play("Loop", 0, 0f);
this.IsCanSkip = false;
return true;
}
return false;
}
// Token: 0x0600073E RID: 1854 RVA: 0x0001BE2A File Offset: 0x0001B02A
private void Close()
{
this._animator.Play("Out");
}
// Token: 0x04000550 RID: 1360
private int HashExitInCode = Animator.StringToHash("Base Layer.In");
// Token: 0x04000551 RID: 1361
private const float LongInterval = 0.5f;
// Token: 0x04000552 RID: 1362
private const float ShortInterval = 0.2f;
// Token: 0x04000553 RID: 1363
[SerializeField]
private GameObject _awakeStarPrefab;
// Token: 0x04000554 RID: 1364
[SerializeField]
private GameObject _awakeRoot;
// Token: 0x04000555 RID: 1365
[SerializeField]
private MultiImage _charaImage;
// Token: 0x04000556 RID: 1366
[SerializeField]
private MultiImage _shadow;
// Token: 0x04000557 RID: 1367
private AwakeIconController _awakeIconController;
// Token: 0x04000558 RID: 1368
private Animator _awakeAnimator;
// Token: 0x04000559 RID: 1369
[SerializeField]
[Header("ツアー仲間の距離ゲージ")]
private OdoSpriteTexts _odoMeters;
// Token: 0x0400055A RID: 1370
private int _monitorIndex;
}

View File

@@ -0,0 +1,307 @@
using System;
using System.Collections;
using Monitor.MapResult.Parts;
using UI;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x020000DC RID: 220
public class CharaParts : MonoBehaviour
{
// Token: 0x06000740 RID: 1856 RVA: 0x0001BE54 File Offset: 0x0001B054
public Animator GetLevelAnimator()
{
return this._levelUpAnimator;
}
// Token: 0x06000741 RID: 1857 RVA: 0x0001BE5C File Offset: 0x0001B05C
public void SetParts(Sprite face, float gaugeAmount, int level, int awakeNum, uint reincarnationNum, bool isLeader = false)
{
this.SetCharacter(face);
this._baseImage.ChangeSprite(awakeNum);
this._frameImage.ChangeSprite(awakeNum);
this._levelImage.ChangeSprite(awakeNum);
this._awakeIconController.Prepare(gaugeAmount, awakeNum);
if (this._levelPopUpAnimator != null)
{
this._levelPopUpAnimator.Play("Idle");
}
this._stateController = this._animator.GetBehaviour<StateAnimController>();
this._frameImage.gameObject.SetActive(true);
this._leaderObject.SetActive(isLeader);
this.SetLevel(level);
this.SetReincarnation(reincarnationNum);
}
// Token: 0x06000742 RID: 1858 RVA: 0x0001BF04 File Offset: 0x0001B104
public void SetCharacter(Sprite face)
{
this._leaderObject.SetActive(false);
if (this._faceImage != null)
{
Image faceImage = this._faceImage;
this._effectImage.sprite = face;
faceImage.sprite = face;
}
}
// Token: 0x06000743 RID: 1859 RVA: 0x0001BF45 File Offset: 0x0001B145
public void SetRebornVisable(bool visable)
{
this.rebornStarController.SetVisable(visable);
}
// Token: 0x06000744 RID: 1860 RVA: 0x0001BF53 File Offset: 0x0001B153
public void SetVisivleMetreArrow(bool isActive)
{
if (this._metreArrowObj != null)
{
this._metreArrowObj.SetActive(isActive);
}
}
// Token: 0x06000745 RID: 1861 RVA: 0x0001BF70 File Offset: 0x0001B170
public void SetReleaseMark(GameObject obj, Animator effect, int slotIndex)
{
this._releaseMarkObj = obj;
this._releaseMarkObj.SetActive(false);
this._effectAnim = effect;
if (this._metreArrowObj != null)
{
this._metreArrowObj.transform.localEulerAngles = Vector3.zero;
this._metreArrowObj.transform.Rotate(0f, 0f, 50f + (float)slotIndex * -50f * 0.5f);
}
}
// Token: 0x06000746 RID: 1862 RVA: 0x0001BFE8 File Offset: 0x0001B1E8
public void SetLevel(int level)
{
if (this._levelOdoSprite != null)
{
this._levelOdoSprite.SetOdoText(level);
}
}
// Token: 0x06000747 RID: 1863 RVA: 0x0001C004 File Offset: 0x0001B204
public void SetReincarnation(uint reincarnationNum)
{
if (reincarnationNum > 0U)
{
this.rebornStarController.SetVisable(true);
this.rebornStarController.SetReincarnationNum(reincarnationNum);
return;
}
this.rebornStarController.SetVisable(false);
}
// Token: 0x06000748 RID: 1864 RVA: 0x0001C02F File Offset: 0x0001B22F
public void PlayReincarnationFirstTime(uint reincarnationNum)
{
this.SetReincarnation(reincarnationNum);
this.rebornStarController.PlayAnimation(RebornStarController.AnimState.PopUp);
}
// Token: 0x06000749 RID: 1865 RVA: 0x0001C044 File Offset: 0x0001B244
public void PlayReincarnation(uint reincarnationNum)
{
this.rebornStarController.PlayAnimation(RebornStarController.AnimState.LevelUp);
base.StartCoroutine(this.ChangeReincarnationNum(reincarnationNum));
}
// Token: 0x0600074A RID: 1866 RVA: 0x0001C060 File Offset: 0x0001B260
private IEnumerator ChangeReincarnationNum(uint reincarnationNum)
{
yield return new WaitForSeconds(0.75f);
this.SetReincarnation(reincarnationNum);
yield break;
}
// Token: 0x0600074B RID: 1867 RVA: 0x0001C078 File Offset: 0x0001B278
public void SetVisibleDecorate(bool isVisible)
{
if (this._decorateObject != null)
{
this._decorateObject.SetActive(isVisible);
}
if (isVisible)
{
this._animator.Play(Animator.StringToHash("Chara_Active_Party_Loop"), 0, 0f);
return;
}
this._animator.Play(Animator.StringToHash("Chara_Active_Join_Loop"), 0, 0f);
}
// Token: 0x0600074C RID: 1868 RVA: 0x0001C0DC File Offset: 0x0001B2DC
public void SetBlank()
{
this._frameImage.gameObject.SetActive(false);
if (this._animator.gameObject.activeSelf && this._animator.gameObject.activeInHierarchy)
{
this._leaderObject.SetActive(false);
this._animator.Play("Chara_NoActive");
}
}
// Token: 0x0600074D RID: 1869 RVA: 0x0001C13A File Offset: 0x0001B33A
public void SetNextLevel(int level)
{
this._nextLevel = level;
}
// Token: 0x0600074E RID: 1870 RVA: 0x0001C143 File Offset: 0x0001B343
public void PlayLevelUp()
{
this._levelUpAnimator.Play("LevelUP");
this.SetLevel(this._nextLevel);
}
// Token: 0x0600074F RID: 1871 RVA: 0x0001C164 File Offset: 0x0001B364
public void PlayAwake(int awakeNum)
{
this._baseImage.ChangeSprite(awakeNum);
this._frameImage.ChangeSprite(awakeNum);
this._levelImage.ChangeSprite(awakeNum);
this._awakeIconController.ChangeBaseImage(awakeNum);
this._AwakeAnimator.Play("PopUp");
}
// Token: 0x06000750 RID: 1872 RVA: 0x0001C1B1 File Offset: 0x0001B3B1
public void PlayJoinParty()
{
this._animator.Play("Chara_Active_Join_In");
Animator effectAnim = this._effectAnim;
if (effectAnim == null)
{
return;
}
effectAnim.Play("In");
}
// Token: 0x06000751 RID: 1873 RVA: 0x0001C1D8 File Offset: 0x0001B3D8
public void PlayJoinParty(Action next)
{
this._animator.Play("Chara_Active_Join_In");
Animator effectAnim = this._effectAnim;
if (effectAnim != null)
{
effectAnim.Play("In");
}
int num = Animator.StringToHash("Base Layer.Chara_Active_Join_In");
this.SetExit(num, next);
}
// Token: 0x06000752 RID: 1874 RVA: 0x0001C21E File Offset: 0x0001B41E
public void SetExit(int hashCode, Action action)
{
this._stateController.SetExitParts(action, hashCode, false);
}
// Token: 0x06000753 RID: 1875 RVA: 0x0001C22E File Offset: 0x0001B42E
public void Pressed()
{
Animator animator = this._animator;
if (animator == null)
{
return;
}
animator.SetTrigger("Pressed");
}
// Token: 0x06000754 RID: 1876 RVA: 0x0001C245 File Offset: 0x0001B445
public void Loop()
{
Animator animator = this._animator;
if (animator == null)
{
return;
}
animator.SetTrigger("Loop");
}
// Token: 0x06000755 RID: 1877 RVA: 0x0001C25C File Offset: 0x0001B45C
public GameObject GetOdoSpriteText()
{
return this._levelOdoSprite.gameObject;
}
// Token: 0x06000756 RID: 1878 RVA: 0x0001C269 File Offset: 0x0001B469
public GameObject GetAwakeIconControllerObj()
{
return this._awakeIconController.gameObject;
}
// Token: 0x0400055B RID: 1371
[SerializeField]
private MultipleImage _baseImage;
// Token: 0x0400055C RID: 1372
[SerializeField]
private MultiImage _faceImage;
// Token: 0x0400055D RID: 1373
[SerializeField]
private MultiImage _effectImage;
// Token: 0x0400055E RID: 1374
[SerializeField]
private MultipleImage _frameImage;
// Token: 0x0400055F RID: 1375
[SerializeField]
private MultipleImage _levelImage;
// Token: 0x04000560 RID: 1376
[SerializeField]
[Header("デコレート")]
private GameObject _decorateObject;
// Token: 0x04000561 RID: 1377
[SerializeField]
private AwakeIconController _awakeIconController;
// Token: 0x04000562 RID: 1378
[SerializeField]
private OdoSpriteText _levelOdoSprite;
// Token: 0x04000563 RID: 1379
[SerializeField]
private Animator _levelPopUpAnimator;
// Token: 0x04000564 RID: 1380
[SerializeField]
private GameObject _metreArrowObj;
// Token: 0x04000565 RID: 1381
[SerializeField]
[Header("本体のアニメーター")]
private Animator _animator;
// Token: 0x04000566 RID: 1382
[SerializeField]
private Animator _levelUpAnimator;
// Token: 0x04000567 RID: 1383
[SerializeField]
private Animator _AwakeAnimator;
// Token: 0x04000568 RID: 1384
[SerializeField]
[Header("リーダー")]
private GameObject _leaderObject;
// Token: 0x04000569 RID: 1385
private StateAnimController _stateController;
// Token: 0x0400056A RID: 1386
[SerializeField]
private RebornStarController rebornStarController;
// Token: 0x0400056B RID: 1387
private GameObject _releaseMarkObj;
// Token: 0x0400056C RID: 1388
private Animator _effectAnim;
// Token: 0x0400056D RID: 1389
private int _nextLevel;
}

View File

@@ -0,0 +1,34 @@
using System;
using DB;
using TMPro;
using UI;
using UnityEngine;
// Token: 0x020000DD RID: 221
public class CharaWindow : EventWindowBase
{
// Token: 0x06000758 RID: 1880 RVA: 0x0001C276 File Offset: 0x0001B476
private void Awake()
{
this._infoText.text = CommonMessageID.GetWindowChara.GetName();
}
// Token: 0x06000759 RID: 1881 RVA: 0x0001C28A File Offset: 0x0001B48A
public void Set(Sprite chara, string charaName)
{
this._chara.sprite = chara;
this._charaName.text = charaName;
}
// Token: 0x0400056E RID: 1390
[SerializeField]
private MultiImage _chara;
// Token: 0x0400056F RID: 1391
[SerializeField]
private TextMeshProUGUI _charaName;
// Token: 0x04000570 RID: 1392
[SerializeField]
private TextMeshProUGUI _infoText;
}

View File

@@ -0,0 +1,157 @@
using System;
using MAI2.Util;
using Manager;
using Manager.MaiStudio;
using UnityEngine;
using Util;
// Token: 0x02000054 RID: 84
public class CharacterMapColorData
{
// Token: 0x17000061 RID: 97
// (get) Token: 0x06000271 RID: 625 RVA: 0x000087D7 File Offset: 0x000079D7
public uint ID
{
get
{
return this._id;
}
}
// Token: 0x17000062 RID: 98
// (get) Token: 0x06000272 RID: 626 RVA: 0x000087DF File Offset: 0x000079DF
public Sprite Base
{
get
{
return this._base;
}
}
// Token: 0x17000063 RID: 99
// (get) Token: 0x06000273 RID: 627 RVA: 0x000087E7 File Offset: 0x000079E7
public Sprite SmallBase
{
get
{
return this._smallBase;
}
}
// Token: 0x17000064 RID: 100
// (get) Token: 0x06000274 RID: 628 RVA: 0x000087EF File Offset: 0x000079EF
public Sprite Level
{
get
{
return this._level;
}
}
// Token: 0x17000065 RID: 101
// (get) Token: 0x06000275 RID: 629 RVA: 0x000087F7 File Offset: 0x000079F7
public Sprite Frame
{
get
{
return this._frame;
}
}
// Token: 0x17000066 RID: 102
// (get) Token: 0x06000276 RID: 630 RVA: 0x000087FF File Offset: 0x000079FF
public Sprite SmallFrame
{
get
{
return this._smallFrame;
}
}
// Token: 0x17000067 RID: 103
// (get) Token: 0x06000277 RID: 631 RVA: 0x00008807 File Offset: 0x00007A07
public Sprite SmallAwakeStar
{
get
{
return this._smallAwakeStar;
}
}
// Token: 0x17000068 RID: 104
// (get) Token: 0x06000278 RID: 632 RVA: 0x0000880F File Offset: 0x00007A0F
public Sprite AwakeStarBase
{
get
{
return this._awakeStarBase;
}
}
// Token: 0x17000069 RID: 105
// (get) Token: 0x06000279 RID: 633 RVA: 0x00008817 File Offset: 0x00007A17
// (set) Token: 0x0600027A RID: 634 RVA: 0x0000881F File Offset: 0x00007A1F
public Color ShadowColor { get; private set; }
// Token: 0x0600027B RID: 635 RVA: 0x00008828 File Offset: 0x00007A28
public CharacterMapColorData(int colorKey, int colorID)
{
this._colorKey = colorKey;
this._colorID = colorID;
}
// Token: 0x0600027C RID: 636 RVA: 0x00008840 File Offset: 0x00007A40
public void Load()
{
if (this._base == null)
{
this._base = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Base");
this._smallBase = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Base_S");
this._frame = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Frame");
this._smallFrame = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Frame_S");
this._level = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_level_S");
this._smallAwakeStar = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Star_S");
this._awakeStarBase = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Star");
MapColorData mapColorData = Singleton<DataManager>.Instance.GetMapColorData(this._colorID);
this.ShadowColor = Utility.ConvertColor(mapColorData.ColorDark);
}
}
// Token: 0x0400019B RID: 411
private readonly int _colorKey;
// Token: 0x0400019C RID: 412
[SerializeField]
private uint _id;
// Token: 0x0400019D RID: 413
[SerializeField]
private Sprite _base;
// Token: 0x0400019E RID: 414
[SerializeField]
private Sprite _smallBase;
// Token: 0x0400019F RID: 415
[SerializeField]
private Sprite _level;
// Token: 0x040001A0 RID: 416
[SerializeField]
private Sprite _frame;
// Token: 0x040001A1 RID: 417
[SerializeField]
private Sprite _smallFrame;
// Token: 0x040001A2 RID: 418
[SerializeField]
private Sprite _smallAwakeStar;
// Token: 0x040001A3 RID: 419
[SerializeField]
private Sprite _awakeStarBase;
// Token: 0x040001A5 RID: 421
private int _colorID;
}

View File

@@ -0,0 +1,136 @@
using System;
using Manager.MaiStudio;
using UnityEngine;
// Token: 0x02000076 RID: 118
public class CharacterSlotData
{
// Token: 0x17000070 RID: 112
// (get) Token: 0x0600040A RID: 1034 RVA: 0x0000F63B File Offset: 0x0000E83B
public Sprite Base
{
get
{
return this._base;
}
}
// Token: 0x17000071 RID: 113
// (get) Token: 0x0600040B RID: 1035 RVA: 0x0000F643 File Offset: 0x0000E843
public Sprite Frame
{
get
{
return this._frame;
}
}
// Token: 0x17000072 RID: 114
// (get) Token: 0x0600040C RID: 1036 RVA: 0x0000F64B File Offset: 0x0000E84B
public Sprite LeaderFrame
{
get
{
return this._leaderFrame;
}
}
// Token: 0x17000073 RID: 115
// (get) Token: 0x0600040D RID: 1037 RVA: 0x0000F653 File Offset: 0x0000E853
public Sprite SmallAwakeStar
{
get
{
return this._smallAwakeStar;
}
}
// Token: 0x17000074 RID: 116
// (get) Token: 0x0600040E RID: 1038 RVA: 0x0000F65B File Offset: 0x0000E85B
public Sprite AwakeStarBase
{
get
{
return this._awakeStarBase;
}
}
// Token: 0x17000075 RID: 117
// (get) Token: 0x0600040F RID: 1039 RVA: 0x0000F663 File Offset: 0x0000E863
public Sprite AwakeStarFrame
{
get
{
return this._awakeStarFrame;
}
}
// Token: 0x17000076 RID: 118
// (get) Token: 0x06000410 RID: 1040 RVA: 0x0000F66B File Offset: 0x0000E86B
public Color24 Color
{
get
{
return this._color;
}
}
// Token: 0x17000077 RID: 119
// (get) Token: 0x06000411 RID: 1041 RVA: 0x0000F673 File Offset: 0x0000E873
public Color24 SubColor
{
get
{
return this._subColor;
}
}
// Token: 0x06000412 RID: 1042 RVA: 0x0000F67B File Offset: 0x0000E87B
public CharacterSlotData(int colorKey, Color24 color, Color24 subColor)
{
this.Load(colorKey);
this._color = color;
this._subColor = subColor;
}
// Token: 0x06000413 RID: 1043 RVA: 0x0000F698 File Offset: 0x0000E898
private void Load(int colorKey)
{
if (this._base == null)
{
this._base = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_RBase");
this._frame = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_RFrame");
this._leaderFrame = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_LFrame");
this._smallAwakeStar = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_Star_S");
this._awakeStarBase = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_Star");
this._awakeStarFrame = Resources.Load<Sprite>("Common/Sprites/Map/StarGauge/UI_CMN_Chara_Star_Big_Gauge01");
}
}
// Token: 0x040002A3 RID: 675
private const string CharaRootPath = "Common/Sprites/CharacterColor/";
// Token: 0x040002A4 RID: 676
private Sprite _base;
// Token: 0x040002A5 RID: 677
private Sprite _frame;
// Token: 0x040002A6 RID: 678
private Sprite _leaderFrame;
// Token: 0x040002A7 RID: 679
private Sprite _smallAwakeStar;
// Token: 0x040002A8 RID: 680
private Sprite _awakeStarBase;
// Token: 0x040002A9 RID: 681
private Sprite _awakeStarFrame;
// Token: 0x040002AA RID: 682
private Color24 _color;
// Token: 0x040002AB RID: 683
private Color24 _subColor;
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using UnityEngine;
// Token: 0x02000053 RID: 83
public class CharacterTabController : TabController
{
// Token: 0x0600026C RID: 620 RVA: 0x0000877B File Offset: 0x0000797B
public override void Initialize(int monitorId)
{
base.Initialize(monitorId);
this._favoriteStyle = new TabDataBase(CommonScriptable.GetColorSetting().FavoriteColor, this._favoriteSprite, "お気に入りセット", "");
}
// Token: 0x0600026D RID: 621 RVA: 0x000087A9 File Offset: 0x000079A9
public void SlotView2CharacterSelect(List<CharacterTabData> tabDatas, int categoryIndex)
{
base.Set(new List<TabDataBase>(tabDatas), categoryIndex);
}
// Token: 0x0600026E RID: 622 RVA: 0x000087B8 File Offset: 0x000079B8
public void Favorite2Collection(int categoryIndex)
{
base.SetActiveMiniPanels(categoryIndex);
}
// Token: 0x0600026F RID: 623 RVA: 0x000087C1 File Offset: 0x000079C1
public void Collection2Favorite()
{
base.SetOnlyMainPanel(this._favoriteStyle);
}
// Token: 0x04000199 RID: 409
private TabDataBase _favoriteStyle;
// Token: 0x0400019A RID: 410
[SerializeField]
private Sprite _favoriteSprite;
}

View File

@@ -0,0 +1,12 @@
using System;
using UnityEngine;
// Token: 0x02000055 RID: 85
public class CharacterTabData : TabDataBase
{
// Token: 0x0600027D RID: 637 RVA: 0x0000893D File Offset: 0x00007B3D
public CharacterTabData(Color baseColor, Sprite sprite, string title, string subTitle = "")
: base(baseColor, sprite, title, subTitle)
{
}
}

View File

@@ -0,0 +1,97 @@
using System;
using UnityEngine;
// Token: 0x02000077 RID: 119
public class CharactorSlotController : MonoBehaviour
{
// Token: 0x17000078 RID: 120
// (get) Token: 0x06000414 RID: 1044 RVA: 0x0000F734 File Offset: 0x0000E934
public RectTransform RectTransform
{
get
{
RectTransform rectTransform;
if ((rectTransform = this._rectTransform) == null)
{
rectTransform = (this._rectTransform = base.GetComponent<RectTransform>());
}
return rectTransform;
}
}
// Token: 0x06000415 RID: 1045 RVA: 0x0000F75C File Offset: 0x0000E95C
public void Awake()
{
for (int i = 0; i < this.characterObjects.Length; i++)
{
GameObject gameObject = Object.Instantiate<GameObject>((i == 0) ? this.leaderCharaSlotPrefab : this.charaSlotPrefab, this.characterObjects[i].transform);
this.characters[i] = gameObject.GetComponent<CharactorSlotObject>();
}
}
// Token: 0x06000416 RID: 1046 RVA: 0x0000F7B0 File Offset: 0x0000E9B0
public void Initialize()
{
for (int i = 0; i < this.characters.Length; i++)
{
this.SetVisibleCharacterSet(i, false);
}
}
// Token: 0x06000417 RID: 1047 RVA: 0x0000F7D8 File Offset: 0x0000E9D8
public void SetSlotData(MessageCharactorInfomationData data)
{
this.characters[data.Index].SetData(data);
}
// Token: 0x06000418 RID: 1048 RVA: 0x0000F7ED File Offset: 0x0000E9ED
public void SetVisibleCharacterSet(int index, bool isActive)
{
this.characters[index].SetVisibleCharacterSet(isActive);
}
// Token: 0x06000419 RID: 1049 RVA: 0x00003598 File Offset: 0x00002798
public void SetTeamSlotData(MessageCharactorInfomationData data)
{
}
// Token: 0x0600041A RID: 1050 RVA: 0x0000F800 File Offset: 0x0000EA00
public void ResetCharactor()
{
for (int i = 0; i < this.characters.Length; i++)
{
this.characters[i].ResetData();
}
}
// Token: 0x0600041B RID: 1051 RVA: 0x0000F82D File Offset: 0x0000EA2D
public void ResetCharacter(int index)
{
this.characters[index].ResetData();
}
// Token: 0x0600041C RID: 1052 RVA: 0x00003598 File Offset: 0x00002798
public void SetClassicMode(bool isActive)
{
}
// Token: 0x040002AC RID: 684
[SerializeField]
[Header("キャラスロットプレハブ")]
private GameObject charaSlotPrefab;
// Token: 0x040002AD RID: 685
[SerializeField]
[Header("リーダーキャラプレハブ")]
private GameObject leaderCharaSlotPrefab;
// Token: 0x040002AE RID: 686
[SerializeField]
private GameObject[] characterObjects = new GameObject[5];
// Token: 0x040002AF RID: 687
private CharactorSlotObject[] characters = new CharactorSlotObject[5];
// Token: 0x040002B0 RID: 688
private RectTransform _rectTransform;
}

View File

@@ -0,0 +1,124 @@
using System;
using TMPro;
using UI;
using UnityEngine;
// Token: 0x02000079 RID: 121
public class CharactorSlotObject : MonoBehaviour
{
// Token: 0x06000430 RID: 1072 RVA: 0x0000F949 File Offset: 0x0000EB49
public virtual void SetSlotActive(bool isActive)
{
this._levelText.gameObject.SetActive(isActive);
}
// Token: 0x06000431 RID: 1073 RVA: 0x0000F95C File Offset: 0x0000EB5C
public void SetCurrentSlotCard(bool isSelect)
{
this._faceImage.color = (isSelect ? Color.gray : Color.white);
}
// Token: 0x06000432 RID: 1074 RVA: 0x0000F978 File Offset: 0x0000EB78
public void SetData(MessageCharactorInfomationData infoData)
{
this.SetLevel(infoData.Level);
if (!this._maskObject.activeSelf)
{
this._maskObject.SetActive(true);
}
this.SetAwakening(infoData.AwakeRate, (int)infoData.Awakening);
Sprite sprite = Sprite.Create(infoData.Character, new Rect(0f, 0f, (float)infoData.Character.width, (float)infoData.Character.height), new Vector2(0.5f, 0.5f));
if (!this._isLeader)
{
this._baseImage.ChangeSprite((int)infoData.Awakening);
}
this._frameImage.ChangeSprite((int)infoData.Awakening);
this._faceImage.sprite = sprite;
this.SetReincarnation(infoData.Reincarnation);
this.SetVisibleCharacterSet(true);
}
// Token: 0x06000433 RID: 1075 RVA: 0x0000FA47 File Offset: 0x0000EC47
public void SetVisibleCharacterSet(bool isActive)
{
this._baseSetObj.gameObject.SetActive(isActive);
}
// Token: 0x06000434 RID: 1076 RVA: 0x0000FA5A File Offset: 0x0000EC5A
private void SetAwakening(float gaugeAmount, int awakeNum)
{
this._awakeIconController.Prepare(gaugeAmount, awakeNum);
}
// Token: 0x06000435 RID: 1077 RVA: 0x0000FA69 File Offset: 0x0000EC69
public void SetLevel(uint level)
{
if (this._levelText != null)
{
this._levelText.ChangeText(level.ToString().PadRight(4));
}
}
// Token: 0x06000436 RID: 1078 RVA: 0x0000FA91 File Offset: 0x0000EC91
public virtual void ResetData()
{
if (this._levelText != null)
{
this._levelText.ChangeText("0 ");
}
this._maskObject.SetActive(false);
this.SetVisibleCharacterSet(false);
}
// Token: 0x06000437 RID: 1079 RVA: 0x0000FAC4 File Offset: 0x0000ECC4
private void SetReincarnation(uint reincarnationNum)
{
this._rebornStarObj.SetActive(reincarnationNum > 0U);
this._rebornStarNumText.SetText(reincarnationNum.ToString());
}
// Token: 0x040002B9 RID: 697
[SerializeField]
private bool _isLeader;
// Token: 0x040002BA RID: 698
[SerializeField]
private GameObject _baseSetObj;
// Token: 0x040002BB RID: 699
[SerializeField]
[Tooltip("キャラクター背景")]
private MultipleImage _baseImage;
// Token: 0x040002BC RID: 700
[SerializeField]
[Tooltip("キャラクターマスク")]
private GameObject _maskObject;
// Token: 0x040002BD RID: 701
[SerializeField]
[Tooltip("キャラクター画像")]
private CustomImage _faceImage;
// Token: 0x040002BE RID: 702
[SerializeField]
[Tooltip("フレーム")]
private MultipleImage _frameImage;
// Token: 0x040002BF RID: 703
[SerializeField]
[Tooltip("レベル数表示")]
private SpriteCounter _levelText;
// Token: 0x040002C0 RID: 704
[SerializeField]
private AwakeIconController _awakeIconController;
// Token: 0x040002C1 RID: 705
[SerializeField]
private GameObject _rebornStarObj;
// Token: 0x040002C2 RID: 706
[SerializeField]
private TextMeshProUGUI _rebornStarNumText;
}

View File

@@ -0,0 +1,49 @@
using System;
using UnityEngine;
using UnityEngine.EventSystems;
// Token: 0x0200016D RID: 365
[ExecuteAlways]
public class CirclePosition : UIBehaviour
{
// Token: 0x06000D2D RID: 3373 RVA: 0x0003E8D7 File Offset: 0x0003DAD7
public void SetRadius(float radius)
{
this.radius = radius;
this.Positioning();
}
// Token: 0x06000D2E RID: 3374 RVA: 0x0003E8E6 File Offset: 0x0003DAE6
public void SetAngle(float angle)
{
this.angle = angle;
this.Positioning();
}
// Token: 0x06000D2F RID: 3375 RVA: 0x0003E8F8 File Offset: 0x0003DAF8
private void Positioning()
{
if (!base.isActiveAndEnabled)
{
return;
}
float num = this.radius * Mathf.Cos(this.angle * 0.017453292f);
float num2 = this.radius * Mathf.Sin(this.angle * 0.017453292f);
base.transform.localPosition = new Vector3(num, num2, 0f);
}
// Token: 0x06000D30 RID: 3376 RVA: 0x0003E957 File Offset: 0x0003DB57
protected override void OnDidApplyAnimationProperties()
{
this.Positioning();
base.OnDidApplyAnimationProperties();
}
// Token: 0x04000A25 RID: 2597
[SerializeField]
private float radius;
// Token: 0x04000A26 RID: 2598
[SerializeField]
private float angle;
}

View File

@@ -0,0 +1,77 @@
using System;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x02000099 RID: 153
public class ClassMedalObject : MonoBehaviour
{
// Token: 0x170000AD RID: 173
// (get) Token: 0x0600052C RID: 1324 RVA: 0x0001442C File Offset: 0x0001362C
public Animator MedalAnimator
{
get
{
if (this._medalAnimator == null)
{
this._medalAnimator = base.GetComponent<Animator>();
}
return this._medalAnimator;
}
}
// Token: 0x0600052D RID: 1325 RVA: 0x0001444E File Offset: 0x0001364E
public void SetCurrentMedal(Sprite medal)
{
this._medalImage.sprite = medal;
this._effectLoopMedalImage.sprite = medal;
}
// Token: 0x0600052E RID: 1326 RVA: 0x00014468 File Offset: 0x00013668
public void SetNextMedal(Sprite medal)
{
this._nextMedalImage.sprite = medal;
this._nextEffectMedalImage.sprite = medal;
this._nextEffectLoopImage.sprite = medal;
}
// Token: 0x0600052F RID: 1327 RVA: 0x0001448E File Offset: 0x0001368E
public void Loop()
{
this.MedalAnimator.Play("Loop", 0, 0f);
}
// Token: 0x06000530 RID: 1328 RVA: 0x000144A6 File Offset: 0x000136A6
public void ClassUp()
{
this.MedalAnimator.Play("ClassUp", 0, 0f);
}
// Token: 0x06000531 RID: 1329 RVA: 0x000144BE File Offset: 0x000136BE
public void ClassDown()
{
this.MedalAnimator.Play("ClassDown", 0, 0f);
}
// Token: 0x040003BD RID: 957
private Animator _medalAnimator;
// Token: 0x040003BE RID: 958
[SerializeField]
private Image _medalImage;
// Token: 0x040003BF RID: 959
[SerializeField]
private Image _effectLoopMedalImage;
// Token: 0x040003C0 RID: 960
[SerializeField]
private Image _nextMedalImage;
// Token: 0x040003C1 RID: 961
[SerializeField]
private Image _nextEffectMedalImage;
// Token: 0x040003C2 RID: 962
[SerializeField]
private Image _nextEffectLoopImage;
}

View File

@@ -0,0 +1,35 @@
using System;
using DB;
using TMPro;
using UI;
using UnityEngine;
// Token: 0x0200005F RID: 95
public class CollectionAcquitionPlate : MonoBehaviour
{
// Token: 0x06000302 RID: 770 RVA: 0x0000C06C File Offset: 0x0000B26C
public void Prepare(CollectionProcess.SubSequence sequence, int num = 0)
{
this._titleImage.ChangeSprite((int)sequence);
this.ChangeAcuitionTitle((int)sequence);
this._numText.text = num.ToString();
}
// Token: 0x06000303 RID: 771 RVA: 0x0000C0A0 File Offset: 0x0000B2A0
private void ChangeAcuitionTitle(int index)
{
this._acquitionTitleText.text = ((index == 0) ? CommonMessageID.CollectionTotalNum.GetName() : CommonMessageID.CollectionNum.GetName());
}
// Token: 0x040001F9 RID: 505
[SerializeField]
private MultipleImage _titleImage;
// Token: 0x040001FA RID: 506
[SerializeField]
private TextMeshProUGUI _acquitionTitleText;
// Token: 0x040001FB RID: 507
[SerializeField]
private TextMeshProUGUI _numText;
}

View File

@@ -0,0 +1,99 @@
using System;
using Mai2.Mai2Cue;
using Manager;
using UI;
using UnityEngine;
// Token: 0x02000060 RID: 96
public class CollectionButtonController : ButtonControllerBase
{
// Token: 0x06000305 RID: 773 RVA: 0x0000C0C0 File Offset: 0x0000B2C0
public override void Initialize(int monitorIndex)
{
base.Initialize(monitorIndex);
this.CommonButtons = new CommonButtonObject[this._positions.Length];
this.CommonButtons[0] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetCirclebuButtonObject(), this._positions[0]);
this.CommonButtons[0].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button03, CommonButtonObject.LedColors.White);
this.CommonButtons[0].SetSymbol(ButtonControllerBase.ArrowSprite, false);
this.CommonButtons[0].SetSE(Cue.SE_SYS_CURSOR);
this.CommonButtons[1] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetCirclebuButtonObject(), this._positions[1]);
this.CommonButtons[1].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button06, CommonButtonObject.LedColors.White);
this.CommonButtons[1].SetSymbol(ButtonControllerBase.ArrowSprite, true);
this.CommonButtons[1].SetSE(Cue.SE_SYS_CURSOR);
this.CommonButtons[2] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._positions[2]);
this.CommonButtons[2].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).LedColor);
this.CommonButtons[2].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).Image, false);
this.CommonButtons[2].SetFlatButtonSynbolType(ButtonControllerBase.FlatButtonType.Ok);
this.CommonButtons[2].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).Cue);
this.CommonButtons[3] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._positions[3]);
this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.TimeSkip).LedColor);
this.CommonButtons[3].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.TimeSkip).Image, true);
this.CommonButtons[3].SetFlatButtonSynbolType(ButtonControllerBase.FlatButtonType.TimeSkip);
this.CommonButtons[3].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.TimeSkip).Cue);
this.CommonButtons[4] = this.intimateButtonPlus;
this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button03, CommonButtonObject.LedColors.Red);
this.CommonButtons[4].SetSE(Cue.SE_SYS_FIX);
this.CommonButtons[5] = this.intimateButtonMinus;
this.CommonButtons[5].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button06, CommonButtonObject.LedColors.Blue);
this.CommonButtons[5].SetSE(Cue.SE_SYS_FIX);
}
// Token: 0x06000306 RID: 774 RVA: 0x0000C2EC File Offset: 0x0000B4EC
public void ChangeFlatButtonSymbol(int index, int spriteNum)
{
if (this.CommonButtons[index] != null)
{
this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Image, false);
this.CommonButtons[index].SetFlatButtonSynbolType((ButtonControllerBase.FlatButtonType)spriteNum);
this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).LedColor, true);
this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Cue);
}
}
// Token: 0x06000307 RID: 775 RVA: 0x0000C364 File Offset: 0x0000B564
public void ChangeFlatButtonDefine(int index, int spriteNum)
{
if (this.CommonButtons[index] != null)
{
this.CommonButtons[index].SetSprite(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Image, false);
this.CommonButtons[index].SetFlatButtonSynbolType((ButtonControllerBase.FlatButtonType)spriteNum);
this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).LedColor, true);
this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Cue);
}
}
// Token: 0x06000308 RID: 776 RVA: 0x0000C3D9 File Offset: 0x0000B5D9
public ButtonControllerBase.FlatButtonType GetFlatButtonSymbolType(int index)
{
return this.CommonButtons[index].GetFlatButtonSynbolType();
}
// Token: 0x06000309 RID: 777 RVA: 0x0000C3E8 File Offset: 0x0000B5E8
public bool GetVisible(int id)
{
return this.CommonButtons[id].IsVisible();
}
// Token: 0x040001FC RID: 508
public CommonButtonObject intimateButtonPlus;
// Token: 0x040001FD RID: 509
public CommonButtonObject intimateButtonMinus;
// Token: 0x02000965 RID: 2405
public enum ButtonId
{
// Token: 0x04005F97 RID: 24471
ScrollRight,
// Token: 0x04005F98 RID: 24472
ScrollLeft,
// Token: 0x04005F99 RID: 24473
Decide,
// Token: 0x04005F9A RID: 24474
Skip,
// Token: 0x04005F9B RID: 24475
IntimateItemPlus,
// Token: 0x04005F9C RID: 24476
IntimateItemMinus
}
}

View File

@@ -0,0 +1,707 @@
using System;
using MAI2.Util;
using Manager;
using Manager.MaiStudio;
using UI;
using UI.DaisyChainList;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x02000058 RID: 88
public class CollectionChainCard : ChainObject
{
// Token: 0x06000294 RID: 660 RVA: 0x00009154 File Offset: 0x00008354
protected override void Awake()
{
base.Awake();
this._newIconObj = Object.Instantiate<GameObject>(this._originNewIconObj, this._newIconTran);
CollectionOtherParts otherParts = this._otherParts;
if (otherParts != null)
{
otherParts.SetActiveFavoriteCollection(false);
}
this._randomUI.gameObject.SetActive(true);
this._randomUI.SetActive(false);
}
// Token: 0x06000295 RID: 661 RVA: 0x000091AD File Offset: 0x000083AD
public void ResetExitCardIcon(bool isReset = false)
{
if (this._mainExit != null)
{
this._mainExit.SetActive(isReset);
}
if (this._miniCard != null)
{
this._miniExit.SetActive(isReset);
}
}
// Token: 0x06000296 RID: 662 RVA: 0x000091E4 File Offset: 0x000083E4
public void SetCurrentParts(CollectionGenreID type, string itemName, string acquisitionText, bool isHaveNewCard, bool isSpecial)
{
bool flag = true;
this.SetCommonParts(type, itemName, acquisitionText, isHaveNewCard, isSpecial, flag);
if (this._mainCardRect != null)
{
this._mainCardRect.sizeDelta = CollectionChainCard.ShortSize;
}
CollectionTypeParts typeParts = this._typeParts;
if (typeParts != null)
{
typeParts.SetParts((int)type);
}
if (type == CollectionGenreID.Exit || type == CollectionGenreID.ExitLeft)
{
this.ResetExitCardIcon(true);
return;
}
this.ResetExitCardIcon(false);
}
// Token: 0x06000297 RID: 663 RVA: 0x00009248 File Offset: 0x00008448
public void SetCurrentParts(CollectionGenreID type, string itemName, string acquisitionText, bool isHaveNewCard, bool isSpecial, int monitorID)
{
this._kldCoverObject.SetActive(false);
if (Singleton<KaleidxScopeManager>.Instance.IsLoseEventWatched(monitorID) && type >= CollectionGenreID.Title && type <= CollectionGenreID.Shop)
{
this._kldCoverObject.SetActive(true);
}
this.SetCurrentParts(type, itemName, acquisitionText, isHaveNewCard, isSpecial);
if (this._miniCard != null)
{
this._miniCard.GetComponent<CollectionChainCard>().SetCurrentParts(type, itemName, acquisitionText, isHaveNewCard, isSpecial, monitorID);
}
}
// Token: 0x06000298 RID: 664 RVA: 0x000092B8 File Offset: 0x000084B8
public void SetPartsData(CollectionGenreID type, CollectionData data, bool isEquipment, int monitorIndex)
{
string nameStr = data.NameStr;
string normText = data.NormText;
bool isHave = data.IsHave;
bool isNew = data.IsNew;
bool isDisp = data.IsDisp;
bool flag = isHave || !isDisp;
bool isRandom = data.IsRandom;
bool flag2 = false;
bool flag3 = false;
bool isFavorite = data.IsFavorite;
data.GetID();
if (type == CollectionGenreID.Frame)
{
FrameData frame = Singleton<DataManager>.Instance.GetFrame(data.GetID());
if (frame != null && frame.isEffect)
{
flag2 = true;
}
}
this.SetCommonParts(type, nameStr, normText, isNew, flag2, flag3);
if (this._mainCardRect != null)
{
this._mainCardRect.sizeDelta = (flag ? CollectionChainCard.DefaultSize : CollectionChainCard.ShortSize);
}
CollectionOtherParts otherParts = this._otherParts;
if (otherParts != null)
{
otherParts.SetOtherParts(isHave, flag, isEquipment, isRandom, flag2, isFavorite, monitorIndex);
}
if (data.IsRandom)
{
this.InitRandomCard(data);
}
if (this._miniCard != null)
{
this._miniCard.GetComponent<CollectionChainCard>().SetPartsData(type, data, isEquipment, monitorIndex);
}
}
// Token: 0x06000299 RID: 665 RVA: 0x000093C0 File Offset: 0x000085C0
public void SetActiveChildren(GameObject obj, bool active)
{
int childCount = obj.transform.childCount;
for (int i = 0; i < childCount; i++)
{
obj.transform.GetChild(i).gameObject.SetActive(active);
}
}
// Token: 0x0600029A RID: 666 RVA: 0x000093FC File Offset: 0x000085FC
public void SetOtherParts(bool isHave, bool isActive, bool isEquipment, bool isRandom, bool isSpecial, int monitorIndex)
{
CollectionOtherParts otherParts = this._otherParts;
if (otherParts == null)
{
return;
}
otherParts.SetOtherParts(isHave, isActive, isEquipment, isRandom, isSpecial, monitorIndex);
}
// Token: 0x0600029B RID: 667 RVA: 0x00009417 File Offset: 0x00008617
public void SetGenreName(bool isActive)
{
CollectionTypeParts typeParts = this._typeParts;
if (typeParts == null)
{
return;
}
typeParts.SetVisible(isActive);
}
// Token: 0x0600029C RID: 668 RVA: 0x0000942A File Offset: 0x0000862A
public void SetGenreNameMiniCard(bool isActive)
{
if (this._miniCard != null)
{
this._miniCard.GetComponent<CollectionChainCard>().SetGenreName(isActive);
}
}
// Token: 0x0600029D RID: 669 RVA: 0x0000944C File Offset: 0x0000864C
private void SetCommonParts(CollectionGenreID type, string itemName, string conditionText, bool isNew, bool isSpecial, bool isTypeCard)
{
this.SetCardFrameSprite(type);
CollectionParts collectionParts = this._collectionParts;
if (collectionParts != null)
{
collectionParts.SetVisibleCollectionParts(type, isSpecial);
}
this.SetCollectionNameAndAcquitionCondition(type, itemName, conditionText);
this.SetVisibleNewIcon(isNew);
this.SetGenreName(isTypeCard);
bool flag = !isTypeCard;
if (isSpecial)
{
flag = true;
}
CollectionOtherParts otherParts = this._otherParts;
if (otherParts != null)
{
otherParts.SetVisible(flag);
}
if (this._otherParts != null)
{
this.SetActiveChildren(this._otherParts.gameObject, false);
}
}
// Token: 0x0600029E RID: 670 RVA: 0x000094CD File Offset: 0x000086CD
public void SetShopTicketVisable()
{
CollectionParts collectionParts = this._collectionParts;
if (collectionParts != null)
{
collectionParts.SetVisibleTicketParts();
}
CollectionChainCard miniCard = this._miniCard;
if (miniCard == null)
{
return;
}
miniCard.SetShopTicketVisable();
}
// Token: 0x0600029F RID: 671 RVA: 0x000094F0 File Offset: 0x000086F0
public void SetShopIntimateItemVisable()
{
CollectionParts collectionParts = this._collectionParts;
if (collectionParts != null)
{
collectionParts.SetVisibleIntimateItemParts();
}
CollectionChainCard miniCard = this._miniCard;
if (miniCard == null)
{
return;
}
miniCard.SetShopIntimateItemVisable();
}
// Token: 0x060002A0 RID: 672 RVA: 0x00009513 File Offset: 0x00008713
public void SetCardFrameSprite(CollectionGenreID type)
{
if (this._cardFrameImage != null)
{
this._cardFrameImage.ChangeSprite((int)type);
}
}
// Token: 0x060002A1 RID: 673 RVA: 0x00009530 File Offset: 0x00008730
public void SetDetailParts(Texture2D tex, CollectionGenreID type)
{
switch (type)
{
case CollectionGenreID.ExitLeft:
case CollectionGenreID.Icon:
case CollectionGenreID.Exit:
this._collectionParts.SetIconTexture(tex);
break;
case CollectionGenreID.Plate:
{
Sprite sprite = Sprite.Create(tex, new Rect(0f, 0f, (float)tex.width, (float)tex.height), Vector2.zero);
this._collectionParts.SetPlateSprite(sprite);
break;
}
case CollectionGenreID.Frame:
this._collectionParts.SetFrameTexture(tex);
break;
case CollectionGenreID.Partner:
this._collectionParts.SetPartnerTexture(tex);
break;
}
CollectionChainCard miniCard = this._miniCard;
if (miniCard == null)
{
return;
}
miniCard.SetDetailParts(tex, type);
}
// Token: 0x060002A2 RID: 674 RVA: 0x000095D6 File Offset: 0x000087D6
public void SetDetailParts(string title, Sprite titleBaseSprite)
{
this._collectionParts.SetTitle(title, titleBaseSprite);
CollectionChainCard miniCard = this._miniCard;
if (miniCard == null)
{
return;
}
miniCard.SetDetailParts(title, titleBaseSprite);
}
// Token: 0x060002A3 RID: 675 RVA: 0x000095F7 File Offset: 0x000087F7
public void SetTicketDetailParts(Texture2D tex)
{
this._collectionParts.SetTicketTexture(tex);
CollectionChainCard miniCard = this._miniCard;
if (miniCard == null)
{
return;
}
miniCard.SetTicketDetailParts(tex);
}
// Token: 0x060002A4 RID: 676 RVA: 0x00009616 File Offset: 0x00008816
public void SetIntimateItemDetailParts(int index)
{
this._collectionParts.SetIntimateItemTexture(index);
CollectionChainCard miniCard = this._miniCard;
if (miniCard == null)
{
return;
}
miniCard.SetIntimateItemDetailParts(index);
}
// Token: 0x060002A5 RID: 677 RVA: 0x00009638 File Offset: 0x00008838
public void SetDetailPartsPartnerPresent(CollectionProcess.SubSequence subSequence, bool isHave, bool isCopyright, int intimate)
{
if (isHave && !isCopyright && subSequence == CollectionProcess.SubSequence.Prtner)
{
this._partnerGauge.gameObject.SetActive(true);
this._partnerGauge.SetIntimateNum(intimate);
if (this._partnerPersentButton != null)
{
this._partnerPersentButton.SetActive(true);
}
if (this._partnerPersentButtonDisable != null)
{
this._partnerPersentButtonDisable.SetActive(false);
}
}
else if (isHave && isCopyright && subSequence == CollectionProcess.SubSequence.Prtner)
{
this._partnerGauge.gameObject.SetActive(false);
if (this._partnerPersentButton != null)
{
this._partnerPersentButton.SetActive(false);
}
if (this._partnerPersentButtonDisable != null)
{
this._partnerPersentButtonDisable.SetActive(true);
}
}
else
{
this._partnerGauge.gameObject.SetActive(false);
if (this._partnerPersentButton != null)
{
this._partnerPersentButton.SetActive(false);
}
if (this._partnerPersentButtonDisable != null)
{
this._partnerPersentButtonDisable.SetActive(false);
}
}
CollectionChainCard miniCard = this._miniCard;
if (miniCard == null)
{
return;
}
miniCard.SetDetailPartsPartnerPresent(subSequence, isHave, isCopyright, intimate);
}
// Token: 0x060002A6 RID: 678 RVA: 0x00009753 File Offset: 0x00008953
private void SetCollectionNameAndAcquitionCondition(CollectionGenreID type, string collectionName, string condition)
{
if (this._collectionName != null)
{
this._collectionName.Prepare(type, collectionName, condition);
}
}
// Token: 0x060002A7 RID: 679 RVA: 0x00009771 File Offset: 0x00008971
private void SetVisibleNewIcon(bool isActive)
{
if (this._newIconObj != null)
{
this._newIconObj.gameObject.GetComponent<NewIconObject>().SetView(isActive);
}
}
// Token: 0x060002A8 RID: 680 RVA: 0x00009798 File Offset: 0x00008998
public override void ViewUpdate(float gameMsecAdd)
{
base.ViewUpdate(gameMsecAdd);
this._syncTimer += (float)GameManager.GetGameMSecAdd() / 1000f;
if (this._otherParts.IsActive())
{
this._otherParts.UpdateView(this._syncTimer);
}
if (this._collectionParts.IsActive())
{
this._collectionParts.UpdateView(this._syncTimer);
}
if (this._collectionName != null)
{
this._collectionName.ViewUpdate();
}
if (1f < this._syncTimer)
{
this._syncTimer = 0f;
}
}
// Token: 0x060002A9 RID: 681 RVA: 0x00009832 File Offset: 0x00008A32
public void ChangeSize(bool isMainActive)
{
if (this._miniCard != null)
{
this._miniCardGroup.alpha = (float)(isMainActive ? 0 : 1);
this._mainCardGroup.alpha = (float)(isMainActive ? 1 : 0);
}
}
// Token: 0x060002AA RID: 682 RVA: 0x00009868 File Offset: 0x00008A68
public override void OnCenterIn()
{
this.ChangeSize(true);
this.ResetPosition();
}
// Token: 0x060002AB RID: 683 RVA: 0x00009877 File Offset: 0x00008A77
public override void OnCenterOut()
{
this.ChangeSize(false);
this.ResetPosition();
}
// Token: 0x060002AC RID: 684 RVA: 0x00009886 File Offset: 0x00008A86
private void ResetPosition()
{
if (this._collectionName != null)
{
this._collectionName.ResetPosition();
}
if (this._collectionParts.IsActive())
{
this._collectionParts.ResetScrollText();
}
}
// Token: 0x060002AD RID: 685 RVA: 0x000098B9 File Offset: 0x00008AB9
public void SetVisibleSetIcon(bool isEquipment)
{
CollectionOtherParts otherParts = this._otherParts;
if (otherParts != null)
{
otherParts.SetVisibleSetIcon(isEquipment);
}
if (this._miniCard != null)
{
this._miniCard.SetVisibleSetIcon(isEquipment);
}
}
// Token: 0x060002AE RID: 686 RVA: 0x000098E7 File Offset: 0x00008AE7
public void SetShopCardVisable(bool visable)
{
this._shopCard.SetVisable(visable);
if (this._miniCard != null)
{
this._miniCard.SetShopCardVisable(visable);
}
}
// Token: 0x060002AF RID: 687 RVA: 0x0000990F File Offset: 0x00008B0F
public void SetShopDetailVisable(bool visable)
{
this._shopDetail.SetVisable(visable);
if (this._miniCard != null)
{
this._miniCard.SetShopDetailVisable(visable);
}
}
// Token: 0x060002B0 RID: 688 RVA: 0x00009937 File Offset: 0x00008B37
public void SetShopItemDetailTitle(string title)
{
this._shopDetail.SetTitle(title);
if (this._miniCard != null)
{
this._miniCard.SetShopItemDetailTitle(title);
}
}
// Token: 0x060002B1 RID: 689 RVA: 0x0000995F File Offset: 0x00008B5F
public void SetShopItemDetailPrice(int price)
{
this._shopDetail.SetPrice(price);
if (this._miniCard != null)
{
this._miniCard.SetShopItemDetailPrice(price);
}
}
// Token: 0x060002B2 RID: 690 RVA: 0x00009987 File Offset: 0x00008B87
public void SetShopItemDetailRemaining(int remaining)
{
this._shopDetail.SetRemaining(remaining);
}
// Token: 0x060002B3 RID: 691 RVA: 0x00009995 File Offset: 0x00008B95
public void SetShopItemDetailRemainingVisable(bool visable)
{
this._shopDetail.SetRemainingVisable(visable);
}
// Token: 0x060002B4 RID: 692 RVA: 0x000099A3 File Offset: 0x00008BA3
public void SetNetCardVisable(bool visable)
{
this._netCard.gameObject.SetActive(visable);
if (this._miniCard != null)
{
this._miniCard.SetNetCardVisable(visable);
}
}
// Token: 0x060002B5 RID: 693 RVA: 0x000099D0 File Offset: 0x00008BD0
public void SetPartnerRoomCardVisable(bool visable)
{
this._partnerRoomCard.gameObject.SetActive(visable);
if (this._miniCard != null)
{
this._miniCard.SetPartnerRoomCardVisable(visable);
}
}
// Token: 0x060002B6 RID: 694 RVA: 0x000099FD File Offset: 0x00008BFD
public void SetFrameImageCardVisable(bool visable)
{
this._cardFrameImage.gameObject.SetActive(visable);
if (this._miniCard != null)
{
this._miniCard.SetFrameImageCardVisable(visable);
}
}
// Token: 0x060002B7 RID: 695 RVA: 0x00009A2A File Offset: 0x00008C2A
public void SetShopItemDisable(bool disable)
{
this._shopDisable.SetShopDisableVisable(disable);
if (this._miniCard != null)
{
this._miniCard.SetShopItemDisable(disable);
}
}
// Token: 0x060002B8 RID: 696 RVA: 0x00009A52 File Offset: 0x00008C52
public void SetActiveFavoriteCollection(bool isActive)
{
this._otherParts.SetActiveFavoriteCollection(isActive);
if (this._miniCard != null)
{
this._miniCard.SetActiveFavoriteCollection(isActive);
}
}
// Token: 0x060002B9 RID: 697 RVA: 0x00009A7A File Offset: 0x00008C7A
public void InitRandomCard(CollectionData data)
{
this._randomUI.Initialize(data);
}
// Token: 0x060002BA RID: 698 RVA: 0x00009A88 File Offset: 0x00008C88
public void SetActiveRandom(bool isActive)
{
this._randomUI.SetActive(isActive);
this.SetActiveFavoriteCollection(!isActive);
this._collectionParts.SetVisible(!isActive);
if (this._miniCard != null)
{
this._miniCard.SetActiveRandom(isActive);
}
}
// Token: 0x060002BB RID: 699 RVA: 0x00009AD4 File Offset: 0x00008CD4
public void UpdateFavoriteCollection(CollectionChainCard.FavoriteType type)
{
this._otherParts.UpdateFavoriteCollection(type);
if (this._miniCard != null)
{
this._miniCard.UpdateFavoriteCollection(type);
}
}
// Token: 0x060002BC RID: 700 RVA: 0x00009AFC File Offset: 0x00008CFC
public void SetShopDisableText(string text)
{
this._shopDisable.SetShopDisableText(text);
if (this._miniCard != null)
{
this._miniCard.SetShopDisableText(text);
}
}
// Token: 0x060002BD RID: 701 RVA: 0x00009B24 File Offset: 0x00008D24
public void SetCollectionNameVisable(bool visable)
{
this._collectionName.SetVisable(visable);
if (this._miniCard != null)
{
this._miniCard.SetCollectionNameVisable(visable);
}
}
// Token: 0x040001B6 RID: 438
private static readonly Vector2 DefaultSize = new Vector2(360f, 426f);
// Token: 0x040001B7 RID: 439
private static readonly Vector2 ShortSize = new Vector2(360f, 366f);
// Token: 0x040001B8 RID: 440
[SerializeField]
[Header("Common")]
private GameObject _originNewIconObj;
// Token: 0x040001B9 RID: 441
[SerializeField]
private Transform _newIconTran;
// Token: 0x040001BA RID: 442
[SerializeField]
[Header("カードフレーム")]
private MultipleImage _cardFrameImage;
// Token: 0x040001BB RID: 443
[SerializeField]
private CollectionTypeParts _typeParts;
// Token: 0x040001BC RID: 444
[SerializeField]
private CollectionParts _collectionParts;
// Token: 0x040001BD RID: 445
[SerializeField]
private CollectionOtherParts _otherParts;
// Token: 0x040001BE RID: 446
[SerializeField]
private CollectionName _collectionName;
// Token: 0x040001BF RID: 447
[SerializeField]
private PartnerGauge _partnerGauge;
// Token: 0x040001C0 RID: 448
[SerializeField]
private ShopCard _shopCard;
// Token: 0x040001C1 RID: 449
[SerializeField]
private ShopDetail _shopDetail;
// Token: 0x040001C2 RID: 450
[SerializeField]
private ShopDisable _shopDisable;
// Token: 0x040001C3 RID: 451
[SerializeField]
private Image _netCard;
// Token: 0x040001C4 RID: 452
[SerializeField]
private GameObject _favoriteUI;
// Token: 0x040001C5 RID: 453
[SerializeField]
private RandomCard _randomUI;
// Token: 0x040001C6 RID: 454
[SerializeField]
private Image _partnerRoomCard;
// Token: 0x040001C7 RID: 455
[SerializeField]
private GameObject _kldCoverObject;
// Token: 0x040001C8 RID: 456
[SerializeField]
[Header("MainCardのみ")]
protected CanvasGroup _miniCardGroup;
// Token: 0x040001C9 RID: 457
[SerializeField]
private RectTransform _mainCardRect;
// Token: 0x040001CA RID: 458
[SerializeField]
protected CanvasGroup _mainCardGroup;
// Token: 0x040001CB RID: 459
[SerializeField]
protected CollectionChainCard _miniCard;
// Token: 0x040001CC RID: 460
[SerializeField]
private GameObject _mainExit;
// Token: 0x040001CD RID: 461
[SerializeField]
private GameObject _miniExit;
// Token: 0x040001CE RID: 462
[SerializeField]
private GameObject _partnerPersentButton;
// Token: 0x040001CF RID: 463
[SerializeField]
private GameObject _partnerPersentButtonDisable;
// Token: 0x040001D0 RID: 464
private float _syncTimer;
// Token: 0x040001D1 RID: 465
private GameObject _newIconObj;
// Token: 0x02000964 RID: 2404
public enum FavoriteType
{
// Token: 0x04005F93 RID: 24467
OFF,
// Token: 0x04005F94 RID: 24468
ON,
// Token: 0x04005F95 RID: 24469
Dissable
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,328 @@
using System;
using Manager.MaiStudio;
// Token: 0x02000143 RID: 323
public class CollectionData
{
// Token: 0x17000100 RID: 256
// (get) Token: 0x06000ACE RID: 2766 RVA: 0x0002DF63 File Offset: 0x0002D163
// (set) Token: 0x06000ACF RID: 2767 RVA: 0x0002DF6B File Offset: 0x0002D16B
public StringID NetOpenName
{
get
{
return this._netOpenName;
}
set
{
this._netOpenName = value;
}
}
// Token: 0x17000101 RID: 257
// (get) Token: 0x06000AD0 RID: 2768 RVA: 0x0002DF74 File Offset: 0x0002D174
// (set) Token: 0x06000AD1 RID: 2769 RVA: 0x0002DF7C File Offset: 0x0002D17C
public StringID ReleaseTagName
{
get
{
return this._releaseTagName;
}
set
{
this._releaseTagName = value;
}
}
// Token: 0x17000102 RID: 258
// (get) Token: 0x06000AD2 RID: 2770 RVA: 0x0002DF85 File Offset: 0x0002D185
// (set) Token: 0x06000AD3 RID: 2771 RVA: 0x0002DF8D File Offset: 0x0002D18D
public bool Disable
{
get
{
return this._disable;
}
set
{
this._disable = value;
}
}
// Token: 0x17000103 RID: 259
// (get) Token: 0x06000AD4 RID: 2772 RVA: 0x0002DF96 File Offset: 0x0002D196
// (set) Token: 0x06000AD5 RID: 2773 RVA: 0x0002DF9E File Offset: 0x0002D19E
public StringID Name
{
get
{
return this._name;
}
set
{
this._name = value;
}
}
// Token: 0x17000104 RID: 260
// (get) Token: 0x06000AD6 RID: 2774 RVA: 0x0002DFA7 File Offset: 0x0002D1A7
// (set) Token: 0x06000AD7 RID: 2775 RVA: 0x0002DFAF File Offset: 0x0002D1AF
public StringID Genre
{
get
{
return this._genre;
}
set
{
this._genre = value;
}
}
// Token: 0x17000105 RID: 261
// (get) Token: 0x06000AD8 RID: 2776 RVA: 0x0002DFB8 File Offset: 0x0002D1B8
// (set) Token: 0x06000AD9 RID: 2777 RVA: 0x0002DFC0 File Offset: 0x0002D1C0
public bool IsDefault
{
get
{
return this._isDefault;
}
set
{
this._isDefault = value;
}
}
// Token: 0x17000106 RID: 262
// (get) Token: 0x06000ADA RID: 2778 RVA: 0x0002DFC9 File Offset: 0x0002D1C9
public bool IsRandom
{
get
{
return this._id == 2 || this._id == 3;
}
}
// Token: 0x17000107 RID: 263
// (get) Token: 0x06000ADB RID: 2779 RVA: 0x0002DFDF File Offset: 0x0002D1DF
// (set) Token: 0x06000ADC RID: 2780 RVA: 0x0002DFE7 File Offset: 0x0002D1E7
public string NormText
{
get
{
return this._normText;
}
set
{
this._normText = value;
}
}
// Token: 0x17000108 RID: 264
// (get) Token: 0x06000ADD RID: 2781 RVA: 0x0002DFF0 File Offset: 0x0002D1F0
// (set) Token: 0x06000ADE RID: 2782 RVA: 0x0002DFF8 File Offset: 0x0002D1F8
public TrophyRareType TrophyRareType
{
get
{
return this._rareType;
}
set
{
this._rareType = value;
}
}
// Token: 0x17000109 RID: 265
// (get) Token: 0x06000ADF RID: 2783 RVA: 0x0002E001 File Offset: 0x0002D201
// (set) Token: 0x06000AE0 RID: 2784 RVA: 0x0002E009 File Offset: 0x0002D209
public string FileName
{
get
{
return this._fileName;
}
set
{
this._fileName = value;
}
}
// Token: 0x1700010A RID: 266
// (get) Token: 0x06000AE1 RID: 2785 RVA: 0x0002E012 File Offset: 0x0002D212
// (set) Token: 0x06000AE2 RID: 2786 RVA: 0x0002E01A File Offset: 0x0002D21A
public bool IsNew
{
get
{
return this._isNew;
}
set
{
this._isNew = value;
}
}
// Token: 0x1700010B RID: 267
// (get) Token: 0x06000AE3 RID: 2787 RVA: 0x0002E023 File Offset: 0x0002D223
// (set) Token: 0x06000AE4 RID: 2788 RVA: 0x0002E02B File Offset: 0x0002D22B
public bool IsHave
{
get
{
return this._isHave;
}
set
{
this._isHave = value;
}
}
// Token: 0x1700010C RID: 268
// (get) Token: 0x06000AE5 RID: 2789 RVA: 0x0002E034 File Offset: 0x0002D234
// (set) Token: 0x06000AE6 RID: 2790 RVA: 0x0002E03C File Offset: 0x0002D23C
public bool IsDisp
{
get
{
return this._isDisp;
}
set
{
this._isDisp = value;
}
}
// Token: 0x1700010D RID: 269
// (get) Token: 0x06000AE7 RID: 2791 RVA: 0x0002E045 File Offset: 0x0002D245
// (set) Token: 0x06000AE8 RID: 2792 RVA: 0x0002E04D File Offset: 0x0002D24D
public bool IsFavorite
{
get
{
return this._isFavorite;
}
set
{
this._isFavorite = value;
}
}
// Token: 0x1700010E RID: 270
// (get) Token: 0x06000AE9 RID: 2793 RVA: 0x0002E056 File Offset: 0x0002D256
// (set) Token: 0x06000AEA RID: 2794 RVA: 0x0002E05E File Offset: 0x0002D25E
public int Priority
{
get
{
return this._priority;
}
set
{
this._priority = value;
}
}
// Token: 0x1700010F RID: 271
// (get) Token: 0x06000AEB RID: 2795 RVA: 0x0002E067 File Offset: 0x0002D267
// (set) Token: 0x06000AEC RID: 2796 RVA: 0x0002E06F File Offset: 0x0002D26F
public string DataName
{
get
{
return this._dataName;
}
set
{
this._dataName = value;
}
}
// Token: 0x17000110 RID: 272
// (get) Token: 0x06000AEE RID: 2798 RVA: 0x0002E081 File Offset: 0x0002D281
// (set) Token: 0x06000AED RID: 2797 RVA: 0x0002E078 File Offset: 0x0002D278
public int ID
{
get
{
return this._id;
}
set
{
this._id = value;
}
}
// Token: 0x17000111 RID: 273
// (get) Token: 0x06000AEF RID: 2799 RVA: 0x0002E089 File Offset: 0x0002D289
// (set) Token: 0x06000AF0 RID: 2800 RVA: 0x0002E091 File Offset: 0x0002D291
public string NameStr
{
get
{
return this._nameStr;
}
set
{
this._nameStr = value;
}
}
// Token: 0x06000AF1 RID: 2801 RVA: 0x0002E081 File Offset: 0x0002D281
public int GetID()
{
return this._id;
}
// Token: 0x040008E8 RID: 2280
private StringID _netOpenName = new StringID();
// Token: 0x040008E9 RID: 2281
private StringID _releaseTagName = new StringID();
// Token: 0x040008EA RID: 2282
private bool _disable;
// Token: 0x040008EB RID: 2283
private StringID _name = new StringID();
// Token: 0x040008EC RID: 2284
private StringID _genre = new StringID();
// Token: 0x040008ED RID: 2285
private bool _isDefault;
// Token: 0x040008EE RID: 2286
private string _normText = "";
// Token: 0x040008EF RID: 2287
private TrophyRareType _rareType = TrophyRareType.Bronze;
// Token: 0x040008F0 RID: 2288
private string _fileName = "";
// Token: 0x040008F1 RID: 2289
private bool _isNew;
// Token: 0x040008F2 RID: 2290
private bool _isHave;
// Token: 0x040008F3 RID: 2291
private bool _isDisp;
// Token: 0x040008F4 RID: 2292
private bool _isFavorite;
// Token: 0x040008F5 RID: 2293
private int _priority;
// Token: 0x040008F6 RID: 2294
private string _dataName = "";
// Token: 0x040008F7 RID: 2295
private int _id = -1;
// Token: 0x040008F8 RID: 2296
private string _nameStr = "";
}

View File

@@ -0,0 +1,19 @@
using System;
using Manager;
using UI;
using UnityEngine;
// Token: 0x02000072 RID: 114
public class CollectionGetButtonController : ButtonControllerBase
{
// Token: 0x060003EB RID: 1003 RVA: 0x0000EAE4 File Offset: 0x0000DCE4
public override void Initialize(int monitorIndex)
{
base.Initialize(monitorIndex);
this.CommonButtons = new CommonButtonObject[this._positions.Length];
this.CommonButtons[0] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._positions[0]);
this.CommonButtons[0].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).LedColor);
this.CommonButtons[0].SetSymbolStartDisable(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).Image, false);
this.CommonButtons[0].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).Cue);
}
}

View File

@@ -0,0 +1,212 @@
using System;
using TMPro;
using UI;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x02000073 RID: 115
public class CollectionGetCard : MonoBehaviour
{
// Token: 0x1700006F RID: 111
// (get) Token: 0x060003ED RID: 1005 RVA: 0x0000EB75 File Offset: 0x0000DD75
public bool IsBlank
{
get
{
return this._cardType == CollectionGetCard.CardType.Blank;
}
}
// Token: 0x060003EE RID: 1006 RVA: 0x0000EB80 File Offset: 0x0000DD80
private void Awake()
{
this._animator = base.GetComponent<Animator>();
}
// Token: 0x060003EF RID: 1007 RVA: 0x0000EB90 File Offset: 0x0000DD90
public void SetCard(CollectionGetCard.CardType cardType, Sprite sprite)
{
this._cardType = cardType;
this.ChangeBase(this._cardType);
if (this._cardType == CollectionGetCard.CardType.NamePlate)
{
this._multiImage.Image2 = sprite;
this._mainImage.gameObject.SetActive(false);
this._frameImage.gameObject.SetActive(false);
this._partnerPresentImage.gameObject.SetActive(false);
this._mileData.SetActive(false);
}
else if (this._cardType == CollectionGetCard.CardType.Frame)
{
this._frameImage.sprite = sprite;
this._mainImage.gameObject.SetActive(false);
this._partnerPresentImage.gameObject.SetActive(false);
this._plateSetObj.SetActive(false);
this._mileData.SetActive(false);
}
else if (this._cardType == CollectionGetCard.CardType.Mile)
{
this._mainImage.gameObject.SetActive(false);
this._plateSetObj.SetActive(false);
this._frameImage.gameObject.SetActive(false);
this._partnerPresentImage.gameObject.SetActive(false);
}
else if (this._cardType == CollectionGetCard.CardType.Present)
{
this._mainImage.gameObject.SetActive(false);
this._plateSetObj.SetActive(false);
this._frameImage.gameObject.SetActive(false);
this._mileData.SetActive(false);
this._partnerPresentImage.gameObject.SetActive(true);
this.ChangeBase(CollectionGetCard.CardType.Partner);
}
else
{
this._mainImage.sprite = sprite;
this._mainImage.SetNativeSize();
this._plateSetObj.SetActive(false);
this._frameImage.gameObject.SetActive(false);
this._partnerPresentImage.gameObject.SetActive(false);
this._mask.enabled = false;
this._mileData.SetActive(false);
}
this._animator.Play("Idle");
}
// Token: 0x060003F0 RID: 1008 RVA: 0x0000ED74 File Offset: 0x0000DF74
public void SetMileData(int mileType, int rewardNum)
{
this._mileData.SetMileType(mileType);
this._mileData.SetRewardNum(rewardNum);
}
// Token: 0x060003F1 RID: 1009 RVA: 0x0000ED90 File Offset: 0x0000DF90
public void BlankSet()
{
this.ChangeBase(CollectionGetCard.CardType.Blank);
this._plateSetObj.SetActive(false);
this._frameImage.gameObject.SetActive(false);
this._mainImage.gameObject.SetActive(false);
this._mileData.SetActive(false);
this._partnerPresentImage.gameObject.SetActive(false);
}
// Token: 0x060003F2 RID: 1010 RVA: 0x0000EDEF File Offset: 0x0000DFEF
public void Play()
{
this._animator.Play("In");
}
// Token: 0x060003F3 RID: 1011 RVA: 0x0000EE01 File Offset: 0x0000E001
private void ChangeBase(CollectionGetCard.CardType cardType)
{
this._baseImage.ChangeSprite((int)cardType);
}
// Token: 0x04000280 RID: 640
[SerializeField]
private MultipleImage _baseImage;
// Token: 0x04000281 RID: 641
[SerializeField]
private RectMask2D _mask;
// Token: 0x04000282 RID: 642
[SerializeField]
private Image _mainImage;
// Token: 0x04000283 RID: 643
[SerializeField]
private GameObject _plateSetObj;
// Token: 0x04000284 RID: 644
[SerializeField]
private Image _frameImage;
// Token: 0x04000285 RID: 645
[SerializeField]
private Image _partnerPresentImage;
// Token: 0x04000286 RID: 646
[SerializeField]
private MultiImage _multiImage;
// Token: 0x04000287 RID: 647
[SerializeField]
private CollectionGetCard.MileData _mileData;
// Token: 0x04000288 RID: 648
private Animator _animator;
// Token: 0x04000289 RID: 649
private CollectionGetCard.CardType _cardType;
// Token: 0x02000970 RID: 2416
public enum CardType
{
// Token: 0x04005FDF RID: 24543
Blank,
// Token: 0x04005FE0 RID: 24544
NamePlate,
// Token: 0x04005FE1 RID: 24545
Icon,
// Token: 0x04005FE2 RID: 24546
Title,
// Token: 0x04005FE3 RID: 24547
Partner,
// Token: 0x04005FE4 RID: 24548
Frame,
// Token: 0x04005FE5 RID: 24549
Ticket,
// Token: 0x04005FE6 RID: 24550
Mile,
// Token: 0x04005FE7 RID: 24551
Present
}
// Token: 0x02000971 RID: 2417
public enum MileType
{
// Token: 0x04005FE9 RID: 24553
Mission,
// Token: 0x04005FEA RID: 24554
FriendBonus,
// Token: 0x04005FEB RID: 24555
Present
}
// Token: 0x02000972 RID: 2418
[Serializable]
public class MileData
{
// Token: 0x06004C89 RID: 19593 RVA: 0x0019AB91 File Offset: 0x00199D91
public void SetActive(bool isActive)
{
this._parent.SetActive(isActive);
}
// Token: 0x06004C8A RID: 19594 RVA: 0x0019AB9F File Offset: 0x00199D9F
public void SetMileType(int type)
{
this._mileType.ChangeSprite(type);
}
// Token: 0x06004C8B RID: 19595 RVA: 0x0019ABAD File Offset: 0x00199DAD
public void SetRewardNum(int num)
{
this._rewardNumText.SetText(num.ToString());
}
// Token: 0x04005FEC RID: 24556
[SerializeField]
private GameObject _parent;
// Token: 0x04005FED RID: 24557
[SerializeField]
private MultipleImage _mileType;
// Token: 0x04005FEE RID: 24558
[SerializeField]
private TextMeshProUGUI _rewardNumText;
}
}

View File

@@ -0,0 +1,304 @@
using System;
using System.Collections.Generic;
using Mai2.Mai2Cue;
using MAI2.Util;
using Manager;
using Manager.UserDatas;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x02000074 RID: 116
public class CollectionGetList : MonoBehaviour
{
// Token: 0x060003F5 RID: 1013 RVA: 0x0000EE10 File Offset: 0x0000E010
public bool Prepare(int monitorIndex, AssetManager assetManager)
{
this._monitorIndex = monitorIndex;
this._assetManager = assetManager;
UserData userData = Singleton<UserDataManager>.Instance.GetUserData((long)monitorIndex);
int num = 0;
int newMissionAchieveMile = userData.NewMissionAchieveMile;
if (newMissionAchieveMile > 0)
{
this.AddCard(CollectionGetCard.CardType.Mile, null);
this.SetMileData(CollectionGetCard.MileType.Mission, newMissionAchieveMile);
num++;
}
int newFriendBonusMile = userData.NewFriendBonusMile;
if (newFriendBonusMile > 0)
{
this.AddCard(CollectionGetCard.CardType.Mile, null);
this.SetMileData(CollectionGetCard.MileType.FriendBonus, newFriendBonusMile);
num++;
}
int newPresentMile = userData.NewPresentMile;
if (newPresentMile > 0)
{
this.AddCard(CollectionGetCard.CardType.Mile, null);
this.SetMileData(CollectionGetCard.MileType.Present, newPresentMile);
num++;
}
List<int> newIconList = userData.NewIconList;
for (int i = 0; i < newIconList.Count; i++)
{
if (10 > num)
{
int num2 = newIconList[i];
Texture2D iconTexture2D = this._assetManager.GetIconTexture2D(this._monitorIndex, num2);
Sprite sprite = Sprite.Create(iconTexture2D, new Rect(0f, 0f, (float)iconTexture2D.width, (float)iconTexture2D.height), Vector2.zero);
this.AddCard(CollectionGetCard.CardType.Icon, sprite);
}
num++;
}
List<int> newPlateList = userData.NewPlateList;
for (int j = 0; j < newPlateList.Count; j++)
{
if (10 > num)
{
int num3 = newPlateList[j];
Texture2D plateTexture2D = this._assetManager.GetPlateTexture2D(num3);
Sprite sprite2 = Sprite.Create(plateTexture2D, new Rect(0f, 0f, (float)plateTexture2D.width, (float)plateTexture2D.height), Vector2.zero);
this.AddCard(CollectionGetCard.CardType.NamePlate, sprite2);
}
num++;
}
List<int> newTitleList = userData.NewTitleList;
for (int k = 0; k < newTitleList.Count; k++)
{
if (10 > num)
{
this.AddCard(CollectionGetCard.CardType.Title, null);
}
num++;
}
List<int> newPartnerList = userData.NewPartnerList;
for (int l = 0; l < newPartnerList.Count; l++)
{
if (10 > num)
{
int num4 = newPartnerList[l];
Texture2D partnerTexture2D = this._assetManager.GetPartnerTexture2D(num4);
Sprite sprite3 = Sprite.Create(partnerTexture2D, new Rect(0f, 0f, (float)partnerTexture2D.width, (float)partnerTexture2D.height), Vector2.zero);
this.AddCard(CollectionGetCard.CardType.Partner, sprite3);
}
num++;
}
List<int> newFrameList = userData.NewFrameList;
for (int m = 0; m < newFrameList.Count; m++)
{
if (10 > num)
{
int num5 = newFrameList[m];
Texture2D frameThumbTexture2D = this._assetManager.GetFrameThumbTexture2D(num5);
Sprite sprite4 = Sprite.Create(frameThumbTexture2D, new Rect(0f, 0f, (float)frameThumbTexture2D.width, (float)frameThumbTexture2D.height), Vector2.zero);
this.AddCard(CollectionGetCard.CardType.Frame, sprite4);
}
num++;
}
List<int> newTicketList = userData.NewTicketList;
for (int n = 0; n < newTicketList.Count; n++)
{
int id = newTicketList[n];
UserItem userItem = userData.TicketList.Find((UserItem t) => t.itemId == id);
if (userItem != null && userItem.stock != 0)
{
if (10 > num)
{
Sprite sprite5 = Resources.Load<Sprite>(Singleton<TicketManager>.Instance.GetCollectionFileName(id));
if (sprite5 != null)
{
Texture2D texture = sprite5.texture;
Sprite sprite6 = Sprite.Create(texture, new Rect(0f, 0f, (float)texture.width, (float)texture.height), Vector2.zero);
this.AddCard(CollectionGetCard.CardType.Ticket, sprite6);
}
}
num++;
}
}
for (int num6 = 0; num6 < userData.NewItemList.Count; num6++)
{
if (userData.NewItemList[num6].itemId == 14)
{
if (10 <= num)
{
break;
}
this.AddCard(CollectionGetCard.CardType.Present, null);
num++;
}
}
this._isGetMore = 10 < num;
int count = this._cardList.Count;
if (5 < count && count <= 10)
{
int num7 = 10 - count;
for (int num8 = 0; num8 < num7; num8++)
{
this.AddCard(CollectionGetCard.CardType.Blank, null);
}
}
this.SetGridLayoutGroup(this._cardList.Count);
this._getMore.Play("Idle");
return 0 < num;
}
// Token: 0x060003F6 RID: 1014 RVA: 0x0000F220 File Offset: 0x0000E420
private void PlayGetMoreAnim()
{
if (this._isGetMore)
{
this._getMore.Play("In");
}
}
// Token: 0x060003F7 RID: 1015 RVA: 0x0000F23C File Offset: 0x0000E43C
private void AddCard(CollectionGetCard.CardType type, Sprite sprite)
{
CollectionGetCard component = Object.Instantiate<GameObject>(this._cardObj, this._cardRootTran).GetComponent<CollectionGetCard>();
switch (type)
{
case CollectionGetCard.CardType.Blank:
component.BlankSet();
break;
case CollectionGetCard.CardType.NamePlate:
component.SetCard(CollectionGetCard.CardType.NamePlate, sprite);
break;
case CollectionGetCard.CardType.Icon:
component.SetCard(CollectionGetCard.CardType.Icon, sprite);
break;
case CollectionGetCard.CardType.Title:
component.SetCard(CollectionGetCard.CardType.Title, this._titleReplaceSp);
break;
case CollectionGetCard.CardType.Partner:
component.SetCard(CollectionGetCard.CardType.Partner, sprite);
break;
case CollectionGetCard.CardType.Frame:
component.SetCard(CollectionGetCard.CardType.Frame, sprite);
break;
case CollectionGetCard.CardType.Ticket:
component.SetCard(CollectionGetCard.CardType.Ticket, sprite);
break;
case CollectionGetCard.CardType.Mile:
component.SetCard(CollectionGetCard.CardType.Mile, sprite);
break;
case CollectionGetCard.CardType.Present:
component.SetCard(CollectionGetCard.CardType.Present, sprite);
break;
}
this._cardList.Add(component);
}
// Token: 0x060003F8 RID: 1016 RVA: 0x0000F2F3 File Offset: 0x0000E4F3
private void SetMileData(CollectionGetCard.MileType type, int rewardNum)
{
this._cardList[this._cardList.Count - 1].SetMileData((int)type, rewardNum);
}
// Token: 0x060003F9 RID: 1017 RVA: 0x0000F314 File Offset: 0x0000E514
public void PrepareAddAnimation(Action next)
{
this._next = next;
this._isAnimation = true;
this._cardList[this._currentIndex].Play();
this._delayCounter = 0f;
if (!this._cardList[this._currentIndex].IsBlank)
{
SoundManager.PlaySE(Cue.SE_COLLECTION_ALLGET_APPEAR, this._monitorIndex);
}
}
// Token: 0x060003FA RID: 1018 RVA: 0x0000F37C File Offset: 0x0000E57C
public void PlayAddAnimation(float deltaTime)
{
if (!this._isAnimation)
{
return;
}
if (0.05f < this._delayCounter)
{
this._delayCounter = 0f;
this._currentIndex++;
if (10 < this._cardList.Count || this._cardList.Count <= this._currentIndex)
{
this._isAnimation = false;
Action next = this._next;
if (next != null)
{
next();
}
this.PlayGetMoreAnim();
this._next = null;
return;
}
this._cardList[this._currentIndex].Play();
if (!this._cardList[this._currentIndex].IsBlank)
{
SoundManager.PlaySE(Cue.SE_COLLECTION_ALLGET_APPEAR, this._monitorIndex);
}
}
this._delayCounter += deltaTime;
}
// Token: 0x060003FB RID: 1019 RVA: 0x0000F450 File Offset: 0x0000E650
private void SetGridLayoutGroup(int collectionNum)
{
if (collectionNum == 0)
{
return;
}
this._layoutGroup.constraintCount = ((5 <= collectionNum) ? 5 : collectionNum);
}
// Token: 0x0400028A RID: 650
private const int MaxOneLineConstraintCount = 5;
// Token: 0x0400028B RID: 651
private const int MaxItemNum = 10;
// Token: 0x0400028C RID: 652
private const float DelayTime = 0.05f;
// Token: 0x0400028D RID: 653
[SerializeField]
private GameObject _cardObj;
// Token: 0x0400028E RID: 654
[SerializeField]
private Transform _cardRootTran;
// Token: 0x0400028F RID: 655
[SerializeField]
private GridLayoutGroup _layoutGroup;
// Token: 0x04000290 RID: 656
[SerializeField]
private AnimationParts _getMore;
// Token: 0x04000291 RID: 657
[SerializeField]
private Sprite _titleReplaceSp;
// Token: 0x04000292 RID: 658
private List<CollectionGetCard> _cardList = new List<CollectionGetCard>();
// Token: 0x04000293 RID: 659
private Action _next;
// Token: 0x04000294 RID: 660
private bool _isAnimation;
// Token: 0x04000295 RID: 661
private int _currentIndex;
// Token: 0x04000296 RID: 662
private float _delayCounter;
// Token: 0x04000297 RID: 663
private int _monitorIndex;
// Token: 0x04000298 RID: 664
private AssetManager _assetManager;
// Token: 0x04000299 RID: 665
private bool _isGetMore;
}

View File

@@ -0,0 +1,159 @@
using System;
using System.Collections.Generic;
using DB;
using IO;
using MAI2.Util;
using Mai2.Voice_000001;
using Manager;
using TMPro;
using UnityEngine;
// Token: 0x02000075 RID: 117
public class CollectionGetMonitor : MonitorBase
{
// Token: 0x060003FD RID: 1021 RVA: 0x0000F47C File Offset: 0x0000E67C
public override void Initialize(int monIndex, bool active)
{
base.Initialize(monIndex, active);
if (this.IsActive())
{
MechaManager.LedIf[monIndex].ButtonLedReset();
}
if (active)
{
this._buttonController.Initialize(monIndex);
this.SetVisibleBlur(!active);
}
this.SetVisible(active);
}
// Token: 0x060003FE RID: 1022 RVA: 0x0000F4BA File Offset: 0x0000E6BA
public void SetFixedWindowMessage(string message)
{
this._message.text = message;
}
// Token: 0x060003FF RID: 1023 RVA: 0x0000F4C8 File Offset: 0x0000E6C8
protected override void SetVisible(bool isActive)
{
this.Main.alpha = (float)(isActive ? 1 : 0);
this.Sub.alpha = (float)(isActive ? 1 : 0);
}
// Token: 0x06000400 RID: 1024 RVA: 0x0000F4F0 File Offset: 0x0000E6F0
public bool StartAnimation(Action next, AssetManager manager)
{
bool flag = this._list.Prepare(this.monitorIndex, manager);
if (flag)
{
UserData userData = Singleton<UserDataManager>.Instance.GetUserData((long)this.monitorIndex);
if (userData.IsGetMile() && !userData.Detail.ContentBit.IsFlagOn(ContentBitID.FirstGetMile))
{
this._windowMessageList.Add(WindowMessageID.GetMileFirst);
this._isFirstInfo = true;
}
SoundManager.PlayVoice(Cue.VO_000155, base.MonitorIndex);
Action <>9__1;
this._bgAnimator.Play("In", delegate
{
AnimationParts messageAnimator = this._messageAnimator;
string text = "In";
Action action;
if ((action = <>9__1) == null)
{
action = (<>9__1 = delegate
{
this._list.PrepareAddAnimation(next);
});
}
messageAnimator.Play(text, action, false);
}, false);
}
return flag;
}
// Token: 0x06000401 RID: 1025 RVA: 0x0000F599 File Offset: 0x0000E799
public void SetActiveButton()
{
this._buttonController.SetVisible(true, new int[1]);
}
// Token: 0x06000402 RID: 1026 RVA: 0x0000F5AD File Offset: 0x0000E7AD
public void SetButtonAnimationActive()
{
this._buttonController.SetAnimationActive(0);
}
// Token: 0x06000403 RID: 1027 RVA: 0x0000F5BB File Offset: 0x0000E7BB
public bool IsCloseInfo()
{
return this._infoTimer <= 0U;
}
// Token: 0x06000404 RID: 1028 RVA: 0x0000F5C9 File Offset: 0x0000E7C9
public bool IsActiveInfo()
{
return this._isFirstInfo;
}
// Token: 0x06000405 RID: 1029 RVA: 0x0000F5D1 File Offset: 0x0000E7D1
public void SetActiveInfo(bool isActive)
{
this._isFirstInfo = isActive;
}
// Token: 0x06000406 RID: 1030 RVA: 0x0000F5DA File Offset: 0x0000E7DA
public void SetInfoTimer(uint timer)
{
this._infoTimer = timer;
}
// Token: 0x06000407 RID: 1031 RVA: 0x0000F5E3 File Offset: 0x0000E7E3
public override void ViewUpdate()
{
if (this._infoTimer > 0U)
{
this._infoTimer -= 1U;
}
this._list.PlayAddAnimation((float)GameManager.GetGameMSecAdd() / 1000f);
}
// Token: 0x06000408 RID: 1032 RVA: 0x0000F613 File Offset: 0x0000E813
public void SetVisibleBlur(bool isActive)
{
this._blur.alpha = (float)(isActive ? 1 : 0);
}
// Token: 0x0400029A RID: 666
[SerializeField]
private CollectionGetButtonController _buttonController;
// Token: 0x0400029B RID: 667
[SerializeField]
private AnimationParts _bgAnimator;
// Token: 0x0400029C RID: 668
[SerializeField]
private CollectionGetList _list;
// Token: 0x0400029D RID: 669
[SerializeField]
private AnimationParts _messageAnimator;
// Token: 0x0400029E RID: 670
[SerializeField]
private TextMeshProUGUI _message;
// Token: 0x0400029F RID: 671
[SerializeField]
private CanvasGroup _blur;
// Token: 0x040002A0 RID: 672
public List<WindowMessageID> _windowMessageList = new List<WindowMessageID>();
// Token: 0x040002A1 RID: 673
private bool _isFirstInfo;
// Token: 0x040002A2 RID: 674
private uint _infoTimer;
}

View File

@@ -0,0 +1,282 @@
using System;
using System.Linq;
using DB;
using MAI2.Util;
using Manager;
using Process;
using UnityEngine;
// Token: 0x02000150 RID: 336
public class CollectionGetProcess : ProcessBase
{
// Token: 0x06000BE7 RID: 3047 RVA: 0x00037266 File Offset: 0x00036466
public CollectionGetProcess(ProcessDataContainer dataContainer)
: base(dataContainer)
{
}
// Token: 0x06000BE8 RID: 3048 RVA: 0x00003598 File Offset: 0x00002798
public override void OnAddProcess()
{
}
// Token: 0x06000BE9 RID: 3049 RVA: 0x00037270 File Offset: 0x00036470
public override void OnRelease()
{
if (this._monitors != null)
{
for (int i = 0; i < this._monitors.Length; i++)
{
if (this._monitors[i] != null)
{
Object.Destroy(this._monitors[i].gameObject);
}
}
}
}
// Token: 0x06000BEA RID: 3050 RVA: 0x000372BC File Offset: 0x000364BC
public override void OnStart()
{
GameObject gameObject = Resources.Load<GameObject>("Process/CollectionGet/CollectionGetProcess");
this._monitors = new CollectionGetMonitor[]
{
base.CreateInstanceAndSetParent(gameObject, this.container.LeftMonitor).GetComponent<CollectionGetMonitor>(),
base.CreateInstanceAndSetParent(gameObject, this.container.RightMonitor).GetComponent<CollectionGetMonitor>()
};
this._isEntry = new bool[this._monitors.Length];
this._isComplete = new bool[this._monitors.Length];
for (int i = 0; i < this._monitors.Length; i++)
{
this._isEntry[i] = Singleton<UserDataManager>.Instance.GetUserData((long)i).IsEntry;
this._isComplete[i] = !this._isEntry[i];
this._monitors[i].Initialize(i, this._isEntry[i]);
this._monitors[i].SetFixedWindowMessage(WindowMessageID.CollectionGetAnnounceInfo.GetName());
bool flag = this._monitors[i].StartAnimation(new Action(this.Init), this.container.assetManager);
if ((!this._isComplete[i] && !flag) || Singleton<UserDataManager>.Instance.GetUserData((long)i).IsGuest())
{
this._isComplete[i] = true;
}
}
if (this._isComplete[0] && this._isComplete[1])
{
this._state = CollectionGetProcess.State.GotoEnd;
return;
}
this.SetMessege();
this._state = CollectionGetProcess.State.StartAnim;
this.container.processManager.NotificationFadeIn(false);
}
// Token: 0x06000BEB RID: 3051 RVA: 0x00037434 File Offset: 0x00036634
private void Init()
{
if (this._isPassedInit)
{
return;
}
this.container.processManager.PrepareTimer(10, 0, false, new Action(this.ChangeFinishState), true);
for (int i = 0; i < this._monitors.Length; i++)
{
if (this._isComplete[i])
{
this.container.processManager.SetVisibleTimer(i, false);
}
else
{
this._monitors[i].SetActiveButton();
this.ViewFirstInfo(i);
}
}
this._isPassedInit = true;
this._state = CollectionGetProcess.State.Update;
}
// Token: 0x06000BEC RID: 3052 RVA: 0x000374C0 File Offset: 0x000366C0
public override void OnUpdate()
{
base.OnUpdate();
switch (this._state)
{
case CollectionGetProcess.State.GotoEnd:
this.GotoSkipNextProcess();
break;
case CollectionGetProcess.State.Finish:
this.GotoNextProcess();
break;
}
for (int i = 0; i < this._monitors.Length; i++)
{
if (this._isEntry[i])
{
this._monitors[i].ViewUpdate();
}
}
}
// Token: 0x06000BED RID: 3053 RVA: 0x00037538 File Offset: 0x00036738
private void SetMessege()
{
if (!this._isComplete.Contains(false))
{
this.ChangeFinishState();
this.container.processManager.ClearTimeoutAction();
return;
}
for (int i = 0; i < this._monitors.Length; i++)
{
if (this._isEntry[i] && this._isComplete[i])
{
this.container.processManager.EnqueueMessage(i, WindowMessageID.PlayPreparationWait, null);
this._monitors[i].SetVisibleBlur(true);
this.container.processManager.SetVisibleTimer(i, false);
}
}
}
// Token: 0x06000BEE RID: 3054 RVA: 0x000375C8 File Offset: 0x000367C8
protected override void UpdateInput(int monitorId)
{
if (!this._isEntry[monitorId] || this._isComplete[monitorId])
{
return;
}
switch (this._state)
{
case CollectionGetProcess.State.Init:
case CollectionGetProcess.State.GotoEnd:
case CollectionGetProcess.State.StartAnim:
case CollectionGetProcess.State.Wait:
case CollectionGetProcess.State.Finish:
case CollectionGetProcess.State.Released:
break;
case CollectionGetProcess.State.Update:
this.UpdateDetailInput(monitorId);
break;
default:
return;
}
}
// Token: 0x06000BEF RID: 3055 RVA: 0x0003761C File Offset: 0x0003681C
private void UpdateDetailInput(int monitorId)
{
if (this._monitors[monitorId].IsActiveInfo())
{
if (this._monitors[monitorId].IsCloseInfo())
{
this.container.processManager.ForcedCloseWindow(monitorId);
this._monitors[monitorId]._windowMessageList.RemoveAt(0);
this.ViewFirstInfo(monitorId);
}
return;
}
if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04))
{
if (this._isComplete[monitorId])
{
return;
}
this._isComplete[monitorId] = true;
this._monitors[monitorId].SetButtonAnimationActive();
this.SetMessege();
base.SetInputLockInfo(monitorId, 100f);
}
}
// Token: 0x06000BF0 RID: 3056 RVA: 0x00003598 File Offset: 0x00002798
public override void OnLateUpdate()
{
}
// Token: 0x06000BF1 RID: 3057 RVA: 0x000376AF File Offset: 0x000368AF
private void ChangeFinishState()
{
if (this._isFinished)
{
return;
}
this._state = CollectionGetProcess.State.Finish;
this._isFinished = true;
}
// Token: 0x06000BF2 RID: 3058 RVA: 0x000376C8 File Offset: 0x000368C8
private void GotoSkipNextProcess()
{
this.container.processManager.AddProcess(new CollectionProcess(this.container), 50);
this._state = CollectionGetProcess.State.Released;
this.container.processManager.ReleaseProcess(this);
}
// Token: 0x06000BF3 RID: 3059 RVA: 0x00037700 File Offset: 0x00036900
private void GotoNextProcess()
{
this.container.processManager.AddProcess(new FadeProcess(this.container, this, new CollectionProcess(this.container), FadeProcess.FadeType.Type3), 50);
this.container.processManager.ForceTimeUp();
this.container.processManager.SetVisibleTimers(false);
this._state = CollectionGetProcess.State.Released;
}
// Token: 0x06000BF4 RID: 3060 RVA: 0x00037760 File Offset: 0x00036960
private void ViewFirstInfo(int monitorId)
{
if (this._monitors[monitorId]._windowMessageList.Count > 0)
{
UserData userData = Singleton<UserDataManager>.Instance.GetUserData((long)monitorId);
this.container.processManager.EnqueueMessage(monitorId, this._monitors[monitorId]._windowMessageList[0], WindowPositionID.Middle, null);
WindowMessageID windowMessageID = this._monitors[monitorId]._windowMessageList[0];
if (windowMessageID == WindowMessageID.GetMileFirst)
{
this._monitors[monitorId].SetInfoTimer(240U);
userData.Detail.ContentBit.SetFlag(ContentBitID.FirstGetMile, true);
}
}
else
{
this._monitors[monitorId].SetActiveInfo(false);
}
this._state = CollectionGetProcess.State.Update;
}
// Token: 0x06000BF5 RID: 3061 RVA: 0x00003598 File Offset: 0x00002798
private void CreateDummyData()
{
}
// Token: 0x04000934 RID: 2356
private CollectionGetMonitor[] _monitors;
// Token: 0x04000935 RID: 2357
private bool[] _isEntry;
// Token: 0x04000936 RID: 2358
private CollectionGetProcess.State _state;
// Token: 0x04000937 RID: 2359
private bool _isPassedInit;
// Token: 0x04000938 RID: 2360
private bool[] _isComplete;
// Token: 0x04000939 RID: 2361
private bool _isFinished;
// Token: 0x02000A06 RID: 2566
private enum State : byte
{
// Token: 0x040062B8 RID: 25272
Init,
// Token: 0x040062B9 RID: 25273
GotoEnd,
// Token: 0x040062BA RID: 25274
StartAnim,
// Token: 0x040062BB RID: 25275
Wait,
// Token: 0x040062BC RID: 25276
Update,
// Token: 0x040062BD RID: 25277
Finish,
// Token: 0x040062BE RID: 25278
Released
}
}

View File

@@ -0,0 +1,338 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Manager;
// Token: 0x02000144 RID: 324
public class CollectionInfo
{
// Token: 0x06000AF3 RID: 2803 RVA: 0x0002E118 File Offset: 0x0002D318
private CollectionData GetData(int category, int index)
{
int num = this._collectionIdList[category][index];
return this.GetData(num);
}
// Token: 0x06000AF4 RID: 2804 RVA: 0x0002E140 File Offset: 0x0002D340
private CollectionData GetData(int targetId)
{
return this._collectionData.FirstOrDefault<CollectionData>((CollectionData c) => c.GetID() == targetId);
}
// Token: 0x17000112 RID: 274
// (get) Token: 0x06000AF5 RID: 2805 RVA: 0x0002E171 File Offset: 0x0002D371
// (set) Token: 0x06000AF6 RID: 2806 RVA: 0x0002E179 File Offset: 0x0002D379
public int Index
{
get
{
return this._index;
}
set
{
this._index = value;
}
}
// Token: 0x17000113 RID: 275
// (get) Token: 0x06000AF7 RID: 2807 RVA: 0x0002E182 File Offset: 0x0002D382
// (set) Token: 0x06000AF8 RID: 2808 RVA: 0x0002E18A File Offset: 0x0002D38A
public int CategoryIndex
{
get
{
return this._categoryIndex;
}
set
{
this._categoryIndex = value;
}
}
// Token: 0x06000AF9 RID: 2809 RVA: 0x0002E193 File Offset: 0x0002D393
public string CategoryName(int categoryIndex)
{
return this._tabData[categoryIndex].Title;
}
// Token: 0x17000114 RID: 276
// (get) Token: 0x06000AFA RID: 2810 RVA: 0x0002E1A6 File Offset: 0x0002D3A6
// (set) Token: 0x06000AFB RID: 2811 RVA: 0x0002E1AE File Offset: 0x0002D3AE
public List<CollectionTabData> TabData
{
get
{
return this._tabData;
}
set
{
this._tabData = value;
}
}
// Token: 0x06000AFC RID: 2812 RVA: 0x0002E1B8 File Offset: 0x0002D3B8
public void Initialize(List<ReadOnlyCollection<int>> collectionIdList, List<CollectionData> data, List<CollectionTabData> tabDatas, ICollectionProcess process, ICollectionMonitor monitor, bool newGet, int setItemId)
{
this._index = 0;
this._categoryIndex = 0;
this._collectionIdList = new List<ReadOnlyCollection<int>>();
this._process = process;
this._monitor = monitor;
this._tabData = tabDatas;
this._collectionIdList = collectionIdList;
this._collectionData = data.AsReadOnly();
if (!newGet)
{
for (int i = 0; i < this._collectionIdList.Count; i++)
{
for (int j = 0; j < this._collectionIdList[i].Count; j++)
{
if (this._collectionIdList[i][j] == setItemId)
{
this._categoryIndex = i;
this._index = j;
break;
}
}
}
}
}
// Token: 0x06000AFD RID: 2813 RVA: 0x0002E264 File Offset: 0x0002D464
public void SetCategoryIndexAndItemIndexWithItemId(int setItemId)
{
for (int i = 0; i < this._collectionIdList.Count; i++)
{
for (int j = 0; j < this._collectionIdList[i].Count; j++)
{
if (this._collectionIdList[i][j] == setItemId)
{
this._categoryIndex = i;
this._index = j;
break;
}
}
}
}
// Token: 0x06000AFE RID: 2814 RVA: 0x00003598 File Offset: 0x00002798
public void RefreshIndex()
{
}
// Token: 0x06000AFF RID: 2815 RVA: 0x0002E2C8 File Offset: 0x0002D4C8
private void ScrollRight()
{
if (this._index + 1 < this.GetIndexNum())
{
this._index++;
return;
}
this._categoryIndex = ((this._categoryIndex + 1 < this.GetCategoryNum()) ? (this._categoryIndex + 1) : (this._categoryIndex = 0));
this._index = 0;
}
// Token: 0x06000B00 RID: 2816 RVA: 0x0002E328 File Offset: 0x0002D528
private void ScrollLeft()
{
if (0 <= this._index - 1)
{
this._index--;
return;
}
this._categoryIndex = ((this._categoryIndex - 1 < 0) ? (this.GetCategoryNum() - 1) : (this._categoryIndex - 1));
this._index = this.GetIndexNum() - 1;
}
// Token: 0x06000B01 RID: 2817 RVA: 0x0002E380 File Offset: 0x0002D580
private void ChangeCategoryRight()
{
if (this._categoryIndex + 1 < this.GetCategoryNum())
{
this._categoryIndex++;
}
else
{
this._categoryIndex = 0;
}
this._index = 0;
}
// Token: 0x06000B02 RID: 2818 RVA: 0x0002E3B0 File Offset: 0x0002D5B0
private void ChangeCategoryLeft()
{
if (this._categoryIndex - 1 < 0)
{
this._categoryIndex = this.GetCategoryNum() - 1;
}
else
{
this._categoryIndex--;
}
this._index = this.GetIndexNum() - 1;
}
// Token: 0x06000B03 RID: 2819 RVA: 0x0002E3E9 File Offset: 0x0002D5E9
public int GetAllCollectionNum()
{
return this._collectionData.Count<CollectionData>((CollectionData c) => c.IsHave);
}
// Token: 0x06000B04 RID: 2820 RVA: 0x0002E415 File Offset: 0x0002D615
private int GetCategoryNum()
{
return this._collectionIdList.Count;
}
// Token: 0x06000B05 RID: 2821 RVA: 0x0002E424 File Offset: 0x0002D624
public int GetCurrentIndex()
{
int num = 0;
for (int i = 0; i < this._categoryIndex; i++)
{
num += this._collectionIdList[i].Count;
}
return this._index + num;
}
// Token: 0x06000B06 RID: 2822 RVA: 0x0002E460 File Offset: 0x0002D660
public int GetIndexNum()
{
return this._collectionIdList[this.CategoryIndex].Count;
}
// Token: 0x06000B07 RID: 2823 RVA: 0x0002E478 File Offset: 0x0002D678
public bool IsHaveNewIcon()
{
return this._collectionData.Any<CollectionData>((CollectionData data) => data.IsNew);
}
// Token: 0x06000B08 RID: 2824 RVA: 0x0002E4A4 File Offset: 0x0002D6A4
public CollectionData GetCurrentCenterCollectionData()
{
return this.GetData(this.CategoryIndex, this.Index);
}
// Token: 0x06000B09 RID: 2825 RVA: 0x0002E4B8 File Offset: 0x0002D6B8
public CollectionData GetCollectionById(int targetId)
{
return this.GetData(targetId);
}
// Token: 0x06000B0A RID: 2826 RVA: 0x0002E4C4 File Offset: 0x0002D6C4
public CollectionData GetCollection(int diffIndex)
{
int i = this._index + diffIndex;
int num = this._categoryIndex;
while (i >= this._collectionIdList[num].Count)
{
i -= this._collectionIdList[num].Count;
num = ((num + 1 < this._collectionIdList.Count) ? (num + 1) : 0);
}
while (i < 0)
{
num = ((num - 1 >= 0) ? (num - 1) : (this._collectionIdList.Count - 1));
i = this._collectionIdList[num].Count + i;
}
return this.GetData(num, i);
}
// Token: 0x06000B0B RID: 2827 RVA: 0x0002E560 File Offset: 0x0002D760
public bool IsCollectionBoundary(int diffIndex, out int overCount)
{
int i = this._index + diffIndex;
int num = this._categoryIndex;
overCount = 0;
if (i >= this._collectionIdList[num].Count)
{
while (i >= this._collectionIdList[num].Count)
{
i = i - this._collectionIdList[num].Count - 1;
num = ((num + 1 < this._collectionIdList.Count) ? (num + 1) : 0);
overCount++;
}
}
else if (i < -1)
{
while (i < -1)
{
overCount--;
num = ((num - 1 > 0) ? (num - 1) : (this._collectionIdList.Count - 1));
i = this._collectionIdList[num].Count + 1 + i;
}
}
return i == this._collectionIdList[num].Count || i == -1;
}
// Token: 0x06000B0C RID: 2828 RVA: 0x0002E638 File Offset: 0x0002D838
public bool CollectionListLeft(bool isLongTap)
{
this.ScrollRight();
return this._monitor.ScrollCollectionListLeft(isLongTap);
}
// Token: 0x06000B0D RID: 2829 RVA: 0x0002E64C File Offset: 0x0002D84C
public bool CollectionListRight(bool isLongTap)
{
this.ScrollLeft();
return this._monitor.ScrollCollectionListRight(isLongTap);
}
// Token: 0x06000B0E RID: 2830 RVA: 0x0002E660 File Offset: 0x0002D860
public void ShiftCategoryRight()
{
this.ChangeCategoryLeft();
this._monitor.ScrollCategoryLeft();
}
// Token: 0x06000B0F RID: 2831 RVA: 0x0002E673 File Offset: 0x0002D873
public void ShiftCategoryLeft()
{
this.ChangeCategoryRight();
this._monitor.ScrollCategoryRight();
}
// Token: 0x06000B10 RID: 2832 RVA: 0x0002E688 File Offset: 0x0002D888
public void CheckSetButton(int equipItemId)
{
CollectionData currentCenterCollectionData = this.GetCurrentCenterCollectionData();
if (currentCenterCollectionData == null || !currentCenterCollectionData.IsHave || equipItemId == currentCenterCollectionData.ID)
{
this._monitor.SetVisibleButton(false, new int[] { 2 });
return;
}
this._monitor.SetVisibleButton(true, new int[] { 2 });
}
// Token: 0x06000B11 RID: 2833 RVA: 0x0002E6E0 File Offset: 0x0002D8E0
public void UpdateFavoriteDetail(UserData.Collection type)
{
CollectionData currentCenterCollectionData = this.GetCurrentCenterCollectionData();
if (currentCenterCollectionData != null && !currentCenterCollectionData.IsFavorite)
{
this._monitor.UpdateFavoriteCollection(type, currentCenterCollectionData.IsFavorite);
}
}
// Token: 0x040008F9 RID: 2297
private List<ReadOnlyCollection<int>> _collectionIdList;
// Token: 0x040008FA RID: 2298
private ReadOnlyCollection<CollectionData> _collectionData;
// Token: 0x040008FB RID: 2299
private int _index;
// Token: 0x040008FC RID: 2300
private int _categoryIndex;
// Token: 0x040008FD RID: 2301
private List<CollectionTabData> _tabData = new List<CollectionTabData>();
// Token: 0x040008FE RID: 2302
private ICollectionProcess _process;
// Token: 0x040008FF RID: 2303
private ICollectionMonitor _monitor;
}

View File

@@ -0,0 +1,31 @@
using System;
using Manager;
using UI;
using UnityEngine;
// Token: 0x02000061 RID: 97
public class CollectionInfoButtonController : ButtonControllerBase
{
// Token: 0x0600030B RID: 779 RVA: 0x0000C3F8 File Offset: 0x0000B5F8
public override void Initialize(int monitorIndex)
{
base.Initialize(monitorIndex);
this.CommonButtons = new CommonButtonObject[this._positions.Length];
ButtonControllerBase.FlatButtonType flatButtonType = ButtonControllerBase.FlatButtonType.Skip;
this.CommonButtons[0] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._positions[0]);
this.CommonButtons[0].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(flatButtonType).LedColor);
this.CommonButtons[0].SetSymbol(ButtonControllerBase.GetFlatButtonParam(flatButtonType).Image, false);
this.CommonButtons[0].SetSE(ButtonControllerBase.GetFlatButtonParam(flatButtonType).Cue);
}
// Token: 0x0600030C RID: 780 RVA: 0x0000C48C File Offset: 0x0000B68C
public void ChangeFlatButtonSymbol(int index, int spriteNum)
{
if (this.CommonButtons[index] != null)
{
this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Image, false);
this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).LedColor, false);
this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Cue);
}
}
}

View File

@@ -0,0 +1,104 @@
using System;
using UnityEngine;
// Token: 0x02000062 RID: 98
public class CollectionListAnimationController : MonoBehaviour
{
// Token: 0x0600030E RID: 782 RVA: 0x0000C4F3 File Offset: 0x0000B6F3
public void Initialize()
{
this._listAnimator.Rebind();
}
// Token: 0x0600030F RID: 783 RVA: 0x0000C500 File Offset: 0x0000B700
public void SetEnable(bool isActive)
{
this._listAnimator.enabled = isActive;
}
// Token: 0x06000310 RID: 784 RVA: 0x0000C50E File Offset: 0x0000B70E
public void SetFloat(float rate)
{
this._listAnimator.SetFloat(CollectionListAnimationController.HashValueSyncTimer, rate);
}
// Token: 0x06000311 RID: 785 RVA: 0x0000C524 File Offset: 0x0000B724
public float GetAnimationLength()
{
return this._listAnimator.GetCurrentAnimatorStateInfo(0).length;
}
// Token: 0x06000312 RID: 786 RVA: 0x0000C548 File Offset: 0x0000B748
public void SetSlideOutAnim(CollectionListAnimationController.AnimationType type)
{
switch (type)
{
case CollectionListAnimationController.AnimationType.ToRight:
this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideOutToRight);
return;
case CollectionListAnimationController.AnimationType.ToLeft:
this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideOutToLeft);
return;
case CollectionListAnimationController.AnimationType.ToUpper:
this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideOutToLower);
return;
default:
return;
}
}
// Token: 0x06000313 RID: 787 RVA: 0x0000C59C File Offset: 0x0000B79C
public void SetSlideInAnim(CollectionListAnimationController.AnimationType type)
{
switch (type)
{
case CollectionListAnimationController.AnimationType.ToRight:
this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideInToRight);
return;
case CollectionListAnimationController.AnimationType.ToLeft:
this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideInToLeft);
return;
case CollectionListAnimationController.AnimationType.ToUpper:
this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideInToUpper);
return;
default:
return;
}
}
// Token: 0x040001FE RID: 510
private static readonly int HashValueSyncTimer = Animator.StringToHash("SyncTimer");
// Token: 0x040001FF RID: 511
private static readonly int HashValueSlideInToLeft = Animator.StringToHash("IsSlideInToLeft");
// Token: 0x04000200 RID: 512
private static readonly int HashValueSlideInToRight = Animator.StringToHash("IsSlideInToRight");
// Token: 0x04000201 RID: 513
private static readonly int HashValueSlideOutToLeft = Animator.StringToHash("IsSlideOutToLeft");
// Token: 0x04000202 RID: 514
private static readonly int HashValueSlideOutToRight = Animator.StringToHash("IsSlideOutToRight");
// Token: 0x04000203 RID: 515
private static readonly int HashValueSlideInToUpper = Animator.StringToHash("IsSlideInToUpper");
// Token: 0x04000204 RID: 516
private static readonly int HashValueSlideOutToLower = Animator.StringToHash("IsSlideOutToLower");
// Token: 0x04000205 RID: 517
[SerializeField]
private Animator _listAnimator;
// Token: 0x02000966 RID: 2406
public enum AnimationType
{
// Token: 0x04005F9E RID: 24478
ToRight,
// Token: 0x04005F9F RID: 24479
ToLeft,
// Token: 0x04005FA0 RID: 24480
ToUpper
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,126 @@
using System;
using Manager;
using TMPro;
using UnityEngine;
// Token: 0x02000059 RID: 89
public class CollectionName : MonoBehaviour
{
// Token: 0x060002C0 RID: 704 RVA: 0x00009B80 File Offset: 0x00008D80
public void Prepare(CollectionGenreID type, string collectionName, string acquitionText)
{
this.SetVisibleSplitBg(type == CollectionGenreID.Title || type == CollectionGenreID.Exit || type == CollectionGenreID.ExitLeft);
this.SetVisibleSplitSet(type != CollectionGenreID.Title && type != CollectionGenreID.Exit && type > CollectionGenreID.ExitLeft);
if (type == CollectionGenreID.Title || type == CollectionGenreID.Exit || type == CollectionGenreID.ExitLeft)
{
this.SetCaptionMiddleText(acquitionText);
this.SetCollectionName(acquitionText);
return;
}
this.SetCollectionName(collectionName);
this.SetAcquitionText(acquitionText);
}
// Token: 0x060002C1 RID: 705 RVA: 0x00009BDF File Offset: 0x00008DDF
public void SetVisable(bool visable)
{
base.gameObject.SetActive(visable);
}
// Token: 0x060002C2 RID: 706 RVA: 0x00009BED File Offset: 0x00008DED
private void SetVisibleSplitBg(bool isActive)
{
if (this._offTitleObj == null)
{
return;
}
this._offTitleObj.SetActive(isActive);
}
// Token: 0x060002C3 RID: 707 RVA: 0x00009C0A File Offset: 0x00008E0A
private void SetVisibleSplitSet(bool isActive)
{
if (this._splitSet != null)
{
this._splitSet.alpha = (float)(isActive ? 1 : 0);
}
}
// Token: 0x060002C4 RID: 708 RVA: 0x00009C2D File Offset: 0x00008E2D
private void SetCollectionName(string collectionName)
{
if (this._collectionNameText == null)
{
return;
}
this._collectionNameText.SetData(collectionName);
this._collectionNameText.ResetPosition();
}
// Token: 0x060002C5 RID: 709 RVA: 0x00009C55 File Offset: 0x00008E55
private void SetCaptionMiddleText(string conditionText)
{
if (this._captionMiddleText == null)
{
return;
}
this._captionMiddleText.text = conditionText;
}
// Token: 0x060002C6 RID: 710 RVA: 0x00009C72 File Offset: 0x00008E72
private void SetAcquitionText(string conditionText)
{
if (this._acquitionText == null)
{
return;
}
this._acquitionText.SetData(conditionText);
this._acquitionText.ResetPosition();
}
// Token: 0x060002C7 RID: 711 RVA: 0x00009C9A File Offset: 0x00008E9A
public void ViewUpdate()
{
if (this._collectionNameText != null)
{
this._collectionNameText.ViewUpdate();
}
if (this._acquitionText != null)
{
this._acquitionText.ViewUpdate();
}
}
// Token: 0x060002C8 RID: 712 RVA: 0x00009CCE File Offset: 0x00008ECE
public void ResetPosition()
{
if (this._collectionNameText != null)
{
this._collectionNameText.ResetPosition();
}
if (this._acquitionText != null)
{
this._acquitionText.ResetPosition();
}
}
// Token: 0x040001D2 RID: 466
[SerializeField]
private GameObject _offTitleObj;
// Token: 0x040001D3 RID: 467
[SerializeField]
private TextMeshProUGUI _captionMiddleText;
// Token: 0x040001D4 RID: 468
[SerializeField]
private CanvasGroup _splitSet;
// Token: 0x040001D5 RID: 469
[SerializeField]
private CustomTextScroll _collectionNameText;
// Token: 0x040001D6 RID: 470
[SerializeField]
private CustomTextScroll _acquitionText;
}

View File

@@ -0,0 +1,180 @@
using System;
using UI;
using UnityEngine;
// Token: 0x0200005A RID: 90
public class CollectionOtherParts : MonoBehaviour
{
// Token: 0x060002CA RID: 714 RVA: 0x00009D04 File Offset: 0x00008F04
public void SetOtherParts(bool isHave, bool isActive, bool isEquipment, bool isRandom, bool isSpecial, int monitorIndex)
{
this._isActive = isActive;
this._lockObj.SetActive(!this._isActive);
if (this._setFrameObj != null)
{
GameObject setFrameObj = this._setFrameObj;
if (setFrameObj != null)
{
setFrameObj.SetActive(this._isActive);
}
}
if (this._setFrameObj != null && isSpecial)
{
GameObject setSpecialObj = this._setSpecialObj;
if (setSpecialObj != null)
{
setSpecialObj.SetActive(true);
}
}
else
{
GameObject setSpecialObj2 = this._setSpecialObj;
if (setSpecialObj2 != null)
{
setSpecialObj2.SetActive(false);
}
}
if (this._favoriteButtonImage != null)
{
this._favoriteButtonImage.gameObject.transform.parent.gameObject.SetActive(false);
}
if (this._favoriteUI != null)
{
this._favoriteUI.SetActive(false);
}
this.SetVisibleSetIcon(isEquipment);
}
// Token: 0x060002CB RID: 715 RVA: 0x00009DD8 File Offset: 0x00008FD8
public void SetOtherParts(bool isHave, bool isActive, bool isEquipment, bool isRandom, bool isSpecial, bool isFavorite, int monitorIndex)
{
this._isActive = isActive;
this._lockObj.SetActive(!this._isActive);
if (this._setFrameObj != null)
{
GameObject setFrameObj = this._setFrameObj;
if (setFrameObj != null)
{
setFrameObj.SetActive(this._isActive);
}
}
if (this._setFrameObj != null && isSpecial)
{
GameObject setSpecialObj = this._setSpecialObj;
if (setSpecialObj != null)
{
setSpecialObj.SetActive(true);
}
}
else
{
GameObject setSpecialObj2 = this._setSpecialObj;
if (setSpecialObj2 != null)
{
setSpecialObj2.SetActive(false);
}
}
if (this._favoriteButtonImage != null)
{
this._favoriteButtonImage.gameObject.transform.parent.gameObject.SetActive(true);
}
if (this._favoriteUI != null)
{
this._favoriteUI.SetActive(isFavorite);
}
this.SetVisibleSetIcon(isEquipment);
}
// Token: 0x060002CC RID: 716 RVA: 0x00009EAD File Offset: 0x000090AD
public void UpdateView(float syncTimer)
{
bool isActive = this._isActive;
}
// Token: 0x060002CD RID: 717 RVA: 0x00009EB6 File Offset: 0x000090B6
public void SetVisibleSetIcon(bool isEquipment)
{
if (!this._isActive)
{
return;
}
GameObject setFrameObj = this._setFrameObj;
if (setFrameObj == null)
{
return;
}
setFrameObj.SetActive(isEquipment);
}
// Token: 0x060002CE RID: 718 RVA: 0x00009ED2 File Offset: 0x000090D2
public bool IsActive()
{
return this._canvasGroup.alpha != 0f;
}
// Token: 0x060002CF RID: 719 RVA: 0x00009EE9 File Offset: 0x000090E9
public void SetVisible(bool isVisible)
{
this._canvasGroup.alpha = (float)(isVisible ? 1 : 0);
}
// Token: 0x060002D0 RID: 720 RVA: 0x00009EFE File Offset: 0x000090FE
public void SetActiveFavoriteCollection(bool isActive)
{
if (this._favoriteButtonImage != null)
{
this._favoriteButtonImage.gameObject.SetActive(isActive);
}
if (this._favoriteUI != null)
{
this._favoriteUI.SetActive(isActive);
}
}
// Token: 0x060002D1 RID: 721 RVA: 0x00009F39 File Offset: 0x00009139
public void UpdateFavoriteCollection(CollectionChainCard.FavoriteType type)
{
if (this._favoriteButtonImage != null)
{
this._favoriteButtonImage.ChangeSprite((int)type);
}
if (this._favoriteUI != null)
{
this._favoriteUI.SetActive(type == CollectionChainCard.FavoriteType.ON);
}
}
// Token: 0x040001D7 RID: 471
[SerializeField]
[Header("その他のパーツ")]
private CanvasGroup _canvasGroup;
// Token: 0x040001D8 RID: 472
[SerializeField]
private GameObject _lockObj;
// Token: 0x040001D9 RID: 473
[SerializeField]
[Header("装備フレーム")]
private GameObject _setFrameObj;
// Token: 0x040001DA RID: 474
[SerializeField]
[Header("キラ属性")]
private GameObject _setSpecialObj;
// Token: 0x040001DB RID: 475
[SerializeField]
[Header("お気に入り")]
private MultipleImage _favoriteButtonImage;
// Token: 0x040001DC RID: 476
[SerializeField]
private GameObject _favoriteUI;
// Token: 0x040001DD RID: 477
private StateAnimController _controller;
// Token: 0x040001DE RID: 478
private bool _isActive;
}

View File

@@ -0,0 +1,300 @@
using System;
using Manager;
using UI;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x0200005B RID: 91
public class CollectionParts : MonoBehaviour
{
// Token: 0x060002D3 RID: 723 RVA: 0x00009F72 File Offset: 0x00009172
public void SetIconTexture(Texture2D icon)
{
if (this._iconImage != null)
{
this._iconImage.texture = icon;
}
}
// Token: 0x060002D4 RID: 724 RVA: 0x00009F8E File Offset: 0x0000918E
public void SetPlateSprite(Sprite plate)
{
if (this._plateImage != null)
{
this._plateImage.sprite = plate;
}
}
// Token: 0x060002D5 RID: 725 RVA: 0x00009FAA File Offset: 0x000091AA
public void SetTitle(string title, Sprite titleBaseSprite)
{
if (this._titleScrollText != null)
{
this._titleScrollText.SetData(title);
this._titleScrollText.ResetPosition();
this._titleBaseImage.sprite = titleBaseSprite;
}
}
// Token: 0x060002D6 RID: 726 RVA: 0x00009FDD File Offset: 0x000091DD
public void SetPartnerTexture(Texture2D partner)
{
if (this._partnerImage != null)
{
this._partnerImage.texture = partner;
}
}
// Token: 0x060002D7 RID: 727 RVA: 0x00009FF9 File Offset: 0x000091F9
public void SetFrameTexture(Texture2D frame)
{
if (this._frameImage != null)
{
this._frameImage.texture = frame;
}
}
// Token: 0x060002D8 RID: 728 RVA: 0x0000A018 File Offset: 0x00009218
public void SetTicketTexture(Texture2D texture)
{
if (this._ticketImage != null)
{
Sprite sprite = Sprite.Create(texture, new Rect(0f, 0f, (float)texture.width, (float)texture.height), new Vector2(0.5f, 0.5f));
this._ticketImage.sprite = sprite;
}
}
// Token: 0x060002D9 RID: 729 RVA: 0x0000A072 File Offset: 0x00009272
public void SetIntimateItemTexture(int index)
{
if (this._intimateItemImage != null)
{
this._intimateItemImage.ChangeSprite(index);
}
}
// Token: 0x060002DA RID: 730 RVA: 0x0000A090 File Offset: 0x00009290
public void SetVisibleCollectionParts(CollectionGenreID type, bool isSpecial)
{
if (this._setSpecialObj != null)
{
this._setSpecialObj.alpha = 0f;
}
switch (type)
{
case CollectionGenreID.ExitLeft:
this._frameImage.gameObject.SetActive(false);
this._plateObj.alpha = 0f;
this._titleObj.alpha = 0f;
this._frameObj.alpha = 0f;
this._partnerImage.gameObject.SetActive(false);
this._iconImage.gameObject.SetActive(true);
this._ticketObj.SetActive(false);
this._intimateItemObj.SetActive(false);
break;
case CollectionGenreID.Title:
this._frameImage.gameObject.SetActive(false);
this._iconImage.gameObject.SetActive(false);
this._partnerImage.gameObject.SetActive(false);
this._ticketObj.SetActive(false);
this._intimateItemObj.SetActive(false);
this._plateObj.alpha = 0f;
this._titleObj.alpha = 1f;
this._frameObj.alpha = 0f;
return;
case CollectionGenreID.Icon:
this._frameImage.gameObject.SetActive(false);
this._plateObj.alpha = 0f;
this._titleObj.alpha = 0f;
this._frameObj.alpha = 0f;
this._partnerImage.gameObject.SetActive(false);
this._iconImage.gameObject.SetActive(true);
this._ticketObj.SetActive(false);
this._intimateItemObj.SetActive(false);
return;
case CollectionGenreID.Plate:
this._frameImage.gameObject.SetActive(false);
this._iconImage.gameObject.SetActive(false);
this._partnerImage.gameObject.SetActive(false);
this._ticketObj.SetActive(false);
this._intimateItemObj.SetActive(false);
this._titleObj.alpha = 0f;
this._plateObj.alpha = 1f;
this._frameObj.alpha = 0f;
return;
case CollectionGenreID.Frame:
this._frameImage.gameObject.SetActive(true);
this._partnerImage.gameObject.SetActive(false);
this._ticketObj.SetActive(false);
this._intimateItemObj.SetActive(false);
this._titleObj.alpha = 0f;
this._plateObj.alpha = 0f;
this._frameObj.alpha = 1f;
this._iconImage.gameObject.SetActive(false);
if (this._setSpecialObj != null && isSpecial)
{
this._setSpecialObj.alpha = 1f;
this._setSpecialObj.gameObject.SetActive(true);
return;
}
break;
case CollectionGenreID.Partner:
this._frameImage.gameObject.SetActive(false);
this._iconImage.gameObject.SetActive(false);
this._titleObj.alpha = 0f;
this._plateObj.alpha = 0f;
this._frameObj.alpha = 0f;
this._partnerImage.gameObject.SetActive(true);
this._ticketObj.SetActive(false);
this._intimateItemObj.SetActive(false);
return;
case CollectionGenreID.Shop:
this._frameImage.gameObject.SetActive(false);
this._iconImage.gameObject.SetActive(false);
this._titleObj.alpha = 0f;
this._plateObj.alpha = 0f;
this._frameObj.alpha = 0f;
this._partnerImage.gameObject.SetActive(false);
this._ticketObj.SetActive(false);
this._intimateItemObj.SetActive(false);
return;
case CollectionGenreID.Exit:
this._frameImage.gameObject.SetActive(false);
this._plateObj.alpha = 0f;
this._titleObj.alpha = 0f;
this._frameObj.alpha = 0f;
this._partnerImage.gameObject.SetActive(false);
this._iconImage.gameObject.SetActive(true);
this._ticketObj.SetActive(false);
this._intimateItemObj.SetActive(false);
return;
default:
return;
}
}
// Token: 0x060002DB RID: 731 RVA: 0x0000A4FC File Offset: 0x000096FC
public void SetVisibleTicketParts()
{
this._frameImage.gameObject.SetActive(false);
this._iconImage.gameObject.SetActive(false);
this._titleObj.alpha = 0f;
this._plateObj.alpha = 0f;
this._frameObj.alpha = 0f;
this._partnerImage.gameObject.SetActive(false);
this._ticketObj.SetActive(true);
this._intimateItemObj.SetActive(false);
}
// Token: 0x060002DC RID: 732 RVA: 0x0000A584 File Offset: 0x00009784
public void SetVisibleIntimateItemParts()
{
this._frameImage.gameObject.SetActive(false);
this._iconImage.gameObject.SetActive(false);
this._titleObj.alpha = 0f;
this._plateObj.alpha = 0f;
this._frameObj.alpha = 0f;
this._partnerImage.gameObject.SetActive(false);
this._ticketObj.SetActive(false);
this._intimateItemObj.SetActive(true);
}
// Token: 0x060002DD RID: 733 RVA: 0x0000A60C File Offset: 0x0000980C
public void UpdateView(float syncTimer)
{
if (this._titleScrollText != null)
{
this._titleScrollText.ViewUpdate();
}
}
// Token: 0x060002DE RID: 734 RVA: 0x0000A627 File Offset: 0x00009827
public void ResetScrollText()
{
if (this._titleObj.alpha != 0f)
{
this._titleScrollText.ResetPosition();
}
}
// Token: 0x060002DF RID: 735 RVA: 0x0000A646 File Offset: 0x00009846
public bool IsActive()
{
return this._canvasGroup.alpha != 0f;
}
// Token: 0x060002E0 RID: 736 RVA: 0x0000A65D File Offset: 0x0000985D
public void SetVisible(bool isVisible)
{
this._canvasGroup.alpha = (float)(isVisible ? 1 : 0);
}
// Token: 0x040001DF RID: 479
[SerializeField]
[Header("コレクションパーツ群")]
private CanvasGroup _canvasGroup;
// Token: 0x040001E0 RID: 480
[SerializeField]
[Header("称号")]
private CanvasGroup _titleObj;
// Token: 0x040001E1 RID: 481
[SerializeField]
private Image _titleBaseImage;
// Token: 0x040001E2 RID: 482
[SerializeField]
private CustomTextScroll _titleScrollText;
// Token: 0x040001E3 RID: 483
[SerializeField]
[Header("Icon")]
private RawImage _iconImage;
// Token: 0x040001E4 RID: 484
[SerializeField]
[Header("Plate")]
private CanvasGroup _plateObj;
// Token: 0x040001E5 RID: 485
[SerializeField]
private CustomImage _plateImage;
// Token: 0x040001E6 RID: 486
[SerializeField]
[Header("Partner")]
private RawImage _partnerImage;
// Token: 0x040001E7 RID: 487
[SerializeField]
[Header("Frame")]
private CanvasGroup _frameObj;
// Token: 0x040001E8 RID: 488
[SerializeField]
private RawImage _frameImage;
// Token: 0x040001E9 RID: 489
[SerializeField]
[Header("Ticket")]
private GameObject _ticketObj;
// Token: 0x040001EA RID: 490
[SerializeField]
private Image _ticketImage;
// Token: 0x040001EB RID: 491
[SerializeField]
[Header("IntimateItem")]
private GameObject _intimateItemObj;
// Token: 0x040001EC RID: 492
[SerializeField]
private MultipleImage _intimateItemImage;
// Token: 0x040001ED RID: 493
[SerializeField]
[Header("キラ属性")]
private CanvasGroup _setSpecialObj;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using UnityEngine;
// Token: 0x02000065 RID: 101
public class CollectionTabController : TabController
{
// Token: 0x06000372 RID: 882 RVA: 0x0000D9D8 File Offset: 0x0000CBD8
public override void Initialize(int monitorId)
{
base.Initialize(monitorId);
this.FavoriteStyle = new CollectionTabData(CommonScriptable.GetColorSetting().FavoriteColor, this._favoriteSprite, "お気に入りセット", "");
}
// Token: 0x06000373 RID: 883 RVA: 0x000087A9 File Offset: 0x000079A9
public void CollectionType2Collection(List<CollectionTabData> tabDatas, int categoryIndex)
{
base.Set(new List<TabDataBase>(tabDatas), categoryIndex);
}
// Token: 0x06000374 RID: 884 RVA: 0x000087B8 File Offset: 0x000079B8
public void Favorite2Collection(int categoryIndex)
{
base.SetActiveMiniPanels(categoryIndex);
}
// Token: 0x06000375 RID: 885 RVA: 0x0000DA06 File Offset: 0x0000CC06
public void Collection2Favorite()
{
base.SetOnlyMainPanel(this.FavoriteStyle);
}
// Token: 0x0400022F RID: 559
private CollectionTabData FavoriteStyle;
// Token: 0x04000230 RID: 560
[SerializeField]
private Sprite _favoriteSprite;
}

View File

@@ -0,0 +1,17 @@
using System;
using UnityEngine;
// Token: 0x0200014F RID: 335
public class CollectionTabData : TabDataBase
{
// Token: 0x06000BE5 RID: 3045 RVA: 0x0003725E File Offset: 0x0003645E
public CollectionTabData()
{
}
// Token: 0x06000BE6 RID: 3046 RVA: 0x0000893D File Offset: 0x00007B3D
public CollectionTabData(Color baseColor, Sprite sprite, string title, string subTitle = "")
: base(baseColor, sprite, title, subTitle)
{
}
}

View File

@@ -0,0 +1,32 @@
using System;
using UI;
using UnityEngine;
// Token: 0x0200005C RID: 92
public class CollectionTypeParts : MonoBehaviour
{
// Token: 0x060002E2 RID: 738 RVA: 0x0000A672 File Offset: 0x00009872
public void SetParts(int typeIndex)
{
if (this._collectionAcquisionTitleImage != null)
{
this._collectionAcquisionTitleImage.ChangeSprite(typeIndex);
}
}
// Token: 0x060002E3 RID: 739 RVA: 0x0000A68E File Offset: 0x0000988E
public void SetVisible(bool isVisible)
{
this._canvasGroup.alpha = (float)(isVisible ? 1 : 0);
}
// Token: 0x040001EE RID: 494
[SerializeField]
[Header("コレクション種別のパーツ")]
private CanvasGroup _canvasGroup;
// Token: 0x040001EF RID: 495
[SerializeField]
[Header("コレクション名")]
private MultipleImage _collectionAcquisionTitleImage;
}

View File

@@ -0,0 +1,148 @@
using System;
using DB;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x020000DE RID: 222
public class CollectionWindow : EventWindowBase
{
// Token: 0x0600075B RID: 1883 RVA: 0x0001C2A4 File Offset: 0x0001B4A4
private void Awake()
{
if (!this._setInfoText)
{
this._infoText.text = CommonMessageID.GetWindowCollection.GetName();
}
this._infoText2.text = CommonMessageID.LoginBonusPreviewInfo.GetName();
}
// Token: 0x0600075C RID: 1884 RVA: 0x0001C2D8 File Offset: 0x0001B4D8
public void SetNamePlate(Sprite collectSprite, string itemName)
{
this._jacketRoot.SetActive(false);
this._namePlateRoot.SetActive(true);
this._frameRoot.SetActive(false);
this._iconRoot.SetActive(false);
this._titleRoot.SetActive(false);
this._itemRoot.SetActive(false);
this._namePlate.sprite = collectSprite;
this._itemName.text = itemName;
}
// Token: 0x0600075D RID: 1885 RVA: 0x0001C348 File Offset: 0x0001B548
public void SetFrame(Sprite collectSprite, string itemName)
{
this._jacketRoot.SetActive(false);
this._namePlateRoot.SetActive(false);
this._frameRoot.SetActive(true);
this._iconRoot.SetActive(false);
this._titleRoot.SetActive(false);
this._itemRoot.SetActive(false);
this._frame.sprite = collectSprite;
this._itemName.text = itemName;
}
// Token: 0x0600075E RID: 1886 RVA: 0x0001C3B8 File Offset: 0x0001B5B8
public void SetIcon(Sprite collectSprite, string itemName)
{
this._jacketRoot.SetActive(false);
this._namePlateRoot.SetActive(false);
this._frameRoot.SetActive(false);
this._iconRoot.SetActive(true);
this._titleRoot.SetActive(false);
this._itemRoot.SetActive(false);
this._icon.sprite = collectSprite;
this._itemName.text = itemName;
}
// Token: 0x0600075F RID: 1887 RVA: 0x0001C428 File Offset: 0x0001B628
public void SetTitle(string itemName)
{
this._jacketRoot.SetActive(false);
this._namePlateRoot.SetActive(false);
this._frameRoot.SetActive(false);
this._iconRoot.SetActive(false);
this._titleRoot.SetActive(true);
this._itemRoot.SetActive(false);
this._itemName.text = itemName;
}
// Token: 0x06000760 RID: 1888 RVA: 0x0001C48C File Offset: 0x0001B68C
public void SetItem(string itemName)
{
this._jacketRoot.SetActive(false);
this._namePlateRoot.SetActive(false);
this._frameRoot.SetActive(false);
this._iconRoot.SetActive(false);
this._titleRoot.SetActive(false);
this._itemRoot.SetActive(true);
this._itemName.text = itemName;
}
// Token: 0x06000761 RID: 1889 RVA: 0x0001C4ED File Offset: 0x0001B6ED
public void SetInfo(string infoText)
{
this._infoText.text = infoText;
this._setInfoText = true;
}
// Token: 0x04000571 RID: 1393
[SerializeField]
private GameObject _jacketRoot;
// Token: 0x04000572 RID: 1394
[SerializeField]
private GameObject _namePlateRoot;
// Token: 0x04000573 RID: 1395
[SerializeField]
private GameObject _frameRoot;
// Token: 0x04000574 RID: 1396
[SerializeField]
private GameObject _iconRoot;
// Token: 0x04000575 RID: 1397
[SerializeField]
private GameObject _titleRoot;
// Token: 0x04000576 RID: 1398
[SerializeField]
private GameObject _itemRoot;
// Token: 0x04000577 RID: 1399
[SerializeField]
private Image _namePlate;
// Token: 0x04000578 RID: 1400
[SerializeField]
private Image _frame;
// Token: 0x04000579 RID: 1401
[SerializeField]
private Image _icon;
// Token: 0x0400057A RID: 1402
[SerializeField]
private Image _titleBackground;
// Token: 0x0400057B RID: 1403
[SerializeField]
private CustomTextScroll _titleTextScroll;
// Token: 0x0400057C RID: 1404
[SerializeField]
private TextMeshProUGUI _itemName;
// Token: 0x0400057D RID: 1405
[SerializeField]
private TextMeshProUGUI _infoText;
// Token: 0x0400057E RID: 1406
[SerializeField]
private TextMeshProUGUI _infoText2;
// Token: 0x0400057F RID: 1407
private bool _setInfoText;
}

View File

@@ -0,0 +1,42 @@
using System;
using TMPro;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
// Token: 0x0200000A RID: 10
public class ColorViewer : MonoBehaviour, IColorViewer
{
// Token: 0x0600002F RID: 47 RVA: 0x00002A78 File Offset: 0x00001C78
private void Awake()
{
this._button.onClick.RemoveAllListeners();
this._button.onClick.AddListener(new UnityAction(this.ChangeColor));
}
// Token: 0x06000030 RID: 48 RVA: 0x00002AA8 File Offset: 0x00001CA8
public void ChangeColor()
{
Color color;
ColorUtility.TryParseHtmlString(this._inputField.text, ref color);
this._viewer.color = color;
}
// Token: 0x06000031 RID: 49 RVA: 0x00002AD4 File Offset: 0x00001CD4
public string GetColorCode()
{
return this._inputField.text;
}
// Token: 0x04000012 RID: 18
[SerializeField]
private Image _viewer;
// Token: 0x04000013 RID: 19
[SerializeField]
private TMP_InputField _inputField;
// Token: 0x04000014 RID: 20
[SerializeField]
private Button _button;
}

View File

@@ -0,0 +1,19 @@
using System;
namespace Comio
{
// Token: 0x02000512 RID: 1298
public enum AckReport
{
// Token: 0x04003B54 RID: 15188
AckReport_Ok = 1,
// Token: 0x04003B55 RID: 15189
AckReport_Busy,
// Token: 0x04003B56 RID: 15190
AckReport_CommandUnknown,
// Token: 0x04003B57 RID: 15191
AckReport_ParamError,
// Token: 0x04003B58 RID: 15192
AckReport_Invalid = 255
}
}

View File

@@ -0,0 +1,23 @@
using System;
namespace Comio
{
// Token: 0x02000511 RID: 1297
public enum AckStatus
{
// Token: 0x04003B4C RID: 15180
Ok = 1,
// Token: 0x04003B4D RID: 15181
SumError,
// Token: 0x04003B4E RID: 15182
ParityError,
// Token: 0x04003B4F RID: 15183
FramingError,
// Token: 0x04003B50 RID: 15184
AckStatusOverRunError,
// Token: 0x04003B51 RID: 15185
AckStatusRecvBfOverFlow,
// Token: 0x04003B52 RID: 15186
AckStatusInvalid = 255
}
}

View File

@@ -0,0 +1,129 @@
using System;
using UnityEngine;
namespace Comio.BD15070_4
{
// Token: 0x02000518 RID: 1304
public class Board15070_4 : BoardBase
{
// Token: 0x060029B6 RID: 10678 RVA: 0x00122DBC File Offset: 0x00121FBC
public Board15070_4(Board15070_4.InitParam initParam)
{
this._construct(initParam);
}
// Token: 0x060029B7 RID: 10679 RVA: 0x00122DCB File Offset: 0x00121FCB
public override BoardCtrlBase GetCtrlBase()
{
return this._ctrl;
}
// Token: 0x060029B8 RID: 10680 RVA: 0x00122DD3 File Offset: 0x00121FD3
public override void Reset()
{
this._ctrl.Reset();
}
// Token: 0x060029B9 RID: 10681 RVA: 0x00122DE0 File Offset: 0x00121FE0
public bool IsError()
{
return this._ctrl.IsError();
}
// Token: 0x060029BA RID: 10682 RVA: 0x00122DED File Offset: 0x00121FED
public void ClearError()
{
this._ctrl.ClearError();
}
// Token: 0x060029BB RID: 10683 RVA: 0x00122DFA File Offset: 0x00121FFA
public ErrorNo GetErrorNo()
{
return this._ctrl.GetErrorNo();
}
// Token: 0x060029BC RID: 10684 RVA: 0x00122E07 File Offset: 0x00122007
public void SetLedData(byte ledPos, LedData data)
{
this._ctrl.SetLedData(ledPos, data);
}
// Token: 0x060029BD RID: 10685 RVA: 0x00122E16 File Offset: 0x00122016
public void SetLedDataMulti(Color32 data, byte speed)
{
this._ctrl.SetLedDataMulti(data, speed);
}
// Token: 0x060029BE RID: 10686 RVA: 0x00122E25 File Offset: 0x00122025
public void SetLedDataMultiFade(Color32 data, byte speed)
{
this._ctrl.SetLedDataMultiFade(data, speed);
}
// Token: 0x060029BF RID: 10687 RVA: 0x00122E34 File Offset: 0x00122034
public void SetLedDataMultiFet(Color32 data)
{
this._ctrl.SetLedDataMultiFet(data);
}
// Token: 0x060029C0 RID: 10688 RVA: 0x00122E42 File Offset: 0x00122042
public void SetLedDataUpdate()
{
this._ctrl.SetLedDataUpdate();
}
// Token: 0x060029C1 RID: 10689 RVA: 0x00122E4F File Offset: 0x0012204F
public void SetLedDataAllOff()
{
this._ctrl.SetLedDataAllOff();
}
// Token: 0x060029C2 RID: 10690 RVA: 0x00122E5C File Offset: 0x0012205C
public static BoardNo GetDefBoardNo()
{
return BoardCtrl15070_4.GetDefBoardNo();
}
// Token: 0x060029C3 RID: 10691 RVA: 0x00122E63 File Offset: 0x00122063
private void _construct(Board15070_4.InitParam initParam)
{
this._ctrl = new BoardCtrl15070_4(initParam);
}
// Token: 0x04003B63 RID: 15203
private BoardCtrl15070_4 _ctrl;
// Token: 0x02000C96 RID: 3222
public class InitParam
{
// Token: 0x06005613 RID: 22035 RVA: 0x001B79CF File Offset: 0x001B6BCF
public InitParam()
{
this.BoardNodeId = 17;
this.FirmVersion = 16;
this.FirmSum = 0;
this.Timeout = 10;
this.WithoutResponse = true;
this.LedInteval = 33;
}
// Token: 0x04007058 RID: 28760
public byte BoardNodeId;
// Token: 0x04007059 RID: 28761
public byte FirmVersion;
// Token: 0x0400705A RID: 28762
public ushort FirmSum;
// Token: 0x0400705B RID: 28763
public byte Timeout;
// Token: 0x0400705C RID: 28764
public bool WithoutResponse;
// Token: 0x0400705D RID: 28765
public ushort LedInteval;
}
}
}

View File

@@ -0,0 +1,937 @@
using System;
using System.Diagnostics;
using UnityEngine;
namespace Comio.BD15070_4
{
// Token: 0x02000519 RID: 1305
public class BoardCtrl15070_4 : BoardCtrlBase
{
// Token: 0x060029C4 RID: 10692 RVA: 0x00122E71 File Offset: 0x00122071
public BoardCtrl15070_4(Board15070_4.InitParam initParam)
: base(initParam.BoardNodeId)
{
this._construct(initParam);
}
// Token: 0x060029C5 RID: 10693 RVA: 0x00122E88 File Offset: 0x00122088
public bool IsError()
{
object cs = this.Cs;
bool flag2;
lock (cs)
{
flag2 = this._isError();
}
return flag2;
}
// Token: 0x060029C6 RID: 10694 RVA: 0x00122ECC File Offset: 0x001220CC
public void ClearError()
{
object cs = this.Cs;
lock (cs)
{
this._errorNo = ErrorNo.Begin;
base.ClearErrorRegisteredCommand();
}
}
// Token: 0x060029C7 RID: 10695 RVA: 0x00122F14 File Offset: 0x00122114
public ErrorNo GetErrorNo()
{
object cs = this.Cs;
ErrorNo errorNo;
lock (cs)
{
errorNo = this._errorNo;
}
return errorNo;
}
// Token: 0x060029C8 RID: 10696 RVA: 0x00122F58 File Offset: 0x00122158
public override bool CheckFirmVersion(byte boardVersion, byte fileVersion)
{
return new FirmInfo
{
Revision = boardVersion
}.CheckFirmVersionSame(fileVersion);
}
// Token: 0x060029C9 RID: 10697 RVA: 0x00122F6C File Offset: 0x0012216C
public override bool ReqHalt()
{
object cs = this.Cs;
bool flag2;
lock (cs)
{
flag2 = this._reqHalt();
}
return flag2;
}
// Token: 0x060029CA RID: 10698 RVA: 0x00122FB0 File Offset: 0x001221B0
public override bool IsHalted()
{
object cs = this.Cs;
bool flag2;
lock (cs)
{
flag2 = this._isHalted();
}
return flag2;
}
// Token: 0x060029CB RID: 10699 RVA: 0x00122FF4 File Offset: 0x001221F4
public override void Reset()
{
object cs = this.Cs;
lock (cs)
{
this._reset();
}
}
// Token: 0x060029CC RID: 10700 RVA: 0x00123034 File Offset: 0x00122234
public void SetLedData(byte ledPos, LedData data)
{
object cs = this.Cs;
lock (cs)
{
this._setLedData(ledPos, data);
}
}
// Token: 0x060029CD RID: 10701 RVA: 0x00123078 File Offset: 0x00122278
public void SetLedDataMulti(Color32 data, byte speed)
{
object cs = this.Cs;
lock (cs)
{
this._setLedDataMulti(data, speed);
}
}
// Token: 0x060029CE RID: 10702 RVA: 0x001230BC File Offset: 0x001222BC
public void SetLedDataMultiFade(Color32 data, byte speed)
{
object cs = this.Cs;
lock (cs)
{
this._setLedDataMultiFade(data, speed);
}
}
// Token: 0x060029CF RID: 10703 RVA: 0x00123100 File Offset: 0x00122300
public void SetLedDataMultiFet(Color32 data)
{
object cs = this.Cs;
lock (cs)
{
this._setLedDataMultiFet(data);
}
}
// Token: 0x060029D0 RID: 10704 RVA: 0x00123144 File Offset: 0x00122344
public void SetLedDataUpdate()
{
object cs = this.Cs;
lock (cs)
{
this._setLedDataUpdate();
}
}
// Token: 0x060029D1 RID: 10705 RVA: 0x00123184 File Offset: 0x00122384
public void SetLedDataAllOff()
{
object cs = this.Cs;
lock (cs)
{
this._setLedDataAllOff();
}
}
// Token: 0x060029D2 RID: 10706 RVA: 0x001231C4 File Offset: 0x001223C4
public bool IsWithoutResponse()
{
return this._isWithoutResponse();
}
// Token: 0x060029D3 RID: 10707 RVA: 0x001231CC File Offset: 0x001223CC
public ushort GetLedInterval()
{
return this._getLedInterval();
}
// Token: 0x060029D4 RID: 10708 RVA: 0x001231D4 File Offset: 0x001223D4
public static BoardNo GetDefBoardNo()
{
return BoardCtrl15070_4.BoardNo;
}
// Token: 0x060029D5 RID: 10709 RVA: 0x001231DC File Offset: 0x001223DC
public override void Initialize()
{
object cs = this.Cs;
lock (cs)
{
this._initialize();
}
}
// Token: 0x060029D6 RID: 10710 RVA: 0x0012321C File Offset: 0x0012241C
public override void Terminate()
{
object cs = this.Cs;
lock (cs)
{
}
}
// Token: 0x060029D7 RID: 10711 RVA: 0x00123258 File Offset: 0x00122458
public override void Execute()
{
object cs = this.Cs;
lock (cs)
{
this._execute();
}
}
// Token: 0x060029D8 RID: 10712 RVA: 0x00123298 File Offset: 0x00122498
public override void ExecThread()
{
object cs = this.Cs;
lock (cs)
{
this._execThread();
}
}
// Token: 0x060029D9 RID: 10713 RVA: 0x001232D8 File Offset: 0x001224D8
public override void NotifyBaseError(BoardCtrlBase.BaseErrorNo baseErrorNo)
{
object cs = this.Cs;
lock (cs)
{
switch (baseErrorNo)
{
case BoardCtrlBase.BaseErrorNo.BaseErrorNoTimeout:
this._setError(ErrorNo.Timeout);
break;
case BoardCtrlBase.BaseErrorNo.BaseErrorNoReportError:
this._setError(ErrorNo.ReportError);
break;
case BoardCtrlBase.BaseErrorNo.BaseErrorNoRecvError:
this._setError(ErrorNo.RecvError);
break;
case BoardCtrlBase.BaseErrorNo.BaseErrorNoComError:
this._setError(ErrorNo.Timeout);
break;
case BoardCtrlBase.BaseErrorNo.BaseErrorNoSumError:
this._setError(ErrorNo.SumError);
break;
}
}
}
// Token: 0x060029DA RID: 10714 RVA: 0x0012335C File Offset: 0x0012255C
private void _construct(Board15070_4.InitParam initParam)
{
this._initParam = initParam;
this._mode = BoardCtrl15070_4.Mode.Init;
this._loop = false;
this._resetOn = false;
this._errorNo = ErrorNo.Begin;
this._getBoardStatusCommand = new GetBoardStatusCommand();
this._setTimeoutCommand = new SetTimeoutCommand();
this._getBoardInfoCommand = new GetBoardInfoCommand();
this._getProtocolVersionCommand = new GetProtocolVersionCommand();
this._resetCommand = new ResetCommand();
this._getEepRomCommand = new GetEEPRomCommand();
this._setEepRomCommand = new SetEEPRomCommand();
this._setDcCommand = new SetDcCommand();
this._setDcUpdateCommand = new SetDcUpdateCommand();
this._setLedGs8BitMultiCommand = new SetLedGs8BitMultiCommand();
this._setLedFetCommand = new SetLedFetCommand();
this._setLedGsUpdateCommand = new SetLedGsUpdateCommand();
this._ioCtrl = new IoCtrl(this);
this._modeTimer = new Stopwatch();
if (33 > this._initParam.LedInteval)
{
this._initParam.LedInteval = 33;
}
this._initWork();
base.InitAndRegisterCommand(this._getBoardInfoCommand);
base.InitAndRegisterCommand(this._getBoardStatusCommand);
base.InitAndRegisterCommand(this._getProtocolVersionCommand);
base.InitAndRegisterCommand(this._resetCommand);
base.InitAndRegisterCommand(this._setTimeoutCommand);
base.InitAndRegisterCommand(this._getEepRomCommand);
base.InitAndRegisterCommand(this._setEepRomCommand);
base.InitAndRegisterCommand(this._setDcCommand);
base.InitAndRegisterCommand(this._setDcUpdateCommand);
base.InitAndRegisterCommand(this._setLedGs8BitMultiCommand);
base.InitAndRegisterCommand(this._setLedFetCommand);
base.InitAndRegisterCommand(this._setLedGsUpdateCommand);
this._eepRomCheckAdress = BoardCtrl15070_4.EepRomAddress.Enable;
this._eepRom = new BoardCtrl15070_4.EepRom[8];
for (int i = 0; i < 8; i++)
{
this._eepRom[i] = new BoardCtrl15070_4.EepRom
{
Check = BoardCtrl15070_4.EepRomCheck.None,
ReadData = 0,
WriteData = 0,
WriteCount = 0
};
}
Gs8BitMulti gs8BitMulti = default(Gs8BitMulti);
gs8BitMulti.Start = 0;
gs8BitMulti.End = 10;
gs8BitMulti.Skip = 1;
gs8BitMulti.Color.r = 63;
gs8BitMulti.Color.g = 63;
gs8BitMulti.Color.b = 63;
gs8BitMulti.Color.a = byte.MaxValue;
this._dcParam = gs8BitMulti;
}
// Token: 0x060029DB RID: 10715 RVA: 0x0012359C File Offset: 0x0012279C
private void _initWork()
{
this._resetOn = false;
this._errorNo = ErrorNo.Begin;
}
// Token: 0x060029DC RID: 10716 RVA: 0x001235AC File Offset: 0x001227AC
private void _initialize()
{
this._initWork();
this._ioCtrl.Initialize();
this._loop = false;
this._mode = BoardCtrl15070_4.Mode.Init;
}
// Token: 0x060029DD RID: 10717 RVA: 0x001235CD File Offset: 0x001227CD
private bool _isError()
{
return this._errorNo > ErrorNo.Begin;
}
// Token: 0x060029DE RID: 10718 RVA: 0x001235D8 File Offset: 0x001227D8
private void _setError(ErrorNo no)
{
if (this._isHalted() || BoardCtrl15070_4.Mode.StartHalt == this._mode)
{
return;
}
if (!this._isError())
{
this._errorNo = no;
this._mode = BoardCtrl15070_4.Mode.Error;
}
}
// Token: 0x060029DF RID: 10719 RVA: 0x00123604 File Offset: 0x00122804
private bool _reqHalt()
{
if (this._isHalted())
{
return true;
}
if (this._mode != BoardCtrl15070_4.Mode.StartHalt)
{
this._mode = BoardCtrl15070_4.Mode.StartHalt;
return true;
}
return false;
}
// Token: 0x060029E0 RID: 10720 RVA: 0x00123625 File Offset: 0x00122825
private bool _isHalted()
{
return this._mode == BoardCtrl15070_4.Mode.Halt;
}
// Token: 0x060029E1 RID: 10721 RVA: 0x00123634 File Offset: 0x00122834
private void _reset()
{
if (!this._resetOn)
{
this._errorNo = ErrorNo.Begin;
base.ClearErrorRegisteredCommand();
if (this.IsHalted())
{
this._resetOn = true;
}
else if (this._mode != BoardCtrl15070_4.Mode.StartHalt)
{
this._resetOn = true;
this._mode = BoardCtrl15070_4.Mode.StartHalt;
}
if (this._resetOn)
{
this.InitBoard = false;
}
}
}
// Token: 0x060029E2 RID: 10722 RVA: 0x0012368F File Offset: 0x0012288F
private void _setLedData(byte ledPos, LedData data)
{
this._ioCtrl.SetLedData(ledPos, data);
}
// Token: 0x060029E3 RID: 10723 RVA: 0x0012369E File Offset: 0x0012289E
private void _setLedDataMulti(Color32 data, byte speed)
{
this._ioCtrl.SetLedDataMulti(data, speed);
}
// Token: 0x060029E4 RID: 10724 RVA: 0x001236AD File Offset: 0x001228AD
private void _setLedDataMultiFade(Color32 data, byte speed)
{
this._ioCtrl.SetLedDataMultiFade(data, speed);
}
// Token: 0x060029E5 RID: 10725 RVA: 0x001236BC File Offset: 0x001228BC
private void _setLedDataMultiFet(Color32 data)
{
this._ioCtrl.SetLedDataMultiFet(data);
}
// Token: 0x060029E6 RID: 10726 RVA: 0x001236CA File Offset: 0x001228CA
private void _setLedDataUpdate()
{
this._ioCtrl.SetUpdateGs();
}
// Token: 0x060029E7 RID: 10727 RVA: 0x001236D7 File Offset: 0x001228D7
private void _setLedDataAllOff()
{
this._ioCtrl.SetLedDataAllOff();
}
// Token: 0x060029E8 RID: 10728 RVA: 0x001236E4 File Offset: 0x001228E4
private bool _isWithoutResponse()
{
return this._initParam.WithoutResponse;
}
// Token: 0x060029E9 RID: 10729 RVA: 0x001236F1 File Offset: 0x001228F1
private ushort _getLedInterval()
{
return this._initParam.LedInteval;
}
// Token: 0x060029EA RID: 10730 RVA: 0x001236FE File Offset: 0x001228FE
private void _md_init()
{
this.Initialize();
base.InitBase();
this._mode = BoardCtrl15070_4.Mode.InitBoardInitReset;
}
// Token: 0x060029EB RID: 10731 RVA: 0x00123713 File Offset: 0x00122913
private void _md_initBoard_InitReset()
{
if (base.ExecCommand(this._resetCommand))
{
this._modeTimer.Reset();
this._modeTimer.Start();
this._mode = BoardCtrl15070_4.Mode.InitBoardGetBoardInfo;
this._resetCommand.Reset();
}
}
// Token: 0x060029EC RID: 10732 RVA: 0x0012374C File Offset: 0x0012294C
private void _md_initBoard_GetBoardInfo()
{
if (base.ExecCommand(this._getBoardInfoCommand))
{
this.BoardSpecInfo.BoardNo = this._getBoardInfoCommand.getBoardNo();
this.BoardSpecInfo.FirmInfo.Revision = this._getBoardInfoCommand.getFirmRevision();
if (!this.BoardSpecInfo.BoardNo.IsEqual(BoardCtrl15070_4.BoardNo))
{
this._setError(ErrorNo.Timeout);
return;
}
this.BoardSpecInfoRecv = true;
this._mode = BoardCtrl15070_4.Mode.InitBoardGetProtocolVersion;
}
}
// Token: 0x060029ED RID: 10733 RVA: 0x001237C8 File Offset: 0x001229C8
private void _md_initBoard_GetProtocolVersion()
{
if (base.ExecCommand(this._getProtocolVersionCommand))
{
this.BoardSpecInfo.FirmInfo.FirmAppli = this._getProtocolVersionCommand.isAppliMode();
this.BoardSpecInfo.FirmInfo.Major = this._getProtocolVersionCommand.getMajor();
this.BoardSpecInfo.FirmInfo.Minor = this._getProtocolVersionCommand.getMinor();
this._mode = BoardCtrl15070_4.Mode.InitBoardReset;
}
}
// Token: 0x060029EE RID: 10734 RVA: 0x0012383B File Offset: 0x00122A3B
private void _md_initBoard_SetTimeoutInfinite()
{
if (base.ExecCommand(this._setTimeoutCommand))
{
this._resetCommand.set();
this._mode = BoardCtrl15070_4.Mode.InitBoardReset;
}
}
// Token: 0x060029EF RID: 10735 RVA: 0x0012385D File Offset: 0x00122A5D
private void _md_initBoard_Reset()
{
if (base.ExecCommand(this._resetCommand))
{
this._modeTimer.Reset();
this._modeTimer.Start();
this._mode = BoardCtrl15070_4.Mode.InitBoardWaitReset;
}
}
// Token: 0x060029F0 RID: 10736 RVA: 0x0012388C File Offset: 0x00122A8C
private void _md_initBoard_WaitReset()
{
if (this._modeTimer.ElapsedMilliseconds >= 1000L)
{
this._mode = BoardCtrl15070_4.Mode.InitBoardGetEepRom;
this._eepRomCheckAdress = BoardCtrl15070_4.EepRomAddress.Enable;
for (int i = 0; i < 8; i++)
{
this._eepRom[i].Check = BoardCtrl15070_4.EepRomCheck.None;
this._eepRom[i].ReadData = 0;
this._eepRom[i].WriteData = 0;
this._eepRom[i].WriteCount = 0;
}
this._getEepRomCommand.SetEEPDataAdress((byte)this._eepRomCheckAdress);
}
}
// Token: 0x060029F1 RID: 10737 RVA: 0x00123924 File Offset: 0x00122B24
private void _md_initBoard_GetEEPRom()
{
if (base.ExecCommand(this._getEepRomCommand))
{
this._eepRom[(int)this._eepRomCheckAdress].ReadData = this._getEepRomCommand.GetEEPData();
if (this._eepRom[(int)this._eepRomCheckAdress].ReadData != this._eepRom[(int)this._eepRomCheckAdress].WriteData)
{
if (this._eepRom[(int)this._eepRomCheckAdress].WriteCount >= 3)
{
this._setError(ErrorNo.EepWriteError);
return;
}
this._eepRom[(int)this._eepRomCheckAdress].Check = BoardCtrl15070_4.EepRomCheck.Ng;
this._setEepRomCommand.Reset();
this._setEepRomCommand.SetEEPData((byte)this._eepRomCheckAdress, this._eepRom[(int)this._eepRomCheckAdress].WriteData);
this._mode = BoardCtrl15070_4.Mode.InitBoardSetEepRom;
return;
}
else
{
this._eepRom[(int)this._eepRomCheckAdress].Check = BoardCtrl15070_4.EepRomCheck.Ok;
this._eepRomCheckAdress++;
if (this._eepRomCheckAdress >= BoardCtrl15070_4.EepRomAddress.End)
{
this._mode = BoardCtrl15070_4.Mode.InitBoardSetDc;
this._setDcCommand.setDc(this._dcParam);
return;
}
this._getEepRomCommand.Reset();
this._getEepRomCommand.SetEEPDataAdress((byte)this._eepRomCheckAdress);
}
}
}
// Token: 0x060029F2 RID: 10738 RVA: 0x00123A6A File Offset: 0x00122C6A
private void _md_initBoard_SetEEPRom()
{
if (base.ExecCommand(this._setEepRomCommand))
{
this._mode = BoardCtrl15070_4.Mode.InitBoardGetEepRom;
BoardCtrl15070_4.EepRom[] eepRom = this._eepRom;
BoardCtrl15070_4.EepRomAddress eepRomCheckAdress = this._eepRomCheckAdress;
eepRom[(int)eepRomCheckAdress].WriteCount = eepRom[(int)eepRomCheckAdress].WriteCount + 1;
}
}
// Token: 0x060029F3 RID: 10739 RVA: 0x00123A9E File Offset: 0x00122C9E
private void _md_initBoard_SetDc()
{
if (base.ExecCommand(this._setDcCommand))
{
this._mode = BoardCtrl15070_4.Mode.InitBoardSetDcUpdate;
}
}
// Token: 0x060029F4 RID: 10740 RVA: 0x00123AB6 File Offset: 0x00122CB6
private void _md_initBoard_SetDcUpdate()
{
if (base.ExecCommand(this._setDcUpdateCommand))
{
this._setLedGs8BitMultiCommand.setAllOff();
this._mode = BoardCtrl15070_4.Mode.InitBoardSetGsOff;
}
}
// Token: 0x060029F5 RID: 10741 RVA: 0x00123AD9 File Offset: 0x00122CD9
private void _md_initBoard_SetGsOff()
{
if (base.ExecCommand(this._setLedGs8BitMultiCommand))
{
this._setLedFetCommand.setColorOff();
this._mode = BoardCtrl15070_4.Mode.InitBoardSetFetOff;
}
}
// Token: 0x060029F6 RID: 10742 RVA: 0x00123AFC File Offset: 0x00122CFC
private void _md_initBoard_SetFetOff()
{
if (base.ExecCommand(this._setLedFetCommand))
{
this._mode = BoardCtrl15070_4.Mode.InitBoardSetGsUpdate;
}
}
// Token: 0x060029F7 RID: 10743 RVA: 0x00123B14 File Offset: 0x00122D14
private void _md_initBoard_SetGsUpdate()
{
if (base.ExecCommand(this._setLedGsUpdateCommand))
{
this._mode = BoardCtrl15070_4.Mode.InitBoardGetBoardStatus;
}
}
// Token: 0x060029F8 RID: 10744 RVA: 0x00123B2B File Offset: 0x00122D2B
private void _md_initBoard_GetBoardStatus()
{
if (base.ExecCommand(this._getBoardStatusCommand))
{
this._setTimeoutCommand.setTimeout(this._initParam.Timeout);
this._mode = BoardCtrl15070_4.Mode.InitBoardSetTimeout;
}
}
// Token: 0x060029F9 RID: 10745 RVA: 0x00123B58 File Offset: 0x00122D58
private void _md_initBoard_SetTimeout()
{
this.InitBoard = true;
this._mode = BoardCtrl15070_4.Mode.Exec;
this._loop = true;
}
// Token: 0x060029FA RID: 10746 RVA: 0x00123B70 File Offset: 0x00122D70
private void _md_exec()
{
this._ioCtrl.Execute();
}
// Token: 0x060029FB RID: 10747 RVA: 0x00123B7D File Offset: 0x00122D7D
private void _md_error()
{
if (this._errorNo == ErrorNo.Begin)
{
this._mode = BoardCtrl15070_4.Mode.Init;
this._loop = true;
}
}
// Token: 0x060029FC RID: 10748 RVA: 0x00123B98 File Offset: 0x00122D98
private void _md_startHalt()
{
this._resetCommand.set();
if (base.ExecCommand(this._resetCommand) || this._resetCommand.GetComState() == ComState.Def.Timeout)
{
this._modeTimer.Reset();
this._modeTimer.Start();
this._mode = BoardCtrl15070_4.Mode.StartHaltWaitReset;
}
}
// Token: 0x060029FD RID: 10749 RVA: 0x00123BEF File Offset: 0x00122DEF
private void _md_startHalt_WaitReset()
{
if (this._modeTimer.ElapsedMilliseconds >= 1000L)
{
base.InitBase();
this._mode = BoardCtrl15070_4.Mode.Halt;
}
}
// Token: 0x060029FE RID: 10750 RVA: 0x00123C12 File Offset: 0x00122E12
private void _md_halt()
{
if (this._resetOn)
{
this._mode = BoardCtrl15070_4.Mode.Init;
this._resetOn = false;
this._loop = true;
}
}
// Token: 0x060029FF RID: 10751 RVA: 0x00003598 File Offset: 0x00002798
private void _execute()
{
}
// Token: 0x06002A00 RID: 10752 RVA: 0x00123C34 File Offset: 0x00122E34
private void _execThread()
{
do
{
this._loop = false;
switch (this._mode)
{
case BoardCtrl15070_4.Mode.Init:
this._md_init();
break;
case BoardCtrl15070_4.Mode.InitBoardInitReset:
this._md_initBoard_InitReset();
break;
case BoardCtrl15070_4.Mode.InitBoardGetBoardInfo:
this._md_initBoard_GetBoardInfo();
break;
case BoardCtrl15070_4.Mode.InitBoardGetProtocolVersion:
this._md_initBoard_GetProtocolVersion();
break;
case BoardCtrl15070_4.Mode.InitBoardSetTimeoutInfinite:
this._md_initBoard_SetTimeoutInfinite();
break;
case BoardCtrl15070_4.Mode.InitBoardReset:
this._md_initBoard_Reset();
break;
case BoardCtrl15070_4.Mode.InitBoardWaitReset:
this._md_initBoard_WaitReset();
break;
case BoardCtrl15070_4.Mode.InitBoardGetBoardStatus:
this._md_initBoard_GetBoardStatus();
break;
case BoardCtrl15070_4.Mode.InitBoardSetTimeout:
this._md_initBoard_SetTimeout();
break;
case BoardCtrl15070_4.Mode.InitBoardGetEepRom:
this._md_initBoard_GetEEPRom();
break;
case BoardCtrl15070_4.Mode.InitBoardSetEepRom:
this._md_initBoard_SetEEPRom();
break;
case BoardCtrl15070_4.Mode.InitBoardSetDc:
this._md_initBoard_SetDc();
break;
case BoardCtrl15070_4.Mode.InitBoardSetDcUpdate:
this._md_initBoard_SetDcUpdate();
break;
case BoardCtrl15070_4.Mode.InitBoardSetGsOff:
this._md_initBoard_SetGsOff();
break;
case BoardCtrl15070_4.Mode.InitBoardSetFetOff:
this._md_initBoard_SetFetOff();
break;
case BoardCtrl15070_4.Mode.InitBoardSetGsUpdate:
this._md_initBoard_SetGsUpdate();
break;
case BoardCtrl15070_4.Mode.Exec:
this._md_exec();
break;
case BoardCtrl15070_4.Mode.Error:
this._md_error();
break;
case BoardCtrl15070_4.Mode.StartHalt:
this._md_startHalt();
break;
case BoardCtrl15070_4.Mode.StartHaltWaitReset:
this._md_startHalt_WaitReset();
break;
case BoardCtrl15070_4.Mode.Halt:
this._md_halt();
break;
}
}
while (this._loop);
}
// Token: 0x04003B64 RID: 15204
private const uint ResetWait = 1000U;
// Token: 0x04003B65 RID: 15205
private static BoardNo BoardNo = new BoardNo("15070-04");
// Token: 0x04003B66 RID: 15206
private const int EepromWriteRetryMax = 3;
// Token: 0x04003B67 RID: 15207
private Board15070_4.InitParam _initParam;
// Token: 0x04003B68 RID: 15208
private BoardCtrl15070_4.Mode _mode;
// Token: 0x04003B69 RID: 15209
private bool _loop;
// Token: 0x04003B6A RID: 15210
private bool _resetOn;
// Token: 0x04003B6B RID: 15211
private ErrorNo _errorNo;
// Token: 0x04003B6C RID: 15212
private GetBoardStatusCommand _getBoardStatusCommand;
// Token: 0x04003B6D RID: 15213
private SetTimeoutCommand _setTimeoutCommand;
// Token: 0x04003B6E RID: 15214
private GetBoardInfoCommand _getBoardInfoCommand;
// Token: 0x04003B6F RID: 15215
private GetProtocolVersionCommand _getProtocolVersionCommand;
// Token: 0x04003B70 RID: 15216
private ResetCommand _resetCommand;
// Token: 0x04003B71 RID: 15217
private GetEEPRomCommand _getEepRomCommand;
// Token: 0x04003B72 RID: 15218
private SetEEPRomCommand _setEepRomCommand;
// Token: 0x04003B73 RID: 15219
private SetDcCommand _setDcCommand;
// Token: 0x04003B74 RID: 15220
private SetDcUpdateCommand _setDcUpdateCommand;
// Token: 0x04003B75 RID: 15221
private SetLedGs8BitMultiCommand _setLedGs8BitMultiCommand;
// Token: 0x04003B76 RID: 15222
private SetLedFetCommand _setLedFetCommand;
// Token: 0x04003B77 RID: 15223
private SetLedGsUpdateCommand _setLedGsUpdateCommand;
// Token: 0x04003B78 RID: 15224
private IoCtrl _ioCtrl;
// Token: 0x04003B79 RID: 15225
private Stopwatch _modeTimer;
// Token: 0x04003B7A RID: 15226
private BoardCtrl15070_4.EepRom[] _eepRom;
// Token: 0x04003B7B RID: 15227
private BoardCtrl15070_4.EepRomAddress _eepRomCheckAdress;
// Token: 0x04003B7C RID: 15228
private Gs8BitMulti _dcParam;
// Token: 0x02000C97 RID: 3223
private enum Mode
{
// Token: 0x0400705F RID: 28767
Init,
// Token: 0x04007060 RID: 28768
InitBoardInitReset,
// Token: 0x04007061 RID: 28769
InitBoardGetBoardInfo,
// Token: 0x04007062 RID: 28770
InitBoardGetProtocolVersion,
// Token: 0x04007063 RID: 28771
InitBoardSetTimeoutInfinite,
// Token: 0x04007064 RID: 28772
InitBoardReset,
// Token: 0x04007065 RID: 28773
InitBoardWaitReset,
// Token: 0x04007066 RID: 28774
InitBoardGetBoardStatus,
// Token: 0x04007067 RID: 28775
InitBoardSetTimeout,
// Token: 0x04007068 RID: 28776
InitBoardGetEepRom,
// Token: 0x04007069 RID: 28777
InitBoardSetEepRom,
// Token: 0x0400706A RID: 28778
InitBoardSetDc,
// Token: 0x0400706B RID: 28779
InitBoardSetDcUpdate,
// Token: 0x0400706C RID: 28780
InitBoardSetGsOff,
// Token: 0x0400706D RID: 28781
InitBoardSetFetOff,
// Token: 0x0400706E RID: 28782
InitBoardSetGsUpdate,
// Token: 0x0400706F RID: 28783
InitBoardSetLedCount,
// Token: 0x04007070 RID: 28784
WaitAutoSend,
// Token: 0x04007071 RID: 28785
Exec,
// Token: 0x04007072 RID: 28786
Error,
// Token: 0x04007073 RID: 28787
StartHalt,
// Token: 0x04007074 RID: 28788
StartHaltWaitReset,
// Token: 0x04007075 RID: 28789
Halt
}
// Token: 0x02000C98 RID: 3224
private enum EepRomAddress
{
// Token: 0x04007077 RID: 28791
Enable,
// Token: 0x04007078 RID: 28792
Fet0,
// Token: 0x04007079 RID: 28793
Fet1,
// Token: 0x0400707A RID: 28794
Fet2,
// Token: 0x0400707B RID: 28795
DcRed,
// Token: 0x0400707C RID: 28796
DcGreen,
// Token: 0x0400707D RID: 28797
DcBlue,
// Token: 0x0400707E RID: 28798
Out15,
// Token: 0x0400707F RID: 28799
End
}
// Token: 0x02000C99 RID: 3225
private enum EepRomCheck
{
// Token: 0x04007081 RID: 28801
None,
// Token: 0x04007082 RID: 28802
Ok,
// Token: 0x04007083 RID: 28803
Ng,
// Token: 0x04007084 RID: 28804
End
}
// Token: 0x02000C9A RID: 3226
private struct EepRom
{
// Token: 0x04007085 RID: 28805
public BoardCtrl15070_4.EepRomCheck Check;
// Token: 0x04007086 RID: 28806
public byte ReadData;
// Token: 0x04007087 RID: 28807
public byte WriteData;
// Token: 0x04007088 RID: 28808
public byte WriteCount;
}
}
}

View File

@@ -0,0 +1,29 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x0200051A RID: 1306
public class BoardStatus
{
// Token: 0x06002A02 RID: 10754 RVA: 0x00123D84 File Offset: 0x00122F84
public void Clear()
{
this.TimeoutStat = 0;
this.TimeoutSec = 0;
this.PwmIo = 0;
this.FetTimeout = 0;
}
// Token: 0x04003B7D RID: 15229
public byte TimeoutStat;
// Token: 0x04003B7E RID: 15230
public byte TimeoutSec;
// Token: 0x04003B7F RID: 15231
public byte PwmIo;
// Token: 0x04003B80 RID: 15232
public byte FetTimeout;
}
}

View File

@@ -0,0 +1,55 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000517 RID: 1303
public class Def
{
// Token: 0x04003B5D RID: 15197
public const byte NodeId = 17;
// Token: 0x04003B5E RID: 15198
public const byte LedCtrlUnitMax = 11;
// Token: 0x04003B5F RID: 15199
public const ushort LedCtrlIntervalMin = 33;
// Token: 0x04003B60 RID: 15200
public const int BaudRate = 115200;
// Token: 0x04003B61 RID: 15201
public const int SendTimeoutDef = 180;
// Token: 0x04003B62 RID: 15202
public const byte ColorElementMax = 3;
// Token: 0x02000C95 RID: 3221
public enum LedIndex
{
// Token: 0x0400704C RID: 28748
Button1,
// Token: 0x0400704D RID: 28749
Button2,
// Token: 0x0400704E RID: 28750
Button3,
// Token: 0x0400704F RID: 28751
Button4,
// Token: 0x04007050 RID: 28752
Button5,
// Token: 0x04007051 RID: 28753
Button6,
// Token: 0x04007052 RID: 28754
Button7,
// Token: 0x04007053 RID: 28755
Button8,
// Token: 0x04007054 RID: 28756
Body,
// Token: 0x04007055 RID: 28757
Circle,
// Token: 0x04007056 RID: 28758
Side,
// Token: 0x04007057 RID: 28759
End
}
}
}

View File

@@ -0,0 +1,31 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x0200051B RID: 1307
public enum ErrorNo
{
// Token: 0x04003B82 RID: 15234
Begin,
// Token: 0x04003B83 RID: 15235
None = 0,
// Token: 0x04003B84 RID: 15236
Timeout,
// Token: 0x04003B85 RID: 15237
SumError,
// Token: 0x04003B86 RID: 15238
ReportError,
// Token: 0x04003B87 RID: 15239
RecvError,
// Token: 0x04003B88 RID: 15240
FirmError,
// Token: 0x04003B89 RID: 15241
FirmVersionError,
// Token: 0x04003B8A RID: 15242
EepWriteError,
// Token: 0x04003B8B RID: 15243
End,
// Token: 0x04003B8C RID: 15244
Invalid = -1
}
}

View File

@@ -0,0 +1,43 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x0200051D RID: 1309
public static class ErrorNoEnum
{
// Token: 0x06002A06 RID: 10758 RVA: 0x00123DBF File Offset: 0x00122FBF
public static bool IsValid(this ErrorNo self)
{
return self >= ErrorNo.Begin && self < ErrorNo.End;
}
// Token: 0x06002A07 RID: 10759 RVA: 0x00123DCB File Offset: 0x00122FCB
public static string GetString(this ErrorNo self)
{
if (self.IsValid())
{
return ErrorNoEnum.Records[(int)self].String;
}
return "";
}
// Token: 0x06002A08 RID: 10760 RVA: 0x00123DE7 File Offset: 0x00122FE7
public static bool IsNeedFirmUpdate(this ErrorNo self)
{
return self.IsValid() && ErrorNoEnum.Records[(int)self].IsNeedFirmUpdate;
}
// Token: 0x04003B90 RID: 15248
private static readonly ErrorNoTableRecord[] Records = new ErrorNoTableRecord[]
{
new ErrorNoTableRecord(0, "None", false),
new ErrorNoTableRecord(0, "ComTimeout", false),
new ErrorNoTableRecord(0, "SumError", false),
new ErrorNoTableRecord(0, "ComResponse_ParamError", false),
new ErrorNoTableRecord(0, "ComResponse_Invalid", false),
new ErrorNoTableRecord(0, "FirmError", true),
new ErrorNoTableRecord(0, "FirmVersionError", true),
new ErrorNoTableRecord(0, "EEPRomWriteError", false)
};
}
}

View File

@@ -0,0 +1,30 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x0200051C RID: 1308
public class ErrorNoTableRecord
{
// Token: 0x06002A04 RID: 10756 RVA: 0x00003560 File Offset: 0x00002760
public ErrorNoTableRecord()
{
}
// Token: 0x06002A05 RID: 10757 RVA: 0x00123DA2 File Offset: 0x00122FA2
public ErrorNoTableRecord(int enumValue, string String, bool isNeedFirmUpdate)
{
this.EnumValue = enumValue;
this.String = String;
this.IsNeedFirmUpdate = isNeedFirmUpdate;
}
// Token: 0x04003B8D RID: 15245
public int EnumValue;
// Token: 0x04003B8E RID: 15246
public string String;
// Token: 0x04003B8F RID: 15247
public bool IsNeedFirmUpdate;
}
}

View File

@@ -0,0 +1,129 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x0200051E RID: 1310
public class GetBoardInfoCommand : CommandBase
{
// Token: 0x06002A0A RID: 10762 RVA: 0x00123E90 File Offset: 0x00123090
public override byte GetCommandNo()
{
return 240;
}
// Token: 0x06002A0B RID: 10763 RVA: 0x00118752 File Offset: 0x00117952
public override byte GetLength()
{
return 6;
}
// Token: 0x06002A0C RID: 10764 RVA: 0x00123E97 File Offset: 0x00123097
public override PacketReqHeader CreateReq()
{
return new GetBoardInfoCommand.Req();
}
// Token: 0x06002A0D RID: 10765 RVA: 0x00123E9E File Offset: 0x0012309E
public override PacketAckHeader CreateAck()
{
return new GetBoardInfoCommand.Ack();
}
// Token: 0x06002A0E RID: 10766 RVA: 0x00123EA5 File Offset: 0x001230A5
public GetBoardInfoCommand()
{
this._boardNo = new BoardNo("");
this._firmRevision = 0;
}
// Token: 0x06002A0F RID: 10767 RVA: 0x00123EC4 File Offset: 0x001230C4
public BoardNo getBoardNo()
{
return this._boardNo;
}
// Token: 0x06002A10 RID: 10768 RVA: 0x00123ECC File Offset: 0x001230CC
public byte getFirmRevision()
{
return this._firmRevision;
}
// Token: 0x06002A11 RID: 10769 RVA: 0x00123ED4 File Offset: 0x001230D4
public override void DoRecv()
{
int count = this.AckPacket.Count;
int num = 7;
if (count <= num)
{
return;
}
this._boardNo.Clear();
this._firmRevision = 0;
int num2 = 0;
int i = num;
while (i < count)
{
if (i >= count)
{
return;
}
if (this.AckPacket[i] == 255)
{
i++;
break;
}
BoardNo boardNo = this._boardNo;
boardNo.Text += ((char)this.AckPacket[i]).ToString();
i++;
num2++;
}
if (i >= count)
{
return;
}
if (i < count)
{
this._firmRevision = this.AckPacket[i++];
}
}
// Token: 0x04003B91 RID: 15249
private BoardNo _boardNo;
// Token: 0x04003B92 RID: 15250
private byte _firmRevision;
// Token: 0x02000C9B RID: 3227
public class Req : PacketReqHeader
{
// Token: 0x06005614 RID: 22036 RVA: 0x001B78EA File Offset: 0x001B6AEA
public Req()
: base(6)
{
}
// Token: 0x17000905 RID: 2309
// (get) Token: 0x06005615 RID: 22037 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x06005616 RID: 22038 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte Sum
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x04007089 RID: 28809
public new const int Size = 6;
}
// Token: 0x02000C9C RID: 3228
public class Ack : PacketAckHeader
{
}
}
}

View File

@@ -0,0 +1,202 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x0200051F RID: 1311
public class GetBoardStatusCommand : CommandBase
{
// Token: 0x06002A12 RID: 10770 RVA: 0x00123F80 File Offset: 0x00123180
public override byte GetCommandNo()
{
return 241;
}
// Token: 0x06002A13 RID: 10771 RVA: 0x00118752 File Offset: 0x00117952
public override byte GetLength()
{
return 6;
}
// Token: 0x06002A14 RID: 10772 RVA: 0x00123F87 File Offset: 0x00123187
public override PacketReqHeader CreateReq()
{
return new GetBoardStatusCommand.Req();
}
// Token: 0x06002A15 RID: 10773 RVA: 0x00123F8E File Offset: 0x0012318E
public override PacketAckHeader CreateAck()
{
return new GetBoardStatusCommand.Ack();
}
// Token: 0x06002A16 RID: 10774 RVA: 0x00123F95 File Offset: 0x00123195
public GetBoardStatusCommand()
{
this._boardStatus = new BoardStatus();
}
// Token: 0x06002A17 RID: 10775 RVA: 0x00123FA8 File Offset: 0x001231A8
public override void DoRecv()
{
GetBoardStatusCommand.AppReportData appReportData = default(GetBoardStatusCommand.AppReportData);
if (this.AckPacket.Count == 12)
{
this._boardStatus.Clear();
GetBoardStatusCommand.Ack ack = (GetBoardStatusCommand.Ack)this.AckPacket;
appReportData.timeoutStat = ack.timeoutStat;
appReportData.timeoutSec = ack.timeoutSec;
appReportData.pwmIo = ack.pwmIo;
appReportData.fetTimeout = ack.fetTimeout;
GetBoardStatusCommand.makeBoardStatus(this._boardStatus, appReportData);
}
}
// Token: 0x06002A18 RID: 10776 RVA: 0x00124023 File Offset: 0x00123223
public static void makeBoardStatus(BoardStatus boardStatus, GetBoardStatusCommand.AppReportData ack)
{
boardStatus.Clear();
boardStatus.TimeoutStat = ack.timeoutStat;
boardStatus.TimeoutSec = ack.timeoutSec;
boardStatus.PwmIo = ack.pwmIo;
boardStatus.FetTimeout = ack.fetTimeout;
}
// Token: 0x06002A19 RID: 10777 RVA: 0x0012405B File Offset: 0x0012325B
public BoardStatus getBoardStatus()
{
return this._boardStatus;
}
// Token: 0x04003B93 RID: 15251
private BoardStatus _boardStatus;
// Token: 0x02000C9D RID: 3229
public class Req : PacketReqHeader
{
// Token: 0x06005618 RID: 22040 RVA: 0x001B78EA File Offset: 0x001B6AEA
public Req()
: base(6)
{
}
// Token: 0x17000906 RID: 2310
// (get) Token: 0x06005619 RID: 22041 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x0600561A RID: 22042 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte sum
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x0400708A RID: 28810
public new const int Size = 6;
}
// Token: 0x02000C9E RID: 3230
public class Ack : PacketAckHeader
{
// Token: 0x17000907 RID: 2311
// (get) Token: 0x0600561B RID: 22043 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x0600561C RID: 22044 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte timeoutStat
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x17000908 RID: 2312
// (get) Token: 0x0600561D RID: 22045 RVA: 0x001B7906 File Offset: 0x001B6B06
// (set) Token: 0x0600561E RID: 22046 RVA: 0x001B790F File Offset: 0x001B6B0F
public byte timeoutSec
{
get
{
return base[8];
}
set
{
base[8] = value;
}
}
// Token: 0x17000909 RID: 2313
// (get) Token: 0x0600561F RID: 22047 RVA: 0x001B7919 File Offset: 0x001B6B19
// (set) Token: 0x06005620 RID: 22048 RVA: 0x001B7923 File Offset: 0x001B6B23
public byte pwmIo
{
get
{
return base[9];
}
set
{
base[9] = value;
}
}
// Token: 0x1700090A RID: 2314
// (get) Token: 0x06005621 RID: 22049 RVA: 0x001B792E File Offset: 0x001B6B2E
// (set) Token: 0x06005622 RID: 22050 RVA: 0x001B7938 File Offset: 0x001B6B38
public byte fetTimeout
{
get
{
return base[10];
}
set
{
base[10] = value;
}
}
// Token: 0x1700090B RID: 2315
// (get) Token: 0x06005623 RID: 22051 RVA: 0x001B7A05 File Offset: 0x001B6C05
// (set) Token: 0x06005624 RID: 22052 RVA: 0x001B7A0F File Offset: 0x001B6C0F
public byte sum
{
get
{
return base[11];
}
set
{
base[11] = value;
}
}
// Token: 0x0400708B RID: 28811
public new const int Size = 12;
}
// Token: 0x02000C9F RID: 3231
public struct AppReportData
{
// Token: 0x0400708C RID: 28812
public const int size = 5;
// Token: 0x0400708D RID: 28813
public byte timeoutStat;
// Token: 0x0400708E RID: 28814
public byte timeoutSec;
// Token: 0x0400708F RID: 28815
public byte pwmIo;
// Token: 0x04007090 RID: 28816
public byte fetTimeout;
}
}
}

View File

@@ -0,0 +1,130 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000520 RID: 1312
public class GetEEPRomCommand : CommandBase
{
// Token: 0x06002A1A RID: 10778 RVA: 0x00124063 File Offset: 0x00123263
public override byte GetCommandNo()
{
return 124;
}
// Token: 0x06002A1B RID: 10779 RVA: 0x0011884C File Offset: 0x00117A4C
public override byte GetLength()
{
return 7;
}
// Token: 0x06002A1C RID: 10780 RVA: 0x00124067 File Offset: 0x00123267
public override PacketReqHeader CreateReq()
{
return new GetEEPRomCommand.Req();
}
// Token: 0x06002A1D RID: 10781 RVA: 0x0012406E File Offset: 0x0012326E
public override PacketAckHeader CreateAck()
{
return new GetEEPRomCommand.Ack();
}
// Token: 0x06002A1F RID: 10783 RVA: 0x00124075 File Offset: 0x00123275
public override void DoRecv()
{
int count = this.AckPacket.Count;
}
// Token: 0x06002A20 RID: 10784 RVA: 0x00124086 File Offset: 0x00123286
public void SetEEPDataAdress(byte adress)
{
((GetEEPRomCommand.Req)this.ReqPacket).adress = adress;
}
// Token: 0x06002A21 RID: 10785 RVA: 0x00124099 File Offset: 0x00123299
public byte GetEEPData()
{
return ((GetEEPRomCommand.Ack)this.AckPacket).eepData;
}
// Token: 0x02000CA0 RID: 3232
public class Req : PacketReqHeader
{
// Token: 0x06005626 RID: 22054 RVA: 0x001B7A1A File Offset: 0x001B6C1A
public Req()
: base(7)
{
}
// Token: 0x1700090C RID: 2316
// (get) Token: 0x06005627 RID: 22055 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x06005628 RID: 22056 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte adress
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x1700090D RID: 2317
// (get) Token: 0x06005629 RID: 22057 RVA: 0x00122DA9 File Offset: 0x00121FA9
// (set) Token: 0x0600562A RID: 22058 RVA: 0x00122DB2 File Offset: 0x00121FB2
public byte sum
{
get
{
return base[6];
}
set
{
base[6] = value;
}
}
// Token: 0x04007091 RID: 28817
public new const int Size = 7;
}
// Token: 0x02000CA1 RID: 3233
public class Ack : PacketAckHeader
{
// Token: 0x1700090E RID: 2318
// (get) Token: 0x0600562B RID: 22059 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x0600562C RID: 22060 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte eepData
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x1700090F RID: 2319
// (get) Token: 0x0600562D RID: 22061 RVA: 0x001B7906 File Offset: 0x001B6B06
// (set) Token: 0x0600562E RID: 22062 RVA: 0x001B790F File Offset: 0x001B6B0F
public byte sum
{
get
{
return base[8];
}
set
{
base[8] = value;
}
}
// Token: 0x04007092 RID: 28818
public new const int Size = 9;
}
}
}

View File

@@ -0,0 +1,138 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000521 RID: 1313
public class GetFirmSumCommand : CommandBase
{
// Token: 0x06002A22 RID: 10786 RVA: 0x001240AB File Offset: 0x001232AB
public override byte GetCommandNo()
{
return 242;
}
// Token: 0x06002A23 RID: 10787 RVA: 0x00118752 File Offset: 0x00117952
public override byte GetLength()
{
return 6;
}
// Token: 0x06002A24 RID: 10788 RVA: 0x001240B2 File Offset: 0x001232B2
public override PacketReqHeader CreateReq()
{
return new GetFirmSumCommand.Req();
}
// Token: 0x06002A25 RID: 10789 RVA: 0x001240B9 File Offset: 0x001232B9
public override PacketAckHeader CreateAck()
{
return new GetFirmSumCommand.Ack();
}
// Token: 0x06002A26 RID: 10790 RVA: 0x001240C0 File Offset: 0x001232C0
public GetFirmSumCommand()
{
this._sum = 0;
}
// Token: 0x06002A27 RID: 10791 RVA: 0x001240D0 File Offset: 0x001232D0
public override void DoRecv()
{
if (this.AckPacket.Count == 10)
{
GetFirmSumCommand.Ack ack = (GetFirmSumCommand.Ack)this.AckPacket;
this._sum = (ushort)(ack.sum_upper << 8);
this._sum |= (ushort)ack.sum_lower;
}
}
// Token: 0x06002A28 RID: 10792 RVA: 0x0012411B File Offset: 0x0012331B
public ushort getSum()
{
return this._sum;
}
// Token: 0x04003B94 RID: 15252
public ushort _sum;
// Token: 0x02000CA2 RID: 3234
public class Req : PacketReqHeader
{
// Token: 0x06005630 RID: 22064 RVA: 0x001B78EA File Offset: 0x001B6AEA
public Req()
: base(6)
{
}
// Token: 0x17000910 RID: 2320
// (get) Token: 0x06005631 RID: 22065 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x06005632 RID: 22066 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte sum
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x04007093 RID: 28819
public new const int Size = 6;
}
// Token: 0x02000CA3 RID: 3235
public class Ack : PacketAckHeader
{
// Token: 0x17000911 RID: 2321
// (get) Token: 0x06005633 RID: 22067 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x06005634 RID: 22068 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum_upper
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x17000912 RID: 2322
// (get) Token: 0x06005635 RID: 22069 RVA: 0x001B7906 File Offset: 0x001B6B06
// (set) Token: 0x06005636 RID: 22070 RVA: 0x001B790F File Offset: 0x001B6B0F
public byte sum_lower
{
get
{
return base[8];
}
set
{
base[8] = value;
}
}
// Token: 0x17000913 RID: 2323
// (get) Token: 0x06005637 RID: 22071 RVA: 0x001B7919 File Offset: 0x001B6B19
// (set) Token: 0x06005638 RID: 22072 RVA: 0x001B7923 File Offset: 0x001B6B23
public byte sum
{
get
{
return base[9];
}
set
{
base[9] = value;
}
}
// Token: 0x04007094 RID: 28820
public new const int Size = 10;
}
}
}

View File

@@ -0,0 +1,24 @@
using System;
using UnityEngine;
namespace Comio.BD15070_4
{
// Token: 0x02000523 RID: 1315
public struct Gs8BitMulti
{
// Token: 0x04003BA1 RID: 15265
public byte Start;
// Token: 0x04003BA2 RID: 15266
public byte End;
// Token: 0x04003BA3 RID: 15267
public byte Skip;
// Token: 0x04003BA4 RID: 15268
public Color32 Color;
// Token: 0x04003BA5 RID: 15269
public byte Speed;
}
}

View File

@@ -0,0 +1,186 @@
using System;
using System.Diagnostics;
using UnityEngine;
namespace Comio.BD15070_4
{
// Token: 0x02000522 RID: 1314
public class IoCtrl
{
// Token: 0x06002A29 RID: 10793 RVA: 0x00124123 File Offset: 0x00123323
public IoCtrl(BoardCtrl15070_4 boardCtrl)
{
this._construct(boardCtrl);
}
// Token: 0x06002A2A RID: 10794 RVA: 0x00124132 File Offset: 0x00123332
public void Initialize()
{
this._initialize();
}
// Token: 0x06002A2B RID: 10795 RVA: 0x0012413A File Offset: 0x0012333A
public void Execute()
{
this._sendLed();
}
// Token: 0x06002A2C RID: 10796 RVA: 0x00124144 File Offset: 0x00123344
public void SetLedData(byte ledPos, LedData data)
{
if (ledPos == 8 || ledPos == 9 || ledPos == 10)
{
switch (ledPos)
{
case 8:
this._dc8Bit.Color.r = data.GetColor(ledPos).r;
break;
case 9:
this._dc8Bit.Color.g = data.GetColor(ledPos).g;
break;
case 10:
this._dc8Bit.Color.b = data.GetColor(ledPos).b;
break;
}
this.SetLedFetCommand.setColor(this._dc8Bit.Color);
this._boardCtrl.SendForceCommand(this.SetLedFetCommand);
return;
}
this.SetLedGs8BitCommand[(int)ledPos].setColor(ledPos, data.GetColor(ledPos));
this._boardCtrl.SendForceCommand(this.SetLedGs8BitCommand[(int)ledPos]);
}
// Token: 0x06002A2D RID: 10797 RVA: 0x00124220 File Offset: 0x00123420
public void SetLedDataMulti(Color32 data, byte speed)
{
this._gs8BitMulti.Color = data;
this._gs8BitMulti.Start = 0;
this._gs8BitMulti.End = 8;
this._gs8BitMulti.Skip = 0;
this._gs8BitMulti.Speed = speed;
this.SetLedGs8BitMultiCommand.setColor(this._gs8BitMulti);
this._boardCtrl.SendForceCommand(this.SetLedGs8BitMultiCommand);
}
// Token: 0x06002A2E RID: 10798 RVA: 0x0012428B File Offset: 0x0012348B
public void SetLedDataMultiFet(Color32 data)
{
this._dc8Bit.Color = data;
this.SetLedFetCommand.setColor(this._dc8Bit.Color);
this._boardCtrl.SendForceCommand(this.SetLedFetCommand);
}
// Token: 0x06002A2F RID: 10799 RVA: 0x001242C0 File Offset: 0x001234C0
public void SetLedDataMultiFade(Color32 data, byte speed)
{
this._gs8BitMultiFade.Color = data;
this._gs8BitMultiFade.Start = 0;
this._gs8BitMultiFade.End = 8;
this._gs8BitMultiFade.Skip = 0;
this._gs8BitMultiFade.Speed = speed;
this.SetLedGs8BitMultiFadeCommand.setColor(this._gs8BitMultiFade);
this._boardCtrl.SendForceCommand(this.SetLedGs8BitMultiFadeCommand);
}
// Token: 0x06002A30 RID: 10800 RVA: 0x0012432C File Offset: 0x0012352C
public void SetLedDataAllOff()
{
this._gs8BitMulti.Color = Color.black;
this._gs8BitMulti.Start = 0;
this._gs8BitMulti.End = 32;
this._gs8BitMulti.Skip = 0;
this._gs8BitMulti.Speed = 0;
this.SetLedGs8BitMultiCommand.setColor(this._gs8BitMulti);
this._boardCtrl.SendForceCommand(this.SetLedGs8BitMultiCommand);
this._dc8Bit.Color = Color.black;
this.SetLedFetCommand.setColor(this._dc8Bit.Color);
this._boardCtrl.SendForceCommand(this.SetLedFetCommand);
}
// Token: 0x06002A31 RID: 10801 RVA: 0x001243DD File Offset: 0x001235DD
public void SetUpdateGs()
{
this._boardCtrl.SendForceCommand(this.SetLedGsUpdateCommand);
}
// Token: 0x06002A32 RID: 10802 RVA: 0x001243F0 File Offset: 0x001235F0
private void _construct(BoardCtrl15070_4 boardCtrl)
{
this._boardCtrl = boardCtrl;
this._ledData = new LedData();
this._modeTimer = new Stopwatch();
this._gs8Bit = new Gs8BitMulti[11];
for (int i = 0; i < this._gs8Bit.Length; i++)
{
this._gs8Bit[i] = default(Gs8BitMulti);
}
this._gs8BitMulti = default(Gs8BitMulti);
this._gs8BitMultiFade = default(Gs8BitMulti);
this._dc8Bit = default(Gs8BitMulti);
this.SetLedGs8BitCommand = new SetLedGs8BitCommand[11];
for (int j = 0; j < 11; j++)
{
this.SetLedGs8BitCommand[j] = new SetLedGs8BitCommand();
this._boardCtrl.InitCommand(this.SetLedGs8BitCommand[j], this.SetLedGs8BitCommand[j].GetCommandNo(), this.SetLedGs8BitCommand[j].GetLength());
}
this.SetLedGs8BitMultiCommand = new SetLedGs8BitMultiCommand();
this._boardCtrl.InitCommand(this.SetLedGs8BitMultiCommand, this.SetLedGs8BitMultiCommand.GetCommandNo(), this.SetLedGs8BitMultiCommand.GetLength());
this.SetLedGs8BitMultiFadeCommand = new SetLedGs8BitMultiFadeCommand();
this._boardCtrl.InitCommand(this.SetLedGs8BitMultiFadeCommand, this.SetLedGs8BitMultiFadeCommand.GetCommandNo(), this.SetLedGs8BitMultiFadeCommand.GetLength());
this.SetLedFetCommand = new SetLedFetCommand();
this._boardCtrl.InitCommand(this.SetLedFetCommand, this.SetLedFetCommand.GetCommandNo(), this.SetLedFetCommand.GetLength());
this.SetLedGsUpdateCommand = new SetLedGsUpdateCommand();
this._boardCtrl.InitCommand(this.SetLedGsUpdateCommand, this.SetLedGsUpdateCommand.GetCommandNo(), this.SetLedGsUpdateCommand.GetLength());
}
// Token: 0x06002A33 RID: 10803 RVA: 0x0012458C File Offset: 0x0012378C
private void _initialize()
{
this._modeTimer.Start();
this._ledData.SetOff();
}
// Token: 0x06002A34 RID: 10804 RVA: 0x001245A4 File Offset: 0x001237A4
private void _sendLed()
{
long elapsedMilliseconds = this._modeTimer.ElapsedMilliseconds;
ulong num = (ulong)this._boardCtrl.GetLedInterval();
}
// Token: 0x04003B95 RID: 15253
private BoardCtrl15070_4 _boardCtrl;
// Token: 0x04003B96 RID: 15254
private LedData _ledData;
// Token: 0x04003B97 RID: 15255
public SetLedGs8BitCommand[] SetLedGs8BitCommand;
// Token: 0x04003B98 RID: 15256
public SetLedGs8BitMultiCommand SetLedGs8BitMultiCommand;
// Token: 0x04003B99 RID: 15257
public SetLedGs8BitMultiFadeCommand SetLedGs8BitMultiFadeCommand;
// Token: 0x04003B9A RID: 15258
public SetLedFetCommand SetLedFetCommand;
// Token: 0x04003B9B RID: 15259
public SetLedGsUpdateCommand SetLedGsUpdateCommand;
// Token: 0x04003B9C RID: 15260
private Gs8BitMulti[] _gs8Bit;
// Token: 0x04003B9D RID: 15261
private Gs8BitMulti _gs8BitMulti;
// Token: 0x04003B9E RID: 15262
private Gs8BitMulti _gs8BitMultiFade;
// Token: 0x04003B9F RID: 15263
private Gs8BitMulti _dc8Bit;
// Token: 0x04003BA0 RID: 15264
private Stopwatch _modeTimer;
}
}

View File

@@ -0,0 +1,94 @@
using System;
using UnityEngine;
namespace Comio.BD15070_4
{
// Token: 0x02000524 RID: 1316
public class LedData
{
// Token: 0x06002A35 RID: 10805 RVA: 0x001245BF File Offset: 0x001237BF
public LedData()
{
this.SetOff();
}
// Token: 0x06002A36 RID: 10806 RVA: 0x001245DC File Offset: 0x001237DC
public void SetOff()
{
for (int i = 0; i < this.color.Length; i++)
{
this.color[i] = Color.black;
}
}
// Token: 0x06002A37 RID: 10807 RVA: 0x00124614 File Offset: 0x00123814
public void SetColorGrb(byte ledPos, byte green, byte red, byte blue)
{
if (11 > ledPos)
{
this.color[(int)ledPos].r = LedData.AdjustColorElement(green);
this.color[(int)ledPos].g = LedData.AdjustColorElement(red);
this.color[(int)ledPos].b = LedData.AdjustColorElement(blue);
}
}
// Token: 0x06002A38 RID: 10808 RVA: 0x0012466C File Offset: 0x0012386C
public void SetColorRgb(byte ledPos, byte red, byte green, byte blue)
{
if (11 > ledPos)
{
this.color[(int)ledPos].r = LedData.AdjustColorElement(red);
this.color[(int)ledPos].g = LedData.AdjustColorElement(green);
this.color[(int)ledPos].b = LedData.AdjustColorElement(blue);
}
}
// Token: 0x06002A39 RID: 10809 RVA: 0x001246C4 File Offset: 0x001238C4
public void SetColorRgb(byte ledPos, byte colorBase)
{
if (11 > ledPos)
{
this.color[(int)ledPos].r = LedData.AdjustColorElement(colorBase);
this.color[(int)ledPos].g = LedData.AdjustColorElement(colorBase);
this.color[(int)ledPos].b = LedData.AdjustColorElement(colorBase);
}
}
// Token: 0x06002A3A RID: 10810 RVA: 0x0012471B File Offset: 0x0012391B
public Color32 GetColor(byte ledPos)
{
if (11 > ledPos)
{
return this.color[(int)ledPos];
}
return this.color[0];
}
// Token: 0x06002A3B RID: 10811 RVA: 0x0012473C File Offset: 0x0012393C
public void CopyFrom(LedData src)
{
for (int i = 0; i < 11; i++)
{
this.color[i] = src.color[i];
}
}
// Token: 0x06002A3C RID: 10812 RVA: 0x00124770 File Offset: 0x00123970
private static byte AdjustColorElement(byte element)
{
byte b = element;
if (224 == b)
{
b += 1;
}
if (208 == b)
{
b += 1;
}
return b;
}
// Token: 0x04003BA6 RID: 15270
private Color32[] color = new Color32[11];
}
}

View File

@@ -0,0 +1,87 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000525 RID: 1317
public class SetBootModeCommand : CommandBase
{
// Token: 0x06002A3D RID: 10813 RVA: 0x0012479A File Offset: 0x0012399A
public override byte GetCommandNo()
{
return 253;
}
// Token: 0x06002A3E RID: 10814 RVA: 0x00118752 File Offset: 0x00117952
public override byte GetLength()
{
return 6;
}
// Token: 0x06002A3F RID: 10815 RVA: 0x001247A1 File Offset: 0x001239A1
public override PacketReqHeader CreateReq()
{
return new SetBootModeCommand.Req();
}
// Token: 0x06002A40 RID: 10816 RVA: 0x001247A8 File Offset: 0x001239A8
public override PacketAckHeader CreateAck()
{
return new SetBootModeCommand.Ack();
}
// Token: 0x06002A42 RID: 10818 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x02000CA4 RID: 3236
public class Req : PacketReqHeader
{
// Token: 0x0600563A RID: 22074 RVA: 0x001B78EA File Offset: 0x001B6AEA
public Req()
: base(6)
{
}
// Token: 0x17000914 RID: 2324
// (get) Token: 0x0600563B RID: 22075 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x0600563C RID: 22076 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte sum
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x04007095 RID: 28821
public new const int Size = 6;
}
// Token: 0x02000CA5 RID: 3237
public class Ack : PacketAckHeader
{
// Token: 0x17000915 RID: 2325
// (get) Token: 0x0600563D RID: 22077 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x0600563E RID: 22078 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x04007096 RID: 28822
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,104 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000526 RID: 1318
public class SetDcCommand : CommandBase
{
// Token: 0x06002A43 RID: 10819 RVA: 0x001247AF File Offset: 0x001239AF
public override byte GetCommandNo()
{
return 63;
}
// Token: 0x06002A44 RID: 10820 RVA: 0x001247B3 File Offset: 0x001239B3
public override byte GetLength()
{
return 12;
}
// Token: 0x06002A45 RID: 10821 RVA: 0x001247B7 File Offset: 0x001239B7
public override PacketReqHeader CreateReq()
{
return new SetDcCommand.Req();
}
// Token: 0x06002A46 RID: 10822 RVA: 0x001247BE File Offset: 0x001239BE
public override PacketAckHeader CreateAck()
{
return new SetDcCommand.Ack();
}
// Token: 0x06002A48 RID: 10824 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x06002A49 RID: 10825 RVA: 0x001247C5 File Offset: 0x001239C5
public void setDc(Gs8BitMulti info)
{
((SetDcCommand.Req)this.ReqPacket).setDc(info);
}
// Token: 0x02000CA6 RID: 3238
public class Req : PacketReqHeader
{
// Token: 0x06005640 RID: 22080 RVA: 0x001B7A23 File Offset: 0x001B6C23
public Req()
: base(12)
{
}
// Token: 0x06005641 RID: 22081 RVA: 0x001B7A30 File Offset: 0x001B6C30
public void setDc(Gs8BitMulti info)
{
base[5] = info.Start;
base[6] = info.End;
base[7] = info.Skip;
base[8] = info.Color.r & 63;
base[9] = info.Color.g & 63;
base[10] = info.Color.b & 63;
}
// Token: 0x17000916 RID: 2326
// (get) Token: 0x06005642 RID: 22082 RVA: 0x001B7A05 File Offset: 0x001B6C05
// (set) Token: 0x06005643 RID: 22083 RVA: 0x001B7A0F File Offset: 0x001B6C0F
public byte sum
{
get
{
return base[11];
}
set
{
base[11] = value;
}
}
// Token: 0x04007097 RID: 28823
public new const int Size = 12;
}
// Token: 0x02000CA7 RID: 3239
public class Ack : PacketAckHeader
{
// Token: 0x17000917 RID: 2327
// (get) Token: 0x06005644 RID: 22084 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x06005645 RID: 22085 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x04007098 RID: 28824
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,88 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000527 RID: 1319
public class SetDcUpdateCommand : CommandBase
{
// Token: 0x06002A4A RID: 10826 RVA: 0x001247D8 File Offset: 0x001239D8
public override byte GetCommandNo()
{
return 59;
}
// Token: 0x06002A4B RID: 10827 RVA: 0x00118752 File Offset: 0x00117952
public override byte GetLength()
{
return 6;
}
// Token: 0x06002A4C RID: 10828 RVA: 0x001247DC File Offset: 0x001239DC
public override PacketReqHeader CreateReq()
{
return new SetDcUpdateCommand.Req();
}
// Token: 0x06002A4D RID: 10829 RVA: 0x001247E3 File Offset: 0x001239E3
public override PacketAckHeader CreateAck()
{
return new SetDcUpdateCommand.Ack();
}
// Token: 0x06002A4F RID: 10831 RVA: 0x001247EA File Offset: 0x001239EA
public override void DoRecv()
{
byte length = this.AckPacket.length;
}
// Token: 0x02000CA8 RID: 3240
public class Req : PacketReqHeader
{
// Token: 0x06005647 RID: 22087 RVA: 0x001B78EA File Offset: 0x001B6AEA
public Req()
: base(6)
{
}
// Token: 0x17000918 RID: 2328
// (get) Token: 0x06005648 RID: 22088 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x06005649 RID: 22089 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte sum
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x04007099 RID: 28825
public new const int Size = 6;
}
// Token: 0x02000CA9 RID: 3241
public class Ack : PacketAckHeader
{
// Token: 0x17000919 RID: 2329
// (get) Token: 0x0600564A RID: 22090 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x0600564B RID: 22091 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x0400709A RID: 28826
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,65 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000528 RID: 1320
public class SetDisableResponseCommand : CommandBase
{
// Token: 0x06002A50 RID: 10832 RVA: 0x001247FA File Offset: 0x001239FA
public override byte GetCommandNo()
{
return 126;
}
// Token: 0x06002A51 RID: 10833 RVA: 0x00118752 File Offset: 0x00117952
public override byte GetLength()
{
return 6;
}
// Token: 0x06002A52 RID: 10834 RVA: 0x001247FE File Offset: 0x001239FE
public override PacketReqHeader CreateReq()
{
return new SetDisableResponseCommand.Req();
}
// Token: 0x06002A53 RID: 10835 RVA: 0x00049CF5 File Offset: 0x00048EF5
public override PacketAckHeader CreateAck()
{
return null;
}
// Token: 0x06002A55 RID: 10837 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x02000CAA RID: 3242
public class Req : PacketReqHeader
{
// Token: 0x0600564D RID: 22093 RVA: 0x001B78EA File Offset: 0x001B6AEA
public Req()
: base(6)
{
}
// Token: 0x1700091A RID: 2330
// (get) Token: 0x0600564E RID: 22094 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x0600564F RID: 22095 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte sum
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x0400709B RID: 28827
public new const int Size = 6;
}
}
}

View File

@@ -0,0 +1,126 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000529 RID: 1321
public class SetEEPRomCommand : CommandBase
{
// Token: 0x06002A56 RID: 10838 RVA: 0x00124805 File Offset: 0x00123A05
public override byte GetCommandNo()
{
return 123;
}
// Token: 0x06002A57 RID: 10839 RVA: 0x0011884F File Offset: 0x00117A4F
public override byte GetLength()
{
return 8;
}
// Token: 0x06002A58 RID: 10840 RVA: 0x00124809 File Offset: 0x00123A09
public override PacketReqHeader CreateReq()
{
return new SetEEPRomCommand.Req();
}
// Token: 0x06002A59 RID: 10841 RVA: 0x00124810 File Offset: 0x00123A10
public override PacketAckHeader CreateAck()
{
return new SetEEPRomCommand.Ack();
}
// Token: 0x06002A5B RID: 10843 RVA: 0x00124817 File Offset: 0x00123A17
public override void DoRecv()
{
int count = this.AckPacket.Count;
}
// Token: 0x06002A5C RID: 10844 RVA: 0x00124827 File Offset: 0x00123A27
public void SetEEPData(byte adress, byte data)
{
SetEEPRomCommand.Req req = (SetEEPRomCommand.Req)this.ReqPacket;
req.adress = adress;
req.writeData = data;
}
// Token: 0x02000CAB RID: 3243
public class Req : PacketReqHeader
{
// Token: 0x06005650 RID: 22096 RVA: 0x001B7AA8 File Offset: 0x001B6CA8
public Req()
: base(8)
{
}
// Token: 0x1700091B RID: 2331
// (get) Token: 0x06005651 RID: 22097 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x06005652 RID: 22098 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte adress
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x1700091C RID: 2332
// (get) Token: 0x06005653 RID: 22099 RVA: 0x00122DA9 File Offset: 0x00121FA9
// (set) Token: 0x06005654 RID: 22100 RVA: 0x00122DB2 File Offset: 0x00121FB2
public byte writeData
{
get
{
return base[6];
}
set
{
base[6] = value;
}
}
// Token: 0x1700091D RID: 2333
// (get) Token: 0x06005655 RID: 22101 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x06005656 RID: 22102 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x0400709C RID: 28828
public new const int Size = 8;
}
// Token: 0x02000CAC RID: 3244
public class Ack : PacketAckHeader
{
// Token: 0x1700091E RID: 2334
// (get) Token: 0x06005657 RID: 22103 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x06005658 RID: 22104 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x0400709D RID: 28829
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,65 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x0200052A RID: 1322
public class SetEnableResponseCommand : CommandBase
{
// Token: 0x06002A5D RID: 10845 RVA: 0x00124841 File Offset: 0x00123A41
public override byte GetCommandNo()
{
return 125;
}
// Token: 0x06002A5E RID: 10846 RVA: 0x00118752 File Offset: 0x00117952
public override byte GetLength()
{
return 6;
}
// Token: 0x06002A5F RID: 10847 RVA: 0x00124845 File Offset: 0x00123A45
public override PacketReqHeader CreateReq()
{
return new SetEnableResponseCommand.Req();
}
// Token: 0x06002A60 RID: 10848 RVA: 0x00049CF5 File Offset: 0x00048EF5
public override PacketAckHeader CreateAck()
{
return null;
}
// Token: 0x06002A62 RID: 10850 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x02000CAD RID: 3245
public class Req : PacketReqHeader
{
// Token: 0x0600565A RID: 22106 RVA: 0x001B78EA File Offset: 0x001B6AEA
public Req()
: base(6)
{
}
// Token: 0x1700091F RID: 2335
// (get) Token: 0x0600565B RID: 22107 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x0600565C RID: 22108 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte sum
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x0400709E RID: 28830
public new const int Size = 6;
}
}
}

View File

@@ -0,0 +1,109 @@
using System;
using UnityEngine;
namespace Comio.BD15070_4
{
// Token: 0x0200052B RID: 1323
public class SetLedDirectCommand : CommandBase
{
// Token: 0x06002A63 RID: 10851 RVA: 0x0012484C File Offset: 0x00123A4C
public override byte GetCommandNo()
{
return 130;
}
// Token: 0x06002A64 RID: 10852 RVA: 0x00124853 File Offset: 0x00123A53
public override byte GetLength()
{
return 39;
}
// Token: 0x06002A65 RID: 10853 RVA: 0x00124857 File Offset: 0x00123A57
public override PacketReqHeader CreateReq()
{
return new SetLedDirectCommand.Req();
}
// Token: 0x06002A66 RID: 10854 RVA: 0x0012485E File Offset: 0x00123A5E
public override PacketAckHeader CreateAck()
{
return new SetLedDirectCommand.Ack();
}
// Token: 0x06002A68 RID: 10856 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x06002A69 RID: 10857 RVA: 0x00124865 File Offset: 0x00123A65
public void setColor(byte ledPos, Color color)
{
if (11 > ledPos)
{
((SetLedDirectCommand.Req)this.ReqPacket).setColor((int)ledPos, color);
}
}
// Token: 0x02000CAE RID: 3246
public class Req : PacketReqHeader
{
// Token: 0x0600565D RID: 22109 RVA: 0x001B7AB1 File Offset: 0x001B6CB1
public Req()
: base(39)
{
}
// Token: 0x0600565E RID: 22110 RVA: 0x001B7ABC File Offset: 0x001B6CBC
public void setColor(int index, Color32 color)
{
int num = 5 + index * 3;
base[num] = color.r;
base[num + 1] = color.g;
base[num + 2] = color.b;
}
// Token: 0x17000920 RID: 2336
// (get) Token: 0x0600565F RID: 22111 RVA: 0x001B7AFA File Offset: 0x001B6CFA
// (set) Token: 0x06005660 RID: 22112 RVA: 0x001B7B04 File Offset: 0x001B6D04
public byte sum
{
get
{
return base[38];
}
set
{
base[38] = value;
}
}
// Token: 0x0400709F RID: 28831
private const int SumIndex = 38;
// Token: 0x040070A0 RID: 28832
public new const int Size = 39;
}
// Token: 0x02000CAF RID: 3247
public class Ack : PacketAckHeader
{
// Token: 0x17000921 RID: 2337
// (get) Token: 0x06005661 RID: 22113 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x06005662 RID: 22114 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x040070A1 RID: 28833
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,151 @@
using System;
using UnityEngine;
namespace Comio.BD15070_4
{
// Token: 0x0200052C RID: 1324
public class SetLedFetCommand : CommandBase
{
// Token: 0x06002A6A RID: 10858 RVA: 0x00124883 File Offset: 0x00123A83
public override byte GetCommandNo()
{
return 57;
}
// Token: 0x06002A6B RID: 10859 RVA: 0x00124887 File Offset: 0x00123A87
public override byte GetLength()
{
return 9;
}
// Token: 0x06002A6C RID: 10860 RVA: 0x0012488B File Offset: 0x00123A8B
public override PacketReqHeader CreateReq()
{
return new SetLedFetCommand.Req();
}
// Token: 0x06002A6D RID: 10861 RVA: 0x00124892 File Offset: 0x00123A92
public override PacketAckHeader CreateAck()
{
return new SetLedFetCommand.Ack();
}
// Token: 0x06002A6F RID: 10863 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x06002A70 RID: 10864 RVA: 0x00124899 File Offset: 0x00123A99
public void setColor(Color32 color)
{
SetLedFetCommand.Req req = (SetLedFetCommand.Req)this.ReqPacket;
req.r = color.r;
req.g = color.g;
req.b = color.b;
}
// Token: 0x06002A71 RID: 10865 RVA: 0x001248C9 File Offset: 0x00123AC9
public void setColorOff()
{
SetLedFetCommand.Req req = (SetLedFetCommand.Req)this.ReqPacket;
req.r = 0;
req.g = 0;
req.b = 0;
}
// Token: 0x02000CB0 RID: 3248
public class Req : PacketReqHeader
{
// Token: 0x06005664 RID: 22116 RVA: 0x001B7B0F File Offset: 0x001B6D0F
public Req()
: base(9)
{
}
// Token: 0x17000922 RID: 2338
// (get) Token: 0x06005665 RID: 22117 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x06005666 RID: 22118 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte r
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x17000923 RID: 2339
// (get) Token: 0x06005667 RID: 22119 RVA: 0x00122DA9 File Offset: 0x00121FA9
// (set) Token: 0x06005668 RID: 22120 RVA: 0x00122DB2 File Offset: 0x00121FB2
public byte g
{
get
{
return base[6];
}
set
{
base[6] = value;
}
}
// Token: 0x17000924 RID: 2340
// (get) Token: 0x06005669 RID: 22121 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x0600566A RID: 22122 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte b
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x17000925 RID: 2341
// (get) Token: 0x0600566B RID: 22123 RVA: 0x001B7906 File Offset: 0x001B6B06
// (set) Token: 0x0600566C RID: 22124 RVA: 0x001B790F File Offset: 0x001B6B0F
public byte sum
{
get
{
return base[8];
}
set
{
base[8] = value;
}
}
// Token: 0x040070A2 RID: 28834
public new const int Size = 9;
}
// Token: 0x02000CB1 RID: 3249
public class Ack : PacketAckHeader
{
// Token: 0x17000926 RID: 2342
// (get) Token: 0x0600566D RID: 22125 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x0600566E RID: 22126 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x040070A3 RID: 28835
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,161 @@
using System;
using UnityEngine;
namespace Comio.BD15070_4
{
// Token: 0x0200052D RID: 1325
public class SetLedGs8BitCommand : CommandBase
{
// Token: 0x06002A72 RID: 10866 RVA: 0x001248EA File Offset: 0x00123AEA
public override byte GetCommandNo()
{
return 49;
}
// Token: 0x06002A73 RID: 10867 RVA: 0x001248EE File Offset: 0x00123AEE
public override byte GetLength()
{
return 10;
}
// Token: 0x06002A74 RID: 10868 RVA: 0x001248F2 File Offset: 0x00123AF2
public override PacketReqHeader CreateReq()
{
return new SetLedGs8BitCommand.Req();
}
// Token: 0x06002A75 RID: 10869 RVA: 0x001248F9 File Offset: 0x00123AF9
public override PacketAckHeader CreateAck()
{
return new SetLedGs8BitCommand.Ack();
}
// Token: 0x06002A77 RID: 10871 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x06002A78 RID: 10872 RVA: 0x00124900 File Offset: 0x00123B00
public void setColor(byte ledPos, Color32 color)
{
if (11 > ledPos)
{
SetLedGs8BitCommand.Req req = (SetLedGs8BitCommand.Req)this.ReqPacket;
req.index = ledPos;
req.r = color.r;
req.g = color.g;
req.b = color.b;
}
}
// Token: 0x02000CB2 RID: 3250
public class Req : PacketReqHeader
{
// Token: 0x06005670 RID: 22128 RVA: 0x001B7B19 File Offset: 0x001B6D19
public Req()
: base(10)
{
}
// Token: 0x17000927 RID: 2343
// (get) Token: 0x06005671 RID: 22129 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x06005672 RID: 22130 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte index
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x17000928 RID: 2344
// (get) Token: 0x06005673 RID: 22131 RVA: 0x00122DA9 File Offset: 0x00121FA9
// (set) Token: 0x06005674 RID: 22132 RVA: 0x00122DB2 File Offset: 0x00121FB2
public byte r
{
get
{
return base[6];
}
set
{
base[6] = value;
}
}
// Token: 0x17000929 RID: 2345
// (get) Token: 0x06005675 RID: 22133 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x06005676 RID: 22134 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte g
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x1700092A RID: 2346
// (get) Token: 0x06005677 RID: 22135 RVA: 0x001B7906 File Offset: 0x001B6B06
// (set) Token: 0x06005678 RID: 22136 RVA: 0x001B790F File Offset: 0x001B6B0F
public byte b
{
get
{
return base[8];
}
set
{
base[8] = value;
}
}
// Token: 0x1700092B RID: 2347
// (get) Token: 0x06005679 RID: 22137 RVA: 0x001B7919 File Offset: 0x001B6B19
// (set) Token: 0x0600567A RID: 22138 RVA: 0x001B7923 File Offset: 0x001B6B23
public byte sum
{
get
{
return base[9];
}
set
{
base[9] = value;
}
}
// Token: 0x040070A4 RID: 28836
public new const int Size = 10;
}
// Token: 0x02000CB3 RID: 3251
public class Ack : PacketAckHeader
{
// Token: 0x1700092C RID: 2348
// (get) Token: 0x0600567B RID: 22139 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x0600567C RID: 22140 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x040070A5 RID: 28837
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,218 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x0200052E RID: 1326
public class SetLedGs8BitMultiCommand : CommandBase
{
// Token: 0x06002A79 RID: 10873 RVA: 0x0012493C File Offset: 0x00123B3C
public override byte GetCommandNo()
{
return 50;
}
// Token: 0x06002A7A RID: 10874 RVA: 0x00124940 File Offset: 0x00123B40
public override byte GetLength()
{
return 13;
}
// Token: 0x06002A7B RID: 10875 RVA: 0x00124944 File Offset: 0x00123B44
public override PacketReqHeader CreateReq()
{
return new SetLedGs8BitMultiCommand.Req();
}
// Token: 0x06002A7C RID: 10876 RVA: 0x0012494B File Offset: 0x00123B4B
public override PacketAckHeader CreateAck()
{
return new SetLedGs8BitMultiCommand.Ack();
}
// Token: 0x06002A7E RID: 10878 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x06002A7F RID: 10879 RVA: 0x00124954 File Offset: 0x00123B54
public void setColor(Gs8BitMulti info)
{
SetLedGs8BitMultiCommand.Req req = (SetLedGs8BitMultiCommand.Req)this.ReqPacket;
req.start = info.Start;
req.end = info.End;
req.skip = info.Skip;
req.r = info.Color.r;
req.g = info.Color.g;
req.b = info.Color.b;
req.speed = info.Speed;
}
// Token: 0x06002A80 RID: 10880 RVA: 0x001249CE File Offset: 0x00123BCE
public void setAllOff()
{
SetLedGs8BitMultiCommand.Req req = (SetLedGs8BitMultiCommand.Req)this.ReqPacket;
req.start = 0;
req.end = 10;
req.skip = 0;
req.r = 0;
req.g = 0;
req.b = 0;
req.speed = 0;
}
// Token: 0x02000CB4 RID: 3252
public class Req : PacketReqHeader
{
// Token: 0x0600567E RID: 22142 RVA: 0x001B7B23 File Offset: 0x001B6D23
public Req()
: base(13)
{
}
// Token: 0x1700092D RID: 2349
// (get) Token: 0x0600567F RID: 22143 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x06005680 RID: 22144 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte start
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x1700092E RID: 2350
// (get) Token: 0x06005681 RID: 22145 RVA: 0x00122DA9 File Offset: 0x00121FA9
// (set) Token: 0x06005682 RID: 22146 RVA: 0x00122DB2 File Offset: 0x00121FB2
public byte end
{
get
{
return base[6];
}
set
{
base[6] = value;
}
}
// Token: 0x1700092F RID: 2351
// (get) Token: 0x06005683 RID: 22147 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x06005684 RID: 22148 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte skip
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x17000930 RID: 2352
// (get) Token: 0x06005685 RID: 22149 RVA: 0x001B7906 File Offset: 0x001B6B06
// (set) Token: 0x06005686 RID: 22150 RVA: 0x001B790F File Offset: 0x001B6B0F
public byte r
{
get
{
return base[8];
}
set
{
base[8] = value;
}
}
// Token: 0x17000931 RID: 2353
// (get) Token: 0x06005687 RID: 22151 RVA: 0x001B7919 File Offset: 0x001B6B19
// (set) Token: 0x06005688 RID: 22152 RVA: 0x001B7923 File Offset: 0x001B6B23
public byte g
{
get
{
return base[9];
}
set
{
base[9] = value;
}
}
// Token: 0x17000932 RID: 2354
// (get) Token: 0x06005689 RID: 22153 RVA: 0x001B792E File Offset: 0x001B6B2E
// (set) Token: 0x0600568A RID: 22154 RVA: 0x001B7938 File Offset: 0x001B6B38
public byte b
{
get
{
return base[10];
}
set
{
base[10] = value;
}
}
// Token: 0x17000933 RID: 2355
// (get) Token: 0x0600568B RID: 22155 RVA: 0x001B7A05 File Offset: 0x001B6C05
// (set) Token: 0x0600568C RID: 22156 RVA: 0x001B7A0F File Offset: 0x001B6C0F
public byte speed
{
get
{
return base[11];
}
set
{
base[11] = value;
}
}
// Token: 0x17000934 RID: 2356
// (get) Token: 0x0600568D RID: 22157 RVA: 0x001B7B2D File Offset: 0x001B6D2D
// (set) Token: 0x0600568E RID: 22158 RVA: 0x001B7B37 File Offset: 0x001B6D37
public byte sum
{
get
{
return base[12];
}
set
{
base[12] = value;
}
}
// Token: 0x040070A6 RID: 28838
public new const int Size = 13;
}
// Token: 0x02000CB5 RID: 3253
public class Ack : PacketAckHeader
{
// Token: 0x17000935 RID: 2357
// (get) Token: 0x0600568F RID: 22159 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x06005690 RID: 22160 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x040070A7 RID: 28839
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,205 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x0200052F RID: 1327
public class SetLedGs8BitMultiFadeCommand : CommandBase
{
// Token: 0x06002A81 RID: 10881 RVA: 0x00124A0C File Offset: 0x00123C0C
public override byte GetCommandNo()
{
return 51;
}
// Token: 0x06002A82 RID: 10882 RVA: 0x00124940 File Offset: 0x00123B40
public override byte GetLength()
{
return 13;
}
// Token: 0x06002A83 RID: 10883 RVA: 0x00124A10 File Offset: 0x00123C10
public override PacketReqHeader CreateReq()
{
return new SetLedGs8BitMultiFadeCommand.Req();
}
// Token: 0x06002A84 RID: 10884 RVA: 0x00124A17 File Offset: 0x00123C17
public override PacketAckHeader CreateAck()
{
return new SetLedGs8BitMultiFadeCommand.Ack();
}
// Token: 0x06002A86 RID: 10886 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x06002A87 RID: 10887 RVA: 0x00124A20 File Offset: 0x00123C20
public void setColor(Gs8BitMulti info)
{
SetLedGs8BitMultiFadeCommand.Req req = (SetLedGs8BitMultiFadeCommand.Req)this.ReqPacket;
req.start = info.Start;
req.end = info.End;
req.skip = info.Skip;
req.r = info.Color.r;
req.g = info.Color.g;
req.b = info.Color.b;
req.speed = info.Speed;
}
// Token: 0x02000CB6 RID: 3254
public class Req : PacketReqHeader
{
// Token: 0x06005692 RID: 22162 RVA: 0x001B7B23 File Offset: 0x001B6D23
public Req()
: base(13)
{
}
// Token: 0x17000936 RID: 2358
// (get) Token: 0x06005693 RID: 22163 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x06005694 RID: 22164 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte start
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x17000937 RID: 2359
// (get) Token: 0x06005695 RID: 22165 RVA: 0x00122DA9 File Offset: 0x00121FA9
// (set) Token: 0x06005696 RID: 22166 RVA: 0x00122DB2 File Offset: 0x00121FB2
public byte end
{
get
{
return base[6];
}
set
{
base[6] = value;
}
}
// Token: 0x17000938 RID: 2360
// (get) Token: 0x06005697 RID: 22167 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x06005698 RID: 22168 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte skip
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x17000939 RID: 2361
// (get) Token: 0x06005699 RID: 22169 RVA: 0x001B7906 File Offset: 0x001B6B06
// (set) Token: 0x0600569A RID: 22170 RVA: 0x001B790F File Offset: 0x001B6B0F
public byte r
{
get
{
return base[8];
}
set
{
base[8] = value;
}
}
// Token: 0x1700093A RID: 2362
// (get) Token: 0x0600569B RID: 22171 RVA: 0x001B7919 File Offset: 0x001B6B19
// (set) Token: 0x0600569C RID: 22172 RVA: 0x001B7923 File Offset: 0x001B6B23
public byte g
{
get
{
return base[9];
}
set
{
base[9] = value;
}
}
// Token: 0x1700093B RID: 2363
// (get) Token: 0x0600569D RID: 22173 RVA: 0x001B792E File Offset: 0x001B6B2E
// (set) Token: 0x0600569E RID: 22174 RVA: 0x001B7938 File Offset: 0x001B6B38
public byte b
{
get
{
return base[10];
}
set
{
base[10] = value;
}
}
// Token: 0x1700093C RID: 2364
// (get) Token: 0x0600569F RID: 22175 RVA: 0x001B7A05 File Offset: 0x001B6C05
// (set) Token: 0x060056A0 RID: 22176 RVA: 0x001B7A0F File Offset: 0x001B6C0F
public byte speed
{
get
{
return base[11];
}
set
{
base[11] = value;
}
}
// Token: 0x1700093D RID: 2365
// (get) Token: 0x060056A1 RID: 22177 RVA: 0x001B7B2D File Offset: 0x001B6D2D
// (set) Token: 0x060056A2 RID: 22178 RVA: 0x001B7B37 File Offset: 0x001B6D37
public byte sum
{
get
{
return base[12];
}
set
{
base[12] = value;
}
}
// Token: 0x040070A8 RID: 28840
public new const int Size = 13;
}
// Token: 0x02000CB7 RID: 3255
public class Ack : PacketAckHeader
{
// Token: 0x1700093E RID: 2366
// (get) Token: 0x060056A3 RID: 22179 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x060056A4 RID: 22180 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x040070A9 RID: 28841
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,87 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000530 RID: 1328
public class SetLedGsUpdateCommand : CommandBase
{
// Token: 0x06002A88 RID: 10888 RVA: 0x00124A9A File Offset: 0x00123C9A
public override byte GetCommandNo()
{
return 60;
}
// Token: 0x06002A89 RID: 10889 RVA: 0x00118752 File Offset: 0x00117952
public override byte GetLength()
{
return 6;
}
// Token: 0x06002A8A RID: 10890 RVA: 0x00124A9E File Offset: 0x00123C9E
public override PacketReqHeader CreateReq()
{
return new SetLedGsUpdateCommand.Req();
}
// Token: 0x06002A8B RID: 10891 RVA: 0x00124AA5 File Offset: 0x00123CA5
public override PacketAckHeader CreateAck()
{
return new SetLedGsUpdateCommand.Ack();
}
// Token: 0x06002A8D RID: 10893 RVA: 0x00003598 File Offset: 0x00002798
public override void DoRecv()
{
}
// Token: 0x02000CB8 RID: 3256
public class Req : PacketReqHeader
{
// Token: 0x060056A6 RID: 22182 RVA: 0x001B78EA File Offset: 0x001B6AEA
public Req()
: base(6)
{
}
// Token: 0x1700093F RID: 2367
// (get) Token: 0x060056A7 RID: 22183 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x060056A8 RID: 22184 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte sum
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x040070AA RID: 28842
public new const int Size = 6;
}
// Token: 0x02000CB9 RID: 3257
public class Ack : PacketAckHeader
{
// Token: 0x17000940 RID: 2368
// (get) Token: 0x060056A9 RID: 22185 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x060056AA RID: 22186 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x040070AB RID: 28843
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,109 @@
using System;
namespace Comio.BD15070_4
{
// Token: 0x02000531 RID: 1329
public class SetTimeoutCommand : CommandBase
{
// Token: 0x06002A8E RID: 10894 RVA: 0x00124AAC File Offset: 0x00123CAC
public override byte GetCommandNo()
{
return 17;
}
// Token: 0x06002A8F RID: 10895 RVA: 0x0011884C File Offset: 0x00117A4C
public override byte GetLength()
{
return 7;
}
// Token: 0x06002A90 RID: 10896 RVA: 0x00124AB0 File Offset: 0x00123CB0
public override PacketReqHeader CreateReq()
{
return new SetTimeoutCommand.Req();
}
// Token: 0x06002A91 RID: 10897 RVA: 0x00124AB7 File Offset: 0x00123CB7
public override PacketAckHeader CreateAck()
{
return new SetTimeoutCommand.Ack();
}
// Token: 0x06002A93 RID: 10899 RVA: 0x00124817 File Offset: 0x00123A17
public override void DoRecv()
{
int count = this.AckPacket.Count;
}
// Token: 0x06002A94 RID: 10900 RVA: 0x00124ABE File Offset: 0x00123CBE
public void setTimeout(byte timeout)
{
((SetTimeoutCommand.Req)this.ReqPacket).timeout = timeout;
}
// Token: 0x02000CBA RID: 3258
public class Req : PacketReqHeader
{
// Token: 0x060056AC RID: 22188 RVA: 0x001B7A1A File Offset: 0x001B6C1A
public Req()
: base(7)
{
}
// Token: 0x17000941 RID: 2369
// (get) Token: 0x060056AD RID: 22189 RVA: 0x00122D96 File Offset: 0x00121F96
// (set) Token: 0x060056AE RID: 22190 RVA: 0x00122D9F File Offset: 0x00121F9F
public byte timeout
{
get
{
return base[5];
}
set
{
base[5] = value;
}
}
// Token: 0x17000942 RID: 2370
// (get) Token: 0x060056AF RID: 22191 RVA: 0x00122DA9 File Offset: 0x00121FA9
// (set) Token: 0x060056B0 RID: 22192 RVA: 0x00122DB2 File Offset: 0x00121FB2
public byte sum
{
get
{
return base[6];
}
set
{
base[6] = value;
}
}
// Token: 0x040070AC RID: 28844
public new const int Size = 7;
}
// Token: 0x02000CBB RID: 3259
public class Ack : PacketAckHeader
{
// Token: 0x17000943 RID: 2371
// (get) Token: 0x060056B1 RID: 22193 RVA: 0x001B78F3 File Offset: 0x001B6AF3
// (set) Token: 0x060056B2 RID: 22194 RVA: 0x001B78FC File Offset: 0x001B6AFC
public byte sum
{
get
{
return base[7];
}
set
{
base[7] = value;
}
}
// Token: 0x040070AD RID: 28845
public new const int Size = 8;
}
}
}

View File

@@ -0,0 +1,59 @@
using System;
namespace Comio
{
// Token: 0x02000509 RID: 1289
public abstract class BoardBase
{
// Token: 0x06002917 RID: 10519
public abstract BoardCtrlBase GetCtrlBase();
// Token: 0x06002918 RID: 10520 RVA: 0x00121299 File Offset: 0x00120499
public bool IsInitBoard()
{
return this.GetCtrlBase().IsInitBoard();
}
// Token: 0x06002919 RID: 10521 RVA: 0x001212A6 File Offset: 0x001204A6
public bool CheckFirmVersion(byte boardVersion, byte fileVersion)
{
return this.GetCtrlBase().CheckFirmVersion(boardVersion, fileVersion);
}
// Token: 0x0600291A RID: 10522 RVA: 0x001212B5 File Offset: 0x001204B5
public bool ReqHalt()
{
return this.GetCtrlBase().ReqHalt();
}
// Token: 0x0600291B RID: 10523 RVA: 0x001212C2 File Offset: 0x001204C2
public bool IsHalted()
{
return this.GetCtrlBase().IsHalted();
}
// Token: 0x0600291C RID: 10524 RVA: 0x001212CF File Offset: 0x001204CF
public virtual void Reset()
{
this.GetCtrlBase().Reset();
}
// Token: 0x0600291D RID: 10525 RVA: 0x001212DC File Offset: 0x001204DC
public byte GetBoardNodeId()
{
return this.GetCtrlBase().GetBoardNodeId();
}
// Token: 0x0600291E RID: 10526 RVA: 0x001212E9 File Offset: 0x001204E9
public bool IsBoardSpecInfoRecv()
{
return this.GetCtrlBase().IsBoardSpecInfoRecv();
}
// Token: 0x0600291F RID: 10527 RVA: 0x001212F6 File Offset: 0x001204F6
public BoardSpecInfo GetBoardSpecInfo()
{
return this.GetCtrlBase().GetBoardSpecInfo();
}
}
}

Some files were not shown because too many files have changed in this diff Show More