initial commit
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Qoo.Application;
|
||||
using Qoo.Game;
|
||||
using Qoo.Ks;
|
||||
|
||||
namespace Qoo.Select
|
||||
{
|
||||
// Token: 0x020000BB RID: 187
|
||||
public class SceneSelect
|
||||
{
|
||||
// Token: 0x170000CC RID: 204
|
||||
// (get) Token: 0x0600058C RID: 1420 RVA: 0x00016300 File Offset: 0x00014500
|
||||
public List<SelectItem> SelectAr
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_SelectAr;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000CD RID: 205
|
||||
// (get) Token: 0x0600058D RID: 1421 RVA: 0x00016308 File Offset: 0x00014508
|
||||
public int Count
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_SelectAr.Count;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000CE RID: 206
|
||||
// (get) Token: 0x0600058E RID: 1422 RVA: 0x00016318 File Offset: 0x00014518
|
||||
// (set) Token: 0x0600058F RID: 1423 RVA: 0x00016320 File Offset: 0x00014520
|
||||
public string Name { get; set; }
|
||||
|
||||
// Token: 0x06000590 RID: 1424 RVA: 0x0001632C File Offset: 0x0001452C
|
||||
public bool AddSelect(EVENTSCENE_SELCET[] select)
|
||||
{
|
||||
this.Clear();
|
||||
foreach (EVENTSCENE_SELCET eventscene_SELCET in select)
|
||||
{
|
||||
if (eventscene_SELCET.Name.Length > 0)
|
||||
{
|
||||
this.m_SelectAr.Add(new SelectItem(eventscene_SELCET.Name, eventscene_SELCET.nParam == 1, eventscene_SELCET.KsName, eventscene_SELCET.LabelName, eventscene_SELCET.Effect));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000591 RID: 1425 RVA: 0x0001639C File Offset: 0x0001459C
|
||||
public void Clear()
|
||||
{
|
||||
App.QooSelect.SelectAr.Clear();
|
||||
}
|
||||
|
||||
// Token: 0x06000592 RID: 1426 RVA: 0x000163B0 File Offset: 0x000145B0
|
||||
public bool IsEntry(string szSelect, string szKs, string szLabel)
|
||||
{
|
||||
foreach (SelectItem selectItem in App.QooSelect.SelectAr)
|
||||
{
|
||||
if (selectItem.Ks == szKs && selectItem.Label == szLabel && selectItem.Select == szSelect)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x06000593 RID: 1427 RVA: 0x00016450 File Offset: 0x00014650
|
||||
public bool IsGrp()
|
||||
{
|
||||
bool flag = false;
|
||||
bool flag2 = false;
|
||||
foreach (SelectItem selectItem in App.QooSelect.SelectAr)
|
||||
{
|
||||
if (!flag2)
|
||||
{
|
||||
flag = selectItem.IsGrpFile;
|
||||
flag2 = true;
|
||||
}
|
||||
else if (flag != selectItem.IsGrpFile)
|
||||
{
|
||||
Debug.Assert(flag != selectItem.IsGrpFile, "Error:グラフィック選択肢とテキスト選択肢が混じっています");
|
||||
}
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06000594 RID: 1428 RVA: 0x000164F0 File Offset: 0x000146F0
|
||||
internal bool IsAnim(int i)
|
||||
{
|
||||
return SysData.IsEnableLoveAnim() && i >= 0 && i < this.m_SelectAr.Count && this.m_SelectAr[i].Effect.Length > 0;
|
||||
}
|
||||
|
||||
// Token: 0x0400041D RID: 1053
|
||||
private List<SelectItem> m_SelectAr = new List<SelectItem>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
using System;
|
||||
using Qoo.Def;
|
||||
|
||||
namespace Qoo.Select
|
||||
{
|
||||
// Token: 0x020000BC RID: 188
|
||||
public class SelectBtn
|
||||
{
|
||||
// Token: 0x06000596 RID: 1430 RVA: 0x00016544 File Offset: 0x00014744
|
||||
public bool CreateGrpBtn(string grpFile, bool IsMark = false, int iAddZ = 0)
|
||||
{
|
||||
this.m_Btn = UnityApp.Graph.m_ManSprite.AddSprite(grpFile);
|
||||
this.m_Btn.SetPtnNum(1, 2);
|
||||
this.m_Btn.SetPtnPos(0, 0);
|
||||
this.m_Btn.z = 781 + iAddZ;
|
||||
this.m_Btn.Show = false;
|
||||
this.m_Btn.SetName("GRP BTN");
|
||||
if (IsMark)
|
||||
{
|
||||
this.m_Mark = UnityApp.Graph.m_ManSprite.AddSprite("sel_kidoku.png");
|
||||
this.m_Mark.z = 782 + iAddZ;
|
||||
this.m_Mark.Show = false;
|
||||
this.m_Btn.SetName("GRP BTN MARK");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000597 RID: 1431 RVA: 0x00016600 File Offset: 0x00014800
|
||||
public bool CreateTxtBtn(string message, bool IsMark = false)
|
||||
{
|
||||
this.m_Btn = UnityApp.Graph.m_ManSprite.AddSprite("select_bar.png");
|
||||
this.m_Btn.SetPtnNum(1, 2);
|
||||
this.m_Btn.SetPtnPos(0, 0);
|
||||
this.m_Btn.SetName("TXTBTN_BASE");
|
||||
this.m_Btn.z = 781;
|
||||
this.m_Text = Man2D.TextSprite(null);
|
||||
if (IsMark)
|
||||
{
|
||||
this.m_Text.SetTextColor(SelectDef.SELECT_COLOR);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.m_Text.SetTextColor(SelectDef.TEXT_COLOR);
|
||||
}
|
||||
this.m_Text.AddText(message, 28);
|
||||
this.m_Text.z = 782;
|
||||
this.m_Text.SetName("TXTBTN_TEXT");
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000598 RID: 1432 RVA: 0x000166C8 File Offset: 0x000148C8
|
||||
public bool Restore()
|
||||
{
|
||||
if (this.m_Btn.w == 0 && this.m_Btn.h == 0)
|
||||
{
|
||||
this.m_Btn.SetImage(this.m_Btn.tex);
|
||||
this.m_Btn.SetPtnNum(1, 2);
|
||||
this.m_Btn.SetPtnPos(0, 0);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000599 RID: 1433 RVA: 0x00016728 File Offset: 0x00014928
|
||||
public bool Release()
|
||||
{
|
||||
if (Singleton<Man2D>.IsReady)
|
||||
{
|
||||
if (this.m_Btn != null)
|
||||
{
|
||||
Singleton<Man2D>.Instance.RemoveSprite(this.m_Btn);
|
||||
}
|
||||
if (this.m_Mark != null)
|
||||
{
|
||||
Singleton<Man2D>.Instance.RemoveSprite(this.m_Mark);
|
||||
}
|
||||
if (this.m_Text != null)
|
||||
{
|
||||
Singleton<Man2D>.Instance.RemoveSprite(this.m_Text);
|
||||
}
|
||||
}
|
||||
this.m_Btn = null;
|
||||
this.m_Mark = null;
|
||||
this.m_Text = null;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600059A RID: 1434 RVA: 0x000167AC File Offset: 0x000149AC
|
||||
public void SetPos(Point2 pos)
|
||||
{
|
||||
this.m_Btn.x = pos.x;
|
||||
this.m_Btn.y = pos.y;
|
||||
if (this.m_Mark != null)
|
||||
{
|
||||
this.m_Mark.x = 16 + pos.x;
|
||||
this.m_Mark.y = 12 + pos.y;
|
||||
}
|
||||
if (this.m_Text != null)
|
||||
{
|
||||
this.m_Text.CalcSize();
|
||||
this.m_Text.x = 480 - this.m_Text.w / 2;
|
||||
this.m_Text.y = 32 + pos.y;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600059B RID: 1435 RVA: 0x00016858 File Offset: 0x00014A58
|
||||
public void Show(bool isShow)
|
||||
{
|
||||
this.m_Btn.Show = isShow;
|
||||
if (this.m_Mark != null)
|
||||
{
|
||||
this.m_Mark.Show = isShow;
|
||||
}
|
||||
if (this.m_Text != null)
|
||||
{
|
||||
this.m_Text.Show = isShow;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600059C RID: 1436 RVA: 0x000168A0 File Offset: 0x00014AA0
|
||||
public void Select(bool isSelect)
|
||||
{
|
||||
if (!isSelect)
|
||||
{
|
||||
this.m_Btn.SetPtnPos(0, 0);
|
||||
}
|
||||
else if (this.m_Text != null)
|
||||
{
|
||||
this.m_Btn.SetPtnPos(0, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.m_Btn.SetPtnPos(0, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600059D RID: 1437 RVA: 0x000168F0 File Offset: 0x00014AF0
|
||||
public Point2 GetPos()
|
||||
{
|
||||
return new Point2(this.m_Btn.x, this.m_Btn.y);
|
||||
}
|
||||
|
||||
// Token: 0x0600059E RID: 1438 RVA: 0x00016910 File Offset: 0x00014B10
|
||||
public Size GetSize()
|
||||
{
|
||||
return new Size(this.m_Btn.w, this.m_Btn.h);
|
||||
}
|
||||
|
||||
// Token: 0x0600059F RID: 1439 RVA: 0x00016930 File Offset: 0x00014B30
|
||||
public bool IsHit(Point2 pos)
|
||||
{
|
||||
return this.m_Btn.x <= pos.x && pos.x < this.m_Btn.x + this.m_Btn.w && this.m_Btn.y <= pos.y && pos.y < this.m_Btn.y + this.m_Btn.h;
|
||||
}
|
||||
|
||||
// Token: 0x0400041F RID: 1055
|
||||
private UnitySprite m_Btn;
|
||||
|
||||
// Token: 0x04000420 RID: 1056
|
||||
private UnitySprite m_Mark;
|
||||
|
||||
// Token: 0x04000421 RID: 1057
|
||||
private UnityTextSprite m_Text;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
|
||||
namespace Qoo.Select
|
||||
{
|
||||
// Token: 0x020000BA RID: 186
|
||||
public class SelectItem
|
||||
{
|
||||
// Token: 0x06000580 RID: 1408 RVA: 0x00016250 File Offset: 0x00014450
|
||||
public SelectItem(string select_, bool isgrpfile_, string ks_, string label_, string effect_)
|
||||
{
|
||||
this.Select = select_;
|
||||
this.IsGrpFile = isgrpfile_;
|
||||
this.Ks = ks_;
|
||||
this.Label = label_;
|
||||
this.Effect = effect_;
|
||||
}
|
||||
|
||||
// Token: 0x170000C7 RID: 199
|
||||
// (get) Token: 0x06000581 RID: 1409 RVA: 0x00016288 File Offset: 0x00014488
|
||||
// (set) Token: 0x06000582 RID: 1410 RVA: 0x00016290 File Offset: 0x00014490
|
||||
public string Select { get; set; }
|
||||
|
||||
// Token: 0x170000C8 RID: 200
|
||||
// (get) Token: 0x06000583 RID: 1411 RVA: 0x0001629C File Offset: 0x0001449C
|
||||
// (set) Token: 0x06000584 RID: 1412 RVA: 0x000162A4 File Offset: 0x000144A4
|
||||
public bool IsGrpFile { get; set; }
|
||||
|
||||
// Token: 0x170000C9 RID: 201
|
||||
// (get) Token: 0x06000585 RID: 1413 RVA: 0x000162B0 File Offset: 0x000144B0
|
||||
// (set) Token: 0x06000586 RID: 1414 RVA: 0x000162B8 File Offset: 0x000144B8
|
||||
public string Ks { get; private set; }
|
||||
|
||||
// Token: 0x170000CA RID: 202
|
||||
// (get) Token: 0x06000587 RID: 1415 RVA: 0x000162C4 File Offset: 0x000144C4
|
||||
// (set) Token: 0x06000588 RID: 1416 RVA: 0x000162CC File Offset: 0x000144CC
|
||||
public string Label { get; private set; }
|
||||
|
||||
// Token: 0x170000CB RID: 203
|
||||
// (get) Token: 0x06000589 RID: 1417 RVA: 0x000162D8 File Offset: 0x000144D8
|
||||
// (set) Token: 0x0600058A RID: 1418 RVA: 0x000162E0 File Offset: 0x000144E0
|
||||
public string Effect { get; set; }
|
||||
|
||||
// Token: 0x04000417 RID: 1047
|
||||
private string m_Select;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user